@tsed/core 6.88.1 → 6.92.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/lib/{decorators → cjs/decorators}/configurable.d.ts +0 -0
- package/lib/cjs/decorators/configurable.js +18 -0
- package/lib/cjs/decorators/configurable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/deprecated.d.ts +0 -0
- package/lib/cjs/decorators/deprecated.js +43 -0
- package/lib/cjs/decorators/deprecated.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/enumerable.d.ts +0 -0
- package/lib/cjs/decorators/enumerable.js +18 -0
- package/lib/cjs/decorators/enumerable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/index.d.ts +0 -0
- package/lib/cjs/decorators/index.js +18 -0
- package/lib/cjs/decorators/index.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/notConfigurable.d.ts +0 -0
- package/lib/cjs/decorators/notConfigurable.js +13 -0
- package/lib/cjs/decorators/notConfigurable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/notEnumerable.d.ts +0 -0
- package/lib/cjs/decorators/notEnumerable.js +13 -0
- package/lib/cjs/decorators/notEnumerable.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/readOnly.d.ts +0 -0
- package/lib/cjs/decorators/readOnly.js +13 -0
- package/lib/cjs/decorators/readOnly.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/storeFn.d.ts +0 -0
- package/lib/cjs/decorators/storeFn.js +22 -0
- package/lib/cjs/decorators/storeFn.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/storeMerge.d.ts +0 -0
- package/lib/cjs/decorators/storeMerge.js +11 -0
- package/lib/cjs/decorators/storeMerge.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/storeSet.d.ts +0 -0
- package/lib/cjs/decorators/storeSet.js +11 -0
- package/lib/cjs/decorators/storeSet.js.map +1 -0
- package/lib/{decorators → cjs/decorators}/writable.d.ts +0 -0
- package/lib/cjs/decorators/writable.js +18 -0
- package/lib/cjs/decorators/writable.js.map +1 -0
- package/lib/{domain → cjs/domain}/AnyToPromise.d.ts +0 -0
- package/lib/cjs/domain/AnyToPromise.js +148 -0
- package/lib/cjs/domain/AnyToPromise.js.map +1 -0
- package/lib/{domain → cjs/domain}/DecoratorTypes.d.ts +0 -0
- package/lib/cjs/domain/DecoratorTypes.js +15 -0
- package/lib/cjs/domain/DecoratorTypes.js.map +1 -0
- package/lib/{domain → cjs/domain}/Env.d.ts +0 -0
- package/lib/cjs/domain/Env.js +19 -0
- package/lib/cjs/domain/Env.js.map +1 -0
- package/lib/{domain → cjs/domain}/Hooks.d.ts +0 -0
- package/lib/cjs/domain/Hooks.js +89 -0
- package/lib/cjs/domain/Hooks.js.map +1 -0
- package/lib/{domain → cjs/domain}/Metadata.d.ts +0 -0
- package/lib/cjs/domain/Metadata.js +508 -0
- package/lib/cjs/domain/Metadata.js.map +1 -0
- package/lib/{domain → cjs/domain}/Store.d.ts +0 -0
- package/lib/cjs/domain/Store.js +157 -0
- package/lib/cjs/domain/Store.js.map +1 -0
- package/lib/{domain → cjs/domain}/Type.d.ts +0 -0
- package/lib/cjs/domain/Type.js +7 -0
- package/lib/cjs/domain/Type.js.map +1 -0
- package/lib/{domain → cjs/domain}/index.d.ts +0 -0
- package/lib/cjs/domain/index.js +11 -0
- package/lib/cjs/domain/index.js.map +1 -0
- package/lib/{errors → cjs/errors}/UnsupportedDecoratorType.d.ts +0 -0
- package/lib/cjs/errors/UnsupportedDecoratorType.js +21 -0
- package/lib/cjs/errors/UnsupportedDecoratorType.js.map +1 -0
- package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
- package/lib/cjs/index.js +9 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/AnyDecorator.d.ts +0 -0
- package/lib/cjs/interfaces/AnyDecorator.js +3 -0
- package/lib/cjs/interfaces/AnyDecorator.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/DecoratorParameters.d.ts +0 -0
- package/lib/cjs/interfaces/DecoratorParameters.js +3 -0
- package/lib/cjs/interfaces/DecoratorParameters.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/HashOf.d.ts +0 -0
- package/lib/cjs/interfaces/HashOf.js +3 -0
- package/lib/cjs/interfaces/HashOf.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/MetadataTypes.d.ts +0 -0
- package/lib/cjs/interfaces/MetadataTypes.js +3 -0
- package/lib/cjs/interfaces/MetadataTypes.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/ValueOf.d.ts +0 -0
- package/lib/cjs/interfaces/ValueOf.js +3 -0
- package/lib/cjs/interfaces/ValueOf.js.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/index.d.ts +0 -0
- package/lib/cjs/interfaces/index.js +3 -0
- package/lib/cjs/interfaces/index.js.map +1 -0
- package/lib/{utils → cjs/utils}/catchError.d.ts +0 -0
- package/lib/cjs/utils/catchError.js +22 -0
- package/lib/cjs/utils/catchError.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/decorateMethodsOf.d.ts +0 -0
- package/lib/cjs/utils/decorators/decorateMethodsOf.js +23 -0
- package/lib/cjs/utils/decorators/decorateMethodsOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/decoratorArgs.d.ts +0 -0
- package/lib/cjs/utils/decorators/decoratorArgs.js +9 -0
- package/lib/cjs/utils/decorators/decoratorArgs.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/decoratorTypeOf.d.ts +0 -0
- package/lib/cjs/utils/decorators/decoratorTypeOf.js +23 -0
- package/lib/cjs/utils/decorators/decoratorTypeOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/inheritedDescriptorOf.d.ts +0 -0
- package/lib/cjs/utils/decorators/inheritedDescriptorOf.js +15 -0
- package/lib/cjs/utils/decorators/inheritedDescriptorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/useDecorators.d.ts +0 -0
- package/lib/cjs/utils/decorators/useDecorators.js +14 -0
- package/lib/cjs/utils/decorators/useDecorators.js.map +1 -0
- package/lib/{utils → cjs/utils}/decorators/useMethodDecorators.d.ts +0 -0
- package/lib/cjs/utils/decorators/useMethodDecorators.js +15 -0
- package/lib/cjs/utils/decorators/useMethodDecorators.js.map +1 -0
- package/lib/cjs/utils/http/getHostInfoFromPort.d.ts +6 -0
- package/lib/cjs/utils/http/getHostInfoFromPort.js +21 -0
- package/lib/cjs/utils/http/getHostInfoFromPort.js.map +1 -0
- package/lib/{utils → cjs/utils}/imports/importPackage.d.ts +0 -0
- package/lib/cjs/utils/imports/importPackage.js +35 -0
- package/lib/cjs/utils/imports/importPackage.js.map +1 -0
- package/lib/{utils → cjs/utils}/index.d.ts +1 -0
- package/lib/cjs/utils/index.js +19 -0
- package/lib/cjs/utils/index.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/ancestorOf.d.ts +0 -0
- package/lib/cjs/utils/objects/ancestorOf.js +12 -0
- package/lib/cjs/utils/objects/ancestorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/ancestorsOf.d.ts +0 -0
- package/lib/cjs/utils/objects/ancestorsOf.js +22 -0
- package/lib/cjs/utils/objects/ancestorsOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/classOf.d.ts +0 -0
- package/lib/cjs/utils/objects/classOf.js +23 -0
- package/lib/cjs/utils/objects/classOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/cleanObject.d.ts +0 -0
- package/lib/cjs/utils/objects/cleanObject.js +24 -0
- package/lib/cjs/utils/objects/cleanObject.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/constructorOf.d.ts +0 -0
- package/lib/cjs/utils/objects/constructorOf.js +20 -0
- package/lib/cjs/utils/objects/constructorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/createInstance.d.ts +0 -0
- package/lib/cjs/utils/objects/createInstance.js +9 -0
- package/lib/cjs/utils/objects/createInstance.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/deepClone.d.ts +0 -0
- package/lib/cjs/utils/objects/deepClone.js +57 -0
- package/lib/cjs/utils/objects/deepClone.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/deepExtends.d.ts +0 -0
- package/lib/cjs/utils/objects/deepExtends.js +79 -0
- package/lib/cjs/utils/objects/deepExtends.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/deepMerge.d.ts +0 -0
- package/lib/cjs/utils/objects/deepMerge.js +63 -0
- package/lib/cjs/utils/objects/deepMerge.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/descriptorOf.d.ts +0 -0
- package/lib/cjs/utils/objects/descriptorOf.js +19 -0
- package/lib/cjs/utils/objects/descriptorOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getClassOrSymbol.d.ts +0 -0
- package/lib/cjs/utils/objects/getClassOrSymbol.js +10 -0
- package/lib/cjs/utils/objects/getClassOrSymbol.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getConstructorArgNames.d.ts +0 -0
- package/lib/cjs/utils/objects/getConstructorArgNames.js +9 -0
- package/lib/cjs/utils/objects/getConstructorArgNames.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getEnumerableKeys.d.ts +0 -0
- package/lib/cjs/utils/objects/getEnumerableKeys.js +20 -0
- package/lib/cjs/utils/objects/getEnumerableKeys.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/getValue.d.ts +0 -0
- package/lib/cjs/utils/objects/getValue.js +49 -0
- package/lib/cjs/utils/objects/getValue.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/index.d.ts +0 -0
- package/lib/cjs/utils/objects/index.js +47 -0
- package/lib/cjs/utils/objects/index.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isArray.d.ts +0 -0
- package/lib/cjs/utils/objects/isArray.js +23 -0
- package/lib/cjs/utils/objects/isArray.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isArrowFn.d.ts +0 -0
- package/lib/cjs/utils/objects/isArrowFn.js +9 -0
- package/lib/cjs/utils/objects/isArrowFn.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isBoolean.d.ts +0 -0
- package/lib/cjs/utils/objects/isBoolean.js +17 -0
- package/lib/cjs/utils/objects/isBoolean.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isClass.d.ts +0 -0
- package/lib/cjs/utils/objects/isClass.js +26 -0
- package/lib/cjs/utils/objects/isClass.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isCollection.d.ts +0 -0
- package/lib/cjs/utils/objects/isCollection.js +22 -0
- package/lib/cjs/utils/objects/isCollection.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isDate.d.ts +0 -0
- package/lib/cjs/utils/objects/isDate.js +13 -0
- package/lib/cjs/utils/objects/isDate.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isEmpty.d.ts +0 -0
- package/lib/cjs/utils/objects/isEmpty.js +14 -0
- package/lib/cjs/utils/objects/isEmpty.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isEnumerable.d.ts +0 -0
- package/lib/cjs/utils/objects/isEnumerable.js +22 -0
- package/lib/cjs/utils/objects/isEnumerable.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isFunction.d.ts +0 -0
- package/lib/cjs/utils/objects/isFunction.js +8 -0
- package/lib/cjs/utils/objects/isFunction.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isInheritedFrom.d.ts +0 -0
- package/lib/cjs/utils/objects/isInheritedFrom.js +26 -0
- package/lib/cjs/utils/objects/isInheritedFrom.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isNil.d.ts +0 -0
- package/lib/cjs/utils/objects/isNil.js +8 -0
- package/lib/cjs/utils/objects/isNil.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isNumber.d.ts +0 -0
- package/lib/cjs/utils/objects/isNumber.js +17 -0
- package/lib/cjs/utils/objects/isNumber.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isObject.d.ts +0 -0
- package/lib/cjs/utils/objects/isObject.js +8 -0
- package/lib/cjs/utils/objects/isObject.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isObservable.d.ts +0 -0
- package/lib/cjs/utils/objects/isObservable.js +8 -0
- package/lib/cjs/utils/objects/isObservable.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isPlainObject.d.ts +0 -0
- package/lib/cjs/utils/objects/isPlainObject.js +18 -0
- package/lib/cjs/utils/objects/isPlainObject.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isPrimitive.d.ts +0 -0
- package/lib/cjs/utils/objects/isPrimitive.js +30 -0
- package/lib/cjs/utils/objects/isPrimitive.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isPromise.d.ts +0 -0
- package/lib/cjs/utils/objects/isPromise.js +16 -0
- package/lib/cjs/utils/objects/isPromise.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isProtectedKey.d.ts +0 -0
- package/lib/cjs/utils/objects/isProtectedKey.js +12 -0
- package/lib/cjs/utils/objects/isProtectedKey.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isSerializable.d.ts +0 -0
- package/lib/cjs/utils/objects/isSerializable.js +13 -0
- package/lib/cjs/utils/objects/isSerializable.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isStream.d.ts +0 -0
- package/lib/cjs/utils/objects/isStream.js +8 -0
- package/lib/cjs/utils/objects/isStream.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isString.d.ts +0 -0
- package/lib/cjs/utils/objects/isString.js +16 -0
- package/lib/cjs/utils/objects/isString.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/isSymbol.d.ts +0 -0
- package/lib/cjs/utils/objects/isSymbol.js +16 -0
- package/lib/cjs/utils/objects/isSymbol.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/methodsOf.d.ts +0 -0
- package/lib/cjs/utils/objects/methodsOf.js +25 -0
- package/lib/cjs/utils/objects/methodsOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/nameOf.d.ts +0 -0
- package/lib/cjs/utils/objects/nameOf.js +32 -0
- package/lib/cjs/utils/objects/nameOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/objectKeys.d.ts +0 -0
- package/lib/cjs/utils/objects/objectKeys.js +9 -0
- package/lib/cjs/utils/objects/objectKeys.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/primitiveOf.d.ts +0 -0
- package/lib/cjs/utils/objects/primitiveOf.js +20 -0
- package/lib/cjs/utils/objects/primitiveOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/prototypeOf.d.ts +0 -0
- package/lib/cjs/utils/objects/prototypeOf.js +14 -0
- package/lib/cjs/utils/objects/prototypeOf.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/setValue.d.ts +0 -0
- package/lib/cjs/utils/objects/setValue.js +34 -0
- package/lib/cjs/utils/objects/setValue.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/toMap.d.ts +0 -0
- package/lib/cjs/utils/objects/toMap.js +32 -0
- package/lib/cjs/utils/objects/toMap.js.map +1 -0
- package/lib/{utils → cjs/utils}/objects/toStringConstructor.d.ts +0 -0
- package/lib/cjs/utils/objects/toStringConstructor.js +12 -0
- package/lib/cjs/utils/objects/toStringConstructor.js.map +1 -0
- package/lib/{utils → cjs/utils}/proxyDelegation.d.ts +0 -0
- package/lib/cjs/utils/proxyDelegation.js +54 -0
- package/lib/cjs/utils/proxyDelegation.js.map +1 -0
- package/lib/{utils → cjs/utils}/uniq.d.ts +0 -0
- package/lib/cjs/utils/uniq.js +16 -0
- package/lib/cjs/utils/uniq.js.map +1 -0
- package/lib/esm/decorators/configurable.js +14 -0
- package/lib/esm/decorators/configurable.js.map +1 -0
- package/lib/esm/decorators/deprecated.js +39 -0
- package/lib/esm/decorators/deprecated.js.map +1 -0
- package/lib/esm/decorators/enumerable.js +14 -0
- package/lib/esm/decorators/enumerable.js.map +1 -0
- package/lib/esm/decorators/index.js +15 -0
- package/lib/esm/decorators/index.js.map +1 -0
- package/lib/esm/decorators/notConfigurable.js +9 -0
- package/lib/esm/decorators/notConfigurable.js.map +1 -0
- package/lib/esm/decorators/notEnumerable.js +9 -0
- package/lib/esm/decorators/notEnumerable.js.map +1 -0
- package/lib/esm/decorators/readOnly.js +9 -0
- package/lib/esm/decorators/readOnly.js.map +1 -0
- package/lib/esm/decorators/storeFn.js +18 -0
- package/lib/esm/decorators/storeFn.js.map +1 -0
- package/lib/esm/decorators/storeMerge.js +7 -0
- package/lib/esm/decorators/storeMerge.js.map +1 -0
- package/lib/esm/decorators/storeSet.js +7 -0
- package/lib/esm/decorators/storeSet.js.map +1 -0
- package/lib/esm/decorators/writable.js +14 -0
- package/lib/esm/decorators/writable.js.map +1 -0
- package/lib/esm/domain/AnyToPromise.js +144 -0
- package/lib/esm/domain/AnyToPromise.js.map +1 -0
- package/lib/esm/domain/DecoratorTypes.js +12 -0
- package/lib/esm/domain/DecoratorTypes.js.map +1 -0
- package/lib/esm/domain/Env.js +16 -0
- package/lib/esm/domain/Env.js.map +1 -0
- package/lib/esm/domain/Hooks.js +85 -0
- package/lib/esm/domain/Hooks.js.map +1 -0
- package/lib/esm/domain/Metadata.js +504 -0
- package/lib/esm/domain/Metadata.js.map +1 -0
- package/lib/esm/domain/Store.js +153 -0
- package/lib/esm/domain/Store.js.map +1 -0
- package/lib/esm/domain/Type.js +4 -0
- package/lib/esm/domain/Type.js.map +1 -0
- package/lib/esm/domain/index.js +8 -0
- package/lib/esm/domain/index.js.map +1 -0
- package/lib/esm/errors/UnsupportedDecoratorType.js +17 -0
- package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/interfaces/AnyDecorator.js +2 -0
- package/lib/esm/interfaces/AnyDecorator.js.map +1 -0
- package/lib/esm/interfaces/DecoratorParameters.js +2 -0
- package/lib/esm/interfaces/DecoratorParameters.js.map +1 -0
- package/lib/esm/interfaces/HashOf.js +2 -0
- package/lib/esm/interfaces/HashOf.js.map +1 -0
- package/lib/esm/interfaces/MetadataTypes.js +2 -0
- package/lib/esm/interfaces/MetadataTypes.js.map +1 -0
- package/lib/esm/interfaces/ValueOf.js +2 -0
- package/lib/esm/interfaces/ValueOf.js.map +1 -0
- package/lib/esm/interfaces/index.js +2 -0
- package/lib/esm/interfaces/index.js.map +1 -0
- package/lib/esm/utils/catchError.js +17 -0
- package/lib/esm/utils/catchError.js.map +1 -0
- package/lib/esm/utils/decorators/decorateMethodsOf.js +19 -0
- package/lib/esm/utils/decorators/decorateMethodsOf.js.map +1 -0
- package/lib/esm/utils/decorators/decoratorArgs.js +5 -0
- package/lib/esm/utils/decorators/decoratorArgs.js.map +1 -0
- package/lib/esm/utils/decorators/decoratorTypeOf.js +19 -0
- package/lib/esm/utils/decorators/decoratorTypeOf.js.map +1 -0
- package/lib/esm/utils/decorators/inheritedDescriptorOf.js +11 -0
- package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +1 -0
- package/lib/esm/utils/decorators/useDecorators.js +10 -0
- package/lib/esm/utils/decorators/useDecorators.js.map +1 -0
- package/lib/esm/utils/decorators/useMethodDecorators.js +10 -0
- package/lib/esm/utils/decorators/useMethodDecorators.js.map +1 -0
- package/lib/esm/utils/http/getHostInfoFromPort.js +17 -0
- package/lib/esm/utils/http/getHostInfoFromPort.js.map +1 -0
- package/lib/esm/utils/imports/importPackage.js +12 -0
- package/lib/esm/utils/imports/importPackage.js.map +1 -0
- package/lib/esm/utils/index.js +16 -0
- package/lib/esm/utils/index.js.map +1 -0
- package/lib/esm/utils/objects/ancestorOf.js +7 -0
- package/lib/esm/utils/objects/ancestorOf.js.map +1 -0
- package/lib/esm/utils/objects/ancestorsOf.js +18 -0
- package/lib/esm/utils/objects/ancestorsOf.js.map +1 -0
- package/lib/esm/utils/objects/classOf.js +18 -0
- package/lib/esm/utils/objects/classOf.js.map +1 -0
- package/lib/esm/utils/objects/cleanObject.js +20 -0
- package/lib/esm/utils/objects/cleanObject.js.map +1 -0
- package/lib/esm/utils/objects/constructorOf.js +15 -0
- package/lib/esm/utils/objects/constructorOf.js.map +1 -0
- package/lib/esm/utils/objects/createInstance.js +5 -0
- package/lib/esm/utils/objects/createInstance.js.map +1 -0
- package/lib/esm/utils/objects/deepClone.js +53 -0
- package/lib/esm/utils/objects/deepClone.js.map +1 -0
- package/lib/esm/utils/objects/deepExtends.js +75 -0
- package/lib/esm/utils/objects/deepExtends.js.map +1 -0
- package/lib/esm/utils/objects/deepMerge.js +58 -0
- package/lib/esm/utils/objects/deepMerge.js.map +1 -0
- package/lib/esm/utils/objects/descriptorOf.js +14 -0
- package/lib/esm/utils/objects/descriptorOf.js.map +1 -0
- package/lib/esm/utils/objects/getClassOrSymbol.js +6 -0
- package/lib/esm/utils/objects/getClassOrSymbol.js.map +1 -0
- package/lib/esm/utils/objects/getConstructorArgNames.js +5 -0
- package/lib/esm/utils/objects/getConstructorArgNames.js.map +1 -0
- package/lib/esm/utils/objects/getEnumerableKeys.js +16 -0
- package/lib/esm/utils/objects/getEnumerableKeys.js.map +1 -0
- package/lib/esm/utils/objects/getValue.js +45 -0
- package/lib/esm/utils/objects/getValue.js.map +1 -0
- package/lib/esm/utils/objects/index.js +44 -0
- package/lib/esm/utils/objects/index.js.map +1 -0
- package/lib/esm/utils/objects/isArray.js +18 -0
- package/lib/esm/utils/objects/isArray.js.map +1 -0
- package/lib/esm/utils/objects/isArrowFn.js +5 -0
- package/lib/esm/utils/objects/isArrowFn.js.map +1 -0
- package/lib/esm/utils/objects/isBoolean.js +12 -0
- package/lib/esm/utils/objects/isBoolean.js.map +1 -0
- package/lib/esm/utils/objects/isClass.js +22 -0
- package/lib/esm/utils/objects/isClass.js.map +1 -0
- package/lib/esm/utils/objects/isCollection.js +18 -0
- package/lib/esm/utils/objects/isCollection.js.map +1 -0
- package/lib/esm/utils/objects/isDate.js +9 -0
- package/lib/esm/utils/objects/isDate.js.map +1 -0
- package/lib/esm/utils/objects/isEmpty.js +10 -0
- package/lib/esm/utils/objects/isEmpty.js.map +1 -0
- package/lib/esm/utils/objects/isEnumerable.js +18 -0
- package/lib/esm/utils/objects/isEnumerable.js.map +1 -0
- package/lib/esm/utils/objects/isFunction.js +4 -0
- package/lib/esm/utils/objects/isFunction.js.map +1 -0
- package/lib/esm/utils/objects/isInheritedFrom.js +22 -0
- package/lib/esm/utils/objects/isInheritedFrom.js.map +1 -0
- package/lib/esm/utils/objects/isNil.js +4 -0
- package/lib/esm/utils/objects/isNil.js.map +1 -0
- package/lib/esm/utils/objects/isNumber.js +12 -0
- package/lib/esm/utils/objects/isNumber.js.map +1 -0
- package/lib/esm/utils/objects/isObject.js +4 -0
- package/lib/esm/utils/objects/isObject.js.map +1 -0
- package/lib/esm/utils/objects/isObservable.js +4 -0
- package/lib/esm/utils/objects/isObservable.js.map +1 -0
- package/lib/esm/utils/objects/isPlainObject.js +13 -0
- package/lib/esm/utils/objects/isPlainObject.js.map +1 -0
- package/lib/esm/utils/objects/isPrimitive.js +24 -0
- package/lib/esm/utils/objects/isPrimitive.js.map +1 -0
- package/lib/esm/utils/objects/isPromise.js +12 -0
- package/lib/esm/utils/objects/isPromise.js.map +1 -0
- package/lib/esm/utils/objects/isProtectedKey.js +8 -0
- package/lib/esm/utils/objects/isProtectedKey.js.map +1 -0
- package/lib/esm/utils/objects/isSerializable.js +9 -0
- package/lib/esm/utils/objects/isSerializable.js.map +1 -0
- package/lib/esm/utils/objects/isStream.js +4 -0
- package/lib/esm/utils/objects/isStream.js.map +1 -0
- package/lib/esm/utils/objects/isString.js +11 -0
- package/lib/esm/utils/objects/isString.js.map +1 -0
- package/lib/esm/utils/objects/isSymbol.js +11 -0
- package/lib/esm/utils/objects/isSymbol.js.map +1 -0
- package/lib/esm/utils/objects/methodsOf.js +21 -0
- package/lib/esm/utils/objects/methodsOf.js.map +1 -0
- package/lib/esm/utils/objects/nameOf.js +26 -0
- package/lib/esm/utils/objects/nameOf.js.map +1 -0
- package/lib/esm/utils/objects/objectKeys.js +5 -0
- package/lib/esm/utils/objects/objectKeys.js.map +1 -0
- package/lib/esm/utils/objects/primitiveOf.js +16 -0
- package/lib/esm/utils/objects/primitiveOf.js.map +1 -0
- package/lib/esm/utils/objects/prototypeOf.js +10 -0
- package/lib/esm/utils/objects/prototypeOf.js.map +1 -0
- package/lib/esm/utils/objects/setValue.js +30 -0
- package/lib/esm/utils/objects/setValue.js.map +1 -0
- package/lib/esm/utils/objects/toMap.js +28 -0
- package/lib/esm/utils/objects/toMap.js.map +1 -0
- package/lib/esm/utils/objects/toStringConstructor.js +8 -0
- package/lib/esm/utils/objects/toStringConstructor.js.map +1 -0
- package/lib/esm/utils/proxyDelegation.js +50 -0
- package/lib/esm/utils/proxyDelegation.js.map +1 -0
- package/lib/esm/utils/uniq.js +11 -0
- package/lib/esm/utils/uniq.js.map +1 -0
- package/lib/types/decorators/configurable.d.ts +2 -0
- package/lib/types/decorators/deprecated.d.ts +32 -0
- package/lib/types/decorators/enumerable.d.ts +2 -0
- package/lib/types/decorators/index.d.ts +14 -0
- package/lib/types/decorators/notConfigurable.d.ts +2 -0
- package/lib/types/decorators/notEnumerable.d.ts +2 -0
- package/lib/types/decorators/readOnly.d.ts +2 -0
- package/lib/types/decorators/storeFn.d.ts +9 -0
- package/lib/types/decorators/storeMerge.d.ts +1 -0
- package/lib/types/decorators/storeSet.d.ts +1 -0
- package/lib/types/decorators/writable.d.ts +2 -0
- package/lib/types/domain/AnyToPromise.d.ts +42 -0
- package/lib/types/domain/DecoratorTypes.d.ts +10 -0
- package/lib/types/domain/Env.d.ts +13 -0
- package/lib/types/domain/Hooks.d.ts +45 -0
- package/lib/types/domain/Metadata.d.ts +442 -0
- package/lib/types/domain/Store.d.ts +69 -0
- package/lib/types/domain/Type.d.ts +11 -0
- package/lib/types/domain/index.d.ts +7 -0
- package/lib/types/errors/UnsupportedDecoratorType.d.ts +5 -0
- package/lib/types/index.d.ts +6 -0
- package/lib/types/interfaces/AnyDecorator.d.ts +1 -0
- package/lib/types/interfaces/DecoratorParameters.d.ts +3 -0
- package/lib/types/interfaces/HashOf.d.ts +1 -0
- package/lib/types/interfaces/MetadataTypes.d.ts +5 -0
- package/lib/types/interfaces/ValueOf.d.ts +1 -0
- package/lib/types/interfaces/index.d.ts +4 -0
- package/lib/types/utils/catchError.d.ts +2 -0
- package/lib/types/utils/decorators/decorateMethodsOf.d.ts +1 -0
- package/lib/types/utils/decorators/decoratorArgs.d.ts +2 -0
- package/lib/types/utils/decorators/decoratorTypeOf.d.ts +2 -0
- package/lib/types/utils/decorators/inheritedDescriptorOf.d.ts +1 -0
- package/lib/types/utils/decorators/useDecorators.d.ts +2 -0
- package/lib/types/utils/decorators/useMethodDecorators.d.ts +3 -0
- package/lib/types/utils/http/getHostInfoFromPort.d.ts +6 -0
- package/lib/types/utils/imports/importPackage.d.ts +1 -0
- package/lib/types/utils/index.d.ts +13 -0
- package/lib/types/utils/objects/ancestorOf.d.ts +2 -0
- package/lib/types/utils/objects/ancestorsOf.d.ts +6 -0
- package/lib/types/utils/objects/classOf.d.ts +13 -0
- package/lib/types/utils/objects/cleanObject.d.ts +6 -0
- package/lib/types/utils/objects/constructorOf.d.ts +11 -0
- package/lib/types/utils/objects/createInstance.d.ts +1 -0
- package/lib/types/utils/objects/deepClone.d.ts +6 -0
- package/lib/types/utils/objects/deepExtends.d.ts +10 -0
- package/lib/types/utils/objects/deepMerge.d.ts +9 -0
- package/lib/types/utils/objects/descriptorOf.d.ts +8 -0
- package/lib/types/utils/objects/getClassOrSymbol.d.ts +1 -0
- package/lib/types/utils/objects/getConstructorArgNames.d.ts +1 -0
- package/lib/types/utils/objects/getEnumerableKeys.d.ts +5 -0
- package/lib/types/utils/objects/getValue.d.ts +32 -0
- package/lib/types/utils/objects/index.d.ts +43 -0
- package/lib/types/utils/objects/isArray.d.ts +13 -0
- package/lib/types/utils/objects/isArrowFn.d.ts +1 -0
- package/lib/types/utils/objects/isBoolean.d.ts +7 -0
- package/lib/types/utils/objects/isClass.d.ts +1 -0
- package/lib/types/utils/objects/isCollection.d.ts +6 -0
- package/lib/types/utils/objects/isDate.d.ts +6 -0
- package/lib/types/utils/objects/isEmpty.d.ts +6 -0
- package/lib/types/utils/objects/isEnumerable.d.ts +6 -0
- package/lib/types/utils/objects/isFunction.d.ts +1 -0
- package/lib/types/utils/objects/isInheritedFrom.d.ts +1 -0
- package/lib/types/utils/objects/isNil.d.ts +1 -0
- package/lib/types/utils/objects/isNumber.d.ts +7 -0
- package/lib/types/utils/objects/isObject.d.ts +1 -0
- package/lib/types/utils/objects/isObservable.d.ts +1 -0
- package/lib/types/utils/objects/isPlainObject.d.ts +7 -0
- package/lib/types/utils/objects/isPrimitive.d.ts +14 -0
- package/lib/types/utils/objects/isPromise.d.ts +7 -0
- package/lib/types/utils/objects/isProtectedKey.d.ts +5 -0
- package/lib/types/utils/objects/isSerializable.d.ts +1 -0
- package/lib/types/utils/objects/isStream.d.ts +1 -0
- package/lib/types/utils/objects/isString.d.ts +6 -0
- package/lib/types/utils/objects/isSymbol.d.ts +6 -0
- package/lib/types/utils/objects/methodsOf.d.ts +5 -0
- package/lib/types/utils/objects/nameOf.d.ts +14 -0
- package/lib/types/utils/objects/objectKeys.d.ts +1 -0
- package/lib/types/utils/objects/primitiveOf.d.ts +1 -0
- package/lib/types/utils/objects/prototypeOf.d.ts +6 -0
- package/lib/types/utils/objects/setValue.d.ts +1 -0
- package/lib/types/utils/objects/toMap.d.ts +3 -0
- package/lib/types/utils/objects/toStringConstructor.d.ts +1 -0
- package/lib/types/utils/proxyDelegation.d.ts +33 -0
- package/lib/types/utils/uniq.d.ts +2 -0
- package/package.json +10 -6
- package/tsconfig.compile.esm.json +23 -0
- package/lib/index.js +0 -2317
- package/lib/index.js.map +0 -1
- package/lib/index.modern.js +0 -2207
- package/lib/index.modern.js.map +0 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
(0, tslib_1.__exportStar)(require("./ancestorOf"), exports);
|
|
5
|
+
(0, tslib_1.__exportStar)(require("./ancestorsOf"), exports);
|
|
6
|
+
(0, tslib_1.__exportStar)(require("./classOf"), exports);
|
|
7
|
+
(0, tslib_1.__exportStar)(require("./cleanObject"), exports);
|
|
8
|
+
(0, tslib_1.__exportStar)(require("./constructorOf"), exports);
|
|
9
|
+
(0, tslib_1.__exportStar)(require("./deepClone"), exports);
|
|
10
|
+
(0, tslib_1.__exportStar)(require("./deepExtends"), exports);
|
|
11
|
+
(0, tslib_1.__exportStar)(require("./deepMerge"), exports);
|
|
12
|
+
(0, tslib_1.__exportStar)(require("./getClassOrSymbol"), exports);
|
|
13
|
+
(0, tslib_1.__exportStar)(require("./getConstructorArgNames"), exports);
|
|
14
|
+
(0, tslib_1.__exportStar)(require("./getEnumerableKeys"), exports);
|
|
15
|
+
(0, tslib_1.__exportStar)(require("./ancestorOf"), exports);
|
|
16
|
+
(0, tslib_1.__exportStar)(require("./getValue"), exports);
|
|
17
|
+
(0, tslib_1.__exportStar)(require("./isArray"), exports);
|
|
18
|
+
(0, tslib_1.__exportStar)(require("./isArrowFn"), exports);
|
|
19
|
+
(0, tslib_1.__exportStar)(require("./isBoolean"), exports);
|
|
20
|
+
(0, tslib_1.__exportStar)(require("./isClass"), exports);
|
|
21
|
+
(0, tslib_1.__exportStar)(require("./isCollection"), exports);
|
|
22
|
+
(0, tslib_1.__exportStar)(require("./isDate"), exports);
|
|
23
|
+
(0, tslib_1.__exportStar)(require("./isEmpty"), exports);
|
|
24
|
+
(0, tslib_1.__exportStar)(require("./isEnumerable"), exports);
|
|
25
|
+
(0, tslib_1.__exportStar)(require("./isFunction"), exports);
|
|
26
|
+
(0, tslib_1.__exportStar)(require("./isInheritedFrom"), exports);
|
|
27
|
+
(0, tslib_1.__exportStar)(require("./isNil"), exports);
|
|
28
|
+
(0, tslib_1.__exportStar)(require("./isNumber"), exports);
|
|
29
|
+
(0, tslib_1.__exportStar)(require("./isObject"), exports);
|
|
30
|
+
(0, tslib_1.__exportStar)(require("./isObservable"), exports);
|
|
31
|
+
(0, tslib_1.__exportStar)(require("./isPlainObject"), exports);
|
|
32
|
+
(0, tslib_1.__exportStar)(require("./isPrimitive"), exports);
|
|
33
|
+
(0, tslib_1.__exportStar)(require("./isPromise"), exports);
|
|
34
|
+
(0, tslib_1.__exportStar)(require("./isProtectedKey"), exports);
|
|
35
|
+
(0, tslib_1.__exportStar)(require("./isStream"), exports);
|
|
36
|
+
(0, tslib_1.__exportStar)(require("./isString"), exports);
|
|
37
|
+
(0, tslib_1.__exportStar)(require("./isSymbol"), exports);
|
|
38
|
+
(0, tslib_1.__exportStar)(require("./isSerializable"), exports);
|
|
39
|
+
(0, tslib_1.__exportStar)(require("./methodsOf"), exports);
|
|
40
|
+
(0, tslib_1.__exportStar)(require("./nameOf"), exports);
|
|
41
|
+
(0, tslib_1.__exportStar)(require("./objectKeys"), exports);
|
|
42
|
+
(0, tslib_1.__exportStar)(require("./primitiveOf"), exports);
|
|
43
|
+
(0, tslib_1.__exportStar)(require("./prototypeOf"), exports);
|
|
44
|
+
(0, tslib_1.__exportStar)(require("./setValue"), exports);
|
|
45
|
+
(0, tslib_1.__exportStar)(require("./toMap"), exports);
|
|
46
|
+
(0, tslib_1.__exportStar)(require("./toStringConstructor"), exports);
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/objects/index.ts"],"names":[],"mappings":";;;AAAA,4DAA6B;AAC7B,6DAA8B;AAC9B,yDAA0B;AAC1B,6DAA8B;AAC9B,+DAAgC;AAChC,2DAA4B;AAC5B,6DAA8B;AAC9B,2DAA4B;AAC5B,kEAAmC;AACnC,wEAAyC;AACzC,mEAAoC;AACpC,4DAA6B;AAC7B,0DAA2B;AAC3B,yDAA0B;AAC1B,2DAA4B;AAC5B,2DAA4B;AAC5B,yDAA0B;AAC1B,8DAA+B;AAC/B,wDAAyB;AACzB,yDAA0B;AAC1B,8DAA+B;AAC/B,4DAA6B;AAC7B,iEAAkC;AAClC,uDAAwB;AACxB,0DAA2B;AAC3B,0DAA2B;AAC3B,8DAA+B;AAC/B,+DAAgC;AAChC,6DAA8B;AAC9B,2DAA4B;AAC5B,gEAAiC;AACjC,0DAA2B;AAC3B,0DAA2B;AAC3B,0DAA2B;AAC3B,gEAAiC;AACjC,2DAA4B;AAC5B,wDAAyB;AACzB,4DAA6B;AAC7B,6DAA8B;AAC9B,6DAA8B;AAC9B,0DAA2B;AAC3B,uDAAwB;AACxB,qEAAsC","sourcesContent":["export * from \"./ancestorOf\";\nexport * from \"./ancestorsOf\";\nexport * from \"./classOf\";\nexport * from \"./cleanObject\";\nexport * from \"./constructorOf\";\nexport * from \"./deepClone\";\nexport * from \"./deepExtends\";\nexport * from \"./deepMerge\";\nexport * from \"./getClassOrSymbol\";\nexport * from \"./getConstructorArgNames\";\nexport * from \"./getEnumerableKeys\";\nexport * from \"./ancestorOf\";\nexport * from \"./getValue\";\nexport * from \"./isArray\";\nexport * from \"./isArrowFn\";\nexport * from \"./isBoolean\";\nexport * from \"./isClass\";\nexport * from \"./isCollection\";\nexport * from \"./isDate\";\nexport * from \"./isEmpty\";\nexport * from \"./isEnumerable\";\nexport * from \"./isFunction\";\nexport * from \"./isInheritedFrom\";\nexport * from \"./isNil\";\nexport * from \"./isNumber\";\nexport * from \"./isObject\";\nexport * from \"./isObservable\";\nexport * from \"./isPlainObject\";\nexport * from \"./isPrimitive\";\nexport * from \"./isPromise\";\nexport * from \"./isProtectedKey\";\nexport * from \"./isStream\";\nexport * from \"./isString\";\nexport * from \"./isSymbol\";\nexport * from \"./isSerializable\";\nexport * from \"./methodsOf\";\nexport * from \"./nameOf\";\nexport * from \"./objectKeys\";\nexport * from \"./primitiveOf\";\nexport * from \"./prototypeOf\";\nexport * from \"./setValue\";\nexport * from \"./toMap\";\nexport * from \"./toStringConstructor\";\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isArrayOrArrayClass = exports.isArray = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Return true if value is an array
|
|
6
|
+
* @param target
|
|
7
|
+
* @returns {boolean}
|
|
8
|
+
*/
|
|
9
|
+
function isArray(target) {
|
|
10
|
+
return Array.isArray(target);
|
|
11
|
+
}
|
|
12
|
+
exports.isArray = isArray;
|
|
13
|
+
/**
|
|
14
|
+
* Return true if the clazz is an array.
|
|
15
|
+
* @param target
|
|
16
|
+
* @returns {boolean}
|
|
17
|
+
* @ignore
|
|
18
|
+
*/
|
|
19
|
+
function isArrayOrArrayClass(target) {
|
|
20
|
+
return target === Array || isArray(target);
|
|
21
|
+
}
|
|
22
|
+
exports.isArrayOrArrayClass = isArrayOrArrayClass;
|
|
23
|
+
//# sourceMappingURL=isArray.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../../../src/utils/objects/isArray.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,OAAO,CAAU,MAAe;IAC9C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC;AAFD,0BAEC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAU,MAAe;IAC1D,OAAO,MAAM,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC;AAFD,kDAEC","sourcesContent":["/**\n * Return true if value is an array\n * @param target\n * @returns {boolean}\n */\nexport function isArray<T = any>(target: unknown): target is T[] {\n return Array.isArray(target);\n}\n\n/**\n * Return true if the clazz is an array.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isArrayOrArrayClass<T = any>(target: unknown): target is T[] {\n return target === Array || isArray(target);\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isArrowFn = void 0;
|
|
4
|
+
const isFunction_1 = require("./isFunction");
|
|
5
|
+
function isArrowFn(target) {
|
|
6
|
+
return target && (0, isFunction_1.isFunction)(target) && !target.prototype;
|
|
7
|
+
}
|
|
8
|
+
exports.isArrowFn = isArrowFn;
|
|
9
|
+
//# sourceMappingURL=isArrowFn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isArrowFn.js","sourceRoot":"","sources":["../../../../src/utils/objects/isArrowFn.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAExC,SAAgB,SAAS,CAAC,MAAW;IACnC,OAAO,MAAM,IAAI,IAAA,uBAAU,EAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;AAC3D,CAAC;AAFD,8BAEC","sourcesContent":["import {isFunction} from \"./isFunction\";\n\nexport function isArrowFn(target: any): target is Function {\n return target && isFunction(target) && !target.prototype;\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isBooleanOrBooleanClass = exports.isBoolean = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param target
|
|
7
|
+
* @returns {boolean}
|
|
8
|
+
*/
|
|
9
|
+
function isBoolean(target) {
|
|
10
|
+
return typeof target === "boolean" || target instanceof Boolean || target === Boolean;
|
|
11
|
+
}
|
|
12
|
+
exports.isBoolean = isBoolean;
|
|
13
|
+
function isBooleanOrBooleanClass(target) {
|
|
14
|
+
return typeof target === "boolean" || target instanceof Boolean || target === Boolean;
|
|
15
|
+
}
|
|
16
|
+
exports.isBooleanOrBooleanClass = isBooleanOrBooleanClass;
|
|
17
|
+
//# sourceMappingURL=isBoolean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isBoolean.js","sourceRoot":"","sources":["../../../../src/utils/objects/isBoolean.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,SAAS,CAAC,MAAW;IACnC,OAAO,OAAO,MAAM,KAAK,SAAS,IAAI,MAAM,YAAY,OAAO,IAAI,MAAM,KAAK,OAAO,CAAC;AACxF,CAAC;AAFD,8BAEC;AAED,SAAgB,uBAAuB,CAAC,MAAW;IACjD,OAAO,OAAO,MAAM,KAAK,SAAS,IAAI,MAAM,YAAY,OAAO,IAAI,MAAM,KAAK,OAAO,CAAC;AACxF,CAAC;AAFD,0DAEC","sourcesContent":["/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isBoolean(target: any): target is boolean {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n\nexport function isBooleanOrBooleanClass(target: any): target is boolean {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isClass = void 0;
|
|
4
|
+
const isArray_1 = require("./isArray");
|
|
5
|
+
const isArrowFn_1 = require("./isArrowFn");
|
|
6
|
+
const isDate_1 = require("./isDate");
|
|
7
|
+
const isPlainObject_1 = require("./isPlainObject");
|
|
8
|
+
const isPrimitive_1 = require("./isPrimitive");
|
|
9
|
+
const isPromise_1 = require("./isPromise");
|
|
10
|
+
const isSymbol_1 = require("./isSymbol");
|
|
11
|
+
function isClass(target) {
|
|
12
|
+
if (!target) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
if ((0, isArrowFn_1.isArrowFn)(target)) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
return !((0, isSymbol_1.isSymbol)(target) ||
|
|
19
|
+
(0, isPrimitive_1.isPrimitiveOrPrimitiveClass)(target) ||
|
|
20
|
+
(0, isPlainObject_1.isClassObject)(target) ||
|
|
21
|
+
(0, isDate_1.isDate)(target) ||
|
|
22
|
+
(0, isPromise_1.isPromise)(target) ||
|
|
23
|
+
(0, isArray_1.isArrayOrArrayClass)(target));
|
|
24
|
+
}
|
|
25
|
+
exports.isClass = isClass;
|
|
26
|
+
//# sourceMappingURL=isClass.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isClass.js","sourceRoot":"","sources":["../../../../src/utils/objects/isClass.ts"],"names":[],"mappings":";;;AAAA,uCAA8C;AAC9C,2CAAsC;AACtC,qCAAgC;AAChC,mDAA8C;AAC9C,+CAA0D;AAC1D,2CAAsC;AACtC,yCAAoC;AAEpC,SAAgB,OAAO,CAAC,MAAW;IACjC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,KAAK,CAAC;KACd;IAED,IAAI,IAAA,qBAAS,EAAC,MAAM,CAAC,EAAE;QACrB,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CAAC,CACN,IAAA,mBAAQ,EAAC,MAAM,CAAC;QAChB,IAAA,yCAA2B,EAAC,MAAM,CAAC;QACnC,IAAA,6BAAa,EAAC,MAAM,CAAC;QACrB,IAAA,eAAM,EAAC,MAAM,CAAC;QACd,IAAA,qBAAS,EAAC,MAAM,CAAC;QACjB,IAAA,6BAAmB,EAAC,MAAM,CAAC,CAC5B,CAAC;AACJ,CAAC;AAjBD,0BAiBC","sourcesContent":["import {isArrayOrArrayClass} from \"./isArray\";\nimport {isArrowFn} from \"./isArrowFn\";\nimport {isDate} from \"./isDate\";\nimport {isClassObject} from \"./isPlainObject\";\nimport {isPrimitiveOrPrimitiveClass} from \"./isPrimitive\";\nimport {isPromise} from \"./isPromise\";\nimport {isSymbol} from \"./isSymbol\";\n\nexport function isClass(target: any) {\n if (!target) {\n return false;\n }\n\n if (isArrowFn(target)) {\n return false;\n }\n\n return !(\n isSymbol(target) ||\n isPrimitiveOrPrimitiveClass(target) ||\n isClassObject(target) ||\n isDate(target) ||\n isPromise(target) ||\n isArrayOrArrayClass(target)\n );\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isCollection = void 0;
|
|
4
|
+
const isArray_1 = require("./isArray");
|
|
5
|
+
/**
|
|
6
|
+
* Return true if the target.
|
|
7
|
+
* @param target
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/
|
|
10
|
+
function isCollection(target) {
|
|
11
|
+
return ((0, isArray_1.isArrayOrArrayClass)(target) ||
|
|
12
|
+
target === Map ||
|
|
13
|
+
target instanceof Map ||
|
|
14
|
+
target === Set ||
|
|
15
|
+
target instanceof Set ||
|
|
16
|
+
target === WeakMap ||
|
|
17
|
+
target instanceof WeakMap ||
|
|
18
|
+
target === WeakSet ||
|
|
19
|
+
target instanceof WeakSet);
|
|
20
|
+
}
|
|
21
|
+
exports.isCollection = isCollection;
|
|
22
|
+
//# sourceMappingURL=isCollection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isCollection.js","sourceRoot":"","sources":["../../../../src/utils/objects/isCollection.ts"],"names":[],"mappings":";;;AAAA,uCAA8C;AAE9C;;;;GAIG;AACH,SAAgB,YAAY,CAAC,MAAW;IACtC,OAAO,CACL,IAAA,6BAAmB,EAAC,MAAM,CAAC;QAC3B,MAAM,KAAK,GAAG;QACd,MAAM,YAAY,GAAG;QACrB,MAAM,KAAK,GAAG;QACd,MAAM,YAAY,GAAG;QACrB,MAAM,KAAK,OAAO;QAClB,MAAM,YAAY,OAAO;QACzB,MAAM,KAAK,OAAO;QAClB,MAAM,YAAY,OAAO,CAC1B,CAAC;AACJ,CAAC;AAZD,oCAYC","sourcesContent":["import {isArrayOrArrayClass} from \"./isArray\";\n\n/**\n * Return true if the target.\n * @param target\n * @returns {boolean}\n */\nexport function isCollection(target: any): boolean {\n return (\n isArrayOrArrayClass(target) ||\n target === Map ||\n target instanceof Map ||\n target === Set ||\n target instanceof Set ||\n target === WeakMap ||\n target instanceof WeakMap ||\n target === WeakSet ||\n target instanceof WeakSet\n );\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isDate = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param target
|
|
7
|
+
* @returns {boolean}
|
|
8
|
+
*/
|
|
9
|
+
function isDate(target) {
|
|
10
|
+
return target === Date || (target instanceof Date && !isNaN(+target));
|
|
11
|
+
}
|
|
12
|
+
exports.isDate = isDate;
|
|
13
|
+
//# sourceMappingURL=isDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isDate.js","sourceRoot":"","sources":["../../../../src/utils/objects/isDate.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,MAAM,CAAC,MAAW;IAChC,OAAO,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACxE,CAAC;AAFD,wBAEC","sourcesContent":["/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isDate(target: any): target is Date {\n return target === Date || (target instanceof Date && !isNaN(+target));\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEmpty = void 0;
|
|
4
|
+
const isNil_1 = require("./isNil");
|
|
5
|
+
/**
|
|
6
|
+
* Return true if the value is an empty string, null or undefined.
|
|
7
|
+
* @param value
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/
|
|
10
|
+
function isEmpty(value) {
|
|
11
|
+
return value === "" || (0, isNil_1.isNil)(value);
|
|
12
|
+
}
|
|
13
|
+
exports.isEmpty = isEmpty;
|
|
14
|
+
//# sourceMappingURL=isEmpty.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEmpty.js","sourceRoot":"","sources":["../../../../src/utils/objects/isEmpty.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAE9B;;;;GAIG;AACH,SAAgB,OAAO,CAAC,KAAU;IAChC,OAAO,KAAK,KAAK,EAAE,IAAI,IAAA,aAAK,EAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAFD,0BAEC","sourcesContent":["import {isNil} from \"./isNil\";\n\n/**\n * Return true if the value is an empty string, null or undefined.\n * @param value\n * @returns {boolean}\n */\nexport function isEmpty(value: any): boolean {\n return value === \"\" || isNil(value);\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isEnumerable = void 0;
|
|
4
|
+
const inheritedDescriptorOf_1 = require("../decorators/inheritedDescriptorOf");
|
|
5
|
+
const classOf_1 = require("./classOf");
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
* @param obj
|
|
9
|
+
* @param key
|
|
10
|
+
*/
|
|
11
|
+
function isEnumerable(obj, key) {
|
|
12
|
+
const klass = (0, classOf_1.classOf)(obj);
|
|
13
|
+
if (klass) {
|
|
14
|
+
const descriptor = (0, inheritedDescriptorOf_1.inheritedDescriptorOf)(klass, key);
|
|
15
|
+
if (descriptor) {
|
|
16
|
+
return descriptor.enumerable;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return Object.prototype.propertyIsEnumerable.call(obj, key);
|
|
20
|
+
}
|
|
21
|
+
exports.isEnumerable = isEnumerable;
|
|
22
|
+
//# sourceMappingURL=isEnumerable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isEnumerable.js","sourceRoot":"","sources":["../../../../src/utils/objects/isEnumerable.ts"],"names":[],"mappings":";;;AAAA,+EAA0E;AAC1E,uCAAkC;AAElC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,GAAQ,EAAE,GAAW;IAChD,MAAM,KAAK,GAAG,IAAA,iBAAO,EAAC,GAAG,CAAC,CAAC;IAE3B,IAAI,KAAK,EAAE;QACT,MAAM,UAAU,GAAG,IAAA,6CAAqB,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAErD,IAAI,UAAU,EAAE;YACd,OAAO,UAAU,CAAC,UAAU,CAAC;SAC9B;KACF;IAED,OAAO,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC9D,CAAC;AAZD,oCAYC","sourcesContent":["import {inheritedDescriptorOf} from \"../decorators/inheritedDescriptorOf\";\nimport {classOf} from \"./classOf\";\n\n/**\n *\n * @param obj\n * @param key\n */\nexport function isEnumerable(obj: any, key: string) {\n const klass = classOf(obj);\n\n if (klass) {\n const descriptor = inheritedDescriptorOf(klass, key);\n\n if (descriptor) {\n return descriptor.enumerable;\n }\n }\n\n return Object.prototype.propertyIsEnumerable.call(obj, key);\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isFunction.js","sourceRoot":"","sources":["../../../../src/utils/objects/isFunction.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,MAAW;IACpC,OAAO,OAAO,MAAM,KAAK,UAAU,CAAC;AACtC,CAAC;AAFD,gCAEC","sourcesContent":["export function isFunction(target: any): target is Function {\n return typeof target === \"function\";\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isInheritedFrom = void 0;
|
|
4
|
+
const classOf_1 = require("./classOf");
|
|
5
|
+
const ancestorOf_1 = require("./ancestorOf");
|
|
6
|
+
const nameOf_1 = require("./nameOf");
|
|
7
|
+
function isInheritedFrom(target, from, deep = 5) {
|
|
8
|
+
if (!target || !from) {
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
target = (0, classOf_1.classOf)(target);
|
|
12
|
+
from = (0, classOf_1.classOf)(from);
|
|
13
|
+
while ((0, nameOf_1.nameOf)(target) !== "") {
|
|
14
|
+
if (!deep) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
if (target === from) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
target = (0, ancestorOf_1.ancestorOf)(target);
|
|
21
|
+
deep--;
|
|
22
|
+
}
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
exports.isInheritedFrom = isInheritedFrom;
|
|
26
|
+
//# sourceMappingURL=isInheritedFrom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isInheritedFrom.js","sourceRoot":"","sources":["../../../../src/utils/objects/isInheritedFrom.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAClC,6CAAwC;AACxC,qCAAgC;AAEhC,SAAgB,eAAe,CAAC,MAAW,EAAE,IAAS,EAAE,IAAI,GAAG,CAAC;IAC9D,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE;QACpB,OAAO,KAAK,CAAC;KACd;IAED,MAAM,GAAG,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC;IACzB,IAAI,GAAG,IAAA,iBAAO,EAAC,IAAI,CAAC,CAAC;IAErB,OAAO,IAAA,eAAM,EAAC,MAAM,CAAC,KAAK,EAAE,EAAE;QAC5B,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,KAAK,CAAC;SACd;QACD,IAAI,MAAM,KAAK,IAAI,EAAE;YACnB,OAAO,IAAI,CAAC;SACb;QAED,MAAM,GAAG,IAAA,uBAAU,EAAC,MAAM,CAAC,CAAC;QAC5B,IAAI,EAAE,CAAC;KACR;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AArBD,0CAqBC","sourcesContent":["import {classOf} from \"./classOf\";\nimport {ancestorOf} from \"./ancestorOf\";\nimport {nameOf} from \"./nameOf\";\n\nexport function isInheritedFrom(target: any, from: any, deep = 5): boolean {\n if (!target || !from) {\n return false;\n }\n\n target = classOf(target);\n from = classOf(from);\n\n while (nameOf(target) !== \"\") {\n if (!deep) {\n return false;\n }\n if (target === from) {\n return true;\n }\n\n target = ancestorOf(target);\n deep--;\n }\n\n return false;\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNil.js","sourceRoot":"","sources":["../../../../src/utils/objects/isNil.ts"],"names":[],"mappings":";;;AAAA,SAAgB,KAAK,CAAC,KAAU;IAC9B,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;AAC/C,CAAC;AAFD,sBAEC","sourcesContent":["export function isNil(value: any): boolean {\n return value === undefined || value === null;\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isNumberOrNumberClass = exports.isNumber = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param target
|
|
7
|
+
* @returns {boolean}
|
|
8
|
+
*/
|
|
9
|
+
function isNumber(target) {
|
|
10
|
+
return typeof target === "number";
|
|
11
|
+
}
|
|
12
|
+
exports.isNumber = isNumber;
|
|
13
|
+
function isNumberOrNumberClass(target) {
|
|
14
|
+
return typeof target === "number" || target instanceof Number || target === Number;
|
|
15
|
+
}
|
|
16
|
+
exports.isNumberOrNumberClass = isNumberOrNumberClass;
|
|
17
|
+
//# sourceMappingURL=isNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isNumber.js","sourceRoot":"","sources":["../../../../src/utils/objects/isNumber.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC;AAED,SAAgB,qBAAqB,CAAC,MAAW;IAC/C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,YAAY,MAAM,IAAI,MAAM,KAAK,MAAM,CAAC;AACrF,CAAC;AAFD,sDAEC","sourcesContent":["/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isNumber(target: any): target is number {\n return typeof target === \"number\";\n}\n\nexport function isNumberOrNumberClass(target: any): target is number {\n return typeof target === \"number\" || target instanceof Number || target === Number;\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isObject.js","sourceRoot":"","sources":["../../../../src/utils/objects/isObject.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC","sourcesContent":["export function isObject(target: any): target is object {\n return typeof target === \"object\";\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isObservable = void 0;
|
|
4
|
+
function isObservable(obj) {
|
|
5
|
+
return !!obj && typeof obj.lift === "function" && typeof obj.subscribe === "function";
|
|
6
|
+
}
|
|
7
|
+
exports.isObservable = isObservable;
|
|
8
|
+
//# sourceMappingURL=isObservable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isObservable.js","sourceRoot":"","sources":["../../../../src/utils/objects/isObservable.ts"],"names":[],"mappings":";;;AAAA,SAAgB,YAAY,CAAI,GAAQ;IACtC,OAAO,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU,CAAC;AACxF,CAAC;AAFD,oCAEC","sourcesContent":["export function isObservable<T>(obj: any): boolean {\n return !!obj && typeof obj.lift === \"function\" && typeof obj.subscribe === \"function\";\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPlainObject = exports.isClassObject = void 0;
|
|
4
|
+
const classOf_1 = require("./classOf");
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param target
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/
|
|
10
|
+
function isClassObject(target) {
|
|
11
|
+
return target === Object;
|
|
12
|
+
}
|
|
13
|
+
exports.isClassObject = isClassObject;
|
|
14
|
+
function isPlainObject(target) {
|
|
15
|
+
return isClassObject((0, classOf_1.classOf)(target)) && target !== Object;
|
|
16
|
+
}
|
|
17
|
+
exports.isPlainObject = isPlainObject;
|
|
18
|
+
//# sourceMappingURL=isPlainObject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPlainObject.js","sourceRoot":"","sources":["../../../../src/utils/objects/isPlainObject.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC;;;;GAIG;AACH,SAAgB,aAAa,CAAC,MAAW;IACvC,OAAO,MAAM,KAAK,MAAM,CAAC;AAC3B,CAAC;AAFD,sCAEC;AAED,SAAgB,aAAa,CAAC,MAAW;IACvC,OAAO,aAAa,CAAC,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC,IAAI,MAAM,KAAK,MAAM,CAAC;AAC7D,CAAC;AAFD,sCAEC","sourcesContent":["import {classOf} from \"./classOf\";\n\n/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isClassObject(target: any): target is Object {\n return target === Object;\n}\n\nexport function isPlainObject(target: any): boolean {\n return isClassObject(classOf(target)) && target !== Object;\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPrimitiveClass = exports.isPrimitive = exports.isPrimitiveOrPrimitiveClass = void 0;
|
|
4
|
+
const isBoolean_1 = require("./isBoolean");
|
|
5
|
+
const isNumber_1 = require("./isNumber");
|
|
6
|
+
const isString_1 = require("./isString");
|
|
7
|
+
/**
|
|
8
|
+
* Return true if the given obj is a primitive.
|
|
9
|
+
* @param target
|
|
10
|
+
* @returns {boolean}
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
function isPrimitiveOrPrimitiveClass(target) {
|
|
14
|
+
return (0, isString_1.isStringOrStringClass)(target) || (0, isNumber_1.isNumberOrNumberClass)(target) || (0, isBoolean_1.isBooleanOrBooleanClass)(target);
|
|
15
|
+
}
|
|
16
|
+
exports.isPrimitiveOrPrimitiveClass = isPrimitiveOrPrimitiveClass;
|
|
17
|
+
/**
|
|
18
|
+
* Return true if the given obj is a primitive.
|
|
19
|
+
* @param target
|
|
20
|
+
* @returns {boolean}
|
|
21
|
+
*/
|
|
22
|
+
function isPrimitive(target) {
|
|
23
|
+
return (0, isString_1.isString)(target) || (0, isNumber_1.isNumber)(target) || (0, isBoolean_1.isBoolean)(target);
|
|
24
|
+
}
|
|
25
|
+
exports.isPrimitive = isPrimitive;
|
|
26
|
+
function isPrimitiveClass(target) {
|
|
27
|
+
return [String, Number, Boolean].includes(target);
|
|
28
|
+
}
|
|
29
|
+
exports.isPrimitiveClass = isPrimitiveClass;
|
|
30
|
+
//# sourceMappingURL=isPrimitive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPrimitive.js","sourceRoot":"","sources":["../../../../src/utils/objects/isPrimitive.ts"],"names":[],"mappings":";;;AAAA,2CAA+D;AAC/D,yCAA2D;AAC3D,yCAA2D;AAE3D;;;;;GAKG;AACH,SAAgB,2BAA2B,CAAC,MAAW;IACrD,OAAO,IAAA,gCAAqB,EAAC,MAAM,CAAC,IAAI,IAAA,gCAAqB,EAAC,MAAM,CAAC,IAAI,IAAA,mCAAuB,EAAC,MAAM,CAAC,CAAC;AAC3G,CAAC;AAFD,kEAEC;AAED;;;;GAIG;AACH,SAAgB,WAAW,CAAC,MAAW;IACrC,OAAO,IAAA,mBAAQ,EAAC,MAAM,CAAC,IAAI,IAAA,mBAAQ,EAAC,MAAM,CAAC,IAAI,IAAA,qBAAS,EAAC,MAAM,CAAC,CAAC;AACnE,CAAC;AAFD,kCAEC;AAED,SAAgB,gBAAgB,CAAC,MAAW;IAC1C,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAFD,4CAEC","sourcesContent":["import {isBoolean, isBooleanOrBooleanClass} from \"./isBoolean\";\nimport {isNumber, isNumberOrNumberClass} from \"./isNumber\";\nimport {isString, isStringOrStringClass} from \"./isString\";\n\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isPrimitiveOrPrimitiveClass(target: any): boolean {\n return isStringOrStringClass(target) || isNumberOrNumberClass(target) || isBooleanOrBooleanClass(target);\n}\n\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n */\nexport function isPrimitive(target: any): boolean {\n return isString(target) || isNumber(target) || isBoolean(target);\n}\n\nexport function isPrimitiveClass(target: any) {\n return [String, Number, Boolean].includes(target);\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPromise = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Tests to see if the object is an ES2015 (ES6) Promise
|
|
6
|
+
* @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}
|
|
7
|
+
* @param target
|
|
8
|
+
* @returns {boolean}
|
|
9
|
+
*/
|
|
10
|
+
function isPromise(target) {
|
|
11
|
+
return (target === Promise ||
|
|
12
|
+
target instanceof Promise ||
|
|
13
|
+
(!!target && typeof target.subscribe !== "function" && typeof target.then === "function"));
|
|
14
|
+
}
|
|
15
|
+
exports.isPromise = isPromise;
|
|
16
|
+
//# sourceMappingURL=isPromise.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isPromise.js","sourceRoot":"","sources":["../../../../src/utils/objects/isPromise.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,SAAS,CAAU,MAAW;IAC5C,OAAO,CACL,MAAM,KAAK,OAAO;QAClB,MAAM,YAAY,OAAO;QACzB,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAC1F,CAAC;AACJ,CAAC;AAND,8BAMC","sourcesContent":["/**\n * Tests to see if the object is an ES2015 (ES6) Promise\n * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}\n * @param target\n * @returns {boolean}\n */\nexport function isPromise<T = any>(target: any): target is Promise<T> {\n return (\n target === Promise ||\n target instanceof Promise ||\n (!!target && typeof target.subscribe !== \"function\" && typeof target.then === \"function\")\n );\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isProtectedKey = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Prevent prototype pollution vulnerability
|
|
6
|
+
* @param key
|
|
7
|
+
*/
|
|
8
|
+
function isProtectedKey(key) {
|
|
9
|
+
return ["__proto__", "constructor", "prototype"].includes(key);
|
|
10
|
+
}
|
|
11
|
+
exports.isProtectedKey = isProtectedKey;
|
|
12
|
+
//# sourceMappingURL=isProtectedKey.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isProtectedKey.js","sourceRoot":"","sources":["../../../../src/utils/objects/isProtectedKey.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AACjE,CAAC;AAFD,wCAEC","sourcesContent":["/**\n * Prevent prototype pollution vulnerability\n * @param key\n */\nexport function isProtectedKey(key: string) {\n return [\"__proto__\", \"constructor\", \"prototype\"].includes(key);\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isSerializable = void 0;
|
|
4
|
+
const isStream_1 = require("./isStream");
|
|
5
|
+
const isBoolean_1 = require("./isBoolean");
|
|
6
|
+
const isNumber_1 = require("./isNumber");
|
|
7
|
+
const isString_1 = require("./isString");
|
|
8
|
+
const isNil_1 = require("./isNil");
|
|
9
|
+
function isSerializable(data) {
|
|
10
|
+
return !(Buffer.isBuffer(data) || (0, isStream_1.isStream)(data) || (0, isBoolean_1.isBoolean)(data) || (0, isNumber_1.isNumber)(data) || (0, isString_1.isString)(data) || (0, isNil_1.isNil)(data));
|
|
11
|
+
}
|
|
12
|
+
exports.isSerializable = isSerializable;
|
|
13
|
+
//# sourceMappingURL=isSerializable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isSerializable.js","sourceRoot":"","sources":["../../../../src/utils/objects/isSerializable.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,2CAAsC;AACtC,yCAAoC;AACpC,yCAAoC;AACpC,mCAA8B;AAE9B,SAAgB,cAAc,CAAC,IAAS;IACtC,OAAO,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,qBAAS,EAAC,IAAI,CAAC,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,aAAK,EAAC,IAAI,CAAC,CAAC,CAAC;AAC1H,CAAC;AAFD,wCAEC","sourcesContent":["import {isStream} from \"./isStream\";\nimport {isBoolean} from \"./isBoolean\";\nimport {isNumber} from \"./isNumber\";\nimport {isString} from \"./isString\";\nimport {isNil} from \"./isNil\";\n\nexport function isSerializable(data: any) {\n return !(Buffer.isBuffer(data) || isStream(data) || isBoolean(data) || isNumber(data) || isString(data) || isNil(data));\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isStream = void 0;
|
|
4
|
+
function isStream(obj) {
|
|
5
|
+
return obj !== null && typeof obj === "object" && typeof obj.pipe === "function";
|
|
6
|
+
}
|
|
7
|
+
exports.isStream = isStream;
|
|
8
|
+
//# sourceMappingURL=isStream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isStream.js","sourceRoot":"","sources":["../../../../src/utils/objects/isStream.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAC,GAAQ;IAC/B,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU,CAAC;AACnF,CAAC;AAFD,4BAEC","sourcesContent":["export function isStream(obj: any): boolean {\n return obj !== null && typeof obj === \"object\" && typeof obj.pipe === \"function\";\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isStringOrStringClass = exports.isString = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @param target
|
|
6
|
+
* @returns {boolean}
|
|
7
|
+
*/
|
|
8
|
+
function isString(target) {
|
|
9
|
+
return typeof target === "string";
|
|
10
|
+
}
|
|
11
|
+
exports.isString = isString;
|
|
12
|
+
function isStringOrStringClass(target) {
|
|
13
|
+
return typeof target === "string" || target instanceof String || target === String;
|
|
14
|
+
}
|
|
15
|
+
exports.isStringOrStringClass = isStringOrStringClass;
|
|
16
|
+
//# sourceMappingURL=isString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isString.js","sourceRoot":"","sources":["../../../../src/utils/objects/isString.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC;AAED,SAAgB,qBAAqB,CAAC,MAAW;IAC/C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,YAAY,MAAM,IAAI,MAAM,KAAK,MAAM,CAAC;AACrF,CAAC;AAFD,sDAEC","sourcesContent":["/**\n * @param target\n * @returns {boolean}\n */\nexport function isString(target: any): target is string {\n return typeof target === \"string\";\n}\n\nexport function isStringOrStringClass(target: any): target is string {\n return typeof target === \"string\" || target instanceof String || target === String;\n}\n"]}
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isSymbolOrSymbolClass = exports.isSymbol = void 0;
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* @param target
|
|
7
|
+
*/
|
|
8
|
+
function isSymbol(target) {
|
|
9
|
+
return typeof target === "symbol";
|
|
10
|
+
}
|
|
11
|
+
exports.isSymbol = isSymbol;
|
|
12
|
+
function isSymbolOrSymbolClass(target) {
|
|
13
|
+
return typeof target === "symbol" || target instanceof Symbol || target === Symbol;
|
|
14
|
+
}
|
|
15
|
+
exports.isSymbolOrSymbolClass = isSymbolOrSymbolClass;
|
|
16
|
+
//# sourceMappingURL=isSymbol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isSymbol.js","sourceRoot":"","sources":["../../../../src/utils/objects/isSymbol.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC;AAED,SAAgB,qBAAqB,CAAC,MAAW;IAC/C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,YAAY,MAAM,IAAI,MAAM,KAAK,MAAM,CAAC;AACrF,CAAC;AAFD,sDAEC","sourcesContent":["/**\n *\n * @param target\n */\nexport function isSymbol(target: any): target is symbol {\n return typeof target === \"symbol\";\n}\n\nexport function isSymbolOrSymbolClass(target: any): target is symbol {\n return typeof target === \"symbol\" || target instanceof Symbol || target === Symbol;\n}\n"]}
|
|
File without changes
|