@tsed/core 8.9.5 → 8.10.0-rc.2
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/lib/esm/decorators/storeFn.js +1 -1
- package/lib/esm/decorators/storeFn.js.map +1 -1
- package/lib/esm/errors/UnsupportedDecoratorType.js +3 -3
- package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -1
- package/lib/esm/index.js +65 -65
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/types/AnyDecorator.js.map +1 -0
- package/lib/esm/types/DecoratorParameters.js.map +1 -0
- package/lib/esm/types/DecoratorTypes.js.map +1 -0
- package/lib/esm/types/Env.js.map +1 -0
- package/lib/esm/{domain → types}/Metadata.js +1 -1
- package/lib/esm/types/Metadata.js.map +1 -0
- package/lib/esm/types/MetadataTypes.js.map +1 -0
- package/lib/esm/{interfaces → types}/Relation.js.map +1 -1
- package/lib/esm/{domain → types}/Store.js +7 -7
- package/lib/esm/types/Store.js.map +1 -0
- package/lib/esm/types/Type.js.map +1 -0
- package/lib/esm/{interfaces → types}/ValueOf.js.map +1 -1
- package/lib/esm/{domain → utils}/AnyToPromise.js +4 -4
- package/lib/esm/utils/AnyToPromise.js.map +1 -0
- package/lib/esm/utils/ancestorOf.js.map +1 -0
- package/lib/esm/utils/ancestorsOf.js.map +1 -0
- package/lib/esm/utils/classOf.js.map +1 -0
- package/lib/esm/utils/cleanObject.js.map +1 -0
- package/lib/esm/utils/constructorOf.js.map +1 -0
- package/lib/esm/utils/createInstance.js.map +1 -0
- package/lib/esm/utils/{decorators/decorateMethodsOf.js → decorateMethodsOf.js} +5 -5
- package/lib/esm/utils/decorateMethodsOf.js.map +1 -0
- package/lib/esm/utils/{decorators/decoratorArgs.js → decoratorArgs.js} +1 -1
- package/lib/esm/utils/decoratorArgs.js.map +1 -0
- package/lib/esm/utils/{decorators/decoratorTypeOf.js → decoratorTypeOf.js} +2 -2
- package/lib/esm/utils/decoratorTypeOf.js.map +1 -0
- package/lib/esm/utils/deepClone.js.map +1 -0
- package/lib/esm/utils/deepMerge.js.map +1 -0
- package/lib/esm/utils/descriptorOf.js.map +1 -0
- package/lib/esm/utils/getClassOrSymbol.js.map +1 -0
- package/lib/esm/utils/getConstructorArgNames.js.map +1 -0
- package/lib/esm/utils/getValue.js.map +1 -0
- package/lib/esm/utils/hasJsonMethod.js.map +1 -0
- package/lib/esm/utils/{decorators/inheritedDescriptorOf.js → inheritedDescriptorOf.js} +1 -1
- package/lib/esm/utils/inheritedDescriptorOf.js.map +1 -0
- package/lib/esm/utils/isArray.js.map +1 -0
- package/lib/esm/utils/isArrowFn.js.map +1 -0
- package/lib/esm/utils/isBoolean.js.map +1 -0
- package/lib/esm/utils/isBuffer.js.map +1 -0
- package/lib/esm/utils/isClass.js.map +1 -0
- package/lib/esm/utils/isCollection.js.map +1 -0
- package/lib/esm/utils/isDate.js.map +1 -0
- package/lib/esm/utils/isEmpty.js.map +1 -0
- package/lib/esm/utils/{objects/isEnumerable.js → isEnumerable.js} +1 -1
- package/lib/esm/utils/isEnumerable.js.map +1 -0
- package/lib/esm/utils/isFunction.js.map +1 -0
- package/lib/esm/utils/isInheritedFrom.js.map +1 -0
- package/lib/esm/utils/isMomentObject.js.map +1 -0
- package/lib/esm/utils/isMongooseObject.js.map +1 -0
- package/lib/esm/utils/isNil.js.map +1 -0
- package/lib/esm/utils/isNumber.js.map +1 -0
- package/lib/esm/utils/isObject.js.map +1 -0
- package/lib/esm/utils/isObservable.js.map +1 -0
- package/lib/esm/utils/isPlainObject.js.map +1 -0
- package/lib/esm/utils/isPrimitive.js.map +1 -0
- package/lib/esm/utils/isPromise.js.map +1 -0
- package/lib/esm/utils/isProtectedKey.js.map +1 -0
- package/lib/esm/utils/isRegExp.js.map +1 -0
- package/lib/esm/utils/isSerializable.js.map +1 -0
- package/lib/esm/utils/isStream.js.map +1 -0
- package/lib/esm/utils/isString.js.map +1 -0
- package/lib/esm/utils/isSymbol.js.map +1 -0
- package/lib/esm/utils/methodsOf.js.map +1 -0
- package/lib/esm/utils/nameOf.js.map +1 -0
- package/lib/esm/utils/objectKeys.js.map +1 -0
- package/lib/esm/utils/primitiveOf.js.map +1 -0
- package/lib/esm/utils/prototypeOf.js.map +1 -0
- package/lib/esm/utils/setValue.js.map +1 -0
- package/lib/esm/utils/toMap.js.map +1 -0
- package/lib/esm/utils/toStringConstructor.js.map +1 -0
- package/lib/esm/utils/uniq.js.map +1 -0
- package/lib/esm/utils/useDecorators.js.map +1 -0
- package/lib/esm/utils/{decorators/useMethodDecorators.js → useMethodDecorators.js} +1 -1
- package/lib/esm/utils/useMethodDecorators.js.map +1 -0
- package/lib/types/decorators/storeFn.d.ts +2 -2
- package/lib/types/index.d.ts +65 -65
- package/lib/types/{interfaces → types}/MetadataTypes.d.ts +1 -1
- package/lib/types/utils/{objects/constructorOf.d.ts → constructorOf.d.ts} +1 -1
- package/lib/types/utils/{decorators/decoratorArgs.d.ts → decoratorArgs.d.ts} +1 -1
- package/lib/types/utils/{decorators/decoratorTypeOf.d.ts → decoratorTypeOf.d.ts} +1 -1
- package/lib/types/utils/{objects/methodsOf.d.ts → methodsOf.d.ts} +1 -1
- package/lib/types/utils/{decorators/useDecorators.d.ts → useDecorators.d.ts} +1 -1
- package/lib/types/utils/{decorators/useMethodDecorators.d.ts → useMethodDecorators.d.ts} +1 -1
- package/package.json +16 -19
- package/src/decorators/storeFn.ts +2 -2
- package/src/decorators/storeMerge.ts +1 -1
- package/src/decorators/storeSet.ts +1 -1
- package/src/errors/UnsupportedDecoratorType.ts +3 -3
- package/src/index.ts +65 -65
- package/src/{domain → types}/Metadata.ts +1 -1
- package/src/{interfaces → types}/MetadataTypes.ts +1 -1
- package/src/{domain → types}/Store.ts +7 -7
- package/src/{domain → utils}/AnyToPromise.spec.ts +2 -2
- package/src/{domain → utils}/AnyToPromise.ts +4 -4
- package/src/utils/{objects/ObjectUtils.spec.ts → ObjectUtils.spec.ts} +1 -1
- package/src/utils/{objects/constructorOf.ts → constructorOf.ts} +1 -1
- package/src/utils/{decorators/decorateMethodsOf.spec.ts → decorateMethodsOf.spec.ts} +4 -4
- package/src/utils/{decorators/decorateMethodsOf.ts → decorateMethodsOf.ts} +5 -5
- package/src/utils/{decorators/decoratorArgs.spec.ts → decoratorArgs.spec.ts} +2 -2
- package/src/utils/{decorators/decoratorArgs.ts → decoratorArgs.ts} +2 -2
- package/src/utils/{decorators/decoratorTypeOf.ts → decoratorTypeOf.ts} +2 -2
- package/src/utils/{decorators/inheritedDescriptorOf.ts → inheritedDescriptorOf.ts} +1 -1
- package/src/utils/{objects/isEnumerable.ts → isEnumerable.ts} +1 -1
- package/src/utils/{objects/methodsOf.ts → methodsOf.ts} +1 -1
- package/src/utils/{decorators/useDecorators.spec.ts → useDecorators.spec.ts} +3 -3
- package/src/utils/{decorators/useDecorators.ts → useDecorators.ts} +2 -2
- package/src/utils/{decorators/useMethodDecorator.spec.ts → useMethodDecorator.spec.ts} +2 -2
- package/src/utils/{decorators/useMethodDecorators.ts → useMethodDecorators.ts} +2 -2
- package/lib/browser/core.umd.min.js +0 -3
- package/lib/browser/core.umd.min.js.LICENSE.txt +0 -14
- package/lib/browser/core.umd.min.js.map +0 -1
- package/lib/esm/domain/AnyToPromise.js.map +0 -1
- package/lib/esm/domain/DecoratorTypes.js.map +0 -1
- package/lib/esm/domain/Env.js.map +0 -1
- package/lib/esm/domain/Metadata.js.map +0 -1
- package/lib/esm/domain/Store.js.map +0 -1
- package/lib/esm/domain/Type.js.map +0 -1
- package/lib/esm/interfaces/AnyDecorator.js.map +0 -1
- package/lib/esm/interfaces/DecoratorParameters.js.map +0 -1
- package/lib/esm/interfaces/MetadataTypes.js.map +0 -1
- package/lib/esm/utils/decorators/decorateMethodsOf.js.map +0 -1
- package/lib/esm/utils/decorators/decoratorArgs.js.map +0 -1
- package/lib/esm/utils/decorators/decoratorTypeOf.js.map +0 -1
- package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +0 -1
- package/lib/esm/utils/decorators/useDecorators.js.map +0 -1
- package/lib/esm/utils/decorators/useMethodDecorators.js.map +0 -1
- package/lib/esm/utils/objects/ancestorOf.js.map +0 -1
- package/lib/esm/utils/objects/ancestorsOf.js.map +0 -1
- package/lib/esm/utils/objects/classOf.js.map +0 -1
- package/lib/esm/utils/objects/cleanObject.js.map +0 -1
- package/lib/esm/utils/objects/constructorOf.js.map +0 -1
- package/lib/esm/utils/objects/createInstance.js.map +0 -1
- package/lib/esm/utils/objects/deepClone.js.map +0 -1
- package/lib/esm/utils/objects/deepMerge.js.map +0 -1
- package/lib/esm/utils/objects/descriptorOf.js.map +0 -1
- package/lib/esm/utils/objects/getClassOrSymbol.js.map +0 -1
- package/lib/esm/utils/objects/getConstructorArgNames.js.map +0 -1
- package/lib/esm/utils/objects/getValue.js.map +0 -1
- package/lib/esm/utils/objects/hasJsonMethod.js.map +0 -1
- package/lib/esm/utils/objects/isArray.js.map +0 -1
- package/lib/esm/utils/objects/isArrowFn.js.map +0 -1
- package/lib/esm/utils/objects/isBoolean.js.map +0 -1
- package/lib/esm/utils/objects/isBuffer.js.map +0 -1
- package/lib/esm/utils/objects/isClass.js.map +0 -1
- package/lib/esm/utils/objects/isCollection.js.map +0 -1
- package/lib/esm/utils/objects/isDate.js.map +0 -1
- package/lib/esm/utils/objects/isEmpty.js.map +0 -1
- package/lib/esm/utils/objects/isEnumerable.js.map +0 -1
- package/lib/esm/utils/objects/isFunction.js.map +0 -1
- package/lib/esm/utils/objects/isInheritedFrom.js.map +0 -1
- package/lib/esm/utils/objects/isMomentObject.js.map +0 -1
- package/lib/esm/utils/objects/isMongooseObject.js.map +0 -1
- package/lib/esm/utils/objects/isNil.js.map +0 -1
- package/lib/esm/utils/objects/isNumber.js.map +0 -1
- package/lib/esm/utils/objects/isObject.js.map +0 -1
- package/lib/esm/utils/objects/isObservable.js.map +0 -1
- package/lib/esm/utils/objects/isPlainObject.js.map +0 -1
- package/lib/esm/utils/objects/isPrimitive.js.map +0 -1
- package/lib/esm/utils/objects/isPromise.js.map +0 -1
- package/lib/esm/utils/objects/isProtectedKey.js.map +0 -1
- package/lib/esm/utils/objects/isRegExp.js.map +0 -1
- package/lib/esm/utils/objects/isSerializable.js.map +0 -1
- package/lib/esm/utils/objects/isStream.js.map +0 -1
- package/lib/esm/utils/objects/isString.js.map +0 -1
- package/lib/esm/utils/objects/isSymbol.js.map +0 -1
- package/lib/esm/utils/objects/methodsOf.js.map +0 -1
- package/lib/esm/utils/objects/nameOf.js.map +0 -1
- package/lib/esm/utils/objects/objectKeys.js.map +0 -1
- package/lib/esm/utils/objects/primitiveOf.js.map +0 -1
- package/lib/esm/utils/objects/prototypeOf.js.map +0 -1
- package/lib/esm/utils/objects/setValue.js.map +0 -1
- package/lib/esm/utils/objects/toMap.js.map +0 -1
- package/lib/esm/utils/objects/toStringConstructor.js.map +0 -1
- package/lib/esm/utils/objects/uniq.js.map +0 -1
- package/webpack.config.cjs +0 -4
- /package/lib/esm/{interfaces → types}/AnyDecorator.js +0 -0
- /package/lib/esm/{interfaces → types}/DecoratorParameters.js +0 -0
- /package/lib/esm/{domain → types}/DecoratorTypes.js +0 -0
- /package/lib/esm/{domain → types}/Env.js +0 -0
- /package/lib/esm/{interfaces → types}/MetadataTypes.js +0 -0
- /package/lib/esm/{interfaces → types}/Relation.js +0 -0
- /package/lib/esm/{domain → types}/Type.js +0 -0
- /package/lib/esm/{interfaces → types}/ValueOf.js +0 -0
- /package/lib/esm/utils/{objects/ancestorOf.js → ancestorOf.js} +0 -0
- /package/lib/esm/utils/{objects/ancestorsOf.js → ancestorsOf.js} +0 -0
- /package/lib/esm/utils/{objects/classOf.js → classOf.js} +0 -0
- /package/lib/esm/utils/{objects/cleanObject.js → cleanObject.js} +0 -0
- /package/lib/esm/utils/{objects/constructorOf.js → constructorOf.js} +0 -0
- /package/lib/esm/utils/{objects/createInstance.js → createInstance.js} +0 -0
- /package/lib/esm/utils/{objects/deepClone.js → deepClone.js} +0 -0
- /package/lib/esm/utils/{objects/deepMerge.js → deepMerge.js} +0 -0
- /package/lib/esm/utils/{objects/descriptorOf.js → descriptorOf.js} +0 -0
- /package/lib/esm/utils/{objects/getClassOrSymbol.js → getClassOrSymbol.js} +0 -0
- /package/lib/esm/utils/{objects/getConstructorArgNames.js → getConstructorArgNames.js} +0 -0
- /package/lib/esm/utils/{objects/getValue.js → getValue.js} +0 -0
- /package/lib/esm/utils/{objects/hasJsonMethod.js → hasJsonMethod.js} +0 -0
- /package/lib/esm/utils/{objects/isArray.js → isArray.js} +0 -0
- /package/lib/esm/utils/{objects/isArrowFn.js → isArrowFn.js} +0 -0
- /package/lib/esm/utils/{objects/isBoolean.js → isBoolean.js} +0 -0
- /package/lib/esm/utils/{objects/isBuffer.js → isBuffer.js} +0 -0
- /package/lib/esm/utils/{objects/isClass.js → isClass.js} +0 -0
- /package/lib/esm/utils/{objects/isCollection.js → isCollection.js} +0 -0
- /package/lib/esm/utils/{objects/isDate.js → isDate.js} +0 -0
- /package/lib/esm/utils/{objects/isEmpty.js → isEmpty.js} +0 -0
- /package/lib/esm/utils/{objects/isFunction.js → isFunction.js} +0 -0
- /package/lib/esm/utils/{objects/isInheritedFrom.js → isInheritedFrom.js} +0 -0
- /package/lib/esm/utils/{objects/isMomentObject.js → isMomentObject.js} +0 -0
- /package/lib/esm/utils/{objects/isMongooseObject.js → isMongooseObject.js} +0 -0
- /package/lib/esm/utils/{objects/isNil.js → isNil.js} +0 -0
- /package/lib/esm/utils/{objects/isNumber.js → isNumber.js} +0 -0
- /package/lib/esm/utils/{objects/isObject.js → isObject.js} +0 -0
- /package/lib/esm/utils/{objects/isObservable.js → isObservable.js} +0 -0
- /package/lib/esm/utils/{objects/isPlainObject.js → isPlainObject.js} +0 -0
- /package/lib/esm/utils/{objects/isPrimitive.js → isPrimitive.js} +0 -0
- /package/lib/esm/utils/{objects/isPromise.js → isPromise.js} +0 -0
- /package/lib/esm/utils/{objects/isProtectedKey.js → isProtectedKey.js} +0 -0
- /package/lib/esm/utils/{objects/isRegExp.js → isRegExp.js} +0 -0
- /package/lib/esm/utils/{objects/isSerializable.js → isSerializable.js} +0 -0
- /package/lib/esm/utils/{objects/isStream.js → isStream.js} +0 -0
- /package/lib/esm/utils/{objects/isString.js → isString.js} +0 -0
- /package/lib/esm/utils/{objects/isSymbol.js → isSymbol.js} +0 -0
- /package/lib/esm/utils/{objects/methodsOf.js → methodsOf.js} +0 -0
- /package/lib/esm/utils/{objects/nameOf.js → nameOf.js} +0 -0
- /package/lib/esm/utils/{objects/objectKeys.js → objectKeys.js} +0 -0
- /package/lib/esm/utils/{objects/primitiveOf.js → primitiveOf.js} +0 -0
- /package/lib/esm/utils/{objects/prototypeOf.js → prototypeOf.js} +0 -0
- /package/lib/esm/utils/{objects/setValue.js → setValue.js} +0 -0
- /package/lib/esm/utils/{objects/toMap.js → toMap.js} +0 -0
- /package/lib/esm/utils/{objects/toStringConstructor.js → toStringConstructor.js} +0 -0
- /package/lib/esm/utils/{objects/uniq.js → uniq.js} +0 -0
- /package/lib/esm/utils/{decorators/useDecorators.js → useDecorators.js} +0 -0
- /package/lib/types/{interfaces → types}/AnyDecorator.d.ts +0 -0
- /package/lib/types/{interfaces → types}/DecoratorParameters.d.ts +0 -0
- /package/lib/types/{domain → types}/DecoratorTypes.d.ts +0 -0
- /package/lib/types/{domain → types}/Env.d.ts +0 -0
- /package/lib/types/{domain → types}/Metadata.d.ts +0 -0
- /package/lib/types/{interfaces → types}/Relation.d.ts +0 -0
- /package/lib/types/{domain → types}/Store.d.ts +0 -0
- /package/lib/types/{domain → types}/Type.d.ts +0 -0
- /package/lib/types/{interfaces → types}/ValueOf.d.ts +0 -0
- /package/lib/types/{domain → utils}/AnyToPromise.d.ts +0 -0
- /package/lib/types/utils/{objects/ancestorOf.d.ts → ancestorOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/ancestorsOf.d.ts → ancestorsOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/classOf.d.ts → classOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/cleanObject.d.ts → cleanObject.d.ts} +0 -0
- /package/lib/types/utils/{objects/createInstance.d.ts → createInstance.d.ts} +0 -0
- /package/lib/types/utils/{decorators/decorateMethodsOf.d.ts → decorateMethodsOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/deepClone.d.ts → deepClone.d.ts} +0 -0
- /package/lib/types/utils/{objects/deepMerge.d.ts → deepMerge.d.ts} +0 -0
- /package/lib/types/utils/{objects/descriptorOf.d.ts → descriptorOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/getClassOrSymbol.d.ts → getClassOrSymbol.d.ts} +0 -0
- /package/lib/types/utils/{objects/getConstructorArgNames.d.ts → getConstructorArgNames.d.ts} +0 -0
- /package/lib/types/utils/{objects/getValue.d.ts → getValue.d.ts} +0 -0
- /package/lib/types/utils/{objects/hasJsonMethod.d.ts → hasJsonMethod.d.ts} +0 -0
- /package/lib/types/utils/{decorators/inheritedDescriptorOf.d.ts → inheritedDescriptorOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/isArray.d.ts → isArray.d.ts} +0 -0
- /package/lib/types/utils/{objects/isArrowFn.d.ts → isArrowFn.d.ts} +0 -0
- /package/lib/types/utils/{objects/isBoolean.d.ts → isBoolean.d.ts} +0 -0
- /package/lib/types/utils/{objects/isBuffer.d.ts → isBuffer.d.ts} +0 -0
- /package/lib/types/utils/{objects/isClass.d.ts → isClass.d.ts} +0 -0
- /package/lib/types/utils/{objects/isCollection.d.ts → isCollection.d.ts} +0 -0
- /package/lib/types/utils/{objects/isDate.d.ts → isDate.d.ts} +0 -0
- /package/lib/types/utils/{objects/isEmpty.d.ts → isEmpty.d.ts} +0 -0
- /package/lib/types/utils/{objects/isEnumerable.d.ts → isEnumerable.d.ts} +0 -0
- /package/lib/types/utils/{objects/isFunction.d.ts → isFunction.d.ts} +0 -0
- /package/lib/types/utils/{objects/isInheritedFrom.d.ts → isInheritedFrom.d.ts} +0 -0
- /package/lib/types/utils/{objects/isMomentObject.d.ts → isMomentObject.d.ts} +0 -0
- /package/lib/types/utils/{objects/isMongooseObject.d.ts → isMongooseObject.d.ts} +0 -0
- /package/lib/types/utils/{objects/isNil.d.ts → isNil.d.ts} +0 -0
- /package/lib/types/utils/{objects/isNumber.d.ts → isNumber.d.ts} +0 -0
- /package/lib/types/utils/{objects/isObject.d.ts → isObject.d.ts} +0 -0
- /package/lib/types/utils/{objects/isObservable.d.ts → isObservable.d.ts} +0 -0
- /package/lib/types/utils/{objects/isPlainObject.d.ts → isPlainObject.d.ts} +0 -0
- /package/lib/types/utils/{objects/isPrimitive.d.ts → isPrimitive.d.ts} +0 -0
- /package/lib/types/utils/{objects/isPromise.d.ts → isPromise.d.ts} +0 -0
- /package/lib/types/utils/{objects/isProtectedKey.d.ts → isProtectedKey.d.ts} +0 -0
- /package/lib/types/utils/{objects/isRegExp.d.ts → isRegExp.d.ts} +0 -0
- /package/lib/types/utils/{objects/isSerializable.d.ts → isSerializable.d.ts} +0 -0
- /package/lib/types/utils/{objects/isStream.d.ts → isStream.d.ts} +0 -0
- /package/lib/types/utils/{objects/isString.d.ts → isString.d.ts} +0 -0
- /package/lib/types/utils/{objects/isSymbol.d.ts → isSymbol.d.ts} +0 -0
- /package/lib/types/utils/{objects/nameOf.d.ts → nameOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/objectKeys.d.ts → objectKeys.d.ts} +0 -0
- /package/lib/types/utils/{objects/primitiveOf.d.ts → primitiveOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/prototypeOf.d.ts → prototypeOf.d.ts} +0 -0
- /package/lib/types/utils/{objects/setValue.d.ts → setValue.d.ts} +0 -0
- /package/lib/types/utils/{objects/toMap.d.ts → toMap.d.ts} +0 -0
- /package/lib/types/utils/{objects/toStringConstructor.d.ts → toStringConstructor.d.ts} +0 -0
- /package/lib/types/utils/{objects/uniq.d.ts → uniq.d.ts} +0 -0
- /package/src/{interfaces → types}/AnyDecorator.ts +0 -0
- /package/src/{interfaces → types}/DecoratorParameters.ts +0 -0
- /package/src/{domain → types}/DecoratorTypes.ts +0 -0
- /package/src/{domain → types}/Env.ts +0 -0
- /package/src/{domain → types}/Metadata.spec.ts +0 -0
- /package/src/{interfaces → types}/Relation.ts +0 -0
- /package/src/{domain → types}/Store.spec.ts +0 -0
- /package/src/{domain → types}/Type.ts +0 -0
- /package/src/{interfaces → types}/ValueOf.ts +0 -0
- /package/src/utils/{objects/ancestorOf.ts → ancestorOf.ts} +0 -0
- /package/src/utils/{objects/ancestorsOf.ts → ancestorsOf.ts} +0 -0
- /package/src/utils/{objects/classOf.ts → classOf.ts} +0 -0
- /package/src/utils/{objects/cleanObject.spec.ts → cleanObject.spec.ts} +0 -0
- /package/src/utils/{objects/cleanObject.ts → cleanObject.ts} +0 -0
- /package/src/utils/{objects/createInstance.ts → createInstance.ts} +0 -0
- /package/src/utils/{decorators/decoratorTypeOf.spec.ts → decoratorTypeOf.spec.ts} +0 -0
- /package/src/utils/{objects/deepClone.spec.ts → deepClone.spec.ts} +0 -0
- /package/src/utils/{objects/deepClone.ts → deepClone.ts} +0 -0
- /package/src/utils/{objects/deepMerge.spec.ts → deepMerge.spec.ts} +0 -0
- /package/src/utils/{objects/deepMerge.ts → deepMerge.ts} +0 -0
- /package/src/utils/{objects/descriptorOf.spec.ts → descriptorOf.spec.ts} +0 -0
- /package/src/utils/{objects/descriptorOf.ts → descriptorOf.ts} +0 -0
- /package/src/utils/{objects/getClassOrSymbol.ts → getClassOrSymbol.ts} +0 -0
- /package/src/utils/{objects/getConstructorArgNames.spec.ts → getConstructorArgNames.spec.ts} +0 -0
- /package/src/utils/{objects/getConstructorArgNames.ts → getConstructorArgNames.ts} +0 -0
- /package/src/utils/{objects/getValue.spec.ts → getValue.spec.ts} +0 -0
- /package/src/utils/{objects/getValue.ts → getValue.ts} +0 -0
- /package/src/utils/{objects/hasJsonMethod.spec.ts → hasJsonMethod.spec.ts} +0 -0
- /package/src/utils/{objects/hasJsonMethod.ts → hasJsonMethod.ts} +0 -0
- /package/src/utils/{objects/isArray.ts → isArray.ts} +0 -0
- /package/src/utils/{objects/isArrowFn.ts → isArrowFn.ts} +0 -0
- /package/src/utils/{objects/isBoolean.ts → isBoolean.ts} +0 -0
- /package/src/utils/{objects/isBuffer.spec.ts → isBuffer.spec.ts} +0 -0
- /package/src/utils/{objects/isBuffer.ts → isBuffer.ts} +0 -0
- /package/src/utils/{objects/isClass.spec.ts → isClass.spec.ts} +0 -0
- /package/src/utils/{objects/isClass.ts → isClass.ts} +0 -0
- /package/src/utils/{objects/isCollection.ts → isCollection.ts} +0 -0
- /package/src/utils/{objects/isDate.ts → isDate.ts} +0 -0
- /package/src/utils/{objects/isEmpty.spec.ts → isEmpty.spec.ts} +0 -0
- /package/src/utils/{objects/isEmpty.ts → isEmpty.ts} +0 -0
- /package/src/utils/{objects/isFunction.ts → isFunction.ts} +0 -0
- /package/src/utils/{objects/isInheritedFrom.ts → isInheritedFrom.ts} +0 -0
- /package/src/utils/{objects/isMomentObject.spec.ts → isMomentObject.spec.ts} +0 -0
- /package/src/utils/{objects/isMomentObject.ts → isMomentObject.ts} +0 -0
- /package/src/utils/{objects/isMongooseObject.spec.ts → isMongooseObject.spec.ts} +0 -0
- /package/src/utils/{objects/isMongooseObject.ts → isMongooseObject.ts} +0 -0
- /package/src/utils/{objects/isNil.spec.ts → isNil.spec.ts} +0 -0
- /package/src/utils/{objects/isNil.ts → isNil.ts} +0 -0
- /package/src/utils/{objects/isNumber.ts → isNumber.ts} +0 -0
- /package/src/utils/{objects/isObject.ts → isObject.ts} +0 -0
- /package/src/utils/{objects/isObservable.ts → isObservable.ts} +0 -0
- /package/src/utils/{objects/isPlainObject.spec.ts → isPlainObject.spec.ts} +0 -0
- /package/src/utils/{objects/isPlainObject.ts → isPlainObject.ts} +0 -0
- /package/src/utils/{objects/isPrimitive.spec.ts → isPrimitive.spec.ts} +0 -0
- /package/src/utils/{objects/isPrimitive.ts → isPrimitive.ts} +0 -0
- /package/src/utils/{objects/isPromise.ts → isPromise.ts} +0 -0
- /package/src/utils/{objects/isProtectedKey.spec.ts → isProtectedKey.spec.ts} +0 -0
- /package/src/utils/{objects/isProtectedKey.ts → isProtectedKey.ts} +0 -0
- /package/src/utils/{objects/isRegExp.ts → isRegExp.ts} +0 -0
- /package/src/utils/{objects/isSerializable.spec.ts → isSerializable.spec.ts} +0 -0
- /package/src/utils/{objects/isSerializable.ts → isSerializable.ts} +0 -0
- /package/src/utils/{objects/isStream.ts → isStream.ts} +0 -0
- /package/src/utils/{objects/isString.ts → isString.ts} +0 -0
- /package/src/utils/{objects/isSymbol.spec.ts → isSymbol.spec.ts} +0 -0
- /package/src/utils/{objects/isSymbol.ts → isSymbol.ts} +0 -0
- /package/src/utils/{objects/methodsOf.spec.ts → methodsOf.spec.ts} +0 -0
- /package/src/utils/{objects/nameOf.ts → nameOf.ts} +0 -0
- /package/src/utils/{objects/objectKeys.spec.ts → objectKeys.spec.ts} +0 -0
- /package/src/utils/{objects/objectKeys.ts → objectKeys.ts} +0 -0
- /package/src/utils/{objects/primitiveOf.ts → primitiveOf.ts} +0 -0
- /package/src/utils/{objects/prototypeOf.ts → prototypeOf.ts} +0 -0
- /package/src/utils/{objects/setValue.spec.ts → setValue.spec.ts} +0 -0
- /package/src/utils/{objects/setValue.ts → setValue.ts} +0 -0
- /package/src/utils/{objects/toMap.spec.ts → toMap.spec.ts} +0 -0
- /package/src/utils/{objects/toMap.ts → toMap.ts} +0 -0
- /package/src/utils/{objects/toStringConstructor.ts → toStringConstructor.ts} +0 -0
- /package/src/utils/{objects/toStringConstrutor.spec.ts → toStringConstrutor.spec.ts} +0 -0
- /package/src/utils/{objects/uniq.spec.ts → uniq.spec.ts} +0 -0
- /package/src/utils/{objects/uniq.ts → uniq.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toStringConstructor.js","sourceRoot":"","sources":["../../../src/utils/toStringConstructor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,MAAM,UAAU,mBAAmB,CAAC,MAAW;IAC7C,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC;IAEzF,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uniq.js","sourceRoot":"","sources":["../../../src/utils/uniq.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,IAAI,CAAU,IAAS;IACrC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,MAAM,CAAU,IAAS,EAAE,GAAG,GAAG,IAAI;IACnD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;IAEtB,IAAI,CAAC,OAAO,CAAC,CAAC,IAAS,EAAE,EAAE;QACzB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDecorators.js","sourceRoot":"","sources":["../../../src/utils/useDecorators.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,aAAa,CAAC,GAAG,UAA0B;IACzD,OAAO,CAAC,GAAG,IAAyB,EAAE,EAAE;QACtC,MAAM,QAAQ,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC;QAC7C,UAAU;aACP,MAAM,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aACvB,OAAO,CAAC,CAAC,SAAmB,EAAE,EAAE;YAC/B,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC;YAEtC,IAAI,QAAQ,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;gBAC/C,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC;YACvB,CAAC;QACH,CAAC,CAAC,CAAC;QAEL,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMethodDecorators.js","sourceRoot":"","sources":["../../../src/utils/useMethodDecorators.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,MAAM,UAAU,kBAAkB,CAAC,SAAuB;IACxD,OAAO,CAAC,MAAW,EAAE,WAA4B,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;AAC1H,CAAC;AAED,MAAM,UAAU,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,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACvH,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DecoratorParameters } from "../types/DecoratorParameters.js";
|
|
2
|
+
import { Store } from "../types/Store.js";
|
|
3
3
|
/**
|
|
4
4
|
* Create a store correctly configured from the parameters given by the decorator.
|
|
5
5
|
* The `fn` can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).
|
package/lib/types/index.d.ts
CHANGED
|
@@ -4,72 +4,72 @@
|
|
|
4
4
|
export * from "./decorators/storeFn.js";
|
|
5
5
|
export * from "./decorators/storeMerge.js";
|
|
6
6
|
export * from "./decorators/storeSet.js";
|
|
7
|
-
export * from "./domain/AnyToPromise.js";
|
|
8
|
-
export * from "./domain/DecoratorTypes.js";
|
|
9
|
-
export * from "./domain/Env.js";
|
|
10
|
-
export * from "./domain/Metadata.js";
|
|
11
|
-
export * from "./domain/Store.js";
|
|
12
|
-
export * from "./domain/Type.js";
|
|
13
7
|
export * from "./errors/UnsupportedDecoratorType.js";
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./
|
|
8
|
+
export * from "./types/AnyDecorator.js";
|
|
9
|
+
export * from "./types/DecoratorParameters.js";
|
|
10
|
+
export * from "./types/DecoratorTypes.js";
|
|
11
|
+
export * from "./types/Env.js";
|
|
12
|
+
export * from "./types/Metadata.js";
|
|
13
|
+
export * from "./types/MetadataTypes.js";
|
|
14
|
+
export * from "./types/Relation.js";
|
|
15
|
+
export * from "./types/Store.js";
|
|
16
|
+
export * from "./types/Type.js";
|
|
17
|
+
export * from "./types/ValueOf.js";
|
|
18
|
+
export * from "./utils/ancestorOf.js";
|
|
19
|
+
export * from "./utils/ancestorsOf.js";
|
|
20
|
+
export * from "./utils/AnyToPromise.js";
|
|
19
21
|
export * from "./utils/catchError.js";
|
|
20
|
-
export * from "./utils/
|
|
21
|
-
export * from "./utils/
|
|
22
|
-
export * from "./utils/
|
|
23
|
-
export * from "./utils/
|
|
24
|
-
export * from "./utils/
|
|
25
|
-
export * from "./utils/
|
|
22
|
+
export * from "./utils/classOf.js";
|
|
23
|
+
export * from "./utils/cleanObject.js";
|
|
24
|
+
export * from "./utils/constructorOf.js";
|
|
25
|
+
export * from "./utils/createInstance.js";
|
|
26
|
+
export * from "./utils/decorateMethodsOf.js";
|
|
27
|
+
export * from "./utils/decoratorArgs.js";
|
|
28
|
+
export * from "./utils/decoratorTypeOf.js";
|
|
29
|
+
export * from "./utils/deepClone.js";
|
|
30
|
+
export * from "./utils/deepMerge.js";
|
|
31
|
+
export * from "./utils/descriptorOf.js";
|
|
32
|
+
export * from "./utils/getClassOrSymbol.js";
|
|
33
|
+
export * from "./utils/getConstructorArgNames.js";
|
|
26
34
|
export * from "./utils/getRandomId.js";
|
|
35
|
+
export * from "./utils/getValue.js";
|
|
36
|
+
export * from "./utils/hasJsonMethod.js";
|
|
27
37
|
export * from "./utils/http/getHostInfoFromPort.js";
|
|
28
|
-
export * from "./utils/
|
|
29
|
-
export * from "./utils/
|
|
30
|
-
export * from "./utils/
|
|
31
|
-
export * from "./utils/
|
|
32
|
-
export * from "./utils/
|
|
33
|
-
export * from "./utils/
|
|
34
|
-
export * from "./utils/
|
|
35
|
-
export * from "./utils/
|
|
36
|
-
export * from "./utils/
|
|
37
|
-
export * from "./utils/
|
|
38
|
-
export * from "./utils/
|
|
39
|
-
export * from "./utils/
|
|
40
|
-
export * from "./utils/
|
|
41
|
-
export * from "./utils/
|
|
42
|
-
export * from "./utils/
|
|
43
|
-
export * from "./utils/
|
|
44
|
-
export * from "./utils/
|
|
45
|
-
export * from "./utils/
|
|
46
|
-
export * from "./utils/
|
|
47
|
-
export * from "./utils/
|
|
48
|
-
export * from "./utils/
|
|
49
|
-
export * from "./utils/
|
|
50
|
-
export * from "./utils/
|
|
51
|
-
export * from "./utils/
|
|
52
|
-
export * from "./utils/
|
|
53
|
-
export * from "./utils/
|
|
54
|
-
export * from "./utils/
|
|
55
|
-
export * from "./utils/
|
|
56
|
-
export * from "./utils/
|
|
57
|
-
export * from "./utils/
|
|
58
|
-
export * from "./utils/
|
|
59
|
-
export * from "./utils/
|
|
60
|
-
export * from "./utils/
|
|
61
|
-
export * from "./utils/
|
|
62
|
-
export * from "./utils/
|
|
63
|
-
export * from "./utils/
|
|
64
|
-
export * from "./utils/
|
|
65
|
-
export * from "./utils/
|
|
66
|
-
export * from "./utils/objects/isSymbol.js";
|
|
67
|
-
export * from "./utils/objects/methodsOf.js";
|
|
68
|
-
export * from "./utils/objects/nameOf.js";
|
|
69
|
-
export * from "./utils/objects/objectKeys.js";
|
|
70
|
-
export * from "./utils/objects/primitiveOf.js";
|
|
71
|
-
export * from "./utils/objects/prototypeOf.js";
|
|
72
|
-
export * from "./utils/objects/setValue.js";
|
|
73
|
-
export * from "./utils/objects/toMap.js";
|
|
74
|
-
export * from "./utils/objects/toStringConstructor.js";
|
|
75
|
-
export * from "./utils/objects/uniq.js";
|
|
38
|
+
export * from "./utils/inheritedDescriptorOf.js";
|
|
39
|
+
export * from "./utils/isArray.js";
|
|
40
|
+
export * from "./utils/isArrowFn.js";
|
|
41
|
+
export * from "./utils/isBoolean.js";
|
|
42
|
+
export * from "./utils/isBuffer.js";
|
|
43
|
+
export * from "./utils/isClass.js";
|
|
44
|
+
export * from "./utils/isCollection.js";
|
|
45
|
+
export * from "./utils/isDate.js";
|
|
46
|
+
export * from "./utils/isEmpty.js";
|
|
47
|
+
export * from "./utils/isEnumerable.js";
|
|
48
|
+
export * from "./utils/isFunction.js";
|
|
49
|
+
export * from "./utils/isInheritedFrom.js";
|
|
50
|
+
export * from "./utils/isMomentObject.js";
|
|
51
|
+
export * from "./utils/isMongooseObject.js";
|
|
52
|
+
export * from "./utils/isNil.js";
|
|
53
|
+
export * from "./utils/isNumber.js";
|
|
54
|
+
export * from "./utils/isObject.js";
|
|
55
|
+
export * from "./utils/isObservable.js";
|
|
56
|
+
export * from "./utils/isPlainObject.js";
|
|
57
|
+
export * from "./utils/isPrimitive.js";
|
|
58
|
+
export * from "./utils/isPromise.js";
|
|
59
|
+
export * from "./utils/isProtectedKey.js";
|
|
60
|
+
export * from "./utils/isRegExp.js";
|
|
61
|
+
export * from "./utils/isSerializable.js";
|
|
62
|
+
export * from "./utils/isStream.js";
|
|
63
|
+
export * from "./utils/isString.js";
|
|
64
|
+
export * from "./utils/isSymbol.js";
|
|
65
|
+
export * from "./utils/methodsOf.js";
|
|
66
|
+
export * from "./utils/nameOf.js";
|
|
67
|
+
export * from "./utils/objectKeys.js";
|
|
68
|
+
export * from "./utils/primitiveOf.js";
|
|
69
|
+
export * from "./utils/prototypeOf.js";
|
|
70
|
+
export * from "./utils/setValue.js";
|
|
71
|
+
export * from "./utils/toMap.js";
|
|
72
|
+
export * from "./utils/toStringConstructor.js";
|
|
73
|
+
export * from "./utils/uniq.js";
|
|
74
|
+
export * from "./utils/useDecorators.js";
|
|
75
|
+
export * from "./utils/useMethodDecorators.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DecoratorParameters } from "
|
|
1
|
+
import { DecoratorParameters } from "../types/DecoratorParameters.js";
|
|
2
2
|
export declare function decoratorArgs(target: any, propertyKey: string): DecoratorParameters;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DecoratorTypes } from "
|
|
1
|
+
import { DecoratorTypes } from "../types/DecoratorTypes.js";
|
|
2
2
|
export declare function decoratorTypeOf(args: any[]): DecoratorTypes;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AnyDecorator } from "
|
|
1
|
+
import { AnyDecorator } from "../types/AnyDecorator.js";
|
|
2
2
|
export declare function useDecorators(...decorators: AnyDecorator[]): any;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { AnyDecorator } from "
|
|
1
|
+
import { AnyDecorator } from "../types/AnyDecorator.js";
|
|
2
2
|
export declare function useMethodDecorator(decorator: AnyDecorator): (target: any, propertyKey: string | symbol) => any;
|
|
3
3
|
export declare function useMethodDecorators(...decorators: AnyDecorator[]): (target: any, propertyKey: string | symbol) => void;
|
package/package.json
CHANGED
|
@@ -2,31 +2,28 @@
|
|
|
2
2
|
"name": "@tsed/core",
|
|
3
3
|
"description": "Core module for Ts.ED Framework",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "8.
|
|
5
|
+
"version": "8.10.0-rc.2",
|
|
6
6
|
"source": "./src/index.ts",
|
|
7
7
|
"main": "./lib/esm/index.js",
|
|
8
8
|
"module": "./lib/esm/index.js",
|
|
9
9
|
"typings": "./lib/types/index.d.ts",
|
|
10
|
-
"browser": "./lib/browser/core.umd.min.js",
|
|
11
10
|
"exports": {
|
|
12
11
|
".": {
|
|
13
12
|
"tsed-source": "./src/index.ts",
|
|
14
13
|
"types": "./lib/types/index.d.ts",
|
|
15
|
-
"browser": "./lib/browser/core.umd.min.js",
|
|
16
14
|
"import": "./lib/esm/index.js",
|
|
17
15
|
"default": "./lib/esm/index.js"
|
|
18
16
|
},
|
|
19
|
-
"
|
|
20
|
-
"tsed-source": "./src
|
|
21
|
-
"types": "./lib/types
|
|
22
|
-
"import": "./lib/esm
|
|
23
|
-
"default": "./lib/esm
|
|
17
|
+
"./*.js": {
|
|
18
|
+
"tsed-source": "./src/*.ts",
|
|
19
|
+
"types": "./lib/types/*.d.ts",
|
|
20
|
+
"import": "./lib/esm/*.js",
|
|
21
|
+
"default": "./lib/esm/*.js"
|
|
24
22
|
}
|
|
25
23
|
},
|
|
26
24
|
"scripts": {
|
|
27
|
-
"build": "yarn barrels && yarn build:ts
|
|
25
|
+
"build": "yarn barrels && yarn build:ts",
|
|
28
26
|
"barrels": "barrels",
|
|
29
|
-
"build:browser": "webpack",
|
|
30
27
|
"build:ts": "tsc --build tsconfig.esm.json",
|
|
31
28
|
"test": "vitest run",
|
|
32
29
|
"test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
|
|
@@ -36,15 +33,12 @@
|
|
|
36
33
|
"tslib": "2.7.0"
|
|
37
34
|
},
|
|
38
35
|
"devDependencies": {
|
|
39
|
-
"@tsed/barrels": "8.
|
|
40
|
-
"@tsed/monorepo-utils": "2.3.
|
|
41
|
-
"@tsed/typescript": "8.
|
|
42
|
-
"@tsed/vitest": "8.
|
|
43
|
-
"eslint": "9.12.0",
|
|
36
|
+
"@tsed/barrels": "8.10.0-rc.2",
|
|
37
|
+
"@tsed/monorepo-utils": "2.3.13",
|
|
38
|
+
"@tsed/typescript": "8.10.0-rc.2",
|
|
39
|
+
"@tsed/vitest": "8.10.0-rc.2",
|
|
44
40
|
"typescript": "5.4.5",
|
|
45
|
-
"
|
|
46
|
-
"vitest": "3.1.4",
|
|
47
|
-
"webpack": "^5.75.0"
|
|
41
|
+
"vitest": "3.1.4"
|
|
48
42
|
},
|
|
49
43
|
"peerDependencies": {},
|
|
50
44
|
"repository": "https://github.com/tsedio/tsed",
|
|
@@ -53,5 +47,8 @@
|
|
|
53
47
|
},
|
|
54
48
|
"homepage": "https://github.com/tsedio/tsed/tree/production/packages/core",
|
|
55
49
|
"author": "Romain Lenzotti",
|
|
56
|
-
"license": "MIT"
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"publishConfig": {
|
|
52
|
+
"tag": "rc"
|
|
53
|
+
}
|
|
57
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import {DecoratorParameters} from "../types/DecoratorParameters.js";
|
|
2
|
+
import {Store} from "../types/Store.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a store correctly configured from the parameters given by the decorator.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {nameOf} from "../utils/
|
|
1
|
+
import {classOf} from "../utils/classOf.js";
|
|
2
|
+
import {decoratorTypeOf} from "../utils/decoratorTypeOf.js";
|
|
3
|
+
import {nameOf} from "../utils/nameOf.js";
|
|
4
4
|
|
|
5
5
|
export class UnsupportedDecoratorType extends Error {
|
|
6
6
|
name: "UNSUPPORTED_DECORATOR_TYPE";
|
package/src/index.ts
CHANGED
|
@@ -4,72 +4,72 @@
|
|
|
4
4
|
export * from "./decorators/storeFn.js";
|
|
5
5
|
export * from "./decorators/storeMerge.js";
|
|
6
6
|
export * from "./decorators/storeSet.js";
|
|
7
|
-
export * from "./domain/AnyToPromise.js";
|
|
8
|
-
export * from "./domain/DecoratorTypes.js";
|
|
9
|
-
export * from "./domain/Env.js";
|
|
10
|
-
export * from "./domain/Metadata.js";
|
|
11
|
-
export * from "./domain/Store.js";
|
|
12
|
-
export * from "./domain/Type.js";
|
|
13
7
|
export * from "./errors/UnsupportedDecoratorType.js";
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./
|
|
16
|
-
export * from "./
|
|
17
|
-
export * from "./
|
|
18
|
-
export * from "./
|
|
8
|
+
export * from "./types/AnyDecorator.js";
|
|
9
|
+
export * from "./types/DecoratorParameters.js";
|
|
10
|
+
export * from "./types/DecoratorTypes.js";
|
|
11
|
+
export * from "./types/Env.js";
|
|
12
|
+
export * from "./types/Metadata.js";
|
|
13
|
+
export * from "./types/MetadataTypes.js";
|
|
14
|
+
export * from "./types/Relation.js";
|
|
15
|
+
export * from "./types/Store.js";
|
|
16
|
+
export * from "./types/Type.js";
|
|
17
|
+
export * from "./types/ValueOf.js";
|
|
18
|
+
export * from "./utils/ancestorOf.js";
|
|
19
|
+
export * from "./utils/ancestorsOf.js";
|
|
20
|
+
export * from "./utils/AnyToPromise.js";
|
|
19
21
|
export * from "./utils/catchError.js";
|
|
20
|
-
export * from "./utils/
|
|
21
|
-
export * from "./utils/
|
|
22
|
-
export * from "./utils/
|
|
23
|
-
export * from "./utils/
|
|
24
|
-
export * from "./utils/
|
|
25
|
-
export * from "./utils/
|
|
22
|
+
export * from "./utils/classOf.js";
|
|
23
|
+
export * from "./utils/cleanObject.js";
|
|
24
|
+
export * from "./utils/constructorOf.js";
|
|
25
|
+
export * from "./utils/createInstance.js";
|
|
26
|
+
export * from "./utils/decorateMethodsOf.js";
|
|
27
|
+
export * from "./utils/decoratorArgs.js";
|
|
28
|
+
export * from "./utils/decoratorTypeOf.js";
|
|
29
|
+
export * from "./utils/deepClone.js";
|
|
30
|
+
export * from "./utils/deepMerge.js";
|
|
31
|
+
export * from "./utils/descriptorOf.js";
|
|
32
|
+
export * from "./utils/getClassOrSymbol.js";
|
|
33
|
+
export * from "./utils/getConstructorArgNames.js";
|
|
26
34
|
export * from "./utils/getRandomId.js";
|
|
35
|
+
export * from "./utils/getValue.js";
|
|
36
|
+
export * from "./utils/hasJsonMethod.js";
|
|
27
37
|
export * from "./utils/http/getHostInfoFromPort.js";
|
|
28
|
-
export * from "./utils/
|
|
29
|
-
export * from "./utils/
|
|
30
|
-
export * from "./utils/
|
|
31
|
-
export * from "./utils/
|
|
32
|
-
export * from "./utils/
|
|
33
|
-
export * from "./utils/
|
|
34
|
-
export * from "./utils/
|
|
35
|
-
export * from "./utils/
|
|
36
|
-
export * from "./utils/
|
|
37
|
-
export * from "./utils/
|
|
38
|
-
export * from "./utils/
|
|
39
|
-
export * from "./utils/
|
|
40
|
-
export * from "./utils/
|
|
41
|
-
export * from "./utils/
|
|
42
|
-
export * from "./utils/
|
|
43
|
-
export * from "./utils/
|
|
44
|
-
export * from "./utils/
|
|
45
|
-
export * from "./utils/
|
|
46
|
-
export * from "./utils/
|
|
47
|
-
export * from "./utils/
|
|
48
|
-
export * from "./utils/
|
|
49
|
-
export * from "./utils/
|
|
50
|
-
export * from "./utils/
|
|
51
|
-
export * from "./utils/
|
|
52
|
-
export * from "./utils/
|
|
53
|
-
export * from "./utils/
|
|
54
|
-
export * from "./utils/
|
|
55
|
-
export * from "./utils/
|
|
56
|
-
export * from "./utils/
|
|
57
|
-
export * from "./utils/
|
|
58
|
-
export * from "./utils/
|
|
59
|
-
export * from "./utils/
|
|
60
|
-
export * from "./utils/
|
|
61
|
-
export * from "./utils/
|
|
62
|
-
export * from "./utils/
|
|
63
|
-
export * from "./utils/
|
|
64
|
-
export * from "./utils/
|
|
65
|
-
export * from "./utils/
|
|
66
|
-
export * from "./utils/objects/isSymbol.js";
|
|
67
|
-
export * from "./utils/objects/methodsOf.js";
|
|
68
|
-
export * from "./utils/objects/nameOf.js";
|
|
69
|
-
export * from "./utils/objects/objectKeys.js";
|
|
70
|
-
export * from "./utils/objects/primitiveOf.js";
|
|
71
|
-
export * from "./utils/objects/prototypeOf.js";
|
|
72
|
-
export * from "./utils/objects/setValue.js";
|
|
73
|
-
export * from "./utils/objects/toMap.js";
|
|
74
|
-
export * from "./utils/objects/toStringConstructor.js";
|
|
75
|
-
export * from "./utils/objects/uniq.js";
|
|
38
|
+
export * from "./utils/inheritedDescriptorOf.js";
|
|
39
|
+
export * from "./utils/isArray.js";
|
|
40
|
+
export * from "./utils/isArrowFn.js";
|
|
41
|
+
export * from "./utils/isBoolean.js";
|
|
42
|
+
export * from "./utils/isBuffer.js";
|
|
43
|
+
export * from "./utils/isClass.js";
|
|
44
|
+
export * from "./utils/isCollection.js";
|
|
45
|
+
export * from "./utils/isDate.js";
|
|
46
|
+
export * from "./utils/isEmpty.js";
|
|
47
|
+
export * from "./utils/isEnumerable.js";
|
|
48
|
+
export * from "./utils/isFunction.js";
|
|
49
|
+
export * from "./utils/isInheritedFrom.js";
|
|
50
|
+
export * from "./utils/isMomentObject.js";
|
|
51
|
+
export * from "./utils/isMongooseObject.js";
|
|
52
|
+
export * from "./utils/isNil.js";
|
|
53
|
+
export * from "./utils/isNumber.js";
|
|
54
|
+
export * from "./utils/isObject.js";
|
|
55
|
+
export * from "./utils/isObservable.js";
|
|
56
|
+
export * from "./utils/isPlainObject.js";
|
|
57
|
+
export * from "./utils/isPrimitive.js";
|
|
58
|
+
export * from "./utils/isPromise.js";
|
|
59
|
+
export * from "./utils/isProtectedKey.js";
|
|
60
|
+
export * from "./utils/isRegExp.js";
|
|
61
|
+
export * from "./utils/isSerializable.js";
|
|
62
|
+
export * from "./utils/isStream.js";
|
|
63
|
+
export * from "./utils/isString.js";
|
|
64
|
+
export * from "./utils/isSymbol.js";
|
|
65
|
+
export * from "./utils/methodsOf.js";
|
|
66
|
+
export * from "./utils/nameOf.js";
|
|
67
|
+
export * from "./utils/objectKeys.js";
|
|
68
|
+
export * from "./utils/primitiveOf.js";
|
|
69
|
+
export * from "./utils/prototypeOf.js";
|
|
70
|
+
export * from "./utils/setValue.js";
|
|
71
|
+
export * from "./utils/toMap.js";
|
|
72
|
+
export * from "./utils/toStringConstructor.js";
|
|
73
|
+
export * from "./utils/uniq.js";
|
|
74
|
+
export * from "./utils/useDecorators.js";
|
|
75
|
+
export * from "./utils/useMethodDecorators.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import {decoratorTypeOf} from "../utils/decoratorTypeOf.js";
|
|
2
|
+
import {deepClone} from "../utils/deepClone.js";
|
|
3
|
+
import {deepMerge} from "../utils/deepMerge.js";
|
|
4
|
+
import {descriptorOf} from "../utils/descriptorOf.js";
|
|
5
|
+
import {isSymbol} from "../utils/isSymbol.js";
|
|
6
|
+
import {nameOf} from "../utils/nameOf.js";
|
|
7
|
+
import {DecoratorTypes} from "./DecoratorTypes.js";
|
|
8
8
|
import {Metadata} from "./Metadata.js";
|
|
9
9
|
import type {Type} from "./Type.js";
|
|
10
10
|
|
|
@@ -2,9 +2,9 @@ import {createReadStream} from "node:fs";
|
|
|
2
2
|
|
|
3
3
|
import {of} from "rxjs";
|
|
4
4
|
|
|
5
|
-
import {catchAsyncError} from "../utils/catchError.js";
|
|
6
|
-
import {isStream} from "../utils/objects/isStream.js";
|
|
7
5
|
import {AnyToPromise, AnyToPromiseStatus} from "./AnyToPromise.js";
|
|
6
|
+
import {catchAsyncError} from "./catchError.js";
|
|
7
|
+
import {isStream} from "./isStream.js";
|
|
8
8
|
|
|
9
9
|
const rootDir = import.meta.dirname; // automatically replaced by import.meta.dirname on build
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {isObject} from "
|
|
2
|
-
import {isObservable} from "
|
|
3
|
-
import {isPromise} from "
|
|
4
|
-
import {isStream} from "
|
|
1
|
+
import {isObject} from "./isObject.js";
|
|
2
|
+
import {isObservable} from "./isObservable.js";
|
|
3
|
+
import {isPromise} from "./isPromise.js";
|
|
4
|
+
import {isStream} from "./isStream.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @ignore
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {StoreMerge} from "
|
|
2
|
-
import {StoreSet} from "
|
|
3
|
-
import {Store} from "
|
|
4
|
-
import {descriptorOf} from "../objects/descriptorOf.js";
|
|
1
|
+
import {StoreMerge} from "../decorators/storeMerge.js";
|
|
2
|
+
import {StoreSet} from "../decorators/storeSet.js";
|
|
3
|
+
import {Store} from "../types/Store.js";
|
|
5
4
|
import {decorateMethodsOf} from "./decorateMethodsOf.js";
|
|
5
|
+
import {descriptorOf} from "./descriptorOf.js";
|
|
6
6
|
|
|
7
7
|
describe("decorateMethodsOf", () => {
|
|
8
8
|
it("should decorate all methods", () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {Store} from "
|
|
2
|
-
import {classOf} from "
|
|
3
|
-
import {descriptorOf} from "
|
|
4
|
-
import {methodsOf} from "
|
|
5
|
-
import {prototypeOf} from "
|
|
1
|
+
import {Store} from "../types/Store.js";
|
|
2
|
+
import {classOf} from "./classOf.js";
|
|
3
|
+
import {descriptorOf} from "./descriptorOf.js";
|
|
4
|
+
import {methodsOf} from "./methodsOf.js";
|
|
5
|
+
import {prototypeOf} from "./prototypeOf.js";
|
|
6
6
|
|
|
7
7
|
export function decorateMethodsOf(klass: any, decorator: any) {
|
|
8
8
|
methodsOf(klass).forEach(({target, propertyKey}) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {descriptorOf} from "../objects/descriptorOf.js";
|
|
2
|
-
import {prototypeOf} from "../objects/prototypeOf.js";
|
|
3
1
|
import {decoratorArgs} from "./decoratorArgs.js";
|
|
2
|
+
import {descriptorOf} from "./descriptorOf.js";
|
|
3
|
+
import {prototypeOf} from "./prototypeOf.js";
|
|
4
4
|
|
|
5
5
|
describe("decoratorArgs", () => {
|
|
6
6
|
it("should return decorator arguments", () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {DecoratorParameters} from "
|
|
2
|
-
import {descriptorOf} from "
|
|
1
|
+
import {DecoratorParameters} from "../types/DecoratorParameters.js";
|
|
2
|
+
import {descriptorOf} from "./descriptorOf.js";
|
|
3
3
|
|
|
4
4
|
export function decoratorArgs(target: any, propertyKey: string): DecoratorParameters {
|
|
5
5
|
return [target, propertyKey, descriptorOf(target, propertyKey)!];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {DecoratorTypes} from "
|
|
2
|
-
import {classOf} from "
|
|
1
|
+
import {DecoratorTypes} from "../types/DecoratorTypes.js";
|
|
2
|
+
import {classOf} from "./classOf.js";
|
|
3
3
|
|
|
4
4
|
export function decoratorTypeOf(args: any[]): DecoratorTypes {
|
|
5
5
|
const [target, propertyKey, descriptor] = args;
|