@tsed/core 7.83.3 → 8.0.0-alpha.10

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 (298) hide show
  1. package/lib/browser/core.umd.min.js +1 -1
  2. package/lib/browser/core.umd.min.js.map +1 -1
  3. package/lib/esm/decorators/deprecated.js.map +1 -1
  4. package/lib/esm/decorators/storeFn.js.map +1 -1
  5. package/lib/esm/domain/AnyToPromise.js.map +1 -1
  6. package/lib/esm/domain/Hooks.js +1 -4
  7. package/lib/esm/domain/Hooks.js.map +1 -1
  8. package/lib/esm/domain/Metadata.js.map +1 -1
  9. package/lib/esm/domain/Store.js.map +1 -1
  10. package/lib/esm/utils/catchError.js.map +1 -1
  11. package/lib/esm/utils/decorators/decorateMethodsOf.js.map +1 -1
  12. package/lib/esm/utils/decorators/decoratorTypeOf.js.map +1 -1
  13. package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +1 -1
  14. package/lib/esm/utils/http/getHostInfoFromPort.js.map +1 -1
  15. package/lib/esm/utils/imports/importPackage.js.map +1 -1
  16. package/lib/esm/utils/objects/ancestorsOf.js +1 -1
  17. package/lib/esm/utils/objects/ancestorsOf.js.map +1 -1
  18. package/lib/esm/utils/objects/cleanObject.js.map +1 -1
  19. package/lib/esm/utils/objects/deepClone.js +2 -2
  20. package/lib/esm/utils/objects/deepClone.js.map +1 -1
  21. package/lib/esm/utils/objects/deepMerge.js.map +1 -1
  22. package/lib/esm/utils/objects/descriptorOf.js +1 -1
  23. package/lib/esm/utils/objects/descriptorOf.js.map +1 -1
  24. package/lib/esm/utils/objects/getEnumerableKeys.js.map +1 -1
  25. package/lib/esm/utils/objects/getValue.js.map +1 -1
  26. package/lib/esm/utils/objects/isBuffer.js.map +1 -1
  27. package/lib/esm/utils/objects/isClass.js.map +1 -1
  28. package/lib/esm/utils/objects/isEnumerable.js.map +1 -1
  29. package/lib/esm/utils/objects/isInheritedFrom.js +1 -1
  30. package/lib/esm/utils/objects/isInheritedFrom.js.map +1 -1
  31. package/lib/esm/utils/objects/isSerializable.js +2 -2
  32. package/lib/esm/utils/objects/isSerializable.js.map +1 -1
  33. package/lib/esm/utils/objects/methodsOf.js +1 -1
  34. package/lib/esm/utils/objects/methodsOf.js.map +1 -1
  35. package/lib/esm/utils/objects/nameOf.js.map +1 -1
  36. package/lib/esm/utils/objects/primitiveOf.js.map +1 -1
  37. package/lib/esm/utils/objects/setValue.js.map +1 -1
  38. package/lib/esm/utils/objects/toMap.js.map +1 -1
  39. package/lib/esm/utils/proxyDelegation.js.map +1 -1
  40. package/lib/types/domain/Type.d.ts +4 -1
  41. package/lib/types/utils/objects/deepClone.d.ts +1 -1
  42. package/lib/types/utils/objects/isBuffer.d.ts +2 -1
  43. package/package.json +18 -16
  44. package/lib/cjs/decorators/configurable.js +0 -14
  45. package/lib/cjs/decorators/configurable.js.map +0 -1
  46. package/lib/cjs/decorators/deprecated.js +0 -71
  47. package/lib/cjs/decorators/deprecated.js.map +0 -1
  48. package/lib/cjs/decorators/enumerable.js +0 -14
  49. package/lib/cjs/decorators/enumerable.js.map +0 -1
  50. package/lib/cjs/decorators/notConfigurable.js +0 -9
  51. package/lib/cjs/decorators/notConfigurable.js.map +0 -1
  52. package/lib/cjs/decorators/notEnumerable.js +0 -9
  53. package/lib/cjs/decorators/notEnumerable.js.map +0 -1
  54. package/lib/cjs/decorators/readOnly.js +0 -9
  55. package/lib/cjs/decorators/readOnly.js.map +0 -1
  56. package/lib/cjs/decorators/storeFn.js +0 -22
  57. package/lib/cjs/decorators/storeFn.js.map +0 -1
  58. package/lib/cjs/decorators/storeMerge.js +0 -11
  59. package/lib/cjs/decorators/storeMerge.js.map +0 -1
  60. package/lib/cjs/decorators/storeSet.js +0 -11
  61. package/lib/cjs/decorators/storeSet.js.map +0 -1
  62. package/lib/cjs/decorators/writable.js +0 -14
  63. package/lib/cjs/decorators/writable.js.map +0 -1
  64. package/lib/cjs/domain/AnyToPromise.js +0 -147
  65. package/lib/cjs/domain/AnyToPromise.js.map +0 -1
  66. package/lib/cjs/domain/DecoratorTypes.js +0 -15
  67. package/lib/cjs/domain/DecoratorTypes.js.map +0 -1
  68. package/lib/cjs/domain/Env.js +0 -19
  69. package/lib/cjs/domain/Env.js.map +0 -1
  70. package/lib/cjs/domain/Hooks.js +0 -99
  71. package/lib/cjs/domain/Hooks.js.map +0 -1
  72. package/lib/cjs/domain/Metadata.js +0 -508
  73. package/lib/cjs/domain/Metadata.js.map +0 -1
  74. package/lib/cjs/domain/Store.js +0 -157
  75. package/lib/cjs/domain/Store.js.map +0 -1
  76. package/lib/cjs/domain/Type.js +0 -7
  77. package/lib/cjs/domain/Type.js.map +0 -1
  78. package/lib/cjs/errors/UnsupportedDecoratorType.js +0 -23
  79. package/lib/cjs/errors/UnsupportedDecoratorType.js.map +0 -1
  80. package/lib/cjs/index.js +0 -90
  81. package/lib/cjs/index.js.map +0 -1
  82. package/lib/cjs/interfaces/AnyDecorator.js +0 -3
  83. package/lib/cjs/interfaces/AnyDecorator.js.map +0 -1
  84. package/lib/cjs/interfaces/DecoratorParameters.js +0 -3
  85. package/lib/cjs/interfaces/DecoratorParameters.js.map +0 -1
  86. package/lib/cjs/interfaces/MetadataTypes.js +0 -3
  87. package/lib/cjs/interfaces/MetadataTypes.js.map +0 -1
  88. package/lib/cjs/interfaces/Relation.js +0 -3
  89. package/lib/cjs/interfaces/Relation.js.map +0 -1
  90. package/lib/cjs/interfaces/ValueOf.js +0 -3
  91. package/lib/cjs/interfaces/ValueOf.js.map +0 -1
  92. package/lib/cjs/package.json +0 -3
  93. package/lib/cjs/utils/catchError.js +0 -22
  94. package/lib/cjs/utils/catchError.js.map +0 -1
  95. package/lib/cjs/utils/decorators/decorateMethodsOf.js +0 -29
  96. package/lib/cjs/utils/decorators/decorateMethodsOf.js.map +0 -1
  97. package/lib/cjs/utils/decorators/decoratorArgs.js +0 -9
  98. package/lib/cjs/utils/decorators/decoratorArgs.js.map +0 -1
  99. package/lib/cjs/utils/decorators/decoratorTypeOf.js +0 -23
  100. package/lib/cjs/utils/decorators/decoratorTypeOf.js.map +0 -1
  101. package/lib/cjs/utils/decorators/inheritedDescriptorOf.js +0 -15
  102. package/lib/cjs/utils/decorators/inheritedDescriptorOf.js.map +0 -1
  103. package/lib/cjs/utils/decorators/useDecorators.js +0 -14
  104. package/lib/cjs/utils/decorators/useDecorators.js.map +0 -1
  105. package/lib/cjs/utils/decorators/useMethodDecorators.js +0 -15
  106. package/lib/cjs/utils/decorators/useMethodDecorators.js.map +0 -1
  107. package/lib/cjs/utils/getRandomId.js +0 -8
  108. package/lib/cjs/utils/getRandomId.js.map +0 -1
  109. package/lib/cjs/utils/http/getHostInfoFromPort.js +0 -21
  110. package/lib/cjs/utils/http/getHostInfoFromPort.js.map +0 -1
  111. package/lib/cjs/utils/imports/importPackage.js +0 -39
  112. package/lib/cjs/utils/imports/importPackage.js.map +0 -1
  113. package/lib/cjs/utils/objects/ancestorOf.js +0 -12
  114. package/lib/cjs/utils/objects/ancestorOf.js.map +0 -1
  115. package/lib/cjs/utils/objects/ancestorsOf.js +0 -22
  116. package/lib/cjs/utils/objects/ancestorsOf.js.map +0 -1
  117. package/lib/cjs/utils/objects/classOf.js +0 -23
  118. package/lib/cjs/utils/objects/classOf.js.map +0 -1
  119. package/lib/cjs/utils/objects/cleanObject.js +0 -24
  120. package/lib/cjs/utils/objects/cleanObject.js.map +0 -1
  121. package/lib/cjs/utils/objects/constructorOf.js +0 -20
  122. package/lib/cjs/utils/objects/constructorOf.js.map +0 -1
  123. package/lib/cjs/utils/objects/createInstance.js +0 -9
  124. package/lib/cjs/utils/objects/createInstance.js.map +0 -1
  125. package/lib/cjs/utils/objects/deepClone.js +0 -77
  126. package/lib/cjs/utils/objects/deepClone.js.map +0 -1
  127. package/lib/cjs/utils/objects/deepMerge.js +0 -63
  128. package/lib/cjs/utils/objects/deepMerge.js.map +0 -1
  129. package/lib/cjs/utils/objects/descriptorOf.js +0 -18
  130. package/lib/cjs/utils/objects/descriptorOf.js.map +0 -1
  131. package/lib/cjs/utils/objects/getClassOrSymbol.js +0 -10
  132. package/lib/cjs/utils/objects/getClassOrSymbol.js.map +0 -1
  133. package/lib/cjs/utils/objects/getConstructorArgNames.js +0 -14
  134. package/lib/cjs/utils/objects/getConstructorArgNames.js.map +0 -1
  135. package/lib/cjs/utils/objects/getEnumerableKeys.js +0 -20
  136. package/lib/cjs/utils/objects/getEnumerableKeys.js.map +0 -1
  137. package/lib/cjs/utils/objects/getValue.js +0 -49
  138. package/lib/cjs/utils/objects/getValue.js.map +0 -1
  139. package/lib/cjs/utils/objects/hasJsonMethod.js +0 -8
  140. package/lib/cjs/utils/objects/hasJsonMethod.js.map +0 -1
  141. package/lib/cjs/utils/objects/isArray.js +0 -23
  142. package/lib/cjs/utils/objects/isArray.js.map +0 -1
  143. package/lib/cjs/utils/objects/isArrowFn.js +0 -9
  144. package/lib/cjs/utils/objects/isArrowFn.js.map +0 -1
  145. package/lib/cjs/utils/objects/isBoolean.js +0 -17
  146. package/lib/cjs/utils/objects/isBoolean.js.map +0 -1
  147. package/lib/cjs/utils/objects/isBuffer.js +0 -21
  148. package/lib/cjs/utils/objects/isBuffer.js.map +0 -1
  149. package/lib/cjs/utils/objects/isClass.js +0 -28
  150. package/lib/cjs/utils/objects/isClass.js.map +0 -1
  151. package/lib/cjs/utils/objects/isCollection.js +0 -22
  152. package/lib/cjs/utils/objects/isCollection.js.map +0 -1
  153. package/lib/cjs/utils/objects/isDate.js +0 -13
  154. package/lib/cjs/utils/objects/isDate.js.map +0 -1
  155. package/lib/cjs/utils/objects/isEmpty.js +0 -14
  156. package/lib/cjs/utils/objects/isEmpty.js.map +0 -1
  157. package/lib/cjs/utils/objects/isEnumerable.js +0 -22
  158. package/lib/cjs/utils/objects/isEnumerable.js.map +0 -1
  159. package/lib/cjs/utils/objects/isFunction.js +0 -8
  160. package/lib/cjs/utils/objects/isFunction.js.map +0 -1
  161. package/lib/cjs/utils/objects/isInheritedFrom.js +0 -26
  162. package/lib/cjs/utils/objects/isInheritedFrom.js.map +0 -1
  163. package/lib/cjs/utils/objects/isMomentObject.js +0 -8
  164. package/lib/cjs/utils/objects/isMomentObject.js.map +0 -1
  165. package/lib/cjs/utils/objects/isMongooseObject.js +0 -13
  166. package/lib/cjs/utils/objects/isMongooseObject.js.map +0 -1
  167. package/lib/cjs/utils/objects/isNil.js +0 -8
  168. package/lib/cjs/utils/objects/isNil.js.map +0 -1
  169. package/lib/cjs/utils/objects/isNumber.js +0 -17
  170. package/lib/cjs/utils/objects/isNumber.js.map +0 -1
  171. package/lib/cjs/utils/objects/isObject.js +0 -8
  172. package/lib/cjs/utils/objects/isObject.js.map +0 -1
  173. package/lib/cjs/utils/objects/isObservable.js +0 -8
  174. package/lib/cjs/utils/objects/isObservable.js.map +0 -1
  175. package/lib/cjs/utils/objects/isPlainObject.js +0 -18
  176. package/lib/cjs/utils/objects/isPlainObject.js.map +0 -1
  177. package/lib/cjs/utils/objects/isPrimitive.js +0 -30
  178. package/lib/cjs/utils/objects/isPrimitive.js.map +0 -1
  179. package/lib/cjs/utils/objects/isPromise.js +0 -16
  180. package/lib/cjs/utils/objects/isPromise.js.map +0 -1
  181. package/lib/cjs/utils/objects/isProtectedKey.js +0 -12
  182. package/lib/cjs/utils/objects/isProtectedKey.js.map +0 -1
  183. package/lib/cjs/utils/objects/isRegExp.js +0 -8
  184. package/lib/cjs/utils/objects/isRegExp.js.map +0 -1
  185. package/lib/cjs/utils/objects/isSerializable.js +0 -13
  186. package/lib/cjs/utils/objects/isSerializable.js.map +0 -1
  187. package/lib/cjs/utils/objects/isStream.js +0 -8
  188. package/lib/cjs/utils/objects/isStream.js.map +0 -1
  189. package/lib/cjs/utils/objects/isString.js +0 -16
  190. package/lib/cjs/utils/objects/isString.js.map +0 -1
  191. package/lib/cjs/utils/objects/isSymbol.js +0 -16
  192. package/lib/cjs/utils/objects/isSymbol.js.map +0 -1
  193. package/lib/cjs/utils/objects/methodsOf.js +0 -25
  194. package/lib/cjs/utils/objects/methodsOf.js.map +0 -1
  195. package/lib/cjs/utils/objects/nameOf.js +0 -32
  196. package/lib/cjs/utils/objects/nameOf.js.map +0 -1
  197. package/lib/cjs/utils/objects/objectKeys.js +0 -9
  198. package/lib/cjs/utils/objects/objectKeys.js.map +0 -1
  199. package/lib/cjs/utils/objects/primitiveOf.js +0 -20
  200. package/lib/cjs/utils/objects/primitiveOf.js.map +0 -1
  201. package/lib/cjs/utils/objects/prototypeOf.js +0 -14
  202. package/lib/cjs/utils/objects/prototypeOf.js.map +0 -1
  203. package/lib/cjs/utils/objects/setValue.js +0 -34
  204. package/lib/cjs/utils/objects/setValue.js.map +0 -1
  205. package/lib/cjs/utils/objects/toMap.js +0 -36
  206. package/lib/cjs/utils/objects/toMap.js.map +0 -1
  207. package/lib/cjs/utils/objects/toStringConstructor.js +0 -12
  208. package/lib/cjs/utils/objects/toStringConstructor.js.map +0 -1
  209. package/lib/cjs/utils/proxyDelegation.js +0 -54
  210. package/lib/cjs/utils/proxyDelegation.js.map +0 -1
  211. package/lib/cjs/utils/uniq.js +0 -19
  212. package/lib/cjs/utils/uniq.js.map +0 -1
  213. package/lib/esm/package.json +0 -3
  214. package/lib/types-esm/decorators/configurable.d.ts +0 -1
  215. package/lib/types-esm/decorators/deprecated.d.ts +0 -32
  216. package/lib/types-esm/decorators/enumerable.d.ts +0 -1
  217. package/lib/types-esm/decorators/notConfigurable.d.ts +0 -1
  218. package/lib/types-esm/decorators/notEnumerable.d.ts +0 -1
  219. package/lib/types-esm/decorators/readOnly.d.ts +0 -1
  220. package/lib/types-esm/decorators/storeFn.d.ts +0 -9
  221. package/lib/types-esm/decorators/storeMerge.d.ts +0 -1
  222. package/lib/types-esm/decorators/storeSet.d.ts +0 -1
  223. package/lib/types-esm/decorators/writable.d.ts +0 -1
  224. package/lib/types-esm/domain/AnyToPromise.d.ts +0 -42
  225. package/lib/types-esm/domain/DecoratorTypes.d.ts +0 -10
  226. package/lib/types-esm/domain/Env.d.ts +0 -13
  227. package/lib/types-esm/domain/Hooks.d.ts +0 -47
  228. package/lib/types-esm/domain/Metadata.d.ts +0 -442
  229. package/lib/types-esm/domain/Store.d.ts +0 -69
  230. package/lib/types-esm/domain/Type.d.ts +0 -11
  231. package/lib/types-esm/errors/UnsupportedDecoratorType.d.ts +0 -5
  232. package/lib/types-esm/index.d.ts +0 -86
  233. package/lib/types-esm/interfaces/AnyDecorator.d.ts +0 -1
  234. package/lib/types-esm/interfaces/DecoratorParameters.d.ts +0 -3
  235. package/lib/types-esm/interfaces/MetadataTypes.d.ts +0 -5
  236. package/lib/types-esm/interfaces/Relation.d.ts +0 -1
  237. package/lib/types-esm/interfaces/ValueOf.d.ts +0 -1
  238. package/lib/types-esm/utils/catchError.d.ts +0 -2
  239. package/lib/types-esm/utils/decorators/decorateMethodsOf.d.ts +0 -1
  240. package/lib/types-esm/utils/decorators/decoratorArgs.d.ts +0 -2
  241. package/lib/types-esm/utils/decorators/decoratorTypeOf.d.ts +0 -2
  242. package/lib/types-esm/utils/decorators/inheritedDescriptorOf.d.ts +0 -1
  243. package/lib/types-esm/utils/decorators/useDecorators.d.ts +0 -2
  244. package/lib/types-esm/utils/decorators/useMethodDecorators.d.ts +0 -3
  245. package/lib/types-esm/utils/getRandomId.d.ts +0 -1
  246. package/lib/types-esm/utils/http/getHostInfoFromPort.d.ts +0 -7
  247. package/lib/types-esm/utils/imports/importPackage.d.ts +0 -1
  248. package/lib/types-esm/utils/objects/ancestorOf.d.ts +0 -2
  249. package/lib/types-esm/utils/objects/ancestorsOf.d.ts +0 -6
  250. package/lib/types-esm/utils/objects/classOf.d.ts +0 -13
  251. package/lib/types-esm/utils/objects/cleanObject.d.ts +0 -6
  252. package/lib/types-esm/utils/objects/constructorOf.d.ts +0 -11
  253. package/lib/types-esm/utils/objects/createInstance.d.ts +0 -1
  254. package/lib/types-esm/utils/objects/deepClone.d.ts +0 -6
  255. package/lib/types-esm/utils/objects/deepMerge.d.ts +0 -9
  256. package/lib/types-esm/utils/objects/descriptorOf.d.ts +0 -8
  257. package/lib/types-esm/utils/objects/getClassOrSymbol.d.ts +0 -1
  258. package/lib/types-esm/utils/objects/getConstructorArgNames.d.ts +0 -1
  259. package/lib/types-esm/utils/objects/getEnumerableKeys.d.ts +0 -5
  260. package/lib/types-esm/utils/objects/getValue.d.ts +0 -32
  261. package/lib/types-esm/utils/objects/hasJsonMethod.d.ts +0 -1
  262. package/lib/types-esm/utils/objects/isArray.d.ts +0 -13
  263. package/lib/types-esm/utils/objects/isArrowFn.d.ts +0 -1
  264. package/lib/types-esm/utils/objects/isBoolean.d.ts +0 -7
  265. package/lib/types-esm/utils/objects/isBuffer.d.ts +0 -8
  266. package/lib/types-esm/utils/objects/isClass.d.ts +0 -1
  267. package/lib/types-esm/utils/objects/isCollection.d.ts +0 -6
  268. package/lib/types-esm/utils/objects/isDate.d.ts +0 -6
  269. package/lib/types-esm/utils/objects/isEmpty.d.ts +0 -6
  270. package/lib/types-esm/utils/objects/isEnumerable.d.ts +0 -6
  271. package/lib/types-esm/utils/objects/isFunction.d.ts +0 -1
  272. package/lib/types-esm/utils/objects/isInheritedFrom.d.ts +0 -1
  273. package/lib/types-esm/utils/objects/isMomentObject.d.ts +0 -1
  274. package/lib/types-esm/utils/objects/isMongooseObject.d.ts +0 -2
  275. package/lib/types-esm/utils/objects/isNil.d.ts +0 -1
  276. package/lib/types-esm/utils/objects/isNumber.d.ts +0 -7
  277. package/lib/types-esm/utils/objects/isObject.d.ts +0 -1
  278. package/lib/types-esm/utils/objects/isObservable.d.ts +0 -1
  279. package/lib/types-esm/utils/objects/isPlainObject.d.ts +0 -7
  280. package/lib/types-esm/utils/objects/isPrimitive.d.ts +0 -14
  281. package/lib/types-esm/utils/objects/isPromise.d.ts +0 -7
  282. package/lib/types-esm/utils/objects/isProtectedKey.d.ts +0 -5
  283. package/lib/types-esm/utils/objects/isRegExp.d.ts +0 -1
  284. package/lib/types-esm/utils/objects/isSerializable.d.ts +0 -1
  285. package/lib/types-esm/utils/objects/isStream.d.ts +0 -1
  286. package/lib/types-esm/utils/objects/isString.d.ts +0 -6
  287. package/lib/types-esm/utils/objects/isSymbol.d.ts +0 -6
  288. package/lib/types-esm/utils/objects/methodsOf.d.ts +0 -9
  289. package/lib/types-esm/utils/objects/nameOf.d.ts +0 -14
  290. package/lib/types-esm/utils/objects/objectKeys.d.ts +0 -1
  291. package/lib/types-esm/utils/objects/primitiveOf.d.ts +0 -1
  292. package/lib/types-esm/utils/objects/prototypeOf.d.ts +0 -6
  293. package/lib/types-esm/utils/objects/setValue.d.ts +0 -1
  294. package/lib/types-esm/utils/objects/toMap.d.ts +0 -3
  295. package/lib/types-esm/utils/objects/toStringConstructor.d.ts +0 -1
  296. package/lib/types-esm/utils/proxyDelegation.d.ts +0 -33
  297. package/lib/types-esm/utils/uniq.d.ts +0 -5
  298. /package/{webpack.config.js → webpack.config.cjs} +0 -0
