@tsed/core 7.0.0-beta.1 → 7.0.0-beta.4

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.
Files changed (141) hide show
  1. package/jest.config.js +14 -0
  2. package/lib/cjs/decorators/configurable.js +2 -6
  3. package/lib/cjs/decorators/configurable.js.map +1 -1
  4. package/lib/cjs/decorators/deprecated.js +2 -1
  5. package/lib/cjs/decorators/deprecated.js.map +1 -1
  6. package/lib/cjs/decorators/enumerable.js +2 -6
  7. package/lib/cjs/decorators/enumerable.js.map +1 -1
  8. package/lib/cjs/decorators/notConfigurable.js +0 -4
  9. package/lib/cjs/decorators/notConfigurable.js.map +1 -1
  10. package/lib/cjs/decorators/notEnumerable.js +0 -4
  11. package/lib/cjs/decorators/notEnumerable.js.map +1 -1
  12. package/lib/cjs/decorators/readOnly.js +0 -4
  13. package/lib/cjs/decorators/readOnly.js.map +1 -1
  14. package/lib/cjs/decorators/writable.js +2 -6
  15. package/lib/cjs/decorators/writable.js.map +1 -1
  16. package/lib/cjs/domain/AnyToPromise.js +10 -10
  17. package/lib/cjs/domain/AnyToPromise.js.map +1 -1
  18. package/lib/cjs/errors/UnsupportedDecoratorType.js +5 -3
  19. package/lib/cjs/errors/UnsupportedDecoratorType.js.map +1 -1
  20. package/lib/cjs/index.js +81 -5
  21. package/lib/cjs/index.js.map +1 -1
  22. package/lib/cjs/package.json +3 -0
  23. package/lib/cjs/utils/decorators/decorateMethodsOf.js +1 -0
  24. package/lib/cjs/utils/decorators/decorateMethodsOf.js.map +1 -1
  25. package/lib/cjs/utils/imports/importPackage.js +5 -1
  26. package/lib/cjs/utils/imports/importPackage.js.map +1 -1
  27. package/lib/cjs/utils/objects/deepClone.js +6 -0
  28. package/lib/cjs/utils/objects/deepClone.js.map +1 -1
  29. package/lib/cjs/utils/objects/deepMerge.js.map +1 -1
  30. package/lib/cjs/utils/objects/getConstructorArgNames.js +6 -1
  31. package/lib/cjs/utils/objects/getConstructorArgNames.js.map +1 -1
  32. package/lib/cjs/utils/objects/getValue.js +1 -1
  33. package/lib/cjs/utils/objects/getValue.js.map +1 -1
  34. package/lib/cjs/utils/objects/isBuffer.js +13 -0
  35. package/lib/cjs/utils/objects/isBuffer.js.map +1 -0
  36. package/lib/cjs/utils/objects/isClass.js +3 -1
  37. package/lib/cjs/utils/objects/isClass.js.map +1 -1
  38. package/lib/cjs/utils/objects/methodsOf.js.map +1 -1
  39. package/lib/esm/decorators/configurable.js +1 -5
  40. package/lib/esm/decorators/configurable.js.map +1 -1
  41. package/lib/esm/decorators/deprecated.js +2 -1
  42. package/lib/esm/decorators/deprecated.js.map +1 -1
  43. package/lib/esm/decorators/enumerable.js +1 -5
  44. package/lib/esm/decorators/enumerable.js.map +1 -1
  45. package/lib/esm/decorators/notConfigurable.js +1 -5
  46. package/lib/esm/decorators/notConfigurable.js.map +1 -1
  47. package/lib/esm/decorators/notEnumerable.js +1 -5
  48. package/lib/esm/decorators/notEnumerable.js.map +1 -1
  49. package/lib/esm/decorators/readOnly.js +1 -5
  50. package/lib/esm/decorators/readOnly.js.map +1 -1
  51. package/lib/esm/decorators/storeFn.js +1 -1
  52. package/lib/esm/decorators/storeMerge.js +1 -1
  53. package/lib/esm/decorators/storeSet.js +1 -1
  54. package/lib/esm/decorators/writable.js +1 -5
  55. package/lib/esm/decorators/writable.js.map +1 -1
  56. package/lib/esm/domain/AnyToPromise.js +3 -3
  57. package/lib/esm/domain/Metadata.js +1 -1
  58. package/lib/esm/domain/Store.js +8 -8
  59. package/lib/esm/errors/UnsupportedDecoratorType.js +3 -1
  60. package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -1
  61. package/lib/esm/index.js +81 -5
  62. package/lib/esm/index.js.map +1 -1
  63. package/lib/esm/package.json +3 -0
  64. package/lib/esm/utils/decorators/decorateMethodsOf.js +6 -5
  65. package/lib/esm/utils/decorators/decorateMethodsOf.js.map +1 -1
  66. package/lib/esm/utils/decorators/decoratorArgs.js +1 -1
  67. package/lib/esm/utils/decorators/decoratorTypeOf.js +2 -2
  68. package/lib/esm/utils/decorators/inheritedDescriptorOf.js +1 -1
  69. package/lib/esm/utils/decorators/useMethodDecorators.js +1 -1
  70. package/lib/esm/utils/objects/ancestorsOf.js +3 -3
  71. package/lib/esm/utils/objects/cleanObject.js +1 -1
  72. package/lib/esm/utils/objects/createInstance.js +1 -1
  73. package/lib/esm/utils/objects/deepClone.js +12 -6
  74. package/lib/esm/utils/objects/deepClone.js.map +1 -1
  75. package/lib/esm/utils/objects/deepMerge.js +5 -5
  76. package/lib/esm/utils/objects/deepMerge.js.map +1 -1
  77. package/lib/esm/utils/objects/getClassOrSymbol.js +2 -2
  78. package/lib/esm/utils/objects/getConstructorArgNames.js +7 -2
  79. package/lib/esm/utils/objects/getConstructorArgNames.js.map +1 -1
  80. package/lib/esm/utils/objects/getEnumerableKeys.js +2 -2
  81. package/lib/esm/utils/objects/getValue.js +4 -4
  82. package/lib/esm/utils/objects/getValue.js.map +1 -1
  83. package/lib/esm/utils/objects/isArrowFn.js +1 -1
  84. package/lib/esm/utils/objects/isBuffer.js +9 -0
  85. package/lib/esm/utils/objects/isBuffer.js.map +1 -0
  86. package/lib/esm/utils/objects/isClass.js +10 -8
  87. package/lib/esm/utils/objects/isClass.js.map +1 -1
  88. package/lib/esm/utils/objects/isCollection.js +1 -1
  89. package/lib/esm/utils/objects/isEmpty.js +1 -1
  90. package/lib/esm/utils/objects/isEnumerable.js +2 -2
  91. package/lib/esm/utils/objects/isInheritedFrom.js +3 -3
  92. package/lib/esm/utils/objects/isPlainObject.js +1 -1
  93. package/lib/esm/utils/objects/isPrimitive.js +3 -3
  94. package/lib/esm/utils/objects/isSerializable.js +5 -5
  95. package/lib/esm/utils/objects/methodsOf.js +3 -3
  96. package/lib/esm/utils/objects/methodsOf.js.map +1 -1
  97. package/lib/esm/utils/objects/objectKeys.js +1 -1
  98. package/lib/esm/utils/objects/primitiveOf.js +3 -3
  99. package/lib/esm/utils/objects/prototypeOf.js +1 -1
  100. package/lib/esm/utils/objects/setValue.js +1 -1
  101. package/lib/esm/utils/objects/toMap.js +2 -2
  102. package/lib/esm/utils/objects/toStringConstructor.js +1 -1
  103. package/lib/esm/utils/proxyDelegation.js +1 -1
  104. package/lib/types/decorators/configurable.d.ts +0 -1
  105. package/lib/types/decorators/enumerable.d.ts +0 -1
  106. package/lib/types/decorators/notConfigurable.d.ts +0 -1
  107. package/lib/types/decorators/notEnumerable.d.ts +0 -1
  108. package/lib/types/decorators/readOnly.d.ts +0 -1
  109. package/lib/types/decorators/writable.d.ts +0 -1
  110. package/lib/types/index.d.ts +80 -5
  111. package/lib/types/utils/objects/deepMerge.d.ts +1 -1
  112. package/lib/types/utils/objects/isBuffer.d.ts +7 -0
  113. package/lib/types/utils/objects/methodsOf.d.ts +5 -1
  114. package/package.json +8 -5
  115. package/readme.md +1 -2
  116. package/tsconfig.compile.esm.json +1 -12
  117. package/lib/cjs/decorators/index.js +0 -18
  118. package/lib/cjs/decorators/index.js.map +0 -1
  119. package/lib/cjs/domain/index.js +0 -11
  120. package/lib/cjs/domain/index.js.map +0 -1
  121. package/lib/cjs/interfaces/index.js +0 -3
  122. package/lib/cjs/interfaces/index.js.map +0 -1
  123. package/lib/cjs/utils/index.js +0 -19
  124. package/lib/cjs/utils/index.js.map +0 -1
  125. package/lib/cjs/utils/objects/index.js +0 -46
  126. package/lib/cjs/utils/objects/index.js.map +0 -1
  127. package/lib/esm/decorators/index.js +0 -15
  128. package/lib/esm/decorators/index.js.map +0 -1
  129. package/lib/esm/domain/index.js +0 -8
  130. package/lib/esm/domain/index.js.map +0 -1
  131. package/lib/esm/interfaces/index.js +0 -2
  132. package/lib/esm/interfaces/index.js.map +0 -1
  133. package/lib/esm/utils/index.js +0 -16
  134. package/lib/esm/utils/index.js.map +0 -1
  135. package/lib/esm/utils/objects/index.js +0 -43
  136. package/lib/esm/utils/objects/index.js.map +0 -1
  137. package/lib/types/decorators/index.d.ts +0 -14
  138. package/lib/types/domain/index.d.ts +0 -7
  139. package/lib/types/interfaces/index.d.ts +0 -4
  140. package/lib/types/utils/index.d.ts +0 -13
  141. package/lib/types/utils/objects/index.d.ts +0 -42
