@tsed/core 7.70.2 → 7.71.0
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/.barrelsby.json +5 -0
- package/jest.config.js +3 -3
- package/lib/browser/core.umd.min.js +1 -1
- package/lib/browser/core.umd.min.js.map +1 -1
- package/lib/cjs/decorators/configurable.js +2 -2
- package/lib/cjs/decorators/configurable.js.map +1 -1
- package/lib/cjs/decorators/enumerable.js +2 -2
- package/lib/cjs/decorators/enumerable.js.map +1 -1
- package/lib/cjs/decorators/notConfigurable.js +2 -2
- package/lib/cjs/decorators/notConfigurable.js.map +1 -1
- package/lib/cjs/decorators/notEnumerable.js +2 -2
- package/lib/cjs/decorators/notEnumerable.js.map +1 -1
- package/lib/cjs/decorators/readOnly.js +2 -2
- package/lib/cjs/decorators/readOnly.js.map +1 -1
- package/lib/cjs/decorators/storeFn.js +2 -2
- package/lib/cjs/decorators/storeFn.js.map +1 -1
- package/lib/cjs/decorators/storeMerge.js +2 -2
- package/lib/cjs/decorators/storeMerge.js.map +1 -1
- package/lib/cjs/decorators/storeSet.js +2 -2
- package/lib/cjs/decorators/storeSet.js.map +1 -1
- package/lib/cjs/decorators/writable.js +2 -2
- package/lib/cjs/decorators/writable.js.map +1 -1
- package/lib/cjs/domain/AnyToPromise.js +9 -9
- package/lib/cjs/domain/AnyToPromise.js.map +1 -1
- package/lib/cjs/domain/Metadata.js +8 -8
- package/lib/cjs/domain/Metadata.js.map +1 -1
- package/lib/cjs/domain/Store.js +28 -28
- package/lib/cjs/domain/Store.js.map +1 -1
- package/lib/cjs/errors/UnsupportedDecoratorType.js +5 -5
- package/lib/cjs/errors/UnsupportedDecoratorType.js.map +1 -1
- package/lib/cjs/index.js +85 -85
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/utils/decorators/decorateMethodsOf.js +11 -11
- package/lib/cjs/utils/decorators/decorateMethodsOf.js.map +1 -1
- package/lib/cjs/utils/decorators/decoratorArgs.js +2 -2
- package/lib/cjs/utils/decorators/decoratorArgs.js.map +1 -1
- package/lib/cjs/utils/decorators/decoratorTypeOf.js +4 -4
- package/lib/cjs/utils/decorators/decoratorTypeOf.js.map +1 -1
- package/lib/cjs/utils/decorators/inheritedDescriptorOf.js +2 -2
- package/lib/cjs/utils/decorators/inheritedDescriptorOf.js.map +1 -1
- package/lib/cjs/utils/decorators/useMethodDecorators.js +3 -3
- package/lib/cjs/utils/decorators/useMethodDecorators.js.map +1 -1
- package/lib/cjs/utils/objects/ancestorsOf.js +6 -6
- package/lib/cjs/utils/objects/ancestorsOf.js.map +1 -1
- package/lib/cjs/utils/objects/cleanObject.js +2 -2
- package/lib/cjs/utils/objects/cleanObject.js.map +1 -1
- package/lib/cjs/utils/objects/createInstance.js +2 -2
- package/lib/cjs/utils/objects/createInstance.js.map +1 -1
- package/lib/cjs/utils/objects/deepClone.js +12 -12
- package/lib/cjs/utils/objects/deepClone.js.map +1 -1
- package/lib/cjs/utils/objects/deepMerge.js +8 -8
- package/lib/cjs/utils/objects/deepMerge.js.map +1 -1
- package/lib/cjs/utils/objects/getClassOrSymbol.js +3 -3
- package/lib/cjs/utils/objects/getClassOrSymbol.js.map +1 -1
- package/lib/cjs/utils/objects/getConstructorArgNames.js +2 -2
- package/lib/cjs/utils/objects/getConstructorArgNames.js.map +1 -1
- package/lib/cjs/utils/objects/getEnumerableKeys.js +3 -3
- package/lib/cjs/utils/objects/getEnumerableKeys.js.map +1 -1
- package/lib/cjs/utils/objects/getValue.js +6 -6
- package/lib/cjs/utils/objects/getValue.js.map +1 -1
- package/lib/cjs/utils/objects/isArrowFn.js +2 -2
- package/lib/cjs/utils/objects/isArrowFn.js.map +1 -1
- package/lib/cjs/utils/objects/isClass.js +16 -16
- package/lib/cjs/utils/objects/isClass.js.map +1 -1
- package/lib/cjs/utils/objects/isCollection.js +2 -2
- package/lib/cjs/utils/objects/isCollection.js.map +1 -1
- package/lib/cjs/utils/objects/isEmpty.js +2 -2
- package/lib/cjs/utils/objects/isEmpty.js.map +1 -1
- package/lib/cjs/utils/objects/isEnumerable.js +4 -4
- package/lib/cjs/utils/objects/isEnumerable.js.map +1 -1
- package/lib/cjs/utils/objects/isInheritedFrom.js +7 -7
- package/lib/cjs/utils/objects/isInheritedFrom.js.map +1 -1
- package/lib/cjs/utils/objects/isMongooseObject.js +2 -2
- package/lib/cjs/utils/objects/isMongooseObject.js.map +1 -1
- package/lib/cjs/utils/objects/isPlainObject.js +2 -2
- package/lib/cjs/utils/objects/isPlainObject.js.map +1 -1
- package/lib/cjs/utils/objects/isPrimitive.js +5 -5
- package/lib/cjs/utils/objects/isPrimitive.js.map +1 -1
- package/lib/cjs/utils/objects/isSerializable.js +6 -6
- package/lib/cjs/utils/objects/isSerializable.js.map +1 -1
- package/lib/cjs/utils/objects/methodsOf.js +6 -6
- package/lib/cjs/utils/objects/methodsOf.js.map +1 -1
- package/lib/cjs/utils/objects/objectKeys.js +2 -2
- package/lib/cjs/utils/objects/objectKeys.js.map +1 -1
- package/lib/cjs/utils/objects/primitiveOf.js +6 -6
- package/lib/cjs/utils/objects/primitiveOf.js.map +1 -1
- package/lib/cjs/utils/objects/prototypeOf.js +2 -2
- package/lib/cjs/utils/objects/prototypeOf.js.map +1 -1
- package/lib/cjs/utils/objects/setValue.js +2 -2
- package/lib/cjs/utils/objects/setValue.js.map +1 -1
- package/lib/cjs/utils/objects/toMap.js +4 -4
- package/lib/cjs/utils/objects/toMap.js.map +1 -1
- package/lib/cjs/utils/objects/toStringConstructor.js +2 -2
- package/lib/cjs/utils/objects/toStringConstructor.js.map +1 -1
- package/lib/cjs/utils/proxyDelegation.js +2 -2
- package/lib/cjs/utils/proxyDelegation.js.map +1 -1
- package/lib/esm/decorators/configurable.js.map +1 -1
- package/lib/esm/decorators/enumerable.js.map +1 -1
- package/lib/esm/decorators/notConfigurable.js.map +1 -1
- package/lib/esm/decorators/notEnumerable.js.map +1 -1
- package/lib/esm/decorators/readOnly.js.map +1 -1
- package/lib/esm/decorators/storeFn.js.map +1 -1
- package/lib/esm/decorators/storeMerge.js.map +1 -1
- package/lib/esm/decorators/storeSet.js.map +1 -1
- package/lib/esm/decorators/writable.js.map +1 -1
- package/lib/esm/domain/AnyToPromise.js.map +1 -1
- package/lib/esm/domain/Metadata.js.map +1 -1
- package/lib/esm/domain/Store.js.map +1 -1
- package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -1
- package/lib/esm/index.js +4 -4
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/utils/decorators/decorateMethodsOf.js.map +1 -1
- package/lib/esm/utils/decorators/decoratorArgs.js.map +1 -1
- package/lib/esm/utils/decorators/decoratorTypeOf.js.map +1 -1
- package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +1 -1
- package/lib/esm/utils/decorators/useMethodDecorators.js.map +1 -1
- package/lib/esm/utils/objects/ancestorsOf.js.map +1 -1
- package/lib/esm/utils/objects/cleanObject.js.map +1 -1
- package/lib/esm/utils/objects/createInstance.js.map +1 -1
- package/lib/esm/utils/objects/deepClone.js.map +1 -1
- package/lib/esm/utils/objects/deepMerge.js.map +1 -1
- package/lib/esm/utils/objects/getClassOrSymbol.js.map +1 -1
- package/lib/esm/utils/objects/getConstructorArgNames.js.map +1 -1
- package/lib/esm/utils/objects/getEnumerableKeys.js.map +1 -1
- package/lib/esm/utils/objects/getValue.js.map +1 -1
- package/lib/esm/utils/objects/isArrowFn.js.map +1 -1
- package/lib/esm/utils/objects/isClass.js.map +1 -1
- package/lib/esm/utils/objects/isCollection.js.map +1 -1
- package/lib/esm/utils/objects/isEmpty.js.map +1 -1
- package/lib/esm/utils/objects/isEnumerable.js.map +1 -1
- package/lib/esm/utils/objects/isInheritedFrom.js.map +1 -1
- package/lib/esm/utils/objects/isMongooseObject.js.map +1 -1
- package/lib/esm/utils/objects/isPlainObject.js.map +1 -1
- package/lib/esm/utils/objects/isPrimitive.js.map +1 -1
- package/lib/esm/utils/objects/isSerializable.js.map +1 -1
- package/lib/esm/utils/objects/methodsOf.js.map +1 -1
- package/lib/esm/utils/objects/objectKeys.js.map +1 -1
- package/lib/esm/utils/objects/primitiveOf.js.map +1 -1
- package/lib/esm/utils/objects/prototypeOf.js.map +1 -1
- package/lib/esm/utils/objects/setValue.js.map +1 -1
- package/lib/esm/utils/objects/toMap.js.map +1 -1
- package/lib/esm/utils/objects/toStringConstructor.js.map +1 -1
- package/lib/esm/utils/proxyDelegation.js.map +1 -1
- package/lib/types/decorators/storeFn.d.ts +2 -2
- package/lib/types/domain/Store.d.ts +1 -1
- package/lib/types/index.d.ts +83 -83
- package/lib/types/interfaces/MetadataTypes.d.ts +1 -1
- package/lib/types/utils/decorators/decoratorArgs.d.ts +1 -1
- package/lib/types/utils/decorators/decoratorTypeOf.d.ts +1 -1
- package/lib/types/utils/decorators/useDecorators.d.ts +1 -1
- package/lib/types/utils/decorators/useMethodDecorators.d.ts +1 -1
- package/lib/types/utils/objects/constructorOf.d.ts +1 -1
- package/lib/types/utils/objects/methodsOf.d.ts +1 -1
- package/package.json +9 -6
package/lib/cjs/index.js
CHANGED
|
@@ -1,89 +1,89 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @file Automatically generated by barrelsby.
|
|
4
|
-
*/
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const tslib_1 = require("tslib");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
tslib_1.__exportStar(require("./decorators/
|
|
11
|
-
tslib_1.__exportStar(require("./decorators/
|
|
12
|
-
tslib_1.__exportStar(require("./decorators/
|
|
13
|
-
tslib_1.__exportStar(require("./decorators/
|
|
14
|
-
tslib_1.__exportStar(require("./decorators/
|
|
15
|
-
tslib_1.__exportStar(require("./decorators/
|
|
16
|
-
tslib_1.__exportStar(require("./decorators/
|
|
17
|
-
tslib_1.__exportStar(require("./
|
|
18
|
-
tslib_1.__exportStar(require("./
|
|
19
|
-
tslib_1.__exportStar(require("./
|
|
20
|
-
tslib_1.__exportStar(require("./domain/
|
|
21
|
-
tslib_1.__exportStar(require("./domain/
|
|
22
|
-
tslib_1.__exportStar(require("./domain/
|
|
23
|
-
tslib_1.__exportStar(require("./domain/
|
|
24
|
-
tslib_1.__exportStar(require("./
|
|
25
|
-
tslib_1.__exportStar(require("./
|
|
26
|
-
tslib_1.__exportStar(require("./
|
|
27
|
-
tslib_1.__exportStar(require("./
|
|
28
|
-
tslib_1.__exportStar(require("./interfaces/
|
|
29
|
-
tslib_1.__exportStar(require("./
|
|
30
|
-
tslib_1.__exportStar(require("./
|
|
31
|
-
tslib_1.__exportStar(require("./
|
|
32
|
-
tslib_1.__exportStar(require("./utils/
|
|
33
|
-
tslib_1.__exportStar(require("./utils/decorators/decorateMethodsOf"), exports);
|
|
34
|
-
tslib_1.__exportStar(require("./utils/decorators/decoratorArgs"), exports);
|
|
35
|
-
tslib_1.__exportStar(require("./utils/decorators/decoratorTypeOf"), exports);
|
|
36
|
-
tslib_1.__exportStar(require("./utils/decorators/inheritedDescriptorOf"), exports);
|
|
37
|
-
tslib_1.__exportStar(require("./utils/decorators/useDecorators"), exports);
|
|
38
|
-
tslib_1.__exportStar(require("./utils/decorators/useMethodDecorators"), exports);
|
|
39
|
-
tslib_1.__exportStar(require("./utils/
|
|
40
|
-
tslib_1.__exportStar(require("./utils/
|
|
41
|
-
tslib_1.__exportStar(require("./utils/
|
|
42
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
43
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
44
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
45
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
46
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
47
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
48
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
49
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
50
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
51
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
52
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
53
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
54
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
55
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
56
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
57
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
58
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
59
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
60
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
61
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
62
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
63
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
64
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
65
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
66
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
67
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
68
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
69
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
70
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
71
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
72
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
73
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
74
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
75
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
76
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
77
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
78
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
79
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
80
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
81
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
82
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
83
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
84
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
85
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
86
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
87
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
88
|
-
tslib_1.__exportStar(require("./utils/objects/
|
|
4
|
+
/**
|
|
5
|
+
* @file Automatically generated by @tsed/barrels.
|
|
6
|
+
*/
|
|
7
|
+
tslib_1.__exportStar(require("./decorators/configurable.js"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./decorators/deprecated.js"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./decorators/enumerable.js"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./decorators/notConfigurable.js"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./decorators/notEnumerable.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./decorators/readOnly.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./decorators/storeFn.js"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./decorators/storeMerge.js"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./decorators/storeSet.js"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./decorators/writable.js"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./domain/AnyToPromise.js"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./domain/DecoratorTypes.js"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./domain/Env.js"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./domain/Hooks.js"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./domain/Metadata.js"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./domain/Store.js"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./domain/Type.js"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./errors/UnsupportedDecoratorType.js"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./interfaces/AnyDecorator.js"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./interfaces/DecoratorParameters.js"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./interfaces/MetadataTypes.js"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./interfaces/ValueOf.js"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./utils/catchError.js"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./utils/decorators/decorateMethodsOf.js"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./utils/decorators/decoratorArgs.js"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./utils/decorators/decoratorTypeOf.js"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./utils/decorators/inheritedDescriptorOf.js"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./utils/decorators/useDecorators.js"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./utils/decorators/useMethodDecorators.js"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./utils/getRandomId.js"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./utils/http/getHostInfoFromPort.js"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./utils/imports/importPackage.js"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./utils/objects/ancestorOf.js"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./utils/objects/ancestorsOf.js"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./utils/objects/classOf.js"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./utils/objects/cleanObject.js"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./utils/objects/constructorOf.js"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./utils/objects/createInstance.js"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./utils/objects/deepClone.js"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./utils/objects/deepMerge.js"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./utils/objects/descriptorOf.js"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./utils/objects/getClassOrSymbol.js"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./utils/objects/getConstructorArgNames.js"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./utils/objects/getEnumerableKeys.js"), exports);
|
|
51
|
+
tslib_1.__exportStar(require("./utils/objects/getValue.js"), exports);
|
|
52
|
+
tslib_1.__exportStar(require("./utils/objects/hasJsonMethod.js"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./utils/objects/isArray.js"), exports);
|
|
54
|
+
tslib_1.__exportStar(require("./utils/objects/isArrowFn.js"), exports);
|
|
55
|
+
tslib_1.__exportStar(require("./utils/objects/isBoolean.js"), exports);
|
|
56
|
+
tslib_1.__exportStar(require("./utils/objects/isBuffer.js"), exports);
|
|
57
|
+
tslib_1.__exportStar(require("./utils/objects/isClass.js"), exports);
|
|
58
|
+
tslib_1.__exportStar(require("./utils/objects/isCollection.js"), exports);
|
|
59
|
+
tslib_1.__exportStar(require("./utils/objects/isDate.js"), exports);
|
|
60
|
+
tslib_1.__exportStar(require("./utils/objects/isEmpty.js"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./utils/objects/isEnumerable.js"), exports);
|
|
62
|
+
tslib_1.__exportStar(require("./utils/objects/isFunction.js"), exports);
|
|
63
|
+
tslib_1.__exportStar(require("./utils/objects/isInheritedFrom.js"), exports);
|
|
64
|
+
tslib_1.__exportStar(require("./utils/objects/isMomentObject.js"), exports);
|
|
65
|
+
tslib_1.__exportStar(require("./utils/objects/isMongooseObject.js"), exports);
|
|
66
|
+
tslib_1.__exportStar(require("./utils/objects/isNil.js"), exports);
|
|
67
|
+
tslib_1.__exportStar(require("./utils/objects/isNumber.js"), exports);
|
|
68
|
+
tslib_1.__exportStar(require("./utils/objects/isObject.js"), exports);
|
|
69
|
+
tslib_1.__exportStar(require("./utils/objects/isObservable.js"), exports);
|
|
70
|
+
tslib_1.__exportStar(require("./utils/objects/isPlainObject.js"), exports);
|
|
71
|
+
tslib_1.__exportStar(require("./utils/objects/isPrimitive.js"), exports);
|
|
72
|
+
tslib_1.__exportStar(require("./utils/objects/isPromise.js"), exports);
|
|
73
|
+
tslib_1.__exportStar(require("./utils/objects/isProtectedKey.js"), exports);
|
|
74
|
+
tslib_1.__exportStar(require("./utils/objects/isRegExp.js"), exports);
|
|
75
|
+
tslib_1.__exportStar(require("./utils/objects/isSerializable.js"), exports);
|
|
76
|
+
tslib_1.__exportStar(require("./utils/objects/isStream.js"), exports);
|
|
77
|
+
tslib_1.__exportStar(require("./utils/objects/isString.js"), exports);
|
|
78
|
+
tslib_1.__exportStar(require("./utils/objects/isSymbol.js"), exports);
|
|
79
|
+
tslib_1.__exportStar(require("./utils/objects/methodsOf.js"), exports);
|
|
80
|
+
tslib_1.__exportStar(require("./utils/objects/nameOf.js"), exports);
|
|
81
|
+
tslib_1.__exportStar(require("./utils/objects/objectKeys.js"), exports);
|
|
82
|
+
tslib_1.__exportStar(require("./utils/objects/primitiveOf.js"), exports);
|
|
83
|
+
tslib_1.__exportStar(require("./utils/objects/prototypeOf.js"), exports);
|
|
84
|
+
tslib_1.__exportStar(require("./utils/objects/setValue.js"), exports);
|
|
85
|
+
tslib_1.__exportStar(require("./utils/objects/toMap.js"), exports);
|
|
86
|
+
tslib_1.__exportStar(require("./utils/objects/toStringConstructor.js"), exports);
|
|
87
|
+
tslib_1.__exportStar(require("./utils/proxyDelegation.js"), exports);
|
|
88
|
+
tslib_1.__exportStar(require("./utils/uniq.js"), exports);
|
|
89
89
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,uEAA6C;AAC7C,qEAA2C;AAC3C,qEAA2C;AAC3C,0EAAgD;AAChD,wEAA8C;AAC9C,mEAAyC;AACzC,kEAAwC;AACxC,qEAA2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void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
4
|
+
const Store_js_1 = require("../../domain/Store.js");
|
|
5
|
+
const classOf_js_1 = require("../objects/classOf.js");
|
|
6
|
+
const descriptorOf_js_1 = require("../objects/descriptorOf.js");
|
|
7
|
+
const methodsOf_js_1 = require("../objects/methodsOf.js");
|
|
8
|
+
const prototypeOf_js_1 = require("../objects/prototypeOf.js");
|
|
9
9
|
function decorateMethodsOf(klass, decorator) {
|
|
10
|
-
(0,
|
|
11
|
-
const proto = (0,
|
|
12
|
-
if (target !== (0,
|
|
10
|
+
(0, methodsOf_js_1.methodsOf)(klass).forEach(({ target, propertyKey }) => {
|
|
11
|
+
const proto = (0, prototypeOf_js_1.prototypeOf)(klass);
|
|
12
|
+
if (target !== (0, classOf_js_1.classOf)(klass)) {
|
|
13
13
|
Object.defineProperty(proto, propertyKey, {
|
|
14
14
|
writable: true,
|
|
15
15
|
configurable: true,
|
|
16
16
|
value(...args) {
|
|
17
|
-
return (0,
|
|
17
|
+
return (0, prototypeOf_js_1.prototypeOf)(target)[propertyKey].apply(this, args);
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
Store_js_1.Store.mergeStoreMethodFrom(klass, target, propertyKey);
|
|
21
21
|
}
|
|
22
|
-
const newDescriptor = decorator(proto, propertyKey, (0,
|
|
22
|
+
const newDescriptor = decorator(proto, propertyKey, (0, descriptorOf_js_1.descriptorOf)(klass, propertyKey));
|
|
23
23
|
if (newDescriptor) {
|
|
24
24
|
Object.defineProperty(proto, propertyKey, newDescriptor);
|
|
25
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorateMethodsOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decorateMethodsOf.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"decorateMethodsOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decorateMethodsOf.ts"],"names":[],"mappings":";;;AAAA,oDAA4C;AAC5C,sDAA8C;AAC9C,gEAAwD;AACxD,0DAAkD;AAClD,8DAAsD;AAEtD,SAAgB,iBAAiB,CAAC,KAAU,EAAE,SAAc;IAC1D,IAAA,wBAAS,EAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,EAAC,MAAM,EAAE,WAAW,EAAC,EAAE,EAAE;QACjD,MAAM,KAAK,GAAG,IAAA,4BAAW,EAAC,KAAK,CAAC,CAAC;QAEjC,IAAI,MAAM,KAAK,IAAA,oBAAO,EAAC,KAAK,CAAC,EAAE;YAC7B,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE;gBACxC,QAAQ,EAAE,IAAI;gBACd,YAAY,EAAE,IAAI;gBAClB,KAAK,CAAC,GAAG,IAAW;oBAClB,OAAO,IAAA,4BAAW,EAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBAC5D,CAAC;aACF,CAAC,CAAC;YAEH,gBAAK,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;SACxD;QAED,MAAM,aAAa,GAAG,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,IAAA,8BAAY,EAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC;QAEtF,IAAI,aAAa,EAAE;YACjB,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;SAC1D;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,8CAsBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.decoratorArgs = void 0;
|
|
4
|
-
const
|
|
4
|
+
const descriptorOf_js_1 = require("../objects/descriptorOf.js");
|
|
5
5
|
function decoratorArgs(target, propertyKey) {
|
|
6
|
-
return [target, propertyKey, (0,
|
|
6
|
+
return [target, propertyKey, (0, descriptorOf_js_1.descriptorOf)(target, propertyKey)];
|
|
7
7
|
}
|
|
8
8
|
exports.decoratorArgs = decoratorArgs;
|
|
9
9
|
//# sourceMappingURL=decoratorArgs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoratorArgs.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decoratorArgs.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"decoratorArgs.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decoratorArgs.ts"],"names":[],"mappings":";;;AACA,gEAAwD;AAExD,SAAgB,aAAa,CAAC,MAAW,EAAE,WAAmB;IAC5D,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,IAAA,8BAAY,EAAC,MAAM,EAAE,WAAW,CAAE,CAAC,CAAC;AACnE,CAAC;AAFD,sCAEC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.decoratorTypeOf = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const DecoratorTypes_js_1 = require("../../domain/DecoratorTypes.js");
|
|
5
|
+
const classOf_js_1 = require("../objects/classOf.js");
|
|
6
6
|
function decoratorTypeOf(args) {
|
|
7
7
|
const [target, propertyKey, descriptor] = args;
|
|
8
8
|
const staticType = (type) => {
|
|
9
|
-
return target !== (0,
|
|
9
|
+
return target !== (0, classOf_js_1.classOf)(target) ? type : `${type}.static`;
|
|
10
10
|
};
|
|
11
11
|
if (typeof descriptor === "number") {
|
|
12
12
|
return propertyKey ? staticType("parameter") : "parameter.constructor";
|
|
@@ -17,7 +17,7 @@ function decoratorTypeOf(args) {
|
|
|
17
17
|
if ((propertyKey && descriptor === undefined) || descriptor) {
|
|
18
18
|
return staticType("property");
|
|
19
19
|
}
|
|
20
|
-
return
|
|
20
|
+
return DecoratorTypes_js_1.DecoratorTypes.CLASS;
|
|
21
21
|
}
|
|
22
22
|
exports.decoratorTypeOf = decoratorTypeOf;
|
|
23
23
|
//# sourceMappingURL=decoratorTypeOf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoratorTypeOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decoratorTypeOf.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"decoratorTypeOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/decoratorTypeOf.ts"],"names":[],"mappings":";;;AAAA,sEAA8D;AAC9D,sDAA8C;AAE9C,SAAgB,eAAe,CAAC,IAAW;IACzC,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,UAAU,CAAC,GAAG,IAAI,CAAC;IAE/C,MAAM,UAAU,GAAG,CAAC,IAAY,EAAO,EAAE;QACvC,OAAO,MAAM,KAAK,IAAA,oBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,IAAI,SAAS,CAAC;IAC9D,CAAC,CAAC;IAEF,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAClC,OAAO,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC;KACxE;IAED,IAAI,UAAU,IAAI,UAAU,CAAC,KAAK,EAAE;QAClC,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;KAC7B;IAED,IAAI,CAAC,WAAW,IAAI,UAAU,KAAK,SAAS,CAAC,IAAI,UAAU,EAAE;QAC3D,OAAO,UAAU,CAAC,UAAU,CAAC,CAAC;KAC/B;IAED,OAAO,kCAAc,CAAC,KAAK,CAAC;AAC9B,CAAC;AApBD,0CAoBC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.inheritedDescriptorOf = void 0;
|
|
4
|
-
const
|
|
4
|
+
const ancestorsOf_js_1 = require("../objects/ancestorsOf.js");
|
|
5
5
|
function inheritedDescriptorOf(target, propertyKey) {
|
|
6
|
-
for (const klass of (0,
|
|
6
|
+
for (const klass of (0, ancestorsOf_js_1.ancestorsOf)(target)) {
|
|
7
7
|
const descriptor = Object.getOwnPropertyDescriptor((klass && klass.prototype) || klass, propertyKey);
|
|
8
8
|
if (descriptor) {
|
|
9
9
|
return descriptor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inheritedDescriptorOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/inheritedDescriptorOf.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"inheritedDescriptorOf.js","sourceRoot":"","sources":["../../../../src/utils/decorators/inheritedDescriptorOf.ts"],"names":[],"mappings":";;;AAAA,8DAAsD;AAEtD,SAAgB,qBAAqB,CAAC,MAAW,EAAE,WAAmB;IACpE,KAAK,MAAM,KAAK,IAAI,IAAA,4BAAW,EAAC,MAAM,CAAC,EAAE;QACvC,MAAM,UAAU,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,SAAS,CAAC,IAAI,KAAK,EAAE,WAAW,CAAE,CAAC;QAEtG,IAAI,UAAU,EAAE;YACd,OAAO,UAAU,CAAC;SACnB;KACF;IAED,OAAO,SAAS,CAAC;AACnB,CAAC;AAVD,sDAUC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.useMethodDecorators = exports.useMethodDecorator = void 0;
|
|
4
|
-
const
|
|
4
|
+
const descriptorOf_js_1 = require("../objects/descriptorOf.js");
|
|
5
5
|
function useMethodDecorator(decorator) {
|
|
6
|
-
return (target, propertyKey) => decorator(target, propertyKey, (0,
|
|
6
|
+
return (target, propertyKey) => decorator(target, propertyKey, (0, descriptorOf_js_1.descriptorOf)(target, propertyKey));
|
|
7
7
|
}
|
|
8
8
|
exports.useMethodDecorator = useMethodDecorator;
|
|
9
9
|
function useMethodDecorators(...decorators) {
|
|
10
10
|
return (target, propertyKey) => {
|
|
11
|
-
decorators.filter(Boolean).forEach((decorator) => decorator(target, propertyKey, (0,
|
|
11
|
+
decorators.filter(Boolean).forEach((decorator) => decorator(target, propertyKey, (0, descriptorOf_js_1.descriptorOf)(target, propertyKey)));
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
exports.useMethodDecorators = useMethodDecorators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMethodDecorators.js","sourceRoot":"","sources":["../../../../src/utils/decorators/useMethodDecorators.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"useMethodDecorators.js","sourceRoot":"","sources":["../../../../src/utils/decorators/useMethodDecorators.ts"],"names":[],"mappings":";;;AACA,gEAAwD;AAExD,SAAgB,kBAAkB,CAAC,SAAuB;IACxD,OAAO,CAAC,MAAW,EAAE,WAA4B,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,IAAA,8BAAY,EAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;AAC1H,CAAC;AAFD,gDAEC;AAED,SAAgB,mBAAmB,CAAC,GAAG,UAA0B;IAC/D,OAAO,CAAC,MAAW,EAAE,WAA4B,EAAE,EAAE;QACnD,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,IAAA,8BAAY,EAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACvH,CAAC,CAAC;AACJ,CAAC;AAJD,kDAIC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ancestorsOf = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const classOf_js_1 = require("./classOf.js");
|
|
5
|
+
const ancestorOf_js_1 = require("./ancestorOf.js");
|
|
6
|
+
const nameOf_js_1 = require("./nameOf.js");
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
* @param target
|
|
@@ -11,10 +11,10 @@ const nameOf_1 = require("./nameOf");
|
|
|
11
11
|
*/
|
|
12
12
|
function ancestorsOf(target) {
|
|
13
13
|
const classes = [];
|
|
14
|
-
let currentTarget = (0,
|
|
15
|
-
while (currentTarget && (0,
|
|
14
|
+
let currentTarget = (0, classOf_js_1.classOf)(target);
|
|
15
|
+
while (currentTarget && (0, nameOf_js_1.nameOf)(currentTarget) !== "") {
|
|
16
16
|
classes.unshift(currentTarget);
|
|
17
|
-
currentTarget = (0,
|
|
17
|
+
currentTarget = (0, ancestorOf_js_1.getInheritedClass)(currentTarget);
|
|
18
18
|
}
|
|
19
19
|
return classes;
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ancestorsOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/ancestorsOf.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ancestorsOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/ancestorsOf.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AACrC,mDAAkD;AAClD,2CAAmC;AAEnC;;;;GAIG;AACH,SAAgB,WAAW,CAAC,MAAW;IACrC,MAAM,OAAO,GAAG,EAAE,CAAC;IAEnB,IAAI,aAAa,GAAG,IAAA,oBAAO,EAAC,MAAM,CAAC,CAAC;IAEpC,OAAO,aAAa,IAAI,IAAA,kBAAM,EAAC,aAAa,CAAC,KAAK,EAAE,EAAE;QACpD,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC/B,aAAa,GAAG,IAAA,iCAAiB,EAAC,aAAa,CAAC,CAAC;KAClD;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAXD,kCAWC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cleanObject = void 0;
|
|
4
|
-
const
|
|
4
|
+
const isProtectedKey_js_1 = require("./isProtectedKey.js");
|
|
5
5
|
/**
|
|
6
6
|
* Remove undefined value
|
|
7
7
|
* @param obj
|
|
@@ -9,7 +9,7 @@ const isProtectedKey_1 = require("./isProtectedKey");
|
|
|
9
9
|
*/
|
|
10
10
|
function cleanObject(obj, ignore = []) {
|
|
11
11
|
return Object.entries(obj).reduce((obj, [key, value]) => {
|
|
12
|
-
if ((0,
|
|
12
|
+
if ((0, isProtectedKey_js_1.isProtectedKey)(key) || ignore.includes(key)) {
|
|
13
13
|
return obj;
|
|
14
14
|
}
|
|
15
15
|
return value === undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanObject.js","sourceRoot":"","sources":["../../../../src/utils/objects/cleanObject.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"cleanObject.js","sourceRoot":"","sources":["../../../../src/utils/objects/cleanObject.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AACnD;;;;GAIG;AACH,SAAgB,WAAW,CAAC,GAAQ,EAAE,SAAmB,EAAE;IACzD,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACtD,IAAI,IAAA,kCAAc,EAAC,GAAG,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC/C,OAAO,GAAG,CAAC;SACZ;QAED,OAAO,KAAK,KAAK,SAAS;YACxB,CAAC,CAAC,GAAG;YACL,CAAC,CAAC;gBACE,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE,KAAK;aACb,CAAC;IACR,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAbD,kCAaC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createInstance = void 0;
|
|
4
|
-
const
|
|
4
|
+
const classOf_js_1 = require("./classOf.js");
|
|
5
5
|
function createInstance(obj) {
|
|
6
|
-
return obj ? ((0,
|
|
6
|
+
return obj ? ((0, classOf_js_1.classOf)(obj) !== Object ? Object.create(obj) : {}) : {};
|
|
7
7
|
}
|
|
8
8
|
exports.createInstance = createInstance;
|
|
9
9
|
//# sourceMappingURL=createInstance.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createInstance.js","sourceRoot":"","sources":["../../../../src/utils/objects/createInstance.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"createInstance.js","sourceRoot":"","sources":["../../../../src/utils/objects/createInstance.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AAErC,SAAgB,cAAc,CAAC,GAAQ;IACrC,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC,IAAA,oBAAO,EAAC,GAAG,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACxE,CAAC;AAFD,wCAEC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deepClone = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const isBasicType = (source) => (0,
|
|
4
|
+
const isDate_js_1 = require("./isDate.js");
|
|
5
|
+
const isFunction_js_1 = require("./isFunction.js");
|
|
6
|
+
const isNil_js_1 = require("./isNil.js");
|
|
7
|
+
const isPrimitive_js_1 = require("./isPrimitive.js");
|
|
8
|
+
const isSymbol_js_1 = require("./isSymbol.js");
|
|
9
|
+
const isRegExp_js_1 = require("./isRegExp.js");
|
|
10
|
+
const classOf_js_1 = require("./classOf.js");
|
|
11
|
+
const isBasicType = (source) => (0, isNil_js_1.isNil)(source) || (0, isPrimitive_js_1.isPrimitive)(source) || (0, isSymbol_js_1.isSymbol)(source) || (0, isFunction_js_1.isFunction)(source);
|
|
12
12
|
/**
|
|
13
13
|
* Return a cloned value
|
|
14
14
|
* @param source
|
|
@@ -28,12 +28,12 @@ const deepClone = (source, stack = new WeakMap()) => {
|
|
|
28
28
|
return Buffer.isBuffer(source)
|
|
29
29
|
? Buffer.from(source)
|
|
30
30
|
: // adds support for all kind of TypedArray such as Int8Array, Uint8Array, etc
|
|
31
|
-
new ((0,
|
|
31
|
+
new ((0, classOf_js_1.classOf)(source))(source.buffer.slice(0), source.byteOffset, source.byteLength);
|
|
32
32
|
}
|
|
33
|
-
if ((0,
|
|
33
|
+
if ((0, isDate_js_1.isDate)(source)) {
|
|
34
34
|
return new Date(source);
|
|
35
35
|
}
|
|
36
|
-
if ((0,
|
|
36
|
+
if ((0, isRegExp_js_1.isRegExp)(source)) {
|
|
37
37
|
return new RegExp(source);
|
|
38
38
|
}
|
|
39
39
|
if (Array.isArray(source)) {
|
|
@@ -60,7 +60,7 @@ const deepClone = (source, stack = new WeakMap()) => {
|
|
|
60
60
|
// respects property descriptors and the prototype chain more explicitly, which is important for objects with getter/setter.
|
|
61
61
|
const descriptor = Object.getOwnPropertyDescriptor(source, key);
|
|
62
62
|
if (descriptor) {
|
|
63
|
-
if (!(0,
|
|
63
|
+
if (!(0, isFunction_js_1.isFunction)(descriptor.value)) {
|
|
64
64
|
Object.defineProperty(clone, key, {
|
|
65
65
|
...descriptor,
|
|
66
66
|
value: (0, exports.deepClone)(descriptor.value, stack)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepClone.js","sourceRoot":"","sources":["../../../../src/utils/objects/deepClone.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"deepClone.js","sourceRoot":"","sources":["../../../../src/utils/objects/deepClone.ts"],"names":[],"mappings":";;;AAAA,2CAAmC;AACnC,mDAA2C;AAC3C,yCAAiC;AACjC,qDAA6C;AAC7C,+CAAuC;AACvC,+CAAuC;AACvC,6CAAqC;AAErC,MAAM,WAAW,GAAG,CAAC,MAAW,EAAE,EAAE,CAAC,IAAA,gBAAK,EAAC,MAAM,CAAC,IAAI,IAAA,4BAAW,EAAC,MAAM,CAAC,IAAI,IAAA,sBAAQ,EAAC,MAAM,CAAC,IAAI,IAAA,0BAAU,EAAC,MAAM,CAAC,CAAC;AAEpH;;;;GAIG;AACI,MAAM,SAAS,GAAG,CAAC,MAAW,EAAE,KAAK,GAAG,IAAI,OAAO,EAAE,EAAO,EAAE;IACnE,0CAA0C;IAC1C,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE;QACvB,OAAO,MAAM,CAAC;KACf;IAED,MAAM,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAElC,IAAI,OAAO,EAAE;QACX,kBAAkB;QAClB,OAAO,OAAO,CAAC;KAChB;IAED,IAAI,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;QAC9B,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;YAC5B,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;YACrB,CAAC,CAAC,6EAA6E;gBAC7E,IAAI,CAAC,IAAA,oBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;KACzF;IAED,IAAI,IAAA,kBAAM,EAAC,MAAM,CAAC,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AG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5D,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAEzB,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACtC,4HAA4H;QAC5H,MAAM,UAAU,GAAG,MAAM,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAEhE,IAAI,UAAU,EAAE;YACd,IAAI,CAAC,IAAA,0BAAU,EAAC,UAAU,CAAC,KAAK,CAAC,EAAE;gBACjC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE;oBAChC,GAAG,UAAU;oBACb,KAAK,EAAE,IAAA,iBAAS,EAAC,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC;iBAC1C,CAAC,CAAC;aACJ;iBAAM;gBACL,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;aAC/C;SACF;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AArEW,QAAA,SAAS,aAqEpB"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deepMerge = exports.mergeReducerBuilder = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
4
|
+
const createInstance_js_1 = require("./createInstance.js");
|
|
5
|
+
const isFunction_js_1 = require("./isFunction.js");
|
|
6
|
+
const isPrimitive_js_1 = require("./isPrimitive.js");
|
|
7
|
+
const isSymbol_js_1 = require("./isSymbol.js");
|
|
8
|
+
const objectKeys_js_1 = require("./objectKeys.js");
|
|
9
9
|
function mergeReducerBuilder(cb) {
|
|
10
10
|
return (collection, value, options) => {
|
|
11
11
|
const index = collection.findIndex((item) => cb(item, value));
|
|
@@ -28,7 +28,7 @@ function getReducer({ reducers, parentKey }) {
|
|
|
28
28
|
return reducers["default"] || defaultReducer;
|
|
29
29
|
}
|
|
30
30
|
function shouldReturnObj(obj, source) {
|
|
31
|
-
return (0,
|
|
31
|
+
return (0, isPrimitive_js_1.isPrimitive)(obj) || (0, isSymbol_js_1.isSymbol)(obj) || (0, isFunction_js_1.isFunction)(obj) || source === undefined;
|
|
32
32
|
}
|
|
33
33
|
function shouldReturnSource(obj, source) {
|
|
34
34
|
return obj === undefined || obj === null || (obj === "" && source !== "");
|
|
@@ -44,7 +44,7 @@ function deepMerge(source, obj, options = {}) {
|
|
|
44
44
|
const reducer = getReducer(options);
|
|
45
45
|
return [].concat(obj).reduce((out, value) => reducer(out, value, options), [...source]);
|
|
46
46
|
}
|
|
47
|
-
return [...(0,
|
|
47
|
+
return [...(0, objectKeys_js_1.objectKeys)(source), ...(0, objectKeys_js_1.objectKeys)(obj)].reduce((out, key) => {
|
|
48
48
|
const src = source && source[key];
|
|
49
49
|
const value = deepMerge(src, obj && obj[key], {
|
|
50
50
|
...options,
|
|
@@ -57,7 +57,7 @@ function deepMerge(source, obj, options = {}) {
|
|
|
57
57
|
...out,
|
|
58
58
|
[key]: value
|
|
59
59
|
};
|
|
60
|
-
}, (0,
|
|
60
|
+
}, (0, createInstance_js_1.createInstance)(source));
|
|
61
61
|
}
|
|
62
62
|
exports.deepMerge = deepMerge;
|
|
63
63
|
//# sourceMappingURL=deepMerge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../../../src/utils/objects/deepMerge.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../../../src/utils/objects/deepMerge.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AACnD,mDAA2C;AAC3C,qDAA6C;AAC7C,+CAAuC;AAC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/BD,8BA+BC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getClassOrSymbol = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const classOf_js_1 = require("./classOf.js");
|
|
5
|
+
const isClass_js_1 = require("./isClass.js");
|
|
6
6
|
function getClassOrSymbol(target) {
|
|
7
|
-
return (0,
|
|
7
|
+
return (0, isClass_js_1.isClass)(target) ? (0, classOf_js_1.classOf)(target) : target;
|
|
8
8
|
}
|
|
9
9
|
exports.getClassOrSymbol = getClassOrSymbol;
|
|
10
10
|
//# sourceMappingURL=getClassOrSymbol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getClassOrSymbol.js","sourceRoot":"","sources":["../../../../src/utils/objects/getClassOrSymbol.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"getClassOrSymbol.js","sourceRoot":"","sources":["../../../../src/utils/objects/getClassOrSymbol.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AACrC,6CAAqC;AAErC,SAAgB,gBAAgB,CAAC,MAAW;IAC1C,OAAO,IAAA,oBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAA,oBAAO,EAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACpD,CAAC;AAFD,4CAEC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getConstructorArgNames = void 0;
|
|
4
|
-
const
|
|
4
|
+
const toStringConstructor_js_1 = require("./toStringConstructor.js");
|
|
5
5
|
function getConstructorArgNames(target) {
|
|
6
|
-
return (0,
|
|
6
|
+
return (0, toStringConstructor_js_1.toStringConstructor)(target)
|
|
7
7
|
.split("constructor(")[1]
|
|
8
8
|
.split(")")[0]
|
|
9
9
|
.split(", ")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConstructorArgNames.js","sourceRoot":"","sources":["../../../../src/utils/objects/getConstructorArgNames.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"getConstructorArgNames.js","sourceRoot":"","sources":["../../../../src/utils/objects/getConstructorArgNames.ts"],"names":[],"mappings":";;;AAAA,qEAA6D;AAE7D,SAAgB,sBAAsB,CAAC,MAAW;IAChD,OAAO,IAAA,4CAAmB,EAAC,MAAM,CAAC;SAC/B,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SACxB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACb,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,OAAO,CAAC;SACf,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1B,CAAC;AAPD,wDAOC"}
|