@@ -1,86 +0,0 @@
1
- /**
2
- * @file Automatically generated by @tsed/barrels.
3
- */
4
- export * from "./decorators/configurable.js";
5
- export * from "./decorators/deprecated.js";
6
- export * from "./decorators/enumerable.js";
7
- export * from "./decorators/notConfigurable.js";
8
- export * from "./decorators/notEnumerable.js";
9
- export * from "./decorators/readOnly.js";
10
- export * from "./decorators/storeFn.js";
11
- export * from "./decorators/storeMerge.js";
12
- export * from "./decorators/storeSet.js";
13
- export * from "./decorators/writable.js";
14
- export * from "./domain/AnyToPromise.js";
15
- export * from "./domain/DecoratorTypes.js";
16
- export * from "./domain/Env.js";
17
- export * from "./domain/Hooks.js";
18
- export * from "./domain/Metadata.js";
19
- export * from "./domain/Store.js";
20
- export * from "./domain/Type.js";
21
- export * from "./errors/UnsupportedDecoratorType.js";
22
- export * from "./interfaces/AnyDecorator.js";
23
- export * from "./interfaces/DecoratorParameters.js";
24
- export * from "./interfaces/MetadataTypes.js";
25
- export * from "./interfaces/Relation.js";
26
- export * from "./interfaces/ValueOf.js";
27
- export * from "./utils/catchError.js";
28
- export * from "./utils/decorators/decorateMethodsOf.js";
29
- export * from "./utils/decorators/decoratorArgs.js";
30
- export * from "./utils/decorators/decoratorTypeOf.js";
31
- export * from "./utils/decorators/inheritedDescriptorOf.js";
32
- export * from "./utils/decorators/useDecorators.js";
33
- export * from "./utils/decorators/useMethodDecorators.js";
34
- export * from "./utils/getRandomId.js";
35
- export * from "./utils/http/getHostInfoFromPort.js";
36
- export * from "./utils/imports/importPackage.js";
37
- export * from "./utils/objects/ancestorOf.js";
38
- export * from "./utils/objects/ancestorsOf.js";
39
- export * from "./utils/objects/classOf.js";
40
- export * from "./utils/objects/cleanObject.js";
41
- export * from "./utils/objects/constructorOf.js";
42
- export * from "./utils/objects/createInstance.js";
43
- export * from "./utils/objects/deepClone.js";
44
- export * from "./utils/objects/deepMerge.js";
45
- export * from "./utils/objects/descriptorOf.js";
46
- export * from "./utils/objects/getClassOrSymbol.js";
47
- export * from "./utils/objects/getConstructorArgNames.js";
48
- export * from "./utils/objects/getEnumerableKeys.js";
49
- export * from "./utils/objects/getValue.js";
50
- export * from "./utils/objects/hasJsonMethod.js";
51
- export * from "./utils/objects/isArray.js";
52
- export * from "./utils/objects/isArrowFn.js";
53
- export * from "./utils/objects/isBoolean.js";
54
- export * from "./utils/objects/isBuffer.js";
55
- export * from "./utils/objects/isClass.js";
56
- export * from "./utils/objects/isCollection.js";
57
- export * from "./utils/objects/isDate.js";
58
- export * from "./utils/objects/isEmpty.js";
59
- export * from "./utils/objects/isEnumerable.js";
60
- export * from "./utils/objects/isFunction.js";
61
- export * from "./utils/objects/isInheritedFrom.js";
62
- export * from "./utils/objects/isMomentObject.js";
63
- export * from "./utils/objects/isMongooseObject.js";
64
- export * from "./utils/objects/isNil.js";
65
- export * from "./utils/objects/isNumber.js";
66
- export * from "./utils/objects/isObject.js";
67
- export * from "./utils/objects/isObservable.js";
68
- export * from "./utils/objects/isPlainObject.js";
69
- export * from "./utils/objects/isPrimitive.js";
70
- export * from "./utils/objects/isPromise.js";
71
- export * from "./utils/objects/isProtectedKey.js";
72
- export * from "./utils/objects/isRegExp.js";
73
- export * from "./utils/objects/isSerializable.js";
74
- export * from "./utils/objects/isStream.js";
75
- export * from "./utils/objects/isString.js";
76
- export * from "./utils/objects/isSymbol.js";
77
- export * from "./utils/objects/methodsOf.js";
78
- export * from "./utils/objects/nameOf.js";
79
- export * from "./utils/objects/objectKeys.js";
80
- export * from "./utils/objects/primitiveOf.js";
81
- export * from "./utils/objects/prototypeOf.js";
82
- export * from "./utils/objects/setValue.js";
83
- export * from "./utils/objects/toMap.js";
84
- export * from "./utils/objects/toStringConstructor.js";
85
- export * from "./utils/proxyDelegation.js";
86
- export * from "./utils/uniq.js";
@@ -1 +0,0 @@
1
- export type AnyDecorator = any | ClassDecorator | MethodDecorator | PropertyDescriptor | ParameterDecorator;
@@ -1,3 +0,0 @@
1
- export type DecoratorParameters = [any, string | symbol, number | PropertyDescriptor];
2
- export type DecoratorMethodParameters = [any, string | symbol, PropertyDescriptor];
3
- export type StaticMethodDecorator = <TFunction extends Function, T>(target: TFunction, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
@@ -1,5 +0,0 @@
1
- import type { Type } from "../domain/Type.js";
2
- export interface MetadataTypes<T = any, C = any> {
3
- type?: Type<T> | T;
4
- collectionType?: Type<C> | C;
5
- }
@@ -1 +0,0 @@
1
- export type Relation<T> = T;
@@ -1 +0,0 @@
1
- export type ValueOf<T> = T[keyof T];
@@ -1,2 +0,0 @@
1
- export declare function catchError<T extends Error>(cb: Function): T | undefined;
2
- export declare function catchAsyncError<T extends Error>(cb: Function): Promise<T | undefined>;
@@ -1 +0,0 @@
1
- export declare function decorateMethodsOf(klass: any, decorator: any): void;
@@ -1,2 +0,0 @@
1
- import { DecoratorParameters } from "../../interfaces/DecoratorParameters.js";
2
- export declare function decoratorArgs(target: any, propertyKey: string): DecoratorParameters;
@@ -1,2 +0,0 @@
1
- import { DecoratorTypes } from "../../domain/DecoratorTypes.js";
2
- export declare function decoratorTypeOf(args: any[]): DecoratorTypes;
@@ -1 +0,0 @@
1
- export declare function inheritedDescriptorOf(target: any, propertyKey: string): PropertyDescriptor | undefined;
@@ -1,2 +0,0 @@
1
- import { AnyDecorator } from "../../interfaces/AnyDecorator.js";
2
- export declare function useDecorators(...decorators: AnyDecorator[]): any;
@@ -1,3 +0,0 @@
1
- import { AnyDecorator } from "../../interfaces/AnyDecorator.js";
2
- export declare function useMethodDecorator(decorator: AnyDecorator): (target: any, propertyKey: string | symbol) => any;
3
- export declare function useMethodDecorators(...decorators: AnyDecorator[]): (target: any, propertyKey: string | symbol) => void;
@@ -1 +0,0 @@
1
- export declare function getRandomId(): string;
@@ -1,7 +0,0 @@
1
- export declare function getHostInfoFromPort(protocol: string, addressPort: any): {
2
- protocol: string;
3
- address: string;
4
- port: number;
5
- toString(): string;
6
- };
7
- export type ReturnHostInfoFromPort = ReturnType<typeof getHostInfoFromPort>;
@@ -1 +0,0 @@
1
- export declare function importPackage(packageName: string, loaderFn?: Function, optional?: boolean): Promise<any>;
@@ -1,2 +0,0 @@
1
- export declare function ancestorOf(target: any): any;
2
- export declare function getInheritedClass(target: any): any;
@@ -1,6 +0,0 @@
1
- /**
2
- *
3
- * @param target
4
- * @returns {Array}
5
- */
6
- export declare function ancestorsOf(target: any): any[];
@@ -1,13 +0,0 @@
1
- /**
2
- * Get the provide constructor if target is an instance.
3
- * @param target
4
- * @returns {*}
5
- */
6
- export declare function getClass(target: any): any;
7
- /**
8
- * Get the provide constructor if target is an instance.
9
- * @param target
10
- * @returns {*}
11
- * @alias getClass
12
- */
13
- export declare function classOf(target: any): any;
@@ -1,6 +0,0 @@
1
- /**
2
- * Remove undefined value
3
- * @param obj
4
- * @param ignore
5
- */
6
- export declare function cleanObject(obj: any, ignore?: string[]): any;
@@ -1,11 +0,0 @@
1
- import type { Type } from "../../domain/Type.js";
2
- /**
3
- * Get the class constructor
4
- * @param target
5
- */
6
- export declare function getConstructor(target: any): Type<any>;
7
- /**
8
- * Get the class constructor
9
- * @param target
10
- */
11
- export declare function constructorOf(target: any): Type<any>;
@@ -1 +0,0 @@
1
- export declare function createInstance(obj: any): any;
@@ -1,6 +0,0 @@
1
- /**
2
- * Return a cloned value
3
- * @param source
4
- * @param stack
5
- */
6
- export declare const deepClone: (source: any, stack?: WeakMap<object, any>) => any;
@@ -1,9 +0,0 @@
1
- export type DeepMergeReducerCB = (collection: any[], value: any, options?: DeepMergeOptions) => any;
2
- export type DeepMergeComparatorCB = (item: any, ref: any) => boolean;
3
- export interface DeepMergeOptions {
4
- reducers?: Record<string, DeepMergeReducerCB>;
5
- parentKey?: string;
6
- cleanUndefinedProps?: boolean;
7
- }
8
- export declare function mergeReducerBuilder(cb: DeepMergeComparatorCB): (collection: any[], value: any, options: DeepMergeOptions) => any[];
9
- export declare function deepMerge<T = any, C = any>(source: T & any, obj: C & any, options?: DeepMergeOptions): (T & C) | undefined | null;
@@ -1,8 +0,0 @@
1
- /**
2
- * Return the descriptor for a given class and propertyKey
3
- * @param target
4
- * @param {string} propertyKey
5
- * @returns {PropertyDescriptor}
6
- */
7
- export declare function descriptorOf(target: any, propertyKey: string | symbol): PropertyDescriptor;
8
- export declare function isMethodDescriptor(target: any, propertyKey: string | symbol): any;
@@ -1 +0,0 @@
1
- export declare function getClassOrSymbol(target: any): any;
@@ -1 +0,0 @@
1
- export declare function getConstructorArgNames(target: any): string[];
@@ -1,5 +0,0 @@
1
- /**
2
- * Return all enumerable keys of the given object
3
- * @param obj
4
- */
5
- export declare function getEnumerableKeys(obj: any): string[];
@@ -1,32 +0,0 @@
1
- /**
2
- * Get value from scope
3
- * @param {string} expression
4
- * @param scope
5
- * @returns {any}
6
- */
7
- export declare function getValue<T = any>(scope: any, expression: string | undefined): T | undefined;
8
- /**
9
- * Get value from scope
10
- * @param {string} expression
11
- * @param scope
12
- * @param defaultValue
13
- * @param separator
14
- * @returns {any}
15
- */
16
- export declare function getValue<T = any>(scope: any, expression: string | undefined, defaultValue: T, separator?: string): T;
17
- /**
18
- * Get value from scope
19
- * @param {string} expression
20
- * @param scope
21
- * @returns {any}
22
- */
23
- export declare function getValue<T = any>(expression: string | undefined, scope: any): T | undefined;
24
- /**
25
- * Get value from scope
26
- * @param {string} expression
27
- * @param scope
28
- * @param defaultValue
29
- * @param separator
30
- * @returns {any}
31
- */
32
- export declare function getValue<T = any>(expression: string | undefined, scope: any, defaultValue: T, separator?: string): T;
@@ -1 +0,0 @@
1
- export declare function hasJsonMethod(obj: any): any;
@@ -1,13 +0,0 @@
1
- /**
2
- * Return true if value is an array
3
- * @param target
4
- * @returns {boolean}
5
- */
6
- export declare function isArray<T = any>(target: unknown): target is T[];
7
- /**
8
- * Return true if the clazz is an array.
9
- * @param target
10
- * @returns {boolean}
11
- * @ignore
12
- */
13
- export declare function isArrayOrArrayClass<T = any>(target: unknown): target is T[];
@@ -1 +0,0 @@
1
- export declare function isArrowFn(target: any): target is Function;
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param target
4
- * @returns {boolean}
5
- */
6
- export declare function isBoolean(target: any): target is boolean;
7
- export declare function isBooleanOrBooleanClass(target: any): target is boolean;
@@ -1,8 +0,0 @@
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;
8
- export declare function isUint8Array(target: any): target is Uint8Array;
@@ -1 +0,0 @@
1
- export declare function isClass(target: any): boolean;
@@ -1,6 +0,0 @@
1
- /**
2
- * Return true if the target.
3
- * @param target
4
- * @returns {boolean}
5
- */
6
- export declare function isCollection(target: any): boolean;
@@ -1,6 +0,0 @@
1
- /**
2
- *
3
- * @param target
4
- * @returns {boolean}
5
- */
6
- export declare function isDate(target: any): target is Date;
@@ -1,6 +0,0 @@
1
- /**
2
- * Return true if the value is an empty string, null or undefined.
3
- * @param value
4
- * @returns {boolean}
5
- */
6
- export declare function isEmpty(value: any): boolean;
@@ -1,6 +0,0 @@
1
- /**
2
- *
3
- * @param obj
4
- * @param key
5
- */
6
- export declare function isEnumerable(obj: any, key: string): any;
@@ -1 +0,0 @@
1
- export declare function isFunction(target: any): target is Function;
@@ -1 +0,0 @@
1
- export declare function isInheritedFrom(target: any, from: any, deep?: number): boolean;
@@ -1 +0,0 @@
1
- export declare function isMomentObject(obj: any): boolean;
@@ -1,2 +0,0 @@
1
- export declare function isObjectID(obj: any): any;
2
- export declare function isMongooseObject(obj: any): boolean;
@@ -1 +0,0 @@
1
- export declare function isNil(value: any): boolean;
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param target
4
- * @returns {boolean}
5
- */
6
- export declare function isNumber(target: any): target is number;
7
- export declare function isNumberOrNumberClass(target: any): target is number;
@@ -1 +0,0 @@
1
- export declare function isObject(target: any): target is object;
@@ -1 +0,0 @@
1
- export declare function isObservable<T>(obj: any): boolean;
@@ -1,7 +0,0 @@
1
- /**
2
- *
3
- * @param target
4
- * @returns {boolean}
5
- */
6
- export declare function isClassObject(target: any): target is Object;
7
- export declare function isPlainObject(target: any): boolean;
@@ -1,14 +0,0 @@
1
- /**
2
- * Return true if the given obj is a primitive.
3
- * @param target
4
- * @returns {boolean}
5
- * @ignore
6
- */
7
- export declare function isPrimitiveOrPrimitiveClass(target: any): boolean;
8
- /**
9
- * Return true if the given obj is a primitive.
10
- * @param target
11
- * @returns {boolean}
12
- */
13
- export declare function isPrimitive(target: any): boolean;
14
- export declare function isPrimitiveClass(target: any): boolean;
@@ -1,7 +0,0 @@
1
- /**
2
- * Tests to see if the object is an ES2015 (ES6) Promise
3
- * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}
4
- * @param target
5
- * @returns {boolean}
6
- */
7
- export declare function isPromise<T = any>(target: any): target is Promise<T>;
@@ -1,5 +0,0 @@
1
- /**
2
- * Prevent prototype pollution vulnerability
3
- * @param key
4
- */
5
- export declare function isProtectedKey(key: string): boolean;
@@ -1 +0,0 @@
1
- export declare function isRegExp(target: any): target is RegExp;
@@ -1 +0,0 @@
1
- export declare function isSerializable(data: any): boolean;
@@ -1 +0,0 @@
1
- export declare function isStream(obj: any): boolean;
@@ -1,6 +0,0 @@
1
- /**
2
- * @param target
3
- * @returns {boolean}
4
- */
5
- export declare function isString(target: any): target is string;
6
- export declare function isStringOrStringClass(target: any): target is string;
@@ -1,6 +0,0 @@
1
- /**
2
- *
3
- * @param target
4
- */
5
- export declare function isSymbol(target: any): target is symbol;
6
- export declare function isSymbolOrSymbolClass(target: any): target is symbol;
@@ -1,9 +0,0 @@
1
- import { Type } from "../../domain/Type.js";
2
- /**
3
- * Return all methods for a given class.
4
- * @param target
5
- */
6
- export declare function methodsOf(target: any): {
7
- target: Type;
8
- propertyKey: string;
9
- }[];
@@ -1,14 +0,0 @@
1
- /**
2
- * Get the provide name.
3
- * @param targetClass
4
- */
5
- export declare function nameOfClass(targetClass: any): string;
6
- /**
7
- * Get symbol name.
8
- * @param sym
9
- */
10
- export declare const nameOfSymbol: (sym: symbol) => string;
11
- /**
12
- * Get object name
13
- */
14
- export declare function nameOf(obj: any): string;
@@ -1 +0,0 @@
1
- export declare function objectKeys(obj: any): string[];
@@ -1 +0,0 @@
1
- export declare function primitiveOf(target: any): "string" | "number" | "boolean" | "any";
@@ -1,6 +0,0 @@
1
- /**
2
- * Return the prototype of the given class.
3
- * @param target
4
- * @returns {any}
5
- */
6
- export declare function prototypeOf(target: any): any;
@@ -1 +0,0 @@
1
- export declare function setValue(scope: any, expression: string, value: any, separator?: string): void;
@@ -1,3 +0,0 @@
1
- export type ToMapIdentityCB<V> = (item: V, index: string | number) => string | string[];
2
- export type ToMapIdentity<V> = string | ToMapIdentityCB<V>;
3
- export declare function toMap<K extends keyof any = any, V = any>(input: Record<K, V> | V[], keyOrFn?: ToMapIdentity<V>): Map<K, V>;
@@ -1 +0,0 @@
1
- export declare function toStringConstructor(target: any): string;
@@ -1,33 +0,0 @@
1
- /**
2
- * @ignore
3
- */
4
- export type ProxyDelegationGetter<T = any> = (target: T, property: PropertyKey) => any | undefined;
5
- /**
6
- * @ignore
7
- */
8
- export type ProxyDelegationRemove<T = any> = (target: T, property: PropertyKey) => any;
9
- /**
10
- * @ignore
11
- */
12
- export type ProxyDelegationSetter<T = any> = (target: T, property: PropertyKey, value: any, receiver: any) => any;
13
- /**
14
- * @ignore
15
- */
16
- export type ProxyDelegationOwnKeys<T = any> = (target: T) => (string | symbol)[];
17
- /**
18
- * @ignore
19
- */
20
- export interface ProxyDelegation<T extends object> {
21
- handlers?: ProxyHandler<T>;
22
- getter?: ProxyDelegationGetter<T>;
23
- setter?: ProxyDelegationSetter<T>;
24
- remove?: ProxyDelegationRemove<T>;
25
- ownKeys?: ProxyDelegationOwnKeys<T>;
26
- }
27
- /**
28
- * Create a complete and iterable trap.
29
- * @param self
30
- * @param options
31
- * @ignore
32
- */
33
- export declare function proxyDelegation<T extends object = any>(self: any, options?: ProxyDelegation<T>): T;
@@ -1,5 +0,0 @@
1
- /**
2
- * @param list
3
- */
4
- export declare function uniq<T = any>(list: T[]): T[];
5
- export declare function uniqBy<T = any>(list: T[], key?: string): T[];
File without changes