@@ -1 +1 @@
1
- {"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../../../src/utils/objects/deepMerge.ts"],"names":[],"mappings":"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","sourcesContent":["import {createInstance} from \"./createInstance\";\nimport {isFunction} from \"./isFunction\";\nimport {isPrimitive} from \"./isPrimitive\";\nimport {isSymbol} from \"./isSymbol\";\nimport {objectKeys} from \"./objectKeys\";\n\nexport type DeepMergeReducerCB = (collection: any[], value: any, options?: DeepMergeOptions) => any;\nexport type DeepMergeComparatorCB = (item: any, ref: any) => boolean;\n\nexport interface DeepMergeOptions {\n reducers?: Record<string, DeepMergeReducerCB>;\n parentKey?: string;\n cleanUndefinedProps?: boolean;\n}\n\nexport function mergeReducerBuilder(cb: DeepMergeComparatorCB) {\n return (collection: any[], value: any, options: DeepMergeOptions) => {\n const index = collection.findIndex((item) => cb(item, value));\n\n if (index === -1) {\n return [...collection, value];\n }\n\n collection[index] = deepMerge(collection[index], value, options);\n\n return collection;\n };\n}\n\nconst defaultReducer = mergeReducerBuilder((a, b) => a === b);\n\nfunction getReducer({reducers, parentKey}: DeepMergeOptions) {\n if (!reducers) {\n return defaultReducer;\n }\n\n if (parentKey && reducers[parentKey]) {\n return reducers[parentKey];\n }\n\n return reducers[\"default\"] || defaultReducer;\n}\n\nfunction shouldReturnObj(obj: any, source: any) {\n return isPrimitive(obj) || isSymbol(obj) || isFunction(obj) || source === undefined;\n}\n\nfunction shouldReturnSource(obj: any, source: any) {\n return obj === undefined || obj === null || (obj === \"\" && source !== \"\");\n}\n\nexport function deepMerge<T extends any = any, C extends any = any>(\n source: T & any,\n obj: C & any,\n options: DeepMergeOptions = {}\n): (T & C) | undefined | null {\n if (shouldReturnSource(obj, source)) {\n return source as any;\n }\n\n if (shouldReturnObj(obj, source)) {\n return obj;\n }\n\n if (Array.isArray(source)) {\n const reducer = getReducer(options);\n\n return [].concat(obj).reduce((out: any[], value: any) => reducer(out, value, options), [...source]);\n }\n\n return [...objectKeys(source), ...objectKeys(obj)].reduce((out: any, key: string) => {\n const src = source && source[key];\n const value = deepMerge(src, obj && obj[key], {\n ...options,\n parentKey: key\n });\n\n if (options.cleanUndefinedProps && value === undefined) {\n return out;\n }\n\n return {\n ...out,\n [key]: value\n };\n }, createInstance(source));\n}\n"]}
1
+ {"version":3,"file":"deepMerge.js","sourceRoot":"","sources":["../../../../src/utils/objects/deepMerge.ts"],"names":[],"mappings":"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","sourcesContent":["import {createInstance} from \"./createInstance\";\nimport {isFunction} from \"./isFunction\";\nimport {isPrimitive} from \"./isPrimitive\";\nimport {isSymbol} from \"./isSymbol\";\nimport {objectKeys} from \"./objectKeys\";\n\nexport type DeepMergeReducerCB = (collection: any[], value: any, options?: DeepMergeOptions) => any;\nexport type DeepMergeComparatorCB = (item: any, ref: any) => boolean;\n\nexport interface DeepMergeOptions {\n reducers?: Record<string, DeepMergeReducerCB>;\n parentKey?: string;\n cleanUndefinedProps?: boolean;\n}\n\nexport function mergeReducerBuilder(cb: DeepMergeComparatorCB) {\n return (collection: any[], value: any, options: DeepMergeOptions) => {\n const index = collection.findIndex((item) => cb(item, value));\n\n if (index === -1) {\n return [...collection, value];\n }\n\n collection[index] = deepMerge(collection[index], value, options);\n\n return collection;\n };\n}\n\nconst defaultReducer = mergeReducerBuilder((a, b) => a === b);\n\nfunction getReducer({reducers, parentKey}: DeepMergeOptions) {\n if (!reducers) {\n return defaultReducer;\n }\n\n if (parentKey && reducers[parentKey]) {\n return reducers[parentKey];\n }\n\n return reducers[\"default\"] || defaultReducer;\n}\n\nfunction shouldReturnObj(obj: any, source: any) {\n return isPrimitive(obj) || isSymbol(obj) || isFunction(obj) || source === undefined;\n}\n\nfunction shouldReturnSource(obj: any, source: any) {\n return obj === undefined || obj === null || (obj === \"\" && source !== \"\");\n}\n\nexport function deepMerge<T = any, C = any>(source: T & any, obj: C & any, options: DeepMergeOptions = {}): (T & C) | undefined | null {\n if (shouldReturnSource(obj, source)) {\n return source as any;\n }\n\n if (shouldReturnObj(obj, source)) {\n return obj;\n }\n\n if (Array.isArray(source)) {\n const reducer = getReducer(options);\n\n return [].concat(obj).reduce((out: any[], value: any) => reducer(out, value, options), [...source]);\n }\n\n return [...objectKeys(source), ...objectKeys(obj)].reduce((out: any, key: string) => {\n const src = source && source[key];\n const value = deepMerge(src, obj && obj[key], {\n ...options,\n parentKey: key\n });\n\n if (options.cleanUndefinedProps && value === undefined) {\n return out;\n }\n\n return {\n ...out,\n [key]: value\n };\n }, createInstance(source));\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { classOf } from "./classOf";
2
- import { isClass } from "./isClass";
1
+ import { classOf } from "./classOf.js";
2
+ import { isClass } from "./isClass.js";
3
3
  export function getClassOrSymbol(target) {
4
4
  return isClass(target) ? classOf(target) : target;
5
5
  }
@@ -1,5 +1,10 @@
1
- import { toStringConstructor } from "./toStringConstructor";
1
+ import { toStringConstructor } from "./toStringConstructor.js";
2
2
  export function getConstructorArgNames(target) {
3
- return toStringConstructor(target).replace("constructor(", "").replace(")", "").split(", ").filter(Boolean);
3
+ return toStringConstructor(target)
4
+ .split("constructor(")[1]
5
+ .split(")")[0]
6
+ .split(", ")
7
+ .filter(Boolean)
8
+ .map((s) => s.trim());
4
9
  }
5
10
  //# sourceMappingURL=getConstructorArgNames.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getConstructorArgNames.js","sourceRoot":"","sources":["../../../../src/utils/objects/getConstructorArgNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,UAAU,sBAAsB,CAAC,MAAW;IAChD,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAC9G,CAAC","sourcesContent":["import {toStringConstructor} from \"./toStringConstructor\";\n\nexport function getConstructorArgNames(target: any) {\n return toStringConstructor(target).replace(\"constructor(\", \"\").replace(\")\", \"\").split(\", \").filter(Boolean);\n}\n"]}
1
+ {"version":3,"file":"getConstructorArgNames.js","sourceRoot":"","sources":["../../../../src/utils/objects/getConstructorArgNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAE1D,MAAM,UAAU,sBAAsB,CAAC,MAAW;IAChD,OAAO,mBAAmB,CAAC,MAAM,CAAC;SAC/B,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;SACxB,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACb,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,OAAO,CAAC;SACf,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC1B,CAAC","sourcesContent":["import {toStringConstructor} from \"./toStringConstructor\";\n\nexport function getConstructorArgNames(target: any) {\n return toStringConstructor(target)\n .split(\"constructor(\")[1]\n .split(\")\")[0]\n .split(\", \")\n .filter(Boolean)\n .map((s) => s.trim());\n}\n"]}
@@ -1,5 +1,5 @@
1
- import { isEnumerable } from "./isEnumerable";
2
- import { isProtectedKey } from "./isProtectedKey";
1
+ import { isEnumerable } from "./isEnumerable.js";
2
+ import { isProtectedKey } from "./isProtectedKey.js";
3
3
  /**
4
4
  * Return all enumerable keys of the given object
5
5
  * @param obj
@@ -1,6 +1,6 @@
1
- import { isFunction } from "./isFunction";
2
- import { isObject } from "./isObject";
3
- import { isString } from "./isString";
1
+ import { isFunction } from "./isFunction.js";
2
+ import { isObject } from "./isObject.js";
3
+ import { isString } from "./isString.js";
4
4
  const mapOptions = (args) => {
5
5
  const [expression, scope, defaultValue, separator = "."] = args;
6
6
  if (isObject(scope) || isString(expression)) {
@@ -31,7 +31,7 @@ export function getValue(...args) {
31
31
  const keys = expression.split(separator);
32
32
  const getValue = (key) => {
33
33
  if (scope) {
34
- if (scope[key] !== undefined || key in scope) {
34
+ if (scope[key] !== undefined || (isObject(scope) && key in scope)) {
35
35
  return scope[key];
36
36
  }
37
37
  if (isFunction(scope.get)) {
@@ -1 +1 @@
1
- {"version":3,"file":"getValue.js","sourceRoot":"","sources":["../../../../src/utils/objects/getValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,IAAW,EAAE,EAAE;IACjC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC;IAEhE,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,EAAE;QAC3C,OAAO;YACL,UAAU;YACV,KAAK;YACL,YAAY;YACZ,SAAS;SACV,CAAC;KACH;IAED,OAAO;QACL,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,UAAU;QACjB,YAAY;QACZ,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAkCF,MAAM,UAAU,QAAQ,CAAC,GAAG,IAAW;IACrC,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAC1B,MAAM,EAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAC,GAAG,OAAO,CAAC;IAEtD,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,KAAK,CAAC;KACd;IAED,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,YAAY,CAAC;KACrB;IAED,MAAM,IAAI,GAAa,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE;QAC/B,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,GAAG,IAAI,KAAK,EAAE;gBAC5C,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;aACnB;YAED,IAAI,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;gBACzB,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aACvB;SACF;IACH,CAAC,CAAC;IAEF,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAG,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,GAAE;IAE3D,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;AACpD,CAAC","sourcesContent":["import {isFunction} from \"./isFunction\";\nimport {isObject} from \"./isObject\";\nimport {isString} from \"./isString\";\n\nconst mapOptions = (args: any[]) => {\n const [expression, scope, defaultValue, separator = \".\"] = args;\n\n if (isObject(scope) || isString(expression)) {\n return {\n expression,\n scope,\n defaultValue,\n separator\n };\n }\n\n return {\n expression: scope,\n scope: expression,\n defaultValue,\n separator\n };\n};\n\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @returns {any}\n */\nexport function getValue<T = any>(scope: any, expression: string | undefined): T | undefined;\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @param defaultValue\n * @param separator\n * @returns {any}\n */\nexport function getValue<T = any>(scope: any, expression: string | undefined, defaultValue: T, separator?: string): T;\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @returns {any}\n */\nexport function getValue<T = any>(expression: string | undefined, scope: any): T | undefined;\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @param defaultValue\n * @param separator\n * @returns {any}\n */\nexport function getValue<T = any>(expression: string | undefined, scope: any, defaultValue: T, separator?: string): T;\nexport function getValue(...args: any[]) {\n const options = mapOptions(args);\n let scope = options.scope;\n const {expression, defaultValue, separator} = options;\n\n if (!expression) {\n return scope;\n }\n\n if (!scope) {\n return defaultValue;\n }\n\n const keys: string[] = expression.split(separator);\n\n const getValue = (key: string) => {\n if (scope) {\n if (scope[key] !== undefined || key in scope) {\n return scope[key];\n }\n\n if (isFunction(scope.get)) {\n return scope.get(key);\n }\n }\n };\n\n while ((scope = getValue(keys.shift()!)) && keys.length) {}\n\n return scope === undefined ? defaultValue : scope;\n}\n"]}
1
+ {"version":3,"file":"getValue.js","sourceRoot":"","sources":["../../../../src/utils/objects/getValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAAM,UAAU,GAAG,CAAC,IAAW,EAAE,EAAE;IACjC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC;IAEhE,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,EAAE;QAC3C,OAAO;YACL,UAAU;YACV,KAAK;YACL,YAAY;YACZ,SAAS;SACV,CAAC;KACH;IAED,OAAO;QACL,UAAU,EAAE,KAAK;QACjB,KAAK,EAAE,UAAU;QACjB,YAAY;QACZ,SAAS;KACV,CAAC;AACJ,CAAC,CAAC;AAkCF,MAAM,UAAU,QAAQ,CAAC,GAAG,IAAW;IACrC,MAAM,OAAO,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;IACjC,IAAI,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IAC1B,MAAM,EAAC,UAAU,EAAE,YAAY,EAAE,SAAS,EAAC,GAAG,OAAO,CAAC;IAEtD,IAAI,CAAC,UAAU,EAAE;QACf,OAAO,KAAK,CAAC;KACd;IAED,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,YAAY,CAAC;KACrB;IAED,MAAM,IAAI,GAAa,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAEnD,MAAM,QAAQ,GAAG,CAAC,GAAW,EAAE,EAAE;QAC/B,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,CAAC,GAAG,CAAC,KAAK,SAAS,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,GAAG,IAAI,KAAK,CAAC,EAAE;gBACjE,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC;aACnB;YAED,IAAI,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;gBACzB,OAAO,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;aACvB;SACF;IACH,CAAC,CAAC;IAEF,OAAO,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAG,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,GAAE;IAE3D,OAAO,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC;AACpD,CAAC","sourcesContent":["import {isFunction} from \"./isFunction\";\nimport {isObject} from \"./isObject\";\nimport {isString} from \"./isString\";\n\nconst mapOptions = (args: any[]) => {\n const [expression, scope, defaultValue, separator = \".\"] = args;\n\n if (isObject(scope) || isString(expression)) {\n return {\n expression,\n scope,\n defaultValue,\n separator\n };\n }\n\n return {\n expression: scope,\n scope: expression,\n defaultValue,\n separator\n };\n};\n\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @returns {any}\n */\nexport function getValue<T = any>(scope: any, expression: string | undefined): T | undefined;\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @param defaultValue\n * @param separator\n * @returns {any}\n */\nexport function getValue<T = any>(scope: any, expression: string | undefined, defaultValue: T, separator?: string): T;\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @returns {any}\n */\nexport function getValue<T = any>(expression: string | undefined, scope: any): T | undefined;\n/**\n * Get value from scope\n * @param {string} expression\n * @param scope\n * @param defaultValue\n * @param separator\n * @returns {any}\n */\nexport function getValue<T = any>(expression: string | undefined, scope: any, defaultValue: T, separator?: string): T;\nexport function getValue(...args: any[]) {\n const options = mapOptions(args);\n let scope = options.scope;\n const {expression, defaultValue, separator} = options;\n\n if (!expression) {\n return scope;\n }\n\n if (!scope) {\n return defaultValue;\n }\n\n const keys: string[] = expression.split(separator);\n\n const getValue = (key: string) => {\n if (scope) {\n if (scope[key] !== undefined || (isObject(scope) && key in scope)) {\n return scope[key];\n }\n\n if (isFunction(scope.get)) {\n return scope.get(key);\n }\n }\n };\n\n while ((scope = getValue(keys.shift()!)) && keys.length) {}\n\n return scope === undefined ? defaultValue : scope;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { isFunction } from "./isFunction";
1
+ import { isFunction } from "./isFunction.js";
2
2
  export function isArrowFn(target) {
3
3
  return target && isFunction(target) && !target.prototype;
4
4
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Tests to see if the object is Buffer
3
+ * @param target
4
+ * @returns {boolean}
5
+ */
6
+ export function isBuffer(target) {
7
+ return target === Buffer || target instanceof Buffer;
8
+ }
9
+ //# sourceMappingURL=isBuffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isBuffer.js","sourceRoot":"","sources":["../../../../src/utils/objects/isBuffer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,UAAU,QAAQ,CAAC,MAAW;IAClC,OAAO,MAAM,KAAK,MAAM,IAAI,MAAM,YAAY,MAAM,CAAC;AACvD,CAAC","sourcesContent":["/**\n * Tests to see if the object is Buffer\n * @param target\n * @returns {boolean}\n */\nexport function isBuffer(target: any): target is Buffer {\n return target === Buffer || target instanceof Buffer;\n}\n"]}
@@ -1,10 +1,11 @@
1
- import { isArrayOrArrayClass } from "./isArray";
2
- import { isArrowFn } from "./isArrowFn";
3
- import { isDate } from "./isDate";
4
- import { isClassObject } from "./isPlainObject";
5
- import { isPrimitiveOrPrimitiveClass } from "./isPrimitive";
6
- import { isPromise } from "./isPromise";
7
- import { isSymbol } from "./isSymbol";
1
+ import { isArrayOrArrayClass } from "./isArray.js";
2
+ import { isArrowFn } from "./isArrowFn.js";
3
+ import { isBuffer } from "./isBuffer.js";
4
+ import { isDate } from "./isDate.js";
5
+ import { isClassObject } from "./isPlainObject.js";
6
+ import { isPrimitiveOrPrimitiveClass } from "./isPrimitive.js";
7
+ import { isPromise } from "./isPromise.js";
8
+ import { isSymbol } from "./isSymbol.js";
8
9
  export function isClass(target) {
9
10
  if (!target) {
10
11
  return false;
@@ -17,6 +18,7 @@ export function isClass(target) {
17
18
  isClassObject(target) ||
18
19
  isDate(target) ||
19
20
  isPromise(target) ||
20
- isArrayOrArrayClass(target));
21
+ isArrayOrArrayClass(target) ||
22
+ isBuffer(target));
21
23
  }
22
24
  //# sourceMappingURL=isClass.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isClass.js","sourceRoot":"","sources":["../../../../src/utils/objects/isClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,2BAA2B,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAAM,UAAU,OAAO,CAAC,MAAW;IACjC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,KAAK,CAAC;KACd;IAED,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE;QACrB,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CAAC,CACN,QAAQ,CAAC,MAAM,CAAC;QAChB,2BAA2B,CAAC,MAAM,CAAC;QACnC,aAAa,CAAC,MAAM,CAAC;QACrB,MAAM,CAAC,MAAM,CAAC;QACd,SAAS,CAAC,MAAM,CAAC;QACjB,mBAAmB,CAAC,MAAM,CAAC,CAC5B,CAAC;AACJ,CAAC","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"]}
1
+ {"version":3,"file":"isClass.js","sourceRoot":"","sources":["../../../../src/utils/objects/isClass.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAC,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AACpC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAChC,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAC,2BAA2B,EAAC,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AACtC,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAC;AAEpC,MAAM,UAAU,OAAO,CAAC,MAAW;IACjC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,KAAK,CAAC;KACd;IAED,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE;QACrB,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CAAC,CACN,QAAQ,CAAC,MAAM,CAAC;QAChB,2BAA2B,CAAC,MAAM,CAAC;QACnC,aAAa,CAAC,MAAM,CAAC;QACrB,MAAM,CAAC,MAAM,CAAC;QACd,SAAS,CAAC,MAAM,CAAC;QACjB,mBAAmB,CAAC,MAAM,CAAC;QAC3B,QAAQ,CAAC,MAAM,CAAC,CACjB,CAAC;AACJ,CAAC","sourcesContent":["import {isArrayOrArrayClass} from \"./isArray\";\nimport {isArrowFn} from \"./isArrowFn\";\nimport {isBuffer} from \"./isBuffer\";\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 isBuffer(target)\n );\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { isArrayOrArrayClass } from "./isArray";
1
+ import { isArrayOrArrayClass } from "./isArray.js";
2
2
  /**
3
3
  * Return true if the target.
4
4
  * @param target
@@ -1,4 +1,4 @@
1
- import { isNil } from "./isNil";
1
+ import { isNil } from "./isNil.js";
2
2
  /**
3
3
  * Return true if the value is an empty string, null or undefined.
4
4
  * @param value
@@ -1,5 +1,5 @@
1
- import { inheritedDescriptorOf } from "../decorators/inheritedDescriptorOf";
2
- import { classOf } from "./classOf";
1
+ import { inheritedDescriptorOf } from "../decorators/inheritedDescriptorOf.js";
2
+ import { classOf } from "./classOf.js";
3
3
  /**
4
4
  *
5
5
  * @param obj
@@ -1,6 +1,6 @@
1
- import { classOf } from "./classOf";
2
- import { ancestorOf } from "./ancestorOf";
3
- import { nameOf } from "./nameOf";
1
+ import { classOf } from "./classOf.js";
2
+ import { ancestorOf } from "./ancestorOf.js";
3
+ import { nameOf } from "./nameOf.js";
4
4
  export function isInheritedFrom(target, from, deep = 5) {
5
5
  if (!target || !from) {
6
6
  return false;
@@ -1,4 +1,4 @@
1
- import { classOf } from "./classOf";
1
+ import { classOf } from "./classOf.js";
2
2
  /**
3
3
  *
4
4
  * @param target
@@ -1,6 +1,6 @@
1
- import { isBoolean, isBooleanOrBooleanClass } from "./isBoolean";
2
- import { isNumber, isNumberOrNumberClass } from "./isNumber";
3
- import { isString, isStringOrStringClass } from "./isString";
1
+ import { isBoolean, isBooleanOrBooleanClass } from "./isBoolean.js";
2
+ import { isNumber, isNumberOrNumberClass } from "./isNumber.js";
3
+ import { isString, isStringOrStringClass } from "./isString.js";
4
4
  /**
5
5
  * Return true if the given obj is a primitive.
6
6
  * @param target
@@ -1,8 +1,8 @@
1
- import { isStream } from "./isStream";
2
- import { isBoolean } from "./isBoolean";
3
- import { isNumber } from "./isNumber";
4
- import { isString } from "./isString";
5
- import { isNil } from "./isNil";
1
+ import { isStream } from "./isStream.js";
2
+ import { isBoolean } from "./isBoolean.js";
3
+ import { isNumber } from "./isNumber.js";
4
+ import { isString } from "./isString.js";
5
+ import { isNil } from "./isNil.js";
6
6
  export function isSerializable(data) {
7
7
  return !(Buffer.isBuffer(data) || isStream(data) || isBoolean(data) || isNumber(data) || isString(data) || isNil(data));
8
8
  }
@@ -1,6 +1,6 @@
1
- import { classOf } from "./classOf";
2
- import { ancestorsOf } from "./ancestorsOf";
3
- import { prototypeOf } from "./prototypeOf";
1
+ import { classOf } from "./classOf.js";
2
+ import { ancestorsOf } from "./ancestorsOf.js";
3
+ import { prototypeOf } from "./prototypeOf.js";
4
4
  /**
5
5
  * Return all methods for a given class.
6
6
  * @param target
@@ -1 +1 @@
1
- {"version":3,"file":"methodsOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/methodsOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,MAAW;IACnC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzB,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACrC,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;QAElD,IAAI,CAAC,OAAO,CAAC,CAAC,WAAmB,EAAE,EAAE;YACnC,IAAI,WAAW,KAAK,aAAa,EAAE;gBACjC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAC,MAAM,EAAE,WAAW,EAAC,CAAC,CAAC;aACjD;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import {classOf} from \"./classOf\";\nimport {ancestorsOf} from \"./ancestorsOf\";\nimport {prototypeOf} from \"./prototypeOf\";\n\n/**\n * Return all methods for a given class.\n * @param target\n */\nexport function methodsOf(target: any) {\n const methods = new Map();\n target = classOf(target);\n\n ancestorsOf(target).forEach((target) => {\n const keys = Reflect.ownKeys(prototypeOf(target));\n\n keys.forEach((propertyKey: string) => {\n if (propertyKey !== \"constructor\") {\n methods.set(propertyKey, {target, propertyKey});\n }\n });\n });\n\n return Array.from(methods.values());\n}\n"]}
1
+ {"version":3,"file":"methodsOf.js","sourceRoot":"","sources":["../../../../src/utils/objects/methodsOf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAG1C;;;GAGG;AACH,MAAM,UAAU,SAAS,CAAC,MAAW;IACnC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzB,WAAW,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;QACrC,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC;QAElD,IAAI,CAAC,OAAO,CAAC,CAAC,WAAmB,EAAE,EAAE;YACnC,IAAI,WAAW,KAAK,aAAa,EAAE;gBACjC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAC,MAAM,EAAE,WAAW,EAAC,CAAC,CAAC;aACjD;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import {classOf} from \"./classOf\";\nimport {ancestorsOf} from \"./ancestorsOf\";\nimport {prototypeOf} from \"./prototypeOf\";\nimport {Type} from \"../../domain/Type\";\n\n/**\n * Return all methods for a given class.\n * @param target\n */\nexport function methodsOf(target: any): {target: Type; propertyKey: string}[] {\n const methods = new Map();\n target = classOf(target);\n\n ancestorsOf(target).forEach((target) => {\n const keys = Reflect.ownKeys(prototypeOf(target));\n\n keys.forEach((propertyKey: string) => {\n if (propertyKey !== \"constructor\") {\n methods.set(propertyKey, {target, propertyKey});\n }\n });\n });\n\n return Array.from(methods.values());\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { isProtectedKey } from "./isProtectedKey";
1
+ import { isProtectedKey } from "./isProtectedKey.js";
2
2
  export function objectKeys(obj) {
3
3
  return Object.keys(obj).filter((key) => !isProtectedKey(key));
4
4
  }
@@ -1,6 +1,6 @@
1
- import { isBooleanOrBooleanClass } from "./isBoolean";
2
- import { isNumberOrNumberClass } from "./isNumber";
3
- import { isStringOrStringClass } from "./isString";
1
+ import { isBooleanOrBooleanClass } from "./isBoolean.js";
2
+ import { isNumberOrNumberClass } from "./isNumber.js";
3
+ import { isStringOrStringClass } from "./isString.js";
4
4
  export function primitiveOf(target) {
5
5
  if (isStringOrStringClass(target)) {
6
6
  return "string";
@@ -1,4 +1,4 @@
1
- import { classOf } from "./classOf";
1
+ import { classOf } from "./classOf.js";
2
2
  /**
3
3
  * Return the prototype of the given class.
4
4
  * @param target
@@ -1,4 +1,4 @@
1
- import { isProtectedKey } from "./isProtectedKey";
1
+ import { isProtectedKey } from "./isProtectedKey.js";
2
2
  export function setValue(scope, expression, value, separator = ".") {
3
3
  const keys = expression.split(separator);
4
4
  const setValue = (key, add) => {
@@ -1,5 +1,5 @@
1
- import { isArray } from "./isArray";
2
- import { isString } from "./isString";
1
+ import { isArray } from "./isArray.js";
2
+ import { isString } from "./isString.js";
3
3
  function createIdentityFn(keyOrFn) {
4
4
  if (!keyOrFn) {
5
5
  return (v, k) => String(k);
@@ -1,4 +1,4 @@
1
- import { constructorOf } from "./constructorOf";
1
+ import { constructorOf } from "./constructorOf.js";
2
2
  export function toStringConstructor(target) {
3
3
  const ctr = constructorOf(target);
4
4
  const strings = ctr.toString().split("\n");
@@ -1,4 +1,4 @@
1
- import { uniq } from "./uniq";
1
+ import { uniq } from "./uniq.js";
2
2
  /**
3
3
  * Create a complete and iterable trap.
4
4
  * @param self
@@ -1,2 +1 @@
1
- /** */
2
1
  export declare function Configurable(value?: boolean): Function;
@@ -1,2 +1 @@
1
- /** */
2
1
  export declare function Enumerable(value?: boolean): Function;
@@ -1,2 +1 @@
1
- /** */
2
1
  export declare function NotConfigurable(): Function;
@@ -1,2 +1 @@
1
- /** */
2
1
  export declare function NotEnumerable(): Function;
@@ -1,2 +1 @@
1
- /** */
2
1
  export declare function Readonly(): Function;
@@ -1,2 +1 @@
1
- /** */
2
1
  export declare function Writable(value?: boolean): Function;
@@ -1,6 +1,81 @@
1
- import "reflect-metadata";
2
- export type { DecoratorParameters, DecoratorMethodParameters, StaticMethodDecorator, MetadataTypes, ValueOf, HashOf } from "./interfaces";
3
- export * from "./utils";
4
- export * from "./domain";
1
+ /**
2
+ * @file Automatically generated by barrelsby.
3
+ */
4
+ export * from "./decorators/configurable";
5
+ export * from "./decorators/deprecated";
6
+ export * from "./decorators/enumerable";
7
+ export * from "./decorators/notConfigurable";
8
+ export * from "./decorators/notEnumerable";
9
+ export * from "./decorators/readOnly";
10
+ export * from "./decorators/storeFn";
11
+ export * from "./decorators/storeMerge";
12
+ export * from "./decorators/storeSet";
13
+ export * from "./decorators/writable";
14
+ export * from "./domain/AnyToPromise";
15
+ export * from "./domain/DecoratorTypes";
16
+ export * from "./domain/Env";
17
+ export * from "./domain/Hooks";
18
+ export * from "./domain/Metadata";
19
+ export * from "./domain/Store";
20
+ export * from "./domain/Type";
5
21
  export * from "./errors/UnsupportedDecoratorType";
6
- export * from "./decorators";
22
+ export * from "./interfaces/AnyDecorator";
23
+ export * from "./interfaces/DecoratorParameters";
24
+ export * from "./interfaces/HashOf";
25
+ export * from "./interfaces/MetadataTypes";
26
+ export * from "./interfaces/ValueOf";
27
+ export * from "./utils/catchError";
28
+ export * from "./utils/proxyDelegation";
29
+ export * from "./utils/uniq";
30
+ export * from "./utils/decorators/decorateMethodsOf";
31
+ export * from "./utils/decorators/decoratorArgs";
32
+ export * from "./utils/decorators/decoratorTypeOf";
33
+ export * from "./utils/decorators/inheritedDescriptorOf";
34
+ export * from "./utils/decorators/useDecorators";
35
+ export * from "./utils/decorators/useMethodDecorators";
36
+ export * from "./utils/http/getHostInfoFromPort";
37
+ export * from "./utils/imports/importPackage";
38
+ export * from "./utils/objects/ancestorOf";
39
+ export * from "./utils/objects/ancestorsOf";
40
+ export * from "./utils/objects/classOf";
41
+ export * from "./utils/objects/cleanObject";
42
+ export * from "./utils/objects/constructorOf";
43
+ export * from "./utils/objects/createInstance";
44
+ export * from "./utils/objects/deepClone";
45
+ export * from "./utils/objects/deepMerge";
46
+ export * from "./utils/objects/descriptorOf";
47
+ export * from "./utils/objects/getClassOrSymbol";
48
+ export * from "./utils/objects/getConstructorArgNames";
49
+ export * from "./utils/objects/getEnumerableKeys";
50
+ export * from "./utils/objects/getValue";
51
+ export * from "./utils/objects/isArray";
52
+ export * from "./utils/objects/isArrowFn";
53
+ export * from "./utils/objects/isBoolean";
54
+ export * from "./utils/objects/isBuffer";
55
+ export * from "./utils/objects/isClass";
56
+ export * from "./utils/objects/isCollection";
57
+ export * from "./utils/objects/isDate";
58
+ export * from "./utils/objects/isEmpty";
59
+ export * from "./utils/objects/isEnumerable";
60
+ export * from "./utils/objects/isFunction";
61
+ export * from "./utils/objects/isInheritedFrom";
62
+ export * from "./utils/objects/isNil";
63
+ export * from "./utils/objects/isNumber";
64
+ export * from "./utils/objects/isObject";
65
+ export * from "./utils/objects/isObservable";
66
+ export * from "./utils/objects/isPlainObject";
67
+ export * from "./utils/objects/isPrimitive";
68
+ export * from "./utils/objects/isPromise";
69
+ export * from "./utils/objects/isProtectedKey";
70
+ export * from "./utils/objects/isSerializable";
71
+ export * from "./utils/objects/isStream";
72
+ export * from "./utils/objects/isString";
73
+ export * from "./utils/objects/isSymbol";
74
+ export * from "./utils/objects/methodsOf";
75
+ export * from "./utils/objects/nameOf";
76
+ export * from "./utils/objects/objectKeys";
77
+ export * from "./utils/objects/primitiveOf";
78
+ export * from "./utils/objects/prototypeOf";
79
+ export * from "./utils/objects/setValue";
80
+ export * from "./utils/objects/toMap";
81
+ export * from "./utils/objects/toStringConstructor";
@@ -6,4 +6,4 @@ export interface DeepMergeOptions {
6
6
  cleanUndefinedProps?: boolean;
7
7
  }
8
8
  export declare function mergeReducerBuilder(cb: DeepMergeComparatorCB): (collection: any[], value: any, options: DeepMergeOptions) => any[];
9
- export declare function deepMerge<T extends any = any, C extends any = any>(source: T & any, obj: C & any, options?: DeepMergeOptions): (T & C) | undefined | null;
9
+ export declare function deepMerge<T = any, C = any>(source: T & any, obj: C & any, options?: DeepMergeOptions): (T & C) | undefined | null;
@@ -0,0 +1,7 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Tests to see if the object is Buffer
4
+ * @param target
5
+ * @returns {boolean}
6
+ */
7
+ export declare function isBuffer(target: any): target is Buffer;
@@ -1,5 +1,9 @@
1
+ import { Type } from "../../domain/Type";
1
2
  /**
2
3
  * Return all methods for a given class.
3
4
  * @param target
4
5
  */
5
- export declare function methodsOf(target: any): any[];
6
+ export declare function methodsOf(target: any): {
7
+ target: Type;
8
+ propertyKey: string;
9
+ }[];
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@tsed/core",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0-beta.4",
4
4
  "description": "Core module for Ts.ED Framework",
5
5
  "private": false,
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/cjs/index.js",
8
+ "module": "./lib/esm/index.js",
8
9
  "typings": "./lib/types/index.d.ts",
9
10
  "exports": {
10
11
  "types": "./lib/types/index.d.ts",
@@ -13,13 +14,15 @@
13
14
  "default": "./lib/esm/index.js"
14
15
  },
15
16
  "scripts": {
16
- "build": "yarn run build:esm && yarn run build:cjs",
17
+ "build": "yarn barrels && yarn run build:esm && yarn run build:cjs",
18
+ "barrels": "yarn barrelsby --delete -d ./src -e \"\\.spec\\.ts\"",
17
19
  "build:cjs": "tsc --build tsconfig.compile.json",
18
- "build:esm": "tsc --build tsconfig.compile.esm.json"
20
+ "build:esm": "tsc --build tsconfig.compile.esm.json",
21
+ "test": "cross-env NODE_ENV=test yarn jest --max-workers=2"
19
22
  },
20
23
  "dependencies": {
21
24
  "reflect-metadata": "^0.1.13",
22
- "tslib": "2.2.0"
25
+ "tslib": "2.3.1"
23
26
  },
24
27
  "devDependencies": {},
25
28
  "peerDependencies": {},
@@ -27,7 +30,7 @@
27
30
  "bugs": {
28
31
  "url": "https://github.com/tsedio/tsed/issues"
29
32
  },
30
- "homepage": "https://github.com/tsedio/tsed/tree/alpha/packages/core",
33
+ "homepage": "https://github.com/tsedio/tsed/tree/production/packages/core",
31
34
  "author": "Romain Lenzotti",
32
35
  "license": "MIT"
33
36
  }
package/readme.md CHANGED
@@ -36,18 +36,17 @@ npm install --save @tsed/core
36
36
  ```
37
37
 
38
38
  ## Contributors
39
+
39
40
  Please read [contributing guidelines here](https://tsed.io/CONTRIBUTING.html).
40
41
 
41
42
  <a href="https://github.com/tsedio/ts-express-decorators/graphs/contributors"><img src="https://opencollective.com/tsed/contributors.svg?width=890" /></a>
42
43
 
43
-
44
44
  ## Backers
45
45
 
46
46
  Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/tsed#backer)]
47
47
 
48
48
  <a href="https://opencollective.com/tsed#backers" target="_blank"><img src="https://opencollective.com/tsed/tiers/backer.svg?width=890"></a>
49
49
 
50
-
51
50
  ## Sponsors
52
51
 
53
52
  Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/tsed#sponsor)]
@@ -8,16 +8,5 @@
8
8
  "declaration": true,
9
9
  "declarationDir": "./lib/types"
10
10
  },
11
- "exclude": [
12
- "node_modules",
13
- "test",
14
- "lib",
15
- "benchmark",
16
- "coverage",
17
- "spec",
18
- "**/*.benchmark.ts",
19
- "**/*.spec.ts",
20
- "keys",
21
- "jest.config.js"
22
- ]
11
+ "exclude": ["node_modules", "test", "lib", "coverage", ".nyc_output", "**/*.spec.ts", "jest.config.js"]
23
12
  }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- /**
5
- * @module common/core
6
- */
7
- /** */
8
- (0, tslib_1.__exportStar)(require("./deprecated"), exports);
9
- (0, tslib_1.__exportStar)(require("./configurable"), exports);
10
- (0, tslib_1.__exportStar)(require("./enumerable"), exports);
11
- (0, tslib_1.__exportStar)(require("./writable"), exports);
12
- (0, tslib_1.__exportStar)(require("./readOnly"), exports);
13
- (0, tslib_1.__exportStar)(require("./notConfigurable"), exports);
14
- (0, tslib_1.__exportStar)(require("./notEnumerable"), exports);
15
- (0, tslib_1.__exportStar)(require("./storeSet"), exports);
16
- (0, tslib_1.__exportStar)(require("./storeMerge"), exports);
17
- (0, tslib_1.__exportStar)(require("./storeFn"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,MAAM;AACN,4DAA6B;AAC7B,8DAA+B;AAC/B,4DAA6B;AAC7B,0DAA2B;AAC3B,0DAA2B;AAC3B,iEAAkC;AAClC,+DAAgC;AAChC,0DAA2B;AAC3B,4DAA6B;AAC7B,yDAA0B","sourcesContent":["/**\n * @module common/core\n */\n/** */\nexport * from \"./deprecated\";\nexport * from \"./configurable\";\nexport * from \"./enumerable\";\nexport * from \"./writable\";\nexport * from \"./readOnly\";\nexport * from \"./notConfigurable\";\nexport * from \"./notEnumerable\";\nexport * from \"./storeSet\";\nexport * from \"./storeMerge\";\nexport * from \"./storeFn\";\n"]}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./DecoratorTypes"), exports);
5
- (0, tslib_1.__exportStar)(require("./Env"), exports);
6
- (0, tslib_1.__exportStar)(require("./Hooks"), exports);
7
- (0, tslib_1.__exportStar)(require("./Metadata"), exports);
8
- (0, tslib_1.__exportStar)(require("./Store"), exports);
9
- (0, tslib_1.__exportStar)(require("./Type"), exports);
10
- (0, tslib_1.__exportStar)(require("./AnyToPromise"), exports);
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/index.ts"],"names":[],"mappings":";;;AAAA,gEAAiC;AACjC,qDAAsB;AACtB,uDAAwB;AACxB,0DAA2B;AAC3B,uDAAwB;AACxB,sDAAuB;AACvB,8DAA+B","sourcesContent":["export * from \"./DecoratorTypes\";\nexport * from \"./Env\";\nexport * from \"./Hooks\";\nexport * from \"./Metadata\";\nexport * from \"./Store\";\nexport * from \"./Type\";\nexport * from \"./AnyToPromise\";\n"]}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interfaces/index.ts"],"names":[],"mappings":"","sourcesContent":["export type {DecoratorParameters, DecoratorMethodParameters, StaticMethodDecorator} from \"./DecoratorParameters\";\nexport type {MetadataTypes} from \"./MetadataTypes\";\nexport type {ValueOf} from \"./ValueOf\";\nexport type {HashOf} from \"./HashOf\";\n"]}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- (0, tslib_1.__exportStar)(require("./catchError"), exports);
5
- (0, tslib_1.__exportStar)(require("./proxyDelegation"), exports);
6
- (0, tslib_1.__exportStar)(require("./uniq"), exports);
7
- (0, tslib_1.__exportStar)(require("./imports/importPackage"), exports);
8
- // methods
9
- (0, tslib_1.__exportStar)(require("./decorators/decorateMethodsOf"), exports);
10
- (0, tslib_1.__exportStar)(require("./decorators/decoratorArgs"), exports);
11
- (0, tslib_1.__exportStar)(require("./decorators/decoratorTypeOf"), exports);
12
- (0, tslib_1.__exportStar)(require("./objects/descriptorOf"), exports);
13
- (0, tslib_1.__exportStar)(require("./decorators/inheritedDescriptorOf"), exports);
14
- (0, tslib_1.__exportStar)(require("./decorators/useDecorators"), exports);
15
- (0, tslib_1.__exportStar)(require("./decorators/useMethodDecorators"), exports);
16
- // objects
17
- (0, tslib_1.__exportStar)(require("./objects"), exports);
18
- (0, tslib_1.__exportStar)(require("./http/getHostInfoFromPort"), exports);
19
- //# sourceMappingURL=index.js.map