PATH:
opt
/
bitninja-dispatcher
/
node_modules
/
class-validator
/
esm2015
/
decorator
/
common
{"version":3,"file":"NotEquals.js","sourceRoot":"","sources":["../../../../src/decorator/common/NotEquals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,CAAC,MAAM,UAAU,GAAG,WAAW,CAAC;AAEtC;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,KAAc,EAAE,UAAmB;IAC3D,OAAO,KAAK,KAAK,UAAU,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,UAAe,EAAE,iBAAqC;IAC9E,OAAO,UAAU,CACf;QACE,IAAI,EAAE,UAAU;QAChB,WAAW,EAAE,CAAC,UAAU,CAAC;QACzB,SAAS,EAAE;YACT,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAW,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;YACzE,cAAc,EAAE,YAAY,CAC1B,UAAU,CAAC,EAAE,CAAC,UAAU,GAAG,+CAA+C,EAC1E,iBAAiB,CAClB;SACF;KACF,EACD,iBAAiB,CAClB,CAAC;AACJ,CAAC","sourcesContent":["import { ValidationOptions } from '../ValidationOptions';\nimport { buildMessage, ValidateBy } from '../common/ValidateBy';\n\nexport const NOT_EQUALS = 'notEquals';\n\n/**\n * Checks if value does not match (\"!==\") the comparison.\n */\nexport function notEquals(value: unknown, comparison: unknown): boolean {\n return value !== comparison;\n}\n\n/**\n * Checks if value does not match (\"!==\") the comparison.\n */\nexport function NotEquals(comparison: any, validationOptions?: ValidationOptions): PropertyDecorator {\n return ValidateBy(\n {\n name: NOT_EQUALS,\n constraints: [comparison],\n validator: {\n validate: (value, args): boolean => notEquals(value, args.constraints[0]),\n defaultMessage: buildMessage(\n eachPrefix => eachPrefix + '$property should not be equal to $constraint1',\n validationOptions\n ),\n },\n },\n validationOptions\n );\n}\n"]}
[-] IsLatitude.js
[edit]
[-] Allow.js
[edit]
[-] IsNotEmpty.js.map
[edit]
[-] Equals.js
[edit]
[-] Validate.js.map
[edit]
[-] ValidateNested.js
[edit]
[-] IsNotEmpty.js
[edit]
[-] IsNotIn.js
[edit]
[+]
..
[-] IsDefined.js
[edit]
[-] ValidatePromise.js
[edit]
[-] ValidateBy.js.map
[edit]
[-] IsOptional.js
[edit]
[-] NotEquals.js.map
[edit]
[-] NotEquals.js
[edit]
[-] IsLatitude.js.map
[edit]
[-] IsEmpty.js.map
[edit]
[-] Allow.js.map
[edit]
[-] ValidateBy.js
[edit]
[-] IsIn.js
[edit]
[-] ValidatePromise.js.map
[edit]
[-] Equals.js.map
[edit]
[-] IsIn.js.map
[edit]
[-] IsDefined.js.map
[edit]
[-] IsLatLong.js
[edit]
[-] Validate.js
[edit]
[-] IsNotIn.js.map
[edit]
[-] ValidateIf.js
[edit]
[-] ValidateNested.js.map
[edit]
[-] IsLongitude.js.map
[edit]
[-] IsOptional.js.map
[edit]
[-] IsLongitude.js
[edit]
[-] ValidateIf.js.map
[edit]
[-] IsEmpty.js
[edit]
[-] IsLatLong.js.map
[edit]