@decaf-ts/decorator-validation 1.5.4 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +0 -0
- package/README.md +0 -0
- package/dist/decorator-validation.js +604 -2
- package/dist/esm/decorator-validation.js +541 -2
- package/lib/esm/index.d.ts +1 -1
- package/lib/esm/index.js +2 -2
- package/lib/esm/model/Model.d.ts +0 -0
- package/lib/esm/model/Model.js +0 -0
- package/lib/esm/model/ModelErrorDefinition.d.ts +0 -0
- package/lib/esm/model/ModelErrorDefinition.js +0 -0
- package/lib/esm/model/Registry.d.ts +0 -0
- package/lib/esm/model/Registry.js +0 -0
- package/lib/esm/model/constants.d.ts +0 -0
- package/lib/esm/model/constants.js +0 -0
- package/lib/esm/model/construction.d.ts +0 -0
- package/lib/esm/model/construction.js +0 -0
- package/lib/esm/model/decorators.d.ts +0 -0
- package/lib/esm/model/decorators.js +0 -0
- package/lib/esm/model/index.d.ts +0 -0
- package/lib/esm/model/index.js +0 -0
- package/lib/esm/model/types.d.ts +0 -0
- package/lib/esm/model/types.js +0 -0
- package/lib/esm/model/utils.d.ts +0 -0
- package/lib/esm/model/utils.js +0 -0
- package/lib/esm/model/validation.d.ts +0 -0
- package/lib/esm/model/validation.js +0 -0
- package/lib/esm/utils/constants.d.ts +0 -0
- package/lib/esm/utils/constants.js +0 -0
- package/lib/esm/utils/dates.d.ts +0 -0
- package/lib/esm/utils/dates.js +0 -0
- package/lib/esm/utils/decorators.d.ts +0 -0
- package/lib/esm/utils/decorators.js +0 -0
- package/lib/esm/utils/hashing.d.ts +0 -0
- package/lib/esm/utils/hashing.js +0 -0
- package/lib/esm/utils/index.d.ts +0 -0
- package/lib/esm/utils/index.js +0 -0
- package/lib/esm/utils/registry.d.ts +0 -0
- package/lib/esm/utils/registry.js +0 -0
- package/lib/esm/utils/serialization.d.ts +0 -0
- package/lib/esm/utils/serialization.js +0 -0
- package/lib/esm/utils/strings.d.ts +0 -0
- package/lib/esm/utils/strings.js +0 -0
- package/lib/esm/validation/Validation.d.ts +0 -0
- package/lib/esm/validation/Validation.js +0 -0
- package/lib/esm/validation/Validators/DateValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/DateValidator.js +0 -0
- package/lib/esm/validation/Validators/EmailValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/EmailValidator.js +0 -0
- package/lib/esm/validation/Validators/ListValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/ListValidator.js +0 -0
- package/lib/esm/validation/Validators/MaxLengthValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/MaxLengthValidator.js +0 -0
- package/lib/esm/validation/Validators/MaxValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/MaxValidator.js +0 -0
- package/lib/esm/validation/Validators/MinLengthValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/MinLengthValidator.js +0 -0
- package/lib/esm/validation/Validators/MinValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/MinValidator.js +0 -0
- package/lib/esm/validation/Validators/PasswordValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/PasswordValidator.js +0 -0
- package/lib/esm/validation/Validators/PatternValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/PatternValidator.js +0 -0
- package/lib/esm/validation/Validators/RequiredValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/RequiredValidator.js +0 -0
- package/lib/esm/validation/Validators/StepValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/StepValidator.js +0 -0
- package/lib/esm/validation/Validators/TypeValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/TypeValidator.js +0 -0
- package/lib/esm/validation/Validators/URLValidator.d.ts +0 -0
- package/lib/esm/validation/Validators/URLValidator.js +0 -0
- package/lib/esm/validation/Validators/Validator.d.ts +0 -0
- package/lib/esm/validation/Validators/Validator.js +0 -0
- package/lib/esm/validation/Validators/ValidatorRegistry.d.ts +0 -0
- package/lib/esm/validation/Validators/ValidatorRegistry.js +0 -0
- package/lib/esm/validation/Validators/constants.d.ts +0 -0
- package/lib/esm/validation/Validators/constants.js +0 -0
- package/lib/esm/validation/Validators/decorators.d.ts +0 -0
- package/lib/esm/validation/Validators/decorators.js +0 -0
- package/lib/esm/validation/Validators/index.d.ts +0 -0
- package/lib/esm/validation/Validators/index.js +0 -0
- package/lib/esm/validation/Validators/types.d.ts +0 -0
- package/lib/esm/validation/decorators.d.ts +0 -0
- package/lib/esm/validation/decorators.js +0 -0
- package/lib/esm/validation/index.d.ts +0 -0
- package/lib/esm/validation/index.js +0 -0
- package/lib/esm/validation/types.d.ts +0 -0
- package/lib/esm/validation/types.js +0 -0
- package/lib/index.d.ts +1 -1
- package/lib/{index.cjs → index.js} +5 -5
- package/lib/model/Model.d.ts +0 -0
- package/lib/model/{Model.cjs → Model.js} +9 -9
- package/lib/model/ModelErrorDefinition.d.ts +0 -0
- package/lib/model/{ModelErrorDefinition.cjs → ModelErrorDefinition.js} +0 -0
- package/lib/model/Registry.d.ts +0 -0
- package/lib/model/{Registry.cjs → Registry.js} +3 -3
- package/lib/model/constants.d.ts +0 -0
- package/lib/model/{constants.cjs → constants.js} +0 -0
- package/lib/model/construction.d.ts +0 -0
- package/lib/model/{construction.cjs → construction.js} +1 -1
- package/lib/model/decorators.d.ts +0 -0
- package/lib/model/{decorators.cjs → decorators.js} +3 -3
- package/lib/model/index.d.ts +0 -0
- package/lib/model/{index.cjs → index.js} +9 -9
- package/lib/model/types.d.ts +0 -0
- package/lib/model/{types.cjs → types.js} +0 -0
- package/lib/model/utils.d.ts +0 -0
- package/lib/model/{utils.cjs → utils.js} +2 -2
- package/lib/model/validation.d.ts +0 -0
- package/lib/model/{validation.cjs → validation.js} +7 -7
- package/lib/utils/constants.d.ts +0 -0
- package/lib/utils/{constants.cjs → constants.js} +0 -0
- package/lib/utils/dates.d.ts +0 -0
- package/lib/utils/{dates.cjs → dates.js} +2 -2
- package/lib/utils/decorators.d.ts +0 -0
- package/lib/utils/{decorators.cjs → decorators.js} +1 -1
- package/lib/utils/hashing.d.ts +0 -0
- package/lib/utils/{hashing.cjs → hashing.js} +1 -1
- package/lib/utils/index.d.ts +0 -0
- package/lib/utils/{index.cjs → index.js} +7 -7
- package/lib/utils/registry.d.ts +0 -0
- package/lib/utils/{registry.cjs → registry.js} +0 -0
- package/lib/utils/serialization.d.ts +0 -0
- package/lib/utils/{serialization.cjs → serialization.js} +2 -2
- package/lib/utils/strings.d.ts +0 -0
- package/lib/utils/{strings.cjs → strings.js} +0 -0
- package/lib/validation/Validation.d.ts +0 -0
- package/lib/validation/{Validation.cjs → Validation.js} +2 -2
- package/lib/validation/Validators/DateValidator.d.ts +0 -0
- package/lib/validation/Validators/{DateValidator.cjs → DateValidator.js} +3 -3
- package/lib/validation/Validators/EmailValidator.d.ts +0 -0
- package/lib/validation/Validators/{EmailValidator.cjs → EmailValidator.js} +3 -3
- package/lib/validation/Validators/ListValidator.d.ts +0 -0
- package/lib/validation/Validators/{ListValidator.cjs → ListValidator.js} +3 -3
- package/lib/validation/Validators/MaxLengthValidator.d.ts +0 -0
- package/lib/validation/Validators/{MaxLengthValidator.cjs → MaxLengthValidator.js} +3 -3
- package/lib/validation/Validators/MaxValidator.d.ts +0 -0
- package/lib/validation/Validators/{MaxValidator.cjs → MaxValidator.js} +3 -3
- package/lib/validation/Validators/MinLengthValidator.d.ts +0 -0
- package/lib/validation/Validators/{MinLengthValidator.cjs → MinLengthValidator.js} +3 -3
- package/lib/validation/Validators/MinValidator.d.ts +0 -0
- package/lib/validation/Validators/{MinValidator.cjs → MinValidator.js} +3 -3
- package/lib/validation/Validators/PasswordValidator.d.ts +0 -0
- package/lib/validation/Validators/{PasswordValidator.cjs → PasswordValidator.js} +3 -3
- package/lib/validation/Validators/PatternValidator.d.ts +0 -0
- package/lib/validation/Validators/{PatternValidator.cjs → PatternValidator.js} +3 -3
- package/lib/validation/Validators/RequiredValidator.d.ts +0 -0
- package/lib/validation/Validators/{RequiredValidator.cjs → RequiredValidator.js} +3 -3
- package/lib/validation/Validators/StepValidator.d.ts +0 -0
- package/lib/validation/Validators/{StepValidator.cjs → StepValidator.js} +3 -3
- package/lib/validation/Validators/TypeValidator.d.ts +0 -0
- package/lib/validation/Validators/{TypeValidator.cjs → TypeValidator.js} +5 -5
- package/lib/validation/Validators/URLValidator.d.ts +0 -0
- package/lib/validation/Validators/{URLValidator.cjs → URLValidator.js} +3 -3
- package/lib/validation/Validators/Validator.d.ts +0 -0
- package/lib/validation/Validators/{Validator.cjs → Validator.js} +2 -2
- package/lib/validation/Validators/ValidatorRegistry.d.ts +0 -0
- package/lib/validation/Validators/constants.d.ts +0 -0
- package/lib/validation/Validators/decorators.d.ts +0 -0
- package/lib/validation/Validators/index.d.ts +0 -0
- package/lib/validation/Validators/types.d.ts +0 -0
- package/lib/validation/decorators.d.ts +0 -0
- package/lib/validation/{decorators.cjs → decorators.js} +5 -5
- package/lib/validation/index.d.ts +0 -0
- package/lib/validation/{index.cjs → index.js} +4 -4
- package/lib/validation/types.d.ts +0 -0
- package/lib/validation/{types.cjs → types.js} +0 -0
- package/package.json +2 -2
- package/dist/decorator-validation.js.LICENSE.txt +0 -14
- package/dist/esm/decorator-validation.js.LICENSE.txt +0 -14
- package/lib/esm/validation/Validators/types.js +0 -3
- package/lib/validation/Validators/ValidatorRegistry.cjs +0 -87
- package/lib/validation/Validators/constants.cjs +0 -139
- package/lib/validation/Validators/decorators.cjs +0 -30
- package/lib/validation/Validators/index.cjs +0 -71
- package/lib/validation/Validators/types.cjs +0 -4
package/lib/esm/index.d.ts
CHANGED
package/lib/esm/index.js
CHANGED
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
export * from "./utils";
|
|
40
40
|
export * from "./validation";
|
|
41
41
|
export * from "./model";
|
|
42
|
-
export const VERSION = "1.5.
|
|
42
|
+
export const VERSION = "1.5.5";
|
|
43
43
|
|
|
44
|
-
//# sourceMappingURL=data:application/json;charset=utf8;base64,
|
|
44
|
+
//# sourceMappingURL=data:application/json;charset=utf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NzZXMgZm9yIHZhbGlkYXRvcnNcbiAqXG4gKiBAbmFtZXNwYWNlIFZhbGlkYXRpb25cbiAqIEBtZW1iZXJPZiBtb2R1bGU6ZGVjb3JhdG9yLXZhbGlkYXRpb25cbiAqL1xuXG4vKipcbiAqIEBuYW1lc3BhY2UgRGF0ZXNcbiAqIEBtZW1iZXJPZiBtb2R1bGU6ZGVjb3JhdG9yLXZhbGlkYXRpb25cbiAqL1xuXG4vKipcbiAqIEBuYW1lc3BhY2UgSGFzaGluZ1xuICogQG1lbWJlck9mIG1vZHVsZTpkZWNvcmF0b3ItdmFsaWRhdGlvblxuICovXG5cbi8qKlxuICogQG5hbWVzcGFjZSBTZXJpYWxpemF0aW9uXG4gKiBAbWVtYmVyT2YgbW9kdWxlOmRlY29yYXRvci12YWxpZGF0aW9uXG4gKi9cblxuLyoqXG4gKiBAbmFtZXNwYWNlIEZvcm1hdFxuICogQG1lbWJlck9mIG1vZHVsZTpkZWNvcmF0b3ItdmFsaWRhdGlvblxuICovXG5cbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi92YWxpZGF0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9tb2RlbFwiO1xuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IFwiMS41LjVcIjtcbiJdfQ==
|
package/lib/esm/model/Model.d.ts
CHANGED
|
File without changes
|
package/lib/esm/model/Model.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/esm/model/index.d.ts
CHANGED
|
File without changes
|
package/lib/esm/model/index.js
CHANGED
|
File without changes
|
package/lib/esm/model/types.d.ts
CHANGED
|
File without changes
|
package/lib/esm/model/types.js
CHANGED
|
File without changes
|
package/lib/esm/model/utils.d.ts
CHANGED
|
File without changes
|
package/lib/esm/model/utils.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/esm/utils/dates.d.ts
CHANGED
|
File without changes
|
package/lib/esm/utils/dates.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/esm/utils/hashing.js
CHANGED
|
File without changes
|
package/lib/esm/utils/index.d.ts
CHANGED
|
File without changes
|
package/lib/esm/utils/index.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/esm/utils/strings.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/lib/index.d.ts
CHANGED
|
@@ -53,9 +53,9 @@ exports.VERSION = void 0;
|
|
|
53
53
|
* @namespace Format
|
|
54
54
|
* @memberOf module:decorator-validation
|
|
55
55
|
*/
|
|
56
|
-
__exportStar(require("./utils
|
|
57
|
-
__exportStar(require("./validation
|
|
58
|
-
__exportStar(require("./model
|
|
59
|
-
exports.VERSION = "1.5.
|
|
56
|
+
__exportStar(require("./utils"), exports);
|
|
57
|
+
__exportStar(require("./validation"), exports);
|
|
58
|
+
__exportStar(require("./model"), exports);
|
|
59
|
+
exports.VERSION = "1.5.5";
|
|
60
60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yB0aGUgTW9kZWwgdmFsaWRhdGlvbiBhcGlzIGFuZCBiYXNlIGNsYXNzZXMgZm9yIHZhbGlkYXRvcnNcbiAqXG4gKiBAbmFtZXNwYWNlIFZhbGlkYXRpb25cbiAqIEBtZW1iZXJPZiBtb2R1bGU6ZGVjb3JhdG9yLXZhbGlkYXRpb25cbiAqL1xuXG4vKipcbiAqIEBuYW1lc3BhY2UgRGF0ZXNcbiAqIEBtZW1iZXJPZiBtb2R1bGU6ZGVjb3JhdG9yLXZhbGlkYXRpb25cbiAqL1xuXG4vKipcbiAqIEBuYW1lc3BhY2UgSGFzaGluZ1xuICogQG1lbWJlck9mIG1vZHVsZTpkZWNvcmF0b3ItdmFsaWRhdGlvblxuICovXG5cbi8qKlxuICogQG5hbWVzcGFjZSBTZXJpYWxpemF0aW9uXG4gKiBAbWVtYmVyT2YgbW9kdWxlOmRlY29yYXRvci12YWxpZGF0aW9uXG4gKi9cblxuLyoqXG4gKiBAbmFtZXNwYWNlIEZvcm1hdFxuICogQG1lbWJlck9mIG1vZHVsZTpkZWNvcmF0b3ItdmFsaWRhdGlvblxuICovXG5cbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi92YWxpZGF0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9tb2RlbFwiO1xuXG5leHBvcnQgY29uc3QgVkVSU0lPTiA9IFwiMS41LjVcIjtcbiJdfQ==
|
package/lib/model/Model.d.ts
CHANGED
|
File without changes
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Model = void 0;
|
|
4
|
-
const serialization_1 = require("../utils/serialization
|
|
5
|
-
const Registry_1 = require("./Registry
|
|
4
|
+
const serialization_1 = require("../utils/serialization");
|
|
5
|
+
const Registry_1 = require("./Registry");
|
|
6
6
|
const reflection_1 = require("@decaf-ts/reflection");
|
|
7
|
-
const validation_1 = require("./validation
|
|
8
|
-
const hashing_1 = require("../utils/hashing
|
|
9
|
-
const utils_1 = require("./utils
|
|
10
|
-
const constants_1 = require("../utils/constants
|
|
11
|
-
const constants_2 = require("../validation/Validators/constants
|
|
12
|
-
const strings_1 = require("../utils/strings
|
|
13
|
-
const constants_3 = require("./constants
|
|
7
|
+
const validation_1 = require("./validation");
|
|
8
|
+
const hashing_1 = require("../utils/hashing");
|
|
9
|
+
const utils_1 = require("./utils");
|
|
10
|
+
const constants_1 = require("../utils/constants");
|
|
11
|
+
const constants_2 = require("../validation/Validators/constants");
|
|
12
|
+
const strings_1 = require("../utils/strings");
|
|
13
|
+
const constants_3 = require("./constants");
|
|
14
14
|
let modelBuilderFunction;
|
|
15
15
|
let actingModelRegistry;
|
|
16
16
|
/**
|
|
File without changes
|
|
File without changes
|
package/lib/model/Registry.d.ts
CHANGED
|
File without changes
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ModelRegistryManager = void 0;
|
|
4
4
|
exports.bulkModelRegister = bulkModelRegister;
|
|
5
|
-
const Model_1 = require("./Model
|
|
6
|
-
const strings_1 = require("../utils/strings
|
|
7
|
-
const utils_1 = require("./utils
|
|
5
|
+
const Model_1 = require("./Model");
|
|
6
|
+
const strings_1 = require("../utils/strings");
|
|
7
|
+
const utils_1 = require("./utils");
|
|
8
8
|
/**
|
|
9
9
|
* @summary Util class to enable serialization and correct rebuilding
|
|
10
10
|
*
|
package/lib/model/constants.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.construct = construct;
|
|
4
4
|
exports.findLastProtoBeforeObject = findLastProtoBeforeObject;
|
|
5
5
|
exports.bindModelPrototype = bindModelPrototype;
|
|
6
|
-
const Model_1 = require("./Model
|
|
6
|
+
const Model_1 = require("./Model");
|
|
7
7
|
/**
|
|
8
8
|
* @summary Helper Function to override constructors
|
|
9
9
|
*
|
|
File without changes
|
|
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.model = model;
|
|
4
4
|
exports.hashedBy = hashedBy;
|
|
5
5
|
exports.serializedBy = serializedBy;
|
|
6
|
-
const construction_1 = require("./construction
|
|
7
|
-
const constants_1 = require("../utils/constants
|
|
8
|
-
const Model_1 = require("./Model
|
|
6
|
+
const construction_1 = require("./construction");
|
|
7
|
+
const constants_1 = require("../utils/constants");
|
|
8
|
+
const Model_1 = require("./Model");
|
|
9
9
|
const reflection_1 = require("@decaf-ts/reflection");
|
|
10
10
|
/**
|
|
11
11
|
* @summary Defines a class as a Model class
|
package/lib/model/index.d.ts
CHANGED
|
File without changes
|
|
@@ -14,14 +14,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./constants
|
|
18
|
-
__exportStar(require("./construction
|
|
19
|
-
__exportStar(require("./decorators
|
|
20
|
-
__exportStar(require("./Model
|
|
21
|
-
__exportStar(require("./ModelErrorDefinition
|
|
22
|
-
__exportStar(require("./Registry
|
|
23
|
-
__exportStar(require("./types
|
|
24
|
-
__exportStar(require("./utils
|
|
25
|
-
__exportStar(require("./validation
|
|
17
|
+
__exportStar(require("./constants"), exports);
|
|
18
|
+
__exportStar(require("./construction"), exports);
|
|
19
|
+
__exportStar(require("./decorators"), exports);
|
|
20
|
+
__exportStar(require("./Model"), exports);
|
|
21
|
+
__exportStar(require("./ModelErrorDefinition"), exports);
|
|
22
|
+
__exportStar(require("./Registry"), exports);
|
|
23
|
+
__exportStar(require("./types"), exports);
|
|
24
|
+
__exportStar(require("./utils"), exports);
|
|
25
|
+
__exportStar(require("./validation"), exports);
|
|
26
26
|
|
|
27
27
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9tb2RlbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsOENBQTRCO0FBQzVCLGlEQUErQjtBQUMvQiwrQ0FBNkI7QUFDN0IsMENBQXdCO0FBQ3hCLHlEQUF1QztBQUN2Qyw2Q0FBMkI7QUFDM0IsMENBQXdCO0FBQ3hCLDBDQUF3QjtBQUN4QiwrQ0FBNkIiLCJmaWxlIjoibW9kZWwvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9jb25zdGFudHNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL2NvbnN0cnVjdGlvblwiO1xuZXhwb3J0ICogZnJvbSBcIi4vZGVjb3JhdG9yc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vTW9kZWxcIjtcbmV4cG9ydCAqIGZyb20gXCIuL01vZGVsRXJyb3JEZWZpbml0aW9uXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9SZWdpc3RyeVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdHlwZXNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3V0aWxzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi92YWxpZGF0aW9uXCI7XG4iXX0=
|
package/lib/model/types.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/model/utils.d.ts
CHANGED
|
File without changes
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isPropertyModel = isPropertyModel;
|
|
4
4
|
exports.isModel = isModel;
|
|
5
|
-
const constants_1 = require("../utils/constants
|
|
6
|
-
const Model_1 = require("./Model
|
|
5
|
+
const constants_1 = require("../utils/constants");
|
|
6
|
+
const Model_1 = require("./Model");
|
|
7
7
|
function isPropertyModel(target, attribute) {
|
|
8
8
|
if (isModel(target[attribute]))
|
|
9
9
|
return true;
|
|
File without changes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validate = validate;
|
|
4
|
-
const ModelErrorDefinition_1 = require("./ModelErrorDefinition
|
|
4
|
+
const ModelErrorDefinition_1 = require("./ModelErrorDefinition");
|
|
5
5
|
const reflection_1 = require("@decaf-ts/reflection");
|
|
6
|
-
const constants_1 = require("../utils/constants
|
|
7
|
-
const strings_1 = require("../utils/strings
|
|
8
|
-
const constants_2 = require("./constants
|
|
9
|
-
const Validation_1 = require("../validation/Validation
|
|
10
|
-
const constants_3 = require("../validation/Validators/constants
|
|
11
|
-
const utils_1 = require("./utils
|
|
6
|
+
const constants_1 = require("../utils/constants");
|
|
7
|
+
const strings_1 = require("../utils/strings");
|
|
8
|
+
const constants_2 = require("./constants");
|
|
9
|
+
const Validation_1 = require("../validation/Validation");
|
|
10
|
+
const constants_3 = require("../validation/Validators/constants");
|
|
11
|
+
const utils_1 = require("./utils");
|
|
12
12
|
/**
|
|
13
13
|
* @summary Analyses the decorations of the properties and validates the obj according to them
|
|
14
14
|
*
|
package/lib/utils/constants.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/lib/utils/dates.d.ts
CHANGED
|
File without changes
|
|
@@ -7,8 +7,8 @@ exports.twoDigitPad = twoDigitPad;
|
|
|
7
7
|
exports.formatDate = formatDate;
|
|
8
8
|
exports.parseDate = parseDate;
|
|
9
9
|
require("reflect-metadata");
|
|
10
|
-
const constants_1 = require("../validation/Validators/constants
|
|
11
|
-
const strings_1 = require("./strings
|
|
10
|
+
const constants_1 = require("../validation/Validators/constants");
|
|
11
|
+
const strings_1 = require("./strings");
|
|
12
12
|
/**
|
|
13
13
|
* @summary Reverses the process from {@link formatDate}
|
|
14
14
|
*
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.prop = prop;
|
|
4
4
|
exports.propMetadata = propMetadata;
|
|
5
5
|
const reflection_1 = require("@decaf-ts/reflection");
|
|
6
|
-
const constants_1 = require("./constants
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
7
|
function prop(key = constants_1.ModelKeys.ATTRIBUTE) {
|
|
8
8
|
return (model, propertyKey) => {
|
|
9
9
|
let props;
|
package/lib/utils/hashing.d.ts
CHANGED
|
File without changes
|
|
@@ -4,7 +4,7 @@ exports.Hashing = exports.DefaultHashingMethod = void 0;
|
|
|
4
4
|
exports.hashCode = hashCode;
|
|
5
5
|
exports.hashSerialization = hashSerialization;
|
|
6
6
|
exports.hashObj = hashObj;
|
|
7
|
-
const serialization_1 = require("./serialization
|
|
7
|
+
const serialization_1 = require("./serialization");
|
|
8
8
|
/**
|
|
9
9
|
* @summary Mimics Java's String's Hash implementation
|
|
10
10
|
*
|
package/lib/utils/index.d.ts
CHANGED
|
File without changes
|
|
@@ -14,12 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./constants
|
|
18
|
-
__exportStar(require("./dates
|
|
19
|
-
__exportStar(require("./decorators
|
|
20
|
-
__exportStar(require("./hashing
|
|
21
|
-
__exportStar(require("./registry
|
|
22
|
-
__exportStar(require("./serialization
|
|
23
|
-
__exportStar(require("./strings
|
|
17
|
+
__exportStar(require("./constants"), exports);
|
|
18
|
+
__exportStar(require("./dates"), exports);
|
|
19
|
+
__exportStar(require("./decorators"), exports);
|
|
20
|
+
__exportStar(require("./hashing"), exports);
|
|
21
|
+
__exportStar(require("./registry"), exports);
|
|
22
|
+
__exportStar(require("./serialization"), exports);
|
|
23
|
+
__exportStar(require("./strings"), exports);
|
|
24
24
|
|
|
25
25
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy91dGlscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsOENBQTRCO0FBQzVCLDBDQUF3QjtBQUN4QiwrQ0FBNkI7QUFDN0IsNENBQTBCO0FBQzFCLDZDQUEyQjtBQUMzQixrREFBZ0M7QUFDaEMsNENBQTBCIiwiZmlsZSI6InV0aWxzL2luZGV4LmpzIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vY29uc3RhbnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9kYXRlc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vZGVjb3JhdG9yc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vaGFzaGluZ1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vcmVnaXN0cnlcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3NlcmlhbGl6YXRpb25cIjtcbmV4cG9ydCAqIGZyb20gXCIuL3N0cmluZ3NcIjtcbiJdfQ==
|
package/lib/utils/registry.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Serialization = exports.DefaultSerializationMethod = exports.JSONSerializer = void 0;
|
|
4
|
-
const Model_1 = require("../model/Model
|
|
5
|
-
const constants_1 = require("./constants
|
|
4
|
+
const Model_1 = require("../model/Model");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
6
|
/**
|
|
7
7
|
* @summary Concrete implementation of a {@link Serializer} in JSON format
|
|
8
8
|
* @description JS's native JSON.stringify (used here) is not deterministic
|
package/lib/utils/strings.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Validation = void 0;
|
|
4
|
-
const ValidatorRegistry_1 = require("./Validators/ValidatorRegistry
|
|
5
|
-
const constants_1 = require("./Validators/constants
|
|
4
|
+
const ValidatorRegistry_1 = require("./Validators/ValidatorRegistry");
|
|
5
|
+
const constants_1 = require("./Validators/constants");
|
|
6
6
|
/**
|
|
7
7
|
* @summary Static class acting as a namespace for the Validation
|
|
8
8
|
*
|
|
File without changes
|
|
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DateValidator = void 0;
|
|
13
|
-
const Validator_1 = require("./Validator
|
|
14
|
-
const constants_1 = require("./constants
|
|
15
|
-
const decorators_1 = require("./decorators
|
|
13
|
+
const Validator_1 = require("./Validator");
|
|
14
|
+
const constants_1 = require("./constants");
|
|
15
|
+
const decorators_1 = require("./decorators");
|
|
16
16
|
/**
|
|
17
17
|
* @summary Date Validator
|
|
18
18
|
*
|
|
File without changes
|
|
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.EmailValidator = void 0;
|
|
13
|
-
const constants_1 = require("./constants
|
|
14
|
-
const PatternValidator_1 = require("./PatternValidator
|
|
15
|
-
const decorators_1 = require("./decorators
|
|
13
|
+
const constants_1 = require("./constants");
|
|
14
|
+
const PatternValidator_1 = require("./PatternValidator");
|
|
15
|
+
const decorators_1 = require("./decorators");
|
|
16
16
|
/**
|
|
17
17
|
* @summary Email Validator
|
|
18
18
|
*
|
|
File without changes
|
|
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ListValidator = void 0;
|
|
13
|
-
const Validator_1 = require("./Validator
|
|
14
|
-
const constants_1 = require("./constants
|
|
15
|
-
const decorators_1 = require("./decorators
|
|
13
|
+
const Validator_1 = require("./Validator");
|
|
14
|
+
const constants_1 = require("./constants");
|
|
15
|
+
const decorators_1 = require("./decorators");
|
|
16
16
|
/**
|
|
17
17
|
* @summary List Validator
|
|
18
18
|
*
|
|
File without changes
|
|
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.MaxLengthValidator = void 0;
|
|
13
|
-
const Validator_1 = require("./Validator
|
|
14
|
-
const constants_1 = require("./constants
|
|
15
|
-
const decorators_1 = require("./decorators
|
|
13
|
+
const Validator_1 = require("./Validator");
|
|
14
|
+
const constants_1 = require("./constants");
|
|
15
|
+
const decorators_1 = require("./decorators");
|
|
16
16
|
/**
|
|
17
17
|
* @summary Maximum Length Validator
|
|
18
18
|
* @description Validates strings and Arrays on their maximum length
|