@tsed/core 8.9.5 → 8.10.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (374) hide show
  1. package/lib/esm/decorators/storeFn.js +1 -1
  2. package/lib/esm/decorators/storeFn.js.map +1 -1
  3. package/lib/esm/errors/UnsupportedDecoratorType.js +3 -3
  4. package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -1
  5. package/lib/esm/index.js +65 -65
  6. package/lib/esm/index.js.map +1 -1
  7. package/lib/esm/types/AnyDecorator.js.map +1 -0
  8. package/lib/esm/types/DecoratorParameters.js.map +1 -0
  9. package/lib/esm/types/DecoratorTypes.js.map +1 -0
  10. package/lib/esm/types/Env.js.map +1 -0
  11. package/lib/esm/{domain → types}/Metadata.js +1 -1
  12. package/lib/esm/types/Metadata.js.map +1 -0
  13. package/lib/esm/types/MetadataTypes.js.map +1 -0
  14. package/lib/esm/{interfaces → types}/Relation.js.map +1 -1
  15. package/lib/esm/{domain → types}/Store.js +7 -7
  16. package/lib/esm/types/Store.js.map +1 -0
  17. package/lib/esm/types/Type.js.map +1 -0
  18. package/lib/esm/{interfaces → types}/ValueOf.js.map +1 -1
  19. package/lib/esm/{domain → utils}/AnyToPromise.js +4 -4
  20. package/lib/esm/utils/AnyToPromise.js.map +1 -0
  21. package/lib/esm/utils/ancestorOf.js.map +1 -0
  22. package/lib/esm/utils/ancestorsOf.js.map +1 -0
  23. package/lib/esm/utils/classOf.js.map +1 -0
  24. package/lib/esm/utils/cleanObject.js.map +1 -0
  25. package/lib/esm/utils/constructorOf.js.map +1 -0
  26. package/lib/esm/utils/createInstance.js.map +1 -0
  27. package/lib/esm/utils/{decorators/decorateMethodsOf.js → decorateMethodsOf.js} +5 -5
  28. package/lib/esm/utils/decorateMethodsOf.js.map +1 -0
  29. package/lib/esm/utils/{decorators/decoratorArgs.js → decoratorArgs.js} +1 -1
  30. package/lib/esm/utils/decoratorArgs.js.map +1 -0
  31. package/lib/esm/utils/{decorators/decoratorTypeOf.js → decoratorTypeOf.js} +2 -2
  32. package/lib/esm/utils/decoratorTypeOf.js.map +1 -0
  33. package/lib/esm/utils/deepClone.js.map +1 -0
  34. package/lib/esm/utils/deepMerge.js.map +1 -0
  35. package/lib/esm/utils/descriptorOf.js.map +1 -0
  36. package/lib/esm/utils/getClassOrSymbol.js.map +1 -0
  37. package/lib/esm/utils/getConstructorArgNames.js.map +1 -0
  38. package/lib/esm/utils/getValue.js.map +1 -0
  39. package/lib/esm/utils/hasJsonMethod.js.map +1 -0
  40. package/lib/esm/utils/{decorators/inheritedDescriptorOf.js → inheritedDescriptorOf.js} +1 -1
  41. package/lib/esm/utils/inheritedDescriptorOf.js.map +1 -0
  42. package/lib/esm/utils/isArray.js.map +1 -0
  43. package/lib/esm/utils/isArrowFn.js.map +1 -0
  44. package/lib/esm/utils/isBoolean.js.map +1 -0
  45. package/lib/esm/utils/isBuffer.js.map +1 -0
  46. package/lib/esm/utils/isClass.js.map +1 -0
  47. package/lib/esm/utils/isCollection.js.map +1 -0
  48. package/lib/esm/utils/isDate.js.map +1 -0
  49. package/lib/esm/utils/isEmpty.js.map +1 -0
  50. package/lib/esm/utils/{objects/isEnumerable.js → isEnumerable.js} +1 -1
  51. package/lib/esm/utils/isEnumerable.js.map +1 -0
  52. package/lib/esm/utils/isFunction.js.map +1 -0
  53. package/lib/esm/utils/isInheritedFrom.js.map +1 -0
  54. package/lib/esm/utils/isMomentObject.js.map +1 -0
  55. package/lib/esm/utils/isMongooseObject.js.map +1 -0
  56. package/lib/esm/utils/isNil.js.map +1 -0
  57. package/lib/esm/utils/isNumber.js.map +1 -0
  58. package/lib/esm/utils/isObject.js.map +1 -0
  59. package/lib/esm/utils/isObservable.js.map +1 -0
  60. package/lib/esm/utils/isPlainObject.js.map +1 -0
  61. package/lib/esm/utils/isPrimitive.js.map +1 -0
  62. package/lib/esm/utils/isPromise.js.map +1 -0
  63. package/lib/esm/utils/isProtectedKey.js.map +1 -0
  64. package/lib/esm/utils/isRegExp.js.map +1 -0
  65. package/lib/esm/utils/isSerializable.js.map +1 -0
  66. package/lib/esm/utils/isStream.js.map +1 -0
  67. package/lib/esm/utils/isString.js.map +1 -0
  68. package/lib/esm/utils/isSymbol.js.map +1 -0
  69. package/lib/esm/utils/methodsOf.js.map +1 -0
  70. package/lib/esm/utils/nameOf.js.map +1 -0
  71. package/lib/esm/utils/objectKeys.js.map +1 -0
  72. package/lib/esm/utils/primitiveOf.js.map +1 -0
  73. package/lib/esm/utils/prototypeOf.js.map +1 -0
  74. package/lib/esm/utils/setValue.js.map +1 -0
  75. package/lib/esm/utils/toMap.js.map +1 -0
  76. package/lib/esm/utils/toStringConstructor.js.map +1 -0
  77. package/lib/esm/utils/uniq.js.map +1 -0
  78. package/lib/esm/utils/useDecorators.js.map +1 -0
  79. package/lib/esm/utils/{decorators/useMethodDecorators.js → useMethodDecorators.js} +1 -1
  80. package/lib/esm/utils/useMethodDecorators.js.map +1 -0
  81. package/lib/types/decorators/storeFn.d.ts +2 -2
  82. package/lib/types/index.d.ts +65 -65
  83. package/lib/types/{interfaces → types}/MetadataTypes.d.ts +1 -1
  84. package/lib/types/utils/{objects/constructorOf.d.ts → constructorOf.d.ts} +1 -1
  85. package/lib/types/utils/{decorators/decoratorArgs.d.ts → decoratorArgs.d.ts} +1 -1
  86. package/lib/types/utils/{decorators/decoratorTypeOf.d.ts → decoratorTypeOf.d.ts} +1 -1
  87. package/lib/types/utils/{objects/methodsOf.d.ts → methodsOf.d.ts} +1 -1
  88. package/lib/types/utils/{decorators/useDecorators.d.ts → useDecorators.d.ts} +1 -1
  89. package/lib/types/utils/{decorators/useMethodDecorators.d.ts → useMethodDecorators.d.ts} +1 -1
  90. package/package.json +16 -19
  91. package/src/decorators/storeFn.ts +2 -2
  92. package/src/decorators/storeMerge.ts +1 -1
  93. package/src/decorators/storeSet.ts +1 -1
  94. package/src/errors/UnsupportedDecoratorType.ts +3 -3
  95. package/src/index.ts +65 -65
  96. package/src/{domain → types}/Metadata.ts +1 -1
  97. package/src/{interfaces → types}/MetadataTypes.ts +1 -1
  98. package/src/{domain → types}/Store.ts +7 -7
  99. package/src/{domain → utils}/AnyToPromise.spec.ts +2 -2
  100. package/src/{domain → utils}/AnyToPromise.ts +4 -4
  101. package/src/utils/{objects/ObjectUtils.spec.ts → ObjectUtils.spec.ts} +1 -1
  102. package/src/utils/{objects/constructorOf.ts → constructorOf.ts} +1 -1
  103. package/src/utils/{decorators/decorateMethodsOf.spec.ts → decorateMethodsOf.spec.ts} +4 -4
  104. package/src/utils/{decorators/decorateMethodsOf.ts → decorateMethodsOf.ts} +5 -5
  105. package/src/utils/{decorators/decoratorArgs.spec.ts → decoratorArgs.spec.ts} +2 -2
  106. package/src/utils/{decorators/decoratorArgs.ts → decoratorArgs.ts} +2 -2
  107. package/src/utils/{decorators/decoratorTypeOf.ts → decoratorTypeOf.ts} +2 -2
  108. package/src/utils/{decorators/inheritedDescriptorOf.ts → inheritedDescriptorOf.ts} +1 -1
  109. package/src/utils/{objects/isEnumerable.ts → isEnumerable.ts} +1 -1
  110. package/src/utils/{objects/methodsOf.ts → methodsOf.ts} +1 -1
  111. package/src/utils/{decorators/useDecorators.spec.ts → useDecorators.spec.ts} +3 -3
  112. package/src/utils/{decorators/useDecorators.ts → useDecorators.ts} +2 -2
  113. package/src/utils/{decorators/useMethodDecorator.spec.ts → useMethodDecorator.spec.ts} +2 -2
  114. package/src/utils/{decorators/useMethodDecorators.ts → useMethodDecorators.ts} +2 -2
  115. package/lib/browser/core.umd.min.js +0 -3
  116. package/lib/browser/core.umd.min.js.LICENSE.txt +0 -14
  117. package/lib/browser/core.umd.min.js.map +0 -1
  118. package/lib/esm/domain/AnyToPromise.js.map +0 -1
  119. package/lib/esm/domain/DecoratorTypes.js.map +0 -1
  120. package/lib/esm/domain/Env.js.map +0 -1
  121. package/lib/esm/domain/Metadata.js.map +0 -1
  122. package/lib/esm/domain/Store.js.map +0 -1
  123. package/lib/esm/domain/Type.js.map +0 -1
  124. package/lib/esm/interfaces/AnyDecorator.js.map +0 -1
  125. package/lib/esm/interfaces/DecoratorParameters.js.map +0 -1
  126. package/lib/esm/interfaces/MetadataTypes.js.map +0 -1
  127. package/lib/esm/utils/decorators/decorateMethodsOf.js.map +0 -1
  128. package/lib/esm/utils/decorators/decoratorArgs.js.map +0 -1
  129. package/lib/esm/utils/decorators/decoratorTypeOf.js.map +0 -1
  130. package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +0 -1
  131. package/lib/esm/utils/decorators/useDecorators.js.map +0 -1
  132. package/lib/esm/utils/decorators/useMethodDecorators.js.map +0 -1
  133. package/lib/esm/utils/objects/ancestorOf.js.map +0 -1
  134. package/lib/esm/utils/objects/ancestorsOf.js.map +0 -1
  135. package/lib/esm/utils/objects/classOf.js.map +0 -1
  136. package/lib/esm/utils/objects/cleanObject.js.map +0 -1
  137. package/lib/esm/utils/objects/constructorOf.js.map +0 -1
  138. package/lib/esm/utils/objects/createInstance.js.map +0 -1
  139. package/lib/esm/utils/objects/deepClone.js.map +0 -1
  140. package/lib/esm/utils/objects/deepMerge.js.map +0 -1
  141. package/lib/esm/utils/objects/descriptorOf.js.map +0 -1
  142. package/lib/esm/utils/objects/getClassOrSymbol.js.map +0 -1
  143. package/lib/esm/utils/objects/getConstructorArgNames.js.map +0 -1
  144. package/lib/esm/utils/objects/getValue.js.map +0 -1
  145. package/lib/esm/utils/objects/hasJsonMethod.js.map +0 -1
  146. package/lib/esm/utils/objects/isArray.js.map +0 -1
  147. package/lib/esm/utils/objects/isArrowFn.js.map +0 -1
  148. package/lib/esm/utils/objects/isBoolean.js.map +0 -1
  149. package/lib/esm/utils/objects/isBuffer.js.map +0 -1
  150. package/lib/esm/utils/objects/isClass.js.map +0 -1
  151. package/lib/esm/utils/objects/isCollection.js.map +0 -1
  152. package/lib/esm/utils/objects/isDate.js.map +0 -1
  153. package/lib/esm/utils/objects/isEmpty.js.map +0 -1
  154. package/lib/esm/utils/objects/isEnumerable.js.map +0 -1
  155. package/lib/esm/utils/objects/isFunction.js.map +0 -1
  156. package/lib/esm/utils/objects/isInheritedFrom.js.map +0 -1
  157. package/lib/esm/utils/objects/isMomentObject.js.map +0 -1
  158. package/lib/esm/utils/objects/isMongooseObject.js.map +0 -1
  159. package/lib/esm/utils/objects/isNil.js.map +0 -1
  160. package/lib/esm/utils/objects/isNumber.js.map +0 -1
  161. package/lib/esm/utils/objects/isObject.js.map +0 -1
  162. package/lib/esm/utils/objects/isObservable.js.map +0 -1
  163. package/lib/esm/utils/objects/isPlainObject.js.map +0 -1
  164. package/lib/esm/utils/objects/isPrimitive.js.map +0 -1
  165. package/lib/esm/utils/objects/isPromise.js.map +0 -1
  166. package/lib/esm/utils/objects/isProtectedKey.js.map +0 -1
  167. package/lib/esm/utils/objects/isRegExp.js.map +0 -1
  168. package/lib/esm/utils/objects/isSerializable.js.map +0 -1
  169. package/lib/esm/utils/objects/isStream.js.map +0 -1
  170. package/lib/esm/utils/objects/isString.js.map +0 -1
  171. package/lib/esm/utils/objects/isSymbol.js.map +0 -1
  172. package/lib/esm/utils/objects/methodsOf.js.map +0 -1
  173. package/lib/esm/utils/objects/nameOf.js.map +0 -1
  174. package/lib/esm/utils/objects/objectKeys.js.map +0 -1
  175. package/lib/esm/utils/objects/primitiveOf.js.map +0 -1
  176. package/lib/esm/utils/objects/prototypeOf.js.map +0 -1
  177. package/lib/esm/utils/objects/setValue.js.map +0 -1
  178. package/lib/esm/utils/objects/toMap.js.map +0 -1
  179. package/lib/esm/utils/objects/toStringConstructor.js.map +0 -1
  180. package/lib/esm/utils/objects/uniq.js.map +0 -1
  181. package/webpack.config.cjs +0 -4
  182. /package/lib/esm/{interfaces → types}/AnyDecorator.js +0 -0
  183. /package/lib/esm/{interfaces → types}/DecoratorParameters.js +0 -0
  184. /package/lib/esm/{domain → types}/DecoratorTypes.js +0 -0
  185. /package/lib/esm/{domain → types}/Env.js +0 -0
  186. /package/lib/esm/{interfaces → types}/MetadataTypes.js +0 -0
  187. /package/lib/esm/{interfaces → types}/Relation.js +0 -0
  188. /package/lib/esm/{domain → types}/Type.js +0 -0
  189. /package/lib/esm/{interfaces → types}/ValueOf.js +0 -0
  190. /package/lib/esm/utils/{objects/ancestorOf.js → ancestorOf.js} +0 -0
  191. /package/lib/esm/utils/{objects/ancestorsOf.js → ancestorsOf.js} +0 -0
  192. /package/lib/esm/utils/{objects/classOf.js → classOf.js} +0 -0
  193. /package/lib/esm/utils/{objects/cleanObject.js → cleanObject.js} +0 -0
  194. /package/lib/esm/utils/{objects/constructorOf.js → constructorOf.js} +0 -0
  195. /package/lib/esm/utils/{objects/createInstance.js → createInstance.js} +0 -0
  196. /package/lib/esm/utils/{objects/deepClone.js → deepClone.js} +0 -0
  197. /package/lib/esm/utils/{objects/deepMerge.js → deepMerge.js} +0 -0
  198. /package/lib/esm/utils/{objects/descriptorOf.js → descriptorOf.js} +0 -0
  199. /package/lib/esm/utils/{objects/getClassOrSymbol.js → getClassOrSymbol.js} +0 -0
  200. /package/lib/esm/utils/{objects/getConstructorArgNames.js → getConstructorArgNames.js} +0 -0
  201. /package/lib/esm/utils/{objects/getValue.js → getValue.js} +0 -0
  202. /package/lib/esm/utils/{objects/hasJsonMethod.js → hasJsonMethod.js} +0 -0
  203. /package/lib/esm/utils/{objects/isArray.js → isArray.js} +0 -0
  204. /package/lib/esm/utils/{objects/isArrowFn.js → isArrowFn.js} +0 -0
  205. /package/lib/esm/utils/{objects/isBoolean.js → isBoolean.js} +0 -0
  206. /package/lib/esm/utils/{objects/isBuffer.js → isBuffer.js} +0 -0
  207. /package/lib/esm/utils/{objects/isClass.js → isClass.js} +0 -0
  208. /package/lib/esm/utils/{objects/isCollection.js → isCollection.js} +0 -0
  209. /package/lib/esm/utils/{objects/isDate.js → isDate.js} +0 -0
  210. /package/lib/esm/utils/{objects/isEmpty.js → isEmpty.js} +0 -0
  211. /package/lib/esm/utils/{objects/isFunction.js → isFunction.js} +0 -0
  212. /package/lib/esm/utils/{objects/isInheritedFrom.js → isInheritedFrom.js} +0 -0
  213. /package/lib/esm/utils/{objects/isMomentObject.js → isMomentObject.js} +0 -0
  214. /package/lib/esm/utils/{objects/isMongooseObject.js → isMongooseObject.js} +0 -0
  215. /package/lib/esm/utils/{objects/isNil.js → isNil.js} +0 -0
  216. /package/lib/esm/utils/{objects/isNumber.js → isNumber.js} +0 -0
  217. /package/lib/esm/utils/{objects/isObject.js → isObject.js} +0 -0
  218. /package/lib/esm/utils/{objects/isObservable.js → isObservable.js} +0 -0
  219. /package/lib/esm/utils/{objects/isPlainObject.js → isPlainObject.js} +0 -0
  220. /package/lib/esm/utils/{objects/isPrimitive.js → isPrimitive.js} +0 -0
  221. /package/lib/esm/utils/{objects/isPromise.js → isPromise.js} +0 -0
  222. /package/lib/esm/utils/{objects/isProtectedKey.js → isProtectedKey.js} +0 -0
  223. /package/lib/esm/utils/{objects/isRegExp.js → isRegExp.js} +0 -0
  224. /package/lib/esm/utils/{objects/isSerializable.js → isSerializable.js} +0 -0
  225. /package/lib/esm/utils/{objects/isStream.js → isStream.js} +0 -0
  226. /package/lib/esm/utils/{objects/isString.js → isString.js} +0 -0
  227. /package/lib/esm/utils/{objects/isSymbol.js → isSymbol.js} +0 -0
  228. /package/lib/esm/utils/{objects/methodsOf.js → methodsOf.js} +0 -0
  229. /package/lib/esm/utils/{objects/nameOf.js → nameOf.js} +0 -0
  230. /package/lib/esm/utils/{objects/objectKeys.js → objectKeys.js} +0 -0
  231. /package/lib/esm/utils/{objects/primitiveOf.js → primitiveOf.js} +0 -0
  232. /package/lib/esm/utils/{objects/prototypeOf.js → prototypeOf.js} +0 -0
  233. /package/lib/esm/utils/{objects/setValue.js → setValue.js} +0 -0
  234. /package/lib/esm/utils/{objects/toMap.js → toMap.js} +0 -0
  235. /package/lib/esm/utils/{objects/toStringConstructor.js → toStringConstructor.js} +0 -0
  236. /package/lib/esm/utils/{objects/uniq.js → uniq.js} +0 -0
  237. /package/lib/esm/utils/{decorators/useDecorators.js → useDecorators.js} +0 -0
  238. /package/lib/types/{interfaces → types}/AnyDecorator.d.ts +0 -0
  239. /package/lib/types/{interfaces → types}/DecoratorParameters.d.ts +0 -0
  240. /package/lib/types/{domain → types}/DecoratorTypes.d.ts +0 -0
  241. /package/lib/types/{domain → types}/Env.d.ts +0 -0
  242. /package/lib/types/{domain → types}/Metadata.d.ts +0 -0
  243. /package/lib/types/{interfaces → types}/Relation.d.ts +0 -0
  244. /package/lib/types/{domain → types}/Store.d.ts +0 -0
  245. /package/lib/types/{domain → types}/Type.d.ts +0 -0
  246. /package/lib/types/{interfaces → types}/ValueOf.d.ts +0 -0
  247. /package/lib/types/{domain → utils}/AnyToPromise.d.ts +0 -0
  248. /package/lib/types/utils/{objects/ancestorOf.d.ts → ancestorOf.d.ts} +0 -0
  249. /package/lib/types/utils/{objects/ancestorsOf.d.ts → ancestorsOf.d.ts} +0 -0
  250. /package/lib/types/utils/{objects/classOf.d.ts → classOf.d.ts} +0 -0
  251. /package/lib/types/utils/{objects/cleanObject.d.ts → cleanObject.d.ts} +0 -0
  252. /package/lib/types/utils/{objects/createInstance.d.ts → createInstance.d.ts} +0 -0
  253. /package/lib/types/utils/{decorators/decorateMethodsOf.d.ts → decorateMethodsOf.d.ts} +0 -0
  254. /package/lib/types/utils/{objects/deepClone.d.ts → deepClone.d.ts} +0 -0
  255. /package/lib/types/utils/{objects/deepMerge.d.ts → deepMerge.d.ts} +0 -0
  256. /package/lib/types/utils/{objects/descriptorOf.d.ts → descriptorOf.d.ts} +0 -0
  257. /package/lib/types/utils/{objects/getClassOrSymbol.d.ts → getClassOrSymbol.d.ts} +0 -0
  258. /package/lib/types/utils/{objects/getConstructorArgNames.d.ts → getConstructorArgNames.d.ts} +0 -0
  259. /package/lib/types/utils/{objects/getValue.d.ts → getValue.d.ts} +0 -0
  260. /package/lib/types/utils/{objects/hasJsonMethod.d.ts → hasJsonMethod.d.ts} +0 -0
  261. /package/lib/types/utils/{decorators/inheritedDescriptorOf.d.ts → inheritedDescriptorOf.d.ts} +0 -0
  262. /package/lib/types/utils/{objects/isArray.d.ts → isArray.d.ts} +0 -0
  263. /package/lib/types/utils/{objects/isArrowFn.d.ts → isArrowFn.d.ts} +0 -0
  264. /package/lib/types/utils/{objects/isBoolean.d.ts → isBoolean.d.ts} +0 -0
  265. /package/lib/types/utils/{objects/isBuffer.d.ts → isBuffer.d.ts} +0 -0
  266. /package/lib/types/utils/{objects/isClass.d.ts → isClass.d.ts} +0 -0
  267. /package/lib/types/utils/{objects/isCollection.d.ts → isCollection.d.ts} +0 -0
  268. /package/lib/types/utils/{objects/isDate.d.ts → isDate.d.ts} +0 -0
  269. /package/lib/types/utils/{objects/isEmpty.d.ts → isEmpty.d.ts} +0 -0
  270. /package/lib/types/utils/{objects/isEnumerable.d.ts → isEnumerable.d.ts} +0 -0
  271. /package/lib/types/utils/{objects/isFunction.d.ts → isFunction.d.ts} +0 -0
  272. /package/lib/types/utils/{objects/isInheritedFrom.d.ts → isInheritedFrom.d.ts} +0 -0
  273. /package/lib/types/utils/{objects/isMomentObject.d.ts → isMomentObject.d.ts} +0 -0
  274. /package/lib/types/utils/{objects/isMongooseObject.d.ts → isMongooseObject.d.ts} +0 -0
  275. /package/lib/types/utils/{objects/isNil.d.ts → isNil.d.ts} +0 -0
  276. /package/lib/types/utils/{objects/isNumber.d.ts → isNumber.d.ts} +0 -0
  277. /package/lib/types/utils/{objects/isObject.d.ts → isObject.d.ts} +0 -0
  278. /package/lib/types/utils/{objects/isObservable.d.ts → isObservable.d.ts} +0 -0
  279. /package/lib/types/utils/{objects/isPlainObject.d.ts → isPlainObject.d.ts} +0 -0
  280. /package/lib/types/utils/{objects/isPrimitive.d.ts → isPrimitive.d.ts} +0 -0
  281. /package/lib/types/utils/{objects/isPromise.d.ts → isPromise.d.ts} +0 -0
  282. /package/lib/types/utils/{objects/isProtectedKey.d.ts → isProtectedKey.d.ts} +0 -0
  283. /package/lib/types/utils/{objects/isRegExp.d.ts → isRegExp.d.ts} +0 -0
  284. /package/lib/types/utils/{objects/isSerializable.d.ts → isSerializable.d.ts} +0 -0
  285. /package/lib/types/utils/{objects/isStream.d.ts → isStream.d.ts} +0 -0
  286. /package/lib/types/utils/{objects/isString.d.ts → isString.d.ts} +0 -0
  287. /package/lib/types/utils/{objects/isSymbol.d.ts → isSymbol.d.ts} +0 -0
  288. /package/lib/types/utils/{objects/nameOf.d.ts → nameOf.d.ts} +0 -0
  289. /package/lib/types/utils/{objects/objectKeys.d.ts → objectKeys.d.ts} +0 -0
  290. /package/lib/types/utils/{objects/primitiveOf.d.ts → primitiveOf.d.ts} +0 -0
  291. /package/lib/types/utils/{objects/prototypeOf.d.ts → prototypeOf.d.ts} +0 -0
  292. /package/lib/types/utils/{objects/setValue.d.ts → setValue.d.ts} +0 -0
  293. /package/lib/types/utils/{objects/toMap.d.ts → toMap.d.ts} +0 -0
  294. /package/lib/types/utils/{objects/toStringConstructor.d.ts → toStringConstructor.d.ts} +0 -0
  295. /package/lib/types/utils/{objects/uniq.d.ts → uniq.d.ts} +0 -0
  296. /package/src/{interfaces → types}/AnyDecorator.ts +0 -0
  297. /package/src/{interfaces → types}/DecoratorParameters.ts +0 -0
  298. /package/src/{domain → types}/DecoratorTypes.ts +0 -0
  299. /package/src/{domain → types}/Env.ts +0 -0
  300. /package/src/{domain → types}/Metadata.spec.ts +0 -0
  301. /package/src/{interfaces → types}/Relation.ts +0 -0
  302. /package/src/{domain → types}/Store.spec.ts +0 -0
  303. /package/src/{domain → types}/Type.ts +0 -0
  304. /package/src/{interfaces → types}/ValueOf.ts +0 -0
  305. /package/src/utils/{objects/ancestorOf.ts → ancestorOf.ts} +0 -0
  306. /package/src/utils/{objects/ancestorsOf.ts → ancestorsOf.ts} +0 -0
  307. /package/src/utils/{objects/classOf.ts → classOf.ts} +0 -0
  308. /package/src/utils/{objects/cleanObject.spec.ts → cleanObject.spec.ts} +0 -0
  309. /package/src/utils/{objects/cleanObject.ts → cleanObject.ts} +0 -0
  310. /package/src/utils/{objects/createInstance.ts → createInstance.ts} +0 -0
  311. /package/src/utils/{decorators/decoratorTypeOf.spec.ts → decoratorTypeOf.spec.ts} +0 -0
  312. /package/src/utils/{objects/deepClone.spec.ts → deepClone.spec.ts} +0 -0
  313. /package/src/utils/{objects/deepClone.ts → deepClone.ts} +0 -0
  314. /package/src/utils/{objects/deepMerge.spec.ts → deepMerge.spec.ts} +0 -0
  315. /package/src/utils/{objects/deepMerge.ts → deepMerge.ts} +0 -0
  316. /package/src/utils/{objects/descriptorOf.spec.ts → descriptorOf.spec.ts} +0 -0
  317. /package/src/utils/{objects/descriptorOf.ts → descriptorOf.ts} +0 -0
  318. /package/src/utils/{objects/getClassOrSymbol.ts → getClassOrSymbol.ts} +0 -0
  319. /package/src/utils/{objects/getConstructorArgNames.spec.ts → getConstructorArgNames.spec.ts} +0 -0
  320. /package/src/utils/{objects/getConstructorArgNames.ts → getConstructorArgNames.ts} +0 -0
  321. /package/src/utils/{objects/getValue.spec.ts → getValue.spec.ts} +0 -0
  322. /package/src/utils/{objects/getValue.ts → getValue.ts} +0 -0
  323. /package/src/utils/{objects/hasJsonMethod.spec.ts → hasJsonMethod.spec.ts} +0 -0
  324. /package/src/utils/{objects/hasJsonMethod.ts → hasJsonMethod.ts} +0 -0
  325. /package/src/utils/{objects/isArray.ts → isArray.ts} +0 -0
  326. /package/src/utils/{objects/isArrowFn.ts → isArrowFn.ts} +0 -0
  327. /package/src/utils/{objects/isBoolean.ts → isBoolean.ts} +0 -0
  328. /package/src/utils/{objects/isBuffer.spec.ts → isBuffer.spec.ts} +0 -0
  329. /package/src/utils/{objects/isBuffer.ts → isBuffer.ts} +0 -0
  330. /package/src/utils/{objects/isClass.spec.ts → isClass.spec.ts} +0 -0
  331. /package/src/utils/{objects/isClass.ts → isClass.ts} +0 -0
  332. /package/src/utils/{objects/isCollection.ts → isCollection.ts} +0 -0
  333. /package/src/utils/{objects/isDate.ts → isDate.ts} +0 -0
  334. /package/src/utils/{objects/isEmpty.spec.ts → isEmpty.spec.ts} +0 -0
  335. /package/src/utils/{objects/isEmpty.ts → isEmpty.ts} +0 -0
  336. /package/src/utils/{objects/isFunction.ts → isFunction.ts} +0 -0
  337. /package/src/utils/{objects/isInheritedFrom.ts → isInheritedFrom.ts} +0 -0
  338. /package/src/utils/{objects/isMomentObject.spec.ts → isMomentObject.spec.ts} +0 -0
  339. /package/src/utils/{objects/isMomentObject.ts → isMomentObject.ts} +0 -0
  340. /package/src/utils/{objects/isMongooseObject.spec.ts → isMongooseObject.spec.ts} +0 -0
  341. /package/src/utils/{objects/isMongooseObject.ts → isMongooseObject.ts} +0 -0
  342. /package/src/utils/{objects/isNil.spec.ts → isNil.spec.ts} +0 -0
  343. /package/src/utils/{objects/isNil.ts → isNil.ts} +0 -0
  344. /package/src/utils/{objects/isNumber.ts → isNumber.ts} +0 -0
  345. /package/src/utils/{objects/isObject.ts → isObject.ts} +0 -0
  346. /package/src/utils/{objects/isObservable.ts → isObservable.ts} +0 -0
  347. /package/src/utils/{objects/isPlainObject.spec.ts → isPlainObject.spec.ts} +0 -0
  348. /package/src/utils/{objects/isPlainObject.ts → isPlainObject.ts} +0 -0
  349. /package/src/utils/{objects/isPrimitive.spec.ts → isPrimitive.spec.ts} +0 -0
  350. /package/src/utils/{objects/isPrimitive.ts → isPrimitive.ts} +0 -0
  351. /package/src/utils/{objects/isPromise.ts → isPromise.ts} +0 -0
  352. /package/src/utils/{objects/isProtectedKey.spec.ts → isProtectedKey.spec.ts} +0 -0
  353. /package/src/utils/{objects/isProtectedKey.ts → isProtectedKey.ts} +0 -0
  354. /package/src/utils/{objects/isRegExp.ts → isRegExp.ts} +0 -0
  355. /package/src/utils/{objects/isSerializable.spec.ts → isSerializable.spec.ts} +0 -0
  356. /package/src/utils/{objects/isSerializable.ts → isSerializable.ts} +0 -0
  357. /package/src/utils/{objects/isStream.ts → isStream.ts} +0 -0
  358. /package/src/utils/{objects/isString.ts → isString.ts} +0 -0
  359. /package/src/utils/{objects/isSymbol.spec.ts → isSymbol.spec.ts} +0 -0
  360. /package/src/utils/{objects/isSymbol.ts → isSymbol.ts} +0 -0
  361. /package/src/utils/{objects/methodsOf.spec.ts → methodsOf.spec.ts} +0 -0
  362. /package/src/utils/{objects/nameOf.ts → nameOf.ts} +0 -0
  363. /package/src/utils/{objects/objectKeys.spec.ts → objectKeys.spec.ts} +0 -0
  364. /package/src/utils/{objects/objectKeys.ts → objectKeys.ts} +0 -0
  365. /package/src/utils/{objects/primitiveOf.ts → primitiveOf.ts} +0 -0
  366. /package/src/utils/{objects/prototypeOf.ts → prototypeOf.ts} +0 -0
  367. /package/src/utils/{objects/setValue.spec.ts → setValue.spec.ts} +0 -0
  368. /package/src/utils/{objects/setValue.ts → setValue.ts} +0 -0
  369. /package/src/utils/{objects/toMap.spec.ts → toMap.spec.ts} +0 -0
  370. /package/src/utils/{objects/toMap.ts → toMap.ts} +0 -0
  371. /package/src/utils/{objects/toStringConstructor.ts → toStringConstructor.ts} +0 -0
  372. /package/src/utils/{objects/toStringConstrutor.spec.ts → toStringConstrutor.spec.ts} +0 -0
  373. /package/src/utils/{objects/uniq.spec.ts → uniq.spec.ts} +0 -0
  374. /package/src/utils/{objects/uniq.ts → uniq.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toStringConstructor.js","sourceRoot":"","sources":["../../../src/utils/toStringConstructor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEjD,MAAM,UAAU,mBAAmB,CAAC,MAAW;IAC7C,MAAM,GAAG,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,eAAe,CAAC;IAEzF,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC;AAChD,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uniq.js","sourceRoot":"","sources":["../../../src/utils/uniq.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,UAAU,IAAI,CAAU,IAAS;IACrC,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,MAAM,CAAU,IAAS,EAAE,GAAG,GAAG,IAAI;IACnD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;IAEtB,IAAI,CAAC,OAAO,CAAC,CAAC,IAAS,EAAE,EAAE;QACzB,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;AAClC,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useDecorators.js","sourceRoot":"","sources":["../../../src/utils/useDecorators.ts"],"names":[],"mappings":"AAGA,MAAM,UAAU,aAAa,CAAC,GAAG,UAA0B;IACzD,OAAO,CAAC,GAAG,IAAyB,EAAE,EAAE;QACtC,MAAM,QAAQ,GAAG,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC;QAC7C,UAAU;aACP,MAAM,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aACvB,OAAO,CAAC,CAAC,SAAmB,EAAE,EAAE;YAC/B,MAAM,UAAU,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,CAAC;YAEtC,IAAI,QAAQ,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;gBAC/C,IAAI,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC;YACvB,CAAC;QACH,CAAC,CAAC,CAAC;QAEL,IAAI,QAAQ,EAAE,CAAC;YACb,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB,CAAC;IACH,CAAC,CAAC;AACJ,CAAC"}
@@ -1,4 +1,4 @@
1
- import { descriptorOf } from "../objects/descriptorOf.js";
1
+ import { descriptorOf } from "./descriptorOf.js";
2
2
  export function useMethodDecorator(decorator) {
3
3
  return (target, propertyKey) => decorator(target, propertyKey, descriptorOf(target, propertyKey));
4
4
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMethodDecorators.js","sourceRoot":"","sources":["../../../src/utils/useMethodDecorators.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,MAAM,UAAU,kBAAkB,CAAC,SAAuB;IACxD,OAAO,CAAC,MAAW,EAAE,WAA4B,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC;AAC1H,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAC,GAAG,UAA0B;IAC/D,OAAO,CAAC,MAAW,EAAE,WAA4B,EAAE,EAAE;QACnD,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACvH,CAAC,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
- import { Store } from "../domain/Store.js";
2
- import { DecoratorParameters } from "../interfaces/DecoratorParameters.js";
1
+ import { DecoratorParameters } from "../types/DecoratorParameters.js";
2
+ import { Store } from "../types/Store.js";
3
3
  /**
4
4
  * Create a store correctly configured from the parameters given by the decorator.
5
5
  * The `fn` can return a decorator that will be initialized with the parameters (target, propertyKey, descriptor).
@@ -4,72 +4,72 @@
4
4
  export * from "./decorators/storeFn.js";
5
5
  export * from "./decorators/storeMerge.js";
6
6
  export * from "./decorators/storeSet.js";
7
- export * from "./domain/AnyToPromise.js";
8
- export * from "./domain/DecoratorTypes.js";
9
- export * from "./domain/Env.js";
10
- export * from "./domain/Metadata.js";
11
- export * from "./domain/Store.js";
12
- export * from "./domain/Type.js";
13
7
  export * from "./errors/UnsupportedDecoratorType.js";
14
- export * from "./interfaces/AnyDecorator.js";
15
- export * from "./interfaces/DecoratorParameters.js";
16
- export * from "./interfaces/MetadataTypes.js";
17
- export * from "./interfaces/Relation.js";
18
- export * from "./interfaces/ValueOf.js";
8
+ export * from "./types/AnyDecorator.js";
9
+ export * from "./types/DecoratorParameters.js";
10
+ export * from "./types/DecoratorTypes.js";
11
+ export * from "./types/Env.js";
12
+ export * from "./types/Metadata.js";
13
+ export * from "./types/MetadataTypes.js";
14
+ export * from "./types/Relation.js";
15
+ export * from "./types/Store.js";
16
+ export * from "./types/Type.js";
17
+ export * from "./types/ValueOf.js";
18
+ export * from "./utils/ancestorOf.js";
19
+ export * from "./utils/ancestorsOf.js";
20
+ export * from "./utils/AnyToPromise.js";
19
21
  export * from "./utils/catchError.js";
20
- export * from "./utils/decorators/decorateMethodsOf.js";
21
- export * from "./utils/decorators/decoratorArgs.js";
22
- export * from "./utils/decorators/decoratorTypeOf.js";
23
- export * from "./utils/decorators/inheritedDescriptorOf.js";
24
- export * from "./utils/decorators/useDecorators.js";
25
- export * from "./utils/decorators/useMethodDecorators.js";
22
+ export * from "./utils/classOf.js";
23
+ export * from "./utils/cleanObject.js";
24
+ export * from "./utils/constructorOf.js";
25
+ export * from "./utils/createInstance.js";
26
+ export * from "./utils/decorateMethodsOf.js";
27
+ export * from "./utils/decoratorArgs.js";
28
+ export * from "./utils/decoratorTypeOf.js";
29
+ export * from "./utils/deepClone.js";
30
+ export * from "./utils/deepMerge.js";
31
+ export * from "./utils/descriptorOf.js";
32
+ export * from "./utils/getClassOrSymbol.js";
33
+ export * from "./utils/getConstructorArgNames.js";
26
34
  export * from "./utils/getRandomId.js";
35
+ export * from "./utils/getValue.js";
36
+ export * from "./utils/hasJsonMethod.js";
27
37
  export * from "./utils/http/getHostInfoFromPort.js";
28
- export * from "./utils/objects/ancestorOf.js";
29
- export * from "./utils/objects/ancestorsOf.js";
30
- export * from "./utils/objects/classOf.js";
31
- export * from "./utils/objects/cleanObject.js";
32
- export * from "./utils/objects/constructorOf.js";
33
- export * from "./utils/objects/createInstance.js";
34
- export * from "./utils/objects/deepClone.js";
35
- export * from "./utils/objects/deepMerge.js";
36
- export * from "./utils/objects/descriptorOf.js";
37
- export * from "./utils/objects/getClassOrSymbol.js";
38
- export * from "./utils/objects/getConstructorArgNames.js";
39
- export * from "./utils/objects/getValue.js";
40
- export * from "./utils/objects/hasJsonMethod.js";
41
- export * from "./utils/objects/isArray.js";
42
- export * from "./utils/objects/isArrowFn.js";
43
- export * from "./utils/objects/isBoolean.js";
44
- export * from "./utils/objects/isBuffer.js";
45
- export * from "./utils/objects/isClass.js";
46
- export * from "./utils/objects/isCollection.js";
47
- export * from "./utils/objects/isDate.js";
48
- export * from "./utils/objects/isEmpty.js";
49
- export * from "./utils/objects/isEnumerable.js";
50
- export * from "./utils/objects/isFunction.js";
51
- export * from "./utils/objects/isInheritedFrom.js";
52
- export * from "./utils/objects/isMomentObject.js";
53
- export * from "./utils/objects/isMongooseObject.js";
54
- export * from "./utils/objects/isNil.js";
55
- export * from "./utils/objects/isNumber.js";
56
- export * from "./utils/objects/isObject.js";
57
- export * from "./utils/objects/isObservable.js";
58
- export * from "./utils/objects/isPlainObject.js";
59
- export * from "./utils/objects/isPrimitive.js";
60
- export * from "./utils/objects/isPromise.js";
61
- export * from "./utils/objects/isProtectedKey.js";
62
- export * from "./utils/objects/isRegExp.js";
63
- export * from "./utils/objects/isSerializable.js";
64
- export * from "./utils/objects/isStream.js";
65
- export * from "./utils/objects/isString.js";
66
- export * from "./utils/objects/isSymbol.js";
67
- export * from "./utils/objects/methodsOf.js";
68
- export * from "./utils/objects/nameOf.js";
69
- export * from "./utils/objects/objectKeys.js";
70
- export * from "./utils/objects/primitiveOf.js";
71
- export * from "./utils/objects/prototypeOf.js";
72
- export * from "./utils/objects/setValue.js";
73
- export * from "./utils/objects/toMap.js";
74
- export * from "./utils/objects/toStringConstructor.js";
75
- export * from "./utils/objects/uniq.js";
38
+ export * from "./utils/inheritedDescriptorOf.js";
39
+ export * from "./utils/isArray.js";
40
+ export * from "./utils/isArrowFn.js";
41
+ export * from "./utils/isBoolean.js";
42
+ export * from "./utils/isBuffer.js";
43
+ export * from "./utils/isClass.js";
44
+ export * from "./utils/isCollection.js";
45
+ export * from "./utils/isDate.js";
46
+ export * from "./utils/isEmpty.js";
47
+ export * from "./utils/isEnumerable.js";
48
+ export * from "./utils/isFunction.js";
49
+ export * from "./utils/isInheritedFrom.js";
50
+ export * from "./utils/isMomentObject.js";
51
+ export * from "./utils/isMongooseObject.js";
52
+ export * from "./utils/isNil.js";
53
+ export * from "./utils/isNumber.js";
54
+ export * from "./utils/isObject.js";
55
+ export * from "./utils/isObservable.js";
56
+ export * from "./utils/isPlainObject.js";
57
+ export * from "./utils/isPrimitive.js";
58
+ export * from "./utils/isPromise.js";
59
+ export * from "./utils/isProtectedKey.js";
60
+ export * from "./utils/isRegExp.js";
61
+ export * from "./utils/isSerializable.js";
62
+ export * from "./utils/isStream.js";
63
+ export * from "./utils/isString.js";
64
+ export * from "./utils/isSymbol.js";
65
+ export * from "./utils/methodsOf.js";
66
+ export * from "./utils/nameOf.js";
67
+ export * from "./utils/objectKeys.js";
68
+ export * from "./utils/primitiveOf.js";
69
+ export * from "./utils/prototypeOf.js";
70
+ export * from "./utils/setValue.js";
71
+ export * from "./utils/toMap.js";
72
+ export * from "./utils/toStringConstructor.js";
73
+ export * from "./utils/uniq.js";
74
+ export * from "./utils/useDecorators.js";
75
+ export * from "./utils/useMethodDecorators.js";
@@ -1,4 +1,4 @@
1
- import type { Type } from "../domain/Type.js";
1
+ import type { Type } from "./Type.js";
2
2
  export interface MetadataTypes<T = any, C = any> {
3
3
  type?: Type<T> | T;
4
4
  collectionType?: Type<C> | C;
@@ -1,4 +1,4 @@
1
- import type { Type } from "../../domain/Type.js";
1
+ import type { Type } from "../types/Type.js";
2
2
  /**
3
3
  * Get the class constructor
4
4
  * @param target
@@ -1,2 +1,2 @@
1
- import { DecoratorParameters } from "../../interfaces/DecoratorParameters.js";
1
+ import { DecoratorParameters } from "../types/DecoratorParameters.js";
2
2
  export declare function decoratorArgs(target: any, propertyKey: string): DecoratorParameters;
@@ -1,2 +1,2 @@
1
- import { DecoratorTypes } from "../../domain/DecoratorTypes.js";
1
+ import { DecoratorTypes } from "../types/DecoratorTypes.js";
2
2
  export declare function decoratorTypeOf(args: any[]): DecoratorTypes;
@@ -1,4 +1,4 @@
1
- import { Type } from "../../domain/Type.js";
1
+ import { Type } from "../types/Type.js";
2
2
  /**
3
3
  * Return all methods for a given class.
4
4
  * @param target
@@ -1,2 +1,2 @@
1
- import { AnyDecorator } from "../../interfaces/AnyDecorator.js";
1
+ import { AnyDecorator } from "../types/AnyDecorator.js";
2
2
  export declare function useDecorators(...decorators: AnyDecorator[]): any;
@@ -1,3 +1,3 @@
1
- import { AnyDecorator } from "../../interfaces/AnyDecorator.js";
1
+ import { AnyDecorator } from "../types/AnyDecorator.js";
2
2
  export declare function useMethodDecorator(decorator: AnyDecorator): (target: any, propertyKey: string | symbol) => any;
3
3
  export declare function useMethodDecorators(...decorators: AnyDecorator[]): (target: any, propertyKey: string | symbol) => void;
package/package.json CHANGED
@@ -2,31 +2,28 @@
2
2
  "name": "@tsed/core",
3
3
  "description": "Core module for Ts.ED Framework",
4
4
  "type": "module",
5
- "version": "8.9.5",
5
+ "version": "8.10.0-rc.2",
6
6
  "source": "./src/index.ts",
7
7
  "main": "./lib/esm/index.js",
8
8
  "module": "./lib/esm/index.js",
9
9
  "typings": "./lib/types/index.d.ts",
10
- "browser": "./lib/browser/core.umd.min.js",
11
10
  "exports": {
12
11
  ".": {
13
12
  "tsed-source": "./src/index.ts",
14
13
  "types": "./lib/types/index.d.ts",
15
- "browser": "./lib/browser/core.umd.min.js",
16
14
  "import": "./lib/esm/index.js",
17
15
  "default": "./lib/esm/index.js"
18
16
  },
19
- "./**/*": {
20
- "tsed-source": "./src/**/*.ts",
21
- "types": "./lib/types/**/*.d.ts",
22
- "import": "./lib/esm/**/*.js",
23
- "default": "./lib/esm/**/*.js"
17
+ "./*.js": {
18
+ "tsed-source": "./src/*.ts",
19
+ "types": "./lib/types/*.d.ts",
20
+ "import": "./lib/esm/*.js",
21
+ "default": "./lib/esm/*.js"
24
22
  }
25
23
  },
26
24
  "scripts": {
27
- "build": "yarn barrels && yarn build:ts && yarn run build:browser",
25
+ "build": "yarn barrels && yarn build:ts",
28
26
  "barrels": "barrels",
29
- "build:browser": "webpack",
30
27
  "build:ts": "tsc --build tsconfig.esm.json",
31
28
  "test": "vitest run",
32
29
  "test:ci": "vitest run --coverage.thresholds.autoUpdate=true"
@@ -36,15 +33,12 @@
36
33
  "tslib": "2.7.0"
37
34
  },
38
35
  "devDependencies": {
39
- "@tsed/barrels": "8.9.5",
40
- "@tsed/monorepo-utils": "2.3.11",
41
- "@tsed/typescript": "8.9.5",
42
- "@tsed/vitest": "8.9.5",
43
- "eslint": "9.12.0",
36
+ "@tsed/barrels": "8.10.0-rc.2",
37
+ "@tsed/monorepo-utils": "2.3.13",
38
+ "@tsed/typescript": "8.10.0-rc.2",
39
+ "@tsed/vitest": "8.10.0-rc.2",
44
40
  "typescript": "5.4.5",
45
- "vite": "6.3.5",
46
- "vitest": "3.1.4",
47
- "webpack": "^5.75.0"
41
+ "vitest": "3.1.4"
48
42
  },
49
43
  "peerDependencies": {},
50
44
  "repository": "https://github.com/tsedio/tsed",
@@ -53,5 +47,8 @@
53
47
  },
