1 line
2.1 KiB
Plaintext
1 line
2.1 KiB
Plaintext
{"file":"E:\\np-dms\\lcbp3\\node_modules\\.pnpm\\class-validator@0.14.3\\node_modules\\class-validator\\cjs\\decorator\\number\\IsPositive.js","mappings":"AAAA,YAAY,CAAC;AACb,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,GAAG,OAAO,CAAC,WAAW,GAAG,KAAK,CAAC,CAAC;AACvE,MAAM,YAAY,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACrD,OAAO,CAAC,WAAW,GAAG,YAAY,CAAC;AACnC;;GAEG;AACH,SAAS,UAAU,CAAC,KAAK;IACrB,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,CAAC,CAAC;AAClD,CAAC;AACD,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;AAChC;;GAEG;AACH,SAAS,UAAU,CAAC,iBAAiB;IACjC,OAAO,CAAC,CAAC,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;QAChC,IAAI,EAAE,OAAO,CAAC,WAAW;QACzB,SAAS,EAAE;YACP,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;YAC5C,cAAc,EAAE,CAAC,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,GAAG,qCAAqC,EAAE,iBAAiB,CAAC;SACtI;KACJ,EAAE,iBAAiB,CAAC,CAAC;AAC1B,CAAC;AACD,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC","names":[],"sources":["E:\\np-dms\\lcbp3\\node_modules\\.pnpm\\class-validator@0.14.3\\node_modules\\class-validator\\cjs\\decorator\\number\\IsPositive.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.IsPositive = exports.isPositive = exports.IS_POSITIVE = void 0;\nconst ValidateBy_1 = require(\"../common/ValidateBy\");\nexports.IS_POSITIVE = 'isPositive';\n/**\n * Checks if the value is a positive number greater than zero.\n */\nfunction isPositive(value) {\n return typeof value === 'number' && value > 0;\n}\nexports.isPositive = isPositive;\n/**\n * Checks if the value is a positive number greater than zero.\n */\nfunction IsPositive(validationOptions) {\n return (0, ValidateBy_1.ValidateBy)({\n name: exports.IS_POSITIVE,\n validator: {\n validate: (value, args) => isPositive(value),\n defaultMessage: (0, ValidateBy_1.buildMessage)(eachPrefix => eachPrefix + '$property must be a positive number', validationOptions),\n },\n }, validationOptions);\n}\nexports.IsPositive = IsPositive;\n//# sourceMappingURL=IsPositive.js.map"],"version":3} |