54
48
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/core",
55
49
  "author": "Romain Lenzotti",
56
- "license": "MIT"
50
+ "license": "MIT",
51
+ "publishConfig": {
52
+ "tag": "rc"
53
+ }
57
54
  }
@@ -1,5 +1,5 @@
1
- import {Store} from "../domain/Store.js";
2
- import {DecoratorParameters} from "../interfaces/DecoratorParameters.js";
1
+ import {DecoratorParameters} from "../types/DecoratorParameters.js";
2
+ import {Store} from "../types/Store.js";
3
3
 
4
4
  /**
5
5
  * Create a store correctly configured from the parameters given by the decorator.
@@ -1,4 +1,4 @@
1
- import {Store} from "../domain/Store.js";
1
+ import {Store} from "../types/Store.js";
2
2
  import {StoreFn} from "./storeFn.js";
3
3
 
4
4
  export function StoreMerge(key: any, value: any): Function {
@@ -1,4 +1,4 @@
1
- import {Store} from "../domain/Store.js";
1
+ import {Store} from "../types/Store.js";
2
2
  import {StoreFn} from "./storeFn.js";
3
3
 
4
4
  export function StoreSet(key: any, value: any): Function {
@@ -1,6 +1,6 @@
1
- import {decoratorTypeOf} from "../utils/decorators/decoratorTypeOf.js";
2
- import {classOf} from "../utils/objects/classOf.js";
3
- import {nameOf} from "../utils/objects/nameOf.js";
1
+ import {classOf} from "../utils/classOf.js";
2
+ import {decoratorTypeOf} from "../utils/decoratorTypeOf.js";
3
+ import {nameOf} from "../utils/nameOf.js";
4
4
 
5
5
  export class UnsupportedDecoratorType extends Error {
6
6
  name: "UNSUPPORTED_DECORATOR_TYPE";
package/src/index.ts CHANGED
@@ -4,72 +4,72 @@
4
4
  export * from "./decorators/storeFn.js";
5
5
  export * from "./decorators/storeMerge.js";
6
6
  export * from "./decorators/storeSet.js";
7
- export * from "./domain/AnyToPromise.js";
8
- export * from "./domain/DecoratorTypes.js";
9
- export * from "./domain/Env.js";
10
- export * from "./domain/Metadata.js";
11
- export * from "./domain/Store.js";
12
- export * from "./domain/Type.js";
13
7
  export * from "./errors/UnsupportedDecoratorType.js";
14
- export * from "./interfaces/AnyDecorator.js";
15
- export * from "./interfaces/DecoratorParameters.js";
16
- export * from "./interfaces/MetadataTypes.js";
17
- export * from "./interfaces/Relation.js";
18
- export * from "./interfaces/ValueOf.js";
8
+ export * from "./types/AnyDecorator.js";
9
+ export * from "./types/DecoratorParameters.js";
10
+ export * from "./types/DecoratorTypes.js";
11
+ export * from "./types/Env.js";
12
+ export * from "./types/Metadata.js";
13
+ export * from "./types/MetadataTypes.js";
14
+ export * from "./types/Relation.js";
15
+ export * from "./types/Store.js";
16
+ export * from "./types/Type.js";
17
+ export * from "./types/ValueOf.js";
18
+ export * from "./utils/ancestorOf.js";
19
+ export * from "./utils/ancestorsOf.js";
20
+ export * from "./utils/AnyToPromise.js";
19
21
  export * from "./utils/catchError.js";
20
- export * from "./utils/decorators/decorateMethodsOf.js";
21
- export * from "./utils/decorators/decoratorArgs.js";
22
- export * from "./utils/decorators/decoratorTypeOf.js";
23
- export * from "./utils/decorators/inheritedDescriptorOf.js";
24
- export * from "./utils/decorators/useDecorators.js";
25
- export * from "./utils/decorators/useMethodDecorators.js";
22
+ export * from "./utils/classOf.js";
23
+ export * from "./utils/cleanObject.js";
24
+ export * from "./utils/constructorOf.js";
25
+ export * from "./utils/createInstance.js";
26
+ export * from "./utils/decorateMethodsOf.js";
27
+ export * from "./utils/decoratorArgs.js";
28
+ export * from "./utils/decoratorTypeOf.js";
29
+ export * from "./utils/deepClone.js";
30
+ export * from "./utils/deepMerge.js";
31
+ export * from "./utils/descriptorOf.js";
32
+ export * from "./utils/getClassOrSymbol.js";
33
+ export * from "./utils/getConstructorArgNames.js";
26
34
  export * from "./utils/getRandomId.js";
35
+ export * from "./utils/getValue.js";
36
+ export * from "./utils/hasJsonMethod.js";
27
37
  export * from "./utils/http/getHostInfoFromPort.js";
28
- export * from "./utils/objects/ancestorOf.js";
29
- export * from "./utils/objects/ancestorsOf.js";
30
- export * from "./utils/objects/classOf.js";
31
- export * from "./utils/objects/cleanObject.js";
32
- export * from "./utils/objects/constructorOf.js";
33
- export * from "./utils/objects/createInstance.js";
34
- export * from "./utils/objects/deepClone.js";
35
- export * from "./utils/objects/deepMerge.js";
36
- export * from "./utils/objects/descriptorOf.js";
37
- export * from "./utils/objects/getClassOrSymbol.js";
38
- export * from "./utils/objects/getConstructorArgNames.js";
39
- export * from "./utils/objects/getValue.js";
40
- export * from "./utils/objects/hasJsonMethod.js";
41
- export * from "./utils/objects/isArray.js";
42
- export * from "./utils/objects/isArrowFn.js";
43
- export * from "./utils/objects/isBoolean.js";
44
- export * from "./utils/objects/isBuffer.js";
45
- export * from "./utils/objects/isClass.js";
46
- export * from "./utils/objects/isCollection.js";
47
- export * from "./utils/objects/isDate.js";
48
- export * from "./utils/objects/isEmpty.js";
49
- export * from "./utils/objects/isEnumerable.js";
50
- export * from "./utils/objects/isFunction.js";
51
- export * from "./utils/objects/isInheritedFrom.js";
52
- export * from "./utils/objects/isMomentObject.js";
53
- export * from "./utils/objects/isMongooseObject.js";
54
- export * from "./utils/objects/isNil.js";
55
- export * from "./utils/objects/isNumber.js";
56
- export * from "./utils/objects/isObject.js";
57
- export * from "./utils/objects/isObservable.js";
58
- export * from "./utils/objects/isPlainObject.js";
59
- export * from "./utils/objects/isPrimitive.js";
60
- export * from "./utils/objects/isPromise.js";
61
- export * from "./utils/objects/isProtectedKey.js";
62
- export * from "./utils/objects/isRegExp.js";
63
- export * from "./utils/objects/isSerializable.js";
64
- export * from "./utils/objects/isStream.js";
65
- export * from "./utils/objects/isString.js";
66
- export * from "./utils/objects/isSymbol.js";
67
- export * from "./utils/objects/methodsOf.js";
68
- export * from "./utils/objects/nameOf.js";
69
- export * from "./utils/objects/objectKeys.js";
70
- export * from "./utils/objects/primitiveOf.js";
71
- export * from "./utils/objects/prototypeOf.js";
72
- export * from "./utils/objects/setValue.js";
73
- export * from "./utils/objects/toMap.js";
74
- export * from "./utils/objects/toStringConstructor.js";
75
- export * from "./utils/objects/uniq.js";
38
+ export * from "./utils/inheritedDescriptorOf.js";
39
+ export * from "./utils/isArray.js";
40
+ export * from "./utils/isArrowFn.js";
41
+ export * from "./utils/isBoolean.js";
42
+ export * from "./utils/isBuffer.js";
43
+ export * from "./utils/isClass.js";
44
+ export * from "./utils/isCollection.js";
45
+ export * from "./utils/isDate.js";
46
+ export * from "./utils/isEmpty.js";
47
+ export * from "./utils/isEnumerable.js";
48
+ export * from "./utils/isFunction.js";
49
+ export * from "./utils/isInheritedFrom.js";
50
+ export * from "./utils/isMomentObject.js";
51
+ export * from "./utils/isMongooseObject.js";
52
+ export * from "./utils/isNil.js";
53
+ export * from "./utils/isNumber.js";
54
+ export * from "./utils/isObject.js";
55
+ export * from "./utils/isObservable.js";
56
+ export * from "./utils/isPlainObject.js";
57
+ export * from "./utils/isPrimitive.js";
58
+ export * from "./utils/isPromise.js";
59
+ export * from "./utils/isProtectedKey.js";
60
+ export * from "./utils/isRegExp.js";
61
+ export * from "./utils/isSerializable.js";
62
+ export * from "./utils/isStream.js";
63
+ export * from "./utils/isString.js";
64
+ export * from "./utils/isSymbol.js";
65
+ export * from "./utils/methodsOf.js";
66
+ export * from "./utils/nameOf.js";
67
+ export * from "./utils/objectKeys.js";
68
+ export * from "./utils/primitiveOf.js";
69
+ export * from "./utils/prototypeOf.js";
70
+ export * from "./utils/setValue.js";
71
+ export * from "./utils/toMap.js";
72
+ export * from "./utils/toStringConstructor.js";
73
+ export * from "./utils/uniq.js";
74
+ export * from "./utils/useDecorators.js";
75
+ export * from "./utils/useMethodDecorators.js";
@@ -1,6 +1,6 @@
1
1
  import "reflect-metadata";
2
2
 
3
- import {classOf} from "../utils/objects/classOf.js";
3
+ import {classOf} from "../utils/classOf.js";
4
4
 
5
5
  /**
6
6
  * Metadata key
@@ -1,4 +1,4 @@
1
- import type {Type} from "../domain/Type.js";
1
+ import type {Type} from "./Type.js";
2
2
 
3
3
  export interface MetadataTypes<T = any, C = any> {
4
4
  type?: Type<T> | T;
@@ -1,10 +1,10 @@
1
- import {DecoratorTypes} from "../domain/DecoratorTypes.js";
2
- import {decoratorTypeOf} from "../utils/decorators/decoratorTypeOf.js";
3
- import {deepClone} from "../utils/objects/deepClone.js";
4
- import {deepMerge} from "../utils/objects/deepMerge.js";
5
- import {descriptorOf} from "../utils/objects/descriptorOf.js";
6
- import {isSymbol} from "../utils/objects/isSymbol.js";
7
- import {nameOf} from "../utils/objects/nameOf.js";
1
+ import {decoratorTypeOf} from "../utils/decoratorTypeOf.js";
2
+ import {deepClone} from "../utils/deepClone.js";
3
+ import {deepMerge} from "../utils/deepMerge.js";
4
+ import {descriptorOf} from "../utils/descriptorOf.js";
5
+ import {isSymbol} from "../utils/isSymbol.js";
6
+ import {nameOf} from "../utils/nameOf.js";
7
+ import {DecoratorTypes} from "./DecoratorTypes.js";
8
8
  import {Metadata} from "./Metadata.js";
9
9
  import type {Type} from "./Type.js";
10
10
 
@@ -2,9 +2,9 @@ import {createReadStream} from "node:fs";
2
2
 
3
3
  import {of} from "rxjs";
4
4
 
5
- import {catchAsyncError} from "../utils/catchError.js";
6
- import {isStream} from "../utils/objects/isStream.js";
7
5
  import {AnyToPromise, AnyToPromiseStatus} from "./AnyToPromise.js";
6
+ import {catchAsyncError} from "./catchError.js";
7
+ import {isStream} from "./isStream.js";
8
8
 
9
9
  const rootDir = import.meta.dirname; // automatically replaced by import.meta.dirname on build
10
10
 
@@ -1,7 +1,7 @@
1
- import {isObject} from "../utils/objects/isObject.js";
2
- import {isObservable} from "../utils/objects/isObservable.js";
3
- import {isPromise} from "../utils/objects/isPromise.js";
4
- import {isStream} from "../utils/objects/isStream.js";
1
+ import {isObject} from "./isObject.js";
2
+ import {isObservable} from "./isObservable.js";
3
+ import {isPromise} from "./isPromise.js";
4
+ import {isStream} from "./isStream.js";
5
5
 
6
6
  /**
7
7
  * @ignore
@@ -16,7 +16,7 @@ import {
16
16
  nameOf,
17
17
  nameOfClass,
18
18
  primitiveOf
19
- } from "../../index.js";
19
+ } from "../index.js";
20
20
 
21
21
  class Base {
22
22
  test1() {}
@@ -1,4 +1,4 @@
1
- import type {Type} from "../../domain/Type.js";
1
+ import type {Type} from "../types/Type.js";
2
2
 
3
3
  /**
4
4
  * Get the class constructor
@@ -1,8 +1,8 @@
1
- import {StoreMerge} from "../../decorators/storeMerge.js";
2
- import {StoreSet} from "../../decorators/storeSet.js";
3
- import {Store} from "../../domain/Store.js";
4
- import {descriptorOf} from "../objects/descriptorOf.js";
1
+ import {StoreMerge} from "../decorators/storeMerge.js";
2
+ import {StoreSet} from "../decorators/storeSet.js";
3
+ import {Store} from "../types/Store.js";
5
4
  import {decorateMethodsOf} from "./decorateMethodsOf.js";
5
+ import {descriptorOf} from "./descriptorOf.js";
6
6
 
7
7
  describe("decorateMethodsOf", () => {
8
8
  it("should decorate all methods", () => {
@@ -1,8 +1,8 @@
1
- import {Store} from "../../domain/Store.js";
2
- import {classOf} from "../objects/classOf.js";
3
- import {descriptorOf} from "../objects/descriptorOf.js";
4
- import {methodsOf} from "../objects/methodsOf.js";
5
- import {prototypeOf} from "../objects/prototypeOf.js";
1
+ import {Store} from "../types/Store.js";
2
+ import {classOf} from "./classOf.js";
3
+ import {descriptorOf} from "./descriptorOf.js";
4
+ import {methodsOf} from "./methodsOf.js";
5
+ import {prototypeOf} from "./prototypeOf.js";
6
6
 
7
7
  export function decorateMethodsOf(klass: any, decorator: any) {
8
8
  methodsOf(klass).forEach(({target, propertyKey}) => {
@@ -1,6 +1,6 @@
1
- import {descriptorOf} from "../objects/descriptorOf.js";
2
- import {prototypeOf} from "../objects/prototypeOf.js";
3
1
  import {decoratorArgs} from "./decoratorArgs.js";
2
+ import {descriptorOf} from "./descriptorOf.js";
3
+ import {prototypeOf} from "./prototypeOf.js";
4
4
 
5
5
  describe("decoratorArgs", () => {
6
6
  it("should return decorator arguments", () => {
@@ -1,5 +1,5 @@
1
- import {DecoratorParameters} from "../../interfaces/DecoratorParameters.js";
2
- import {descriptorOf} from "../objects/descriptorOf.js";
1
+ import {DecoratorParameters} from "../types/DecoratorParameters.js";
2
+ import {descriptorOf} from "./descriptorOf.js";
3
3
 
4
4
  export function decoratorArgs(target: any, propertyKey: string): DecoratorParameters {
5
5
  return [target, propertyKey, descriptorOf(target, propertyKey)!];
@@ -1,5 +1,5 @@
1
- import {DecoratorTypes} from "../../domain/DecoratorTypes.js";
2
- import {classOf} from "../objects/classOf.js";
1
+ import {DecoratorTypes} from "../types/DecoratorTypes.js";
2
+ import {classOf} from "./classOf.js";
3
3
 
4
4
  export function decoratorTypeOf(args: any[]): DecoratorTypes {
5
5
  const [target, propertyKey, descriptor] = args;
@@ -1,4 +1,4 @@
1
- import {ancestorsOf} from "../objects/ancestorsOf.js";
1
+ import {ancestorsOf} from "./ancestorsOf.js";
2
2
 
3
3
  export function inheritedDescriptorOf(target: any, propertyKey: string): PropertyDescriptor | undefined {
4
4
  for (const klass of ancestorsOf(target)) {
@@ -1,5 +1,5 @@
1
- import {inheritedDescriptorOf} from "../decorators/inheritedDescriptorOf.js";
2
1
  import {classOf} from "./classOf.js";
2
+ import {inheritedDescriptorOf} from "./inheritedDescriptorOf.js";
3
3
 
4
4
  /**
5
5
  *