@tsed/core 6.88.1 → 6.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/lib/{decorators → cjs/decorators}/configurable.d.ts +0 -0
  2. package/lib/cjs/decorators/configurable.js +18 -0
  3. package/lib/cjs/decorators/configurable.js.map +1 -0
  4. package/lib/{decorators → cjs/decorators}/deprecated.d.ts +0 -0
  5. package/lib/cjs/decorators/deprecated.js +43 -0
  6. package/lib/cjs/decorators/deprecated.js.map +1 -0
  7. package/lib/{decorators → cjs/decorators}/enumerable.d.ts +0 -0
  8. package/lib/cjs/decorators/enumerable.js +18 -0
  9. package/lib/cjs/decorators/enumerable.js.map +1 -0
  10. package/lib/{decorators → cjs/decorators}/index.d.ts +0 -0
  11. package/lib/cjs/decorators/index.js +18 -0
  12. package/lib/cjs/decorators/index.js.map +1 -0
  13. package/lib/{decorators → cjs/decorators}/notConfigurable.d.ts +0 -0
  14. package/lib/cjs/decorators/notConfigurable.js +13 -0
  15. package/lib/cjs/decorators/notConfigurable.js.map +1 -0
  16. package/lib/{decorators → cjs/decorators}/notEnumerable.d.ts +0 -0
  17. package/lib/cjs/decorators/notEnumerable.js +13 -0
  18. package/lib/cjs/decorators/notEnumerable.js.map +1 -0
  19. package/lib/{decorators → cjs/decorators}/readOnly.d.ts +0 -0
  20. package/lib/cjs/decorators/readOnly.js +13 -0
  21. package/lib/cjs/decorators/readOnly.js.map +1 -0
  22. package/lib/{decorators → cjs/decorators}/storeFn.d.ts +0 -0
  23. package/lib/cjs/decorators/storeFn.js +22 -0
  24. package/lib/cjs/decorators/storeFn.js.map +1 -0
  25. package/lib/{decorators → cjs/decorators}/storeMerge.d.ts +0 -0
  26. package/lib/cjs/decorators/storeMerge.js +11 -0
  27. package/lib/cjs/decorators/storeMerge.js.map +1 -0
  28. package/lib/{decorators → cjs/decorators}/storeSet.d.ts +0 -0
  29. package/lib/cjs/decorators/storeSet.js +11 -0
  30. package/lib/cjs/decorators/storeSet.js.map +1 -0
  31. package/lib/{decorators → cjs/decorators}/writable.d.ts +0 -0
  32. package/lib/cjs/decorators/writable.js +18 -0
  33. package/lib/cjs/decorators/writable.js.map +1 -0
  34. package/lib/{domain → cjs/domain}/AnyToPromise.d.ts +0 -0
  35. package/lib/cjs/domain/AnyToPromise.js +148 -0
  36. package/lib/cjs/domain/AnyToPromise.js.map +1 -0
  37. package/lib/{domain → cjs/domain}/DecoratorTypes.d.ts +0 -0
  38. package/lib/cjs/domain/DecoratorTypes.js +15 -0
  39. package/lib/cjs/domain/DecoratorTypes.js.map +1 -0
  40. package/lib/{domain → cjs/domain}/Env.d.ts +0 -0
  41. package/lib/cjs/domain/Env.js +19 -0
  42. package/lib/cjs/domain/Env.js.map +1 -0
  43. package/lib/{domain → cjs/domain}/Hooks.d.ts +0 -0
  44. package/lib/cjs/domain/Hooks.js +89 -0
  45. package/lib/cjs/domain/Hooks.js.map +1 -0
  46. package/lib/{domain → cjs/domain}/Metadata.d.ts +0 -0
  47. package/lib/cjs/domain/Metadata.js +508 -0
  48. package/lib/cjs/domain/Metadata.js.map +1 -0
  49. package/lib/{domain → cjs/domain}/Store.d.ts +0 -0
  50. package/lib/cjs/domain/Store.js +157 -0
  51. package/lib/cjs/domain/Store.js.map +1 -0
  52. package/lib/{domain → cjs/domain}/Type.d.ts +0 -0
  53. package/lib/cjs/domain/Type.js +7 -0
  54. package/lib/cjs/domain/Type.js.map +1 -0
  55. package/lib/{domain → cjs/domain}/index.d.ts +0 -0
  56. package/lib/cjs/domain/index.js +11 -0
  57. package/lib/cjs/domain/index.js.map +1 -0
  58. package/lib/{errors → cjs/errors}/UnsupportedDecoratorType.d.ts +0 -0
  59. package/lib/cjs/errors/UnsupportedDecoratorType.js +21 -0
  60. package/lib/cjs/errors/UnsupportedDecoratorType.js.map +1 -0
  61. package/lib/{index.d.ts → cjs/index.d.ts} +0 -0
  62. package/lib/cjs/index.js +9 -0
  63. package/lib/cjs/index.js.map +1 -0
  64. package/lib/{interfaces → cjs/interfaces}/AnyDecorator.d.ts +0 -0
  65. package/lib/cjs/interfaces/AnyDecorator.js +3 -0
  66. package/lib/cjs/interfaces/AnyDecorator.js.map +1 -0
  67. package/lib/{interfaces → cjs/interfaces}/DecoratorParameters.d.ts +0 -0
  68. package/lib/cjs/interfaces/DecoratorParameters.js +3 -0
  69. package/lib/cjs/interfaces/DecoratorParameters.js.map +1 -0
  70. package/lib/{interfaces → cjs/interfaces}/HashOf.d.ts +0 -0
  71. package/lib/cjs/interfaces/HashOf.js +3 -0
  72. package/lib/cjs/interfaces/HashOf.js.map +1 -0
  73. package/lib/{interfaces → cjs/interfaces}/MetadataTypes.d.ts +0 -0
  74. package/lib/cjs/interfaces/MetadataTypes.js +3 -0
  75. package/lib/cjs/interfaces/MetadataTypes.js.map +1 -0
  76. package/lib/{interfaces → cjs/interfaces}/ValueOf.d.ts +0 -0
  77. package/lib/cjs/interfaces/ValueOf.js +3 -0
  78. package/lib/cjs/interfaces/ValueOf.js.map +1 -0
  79. package/lib/{interfaces → cjs/interfaces}/index.d.ts +0 -0
  80. package/lib/cjs/interfaces/index.js +3 -0
  81. package/lib/cjs/interfaces/index.js.map +1 -0
  82. package/lib/{utils → cjs/utils}/catchError.d.ts +0 -0
  83. package/lib/cjs/utils/catchError.js +22 -0
  84. package/lib/cjs/utils/catchError.js.map +1 -0
  85. package/lib/{utils → cjs/utils}/decorators/decorateMethodsOf.d.ts +0 -0
  86. package/lib/cjs/utils/decorators/decorateMethodsOf.js +23 -0
  87. package/lib/cjs/utils/decorators/decorateMethodsOf.js.map +1 -0
  88. package/lib/{utils → cjs/utils}/decorators/decoratorArgs.d.ts +0 -0
  89. package/lib/cjs/utils/decorators/decoratorArgs.js +9 -0
  90. package/lib/cjs/utils/decorators/decoratorArgs.js.map +1 -0
  91. package/lib/{utils → cjs/utils}/decorators/decoratorTypeOf.d.ts +0 -0
  92. package/lib/cjs/utils/decorators/decoratorTypeOf.js +23 -0
  93. package/lib/cjs/utils/decorators/decoratorTypeOf.js.map +1 -0
  94. package/lib/{utils → cjs/utils}/decorators/inheritedDescriptorOf.d.ts +0 -0
  95. package/lib/cjs/utils/decorators/inheritedDescriptorOf.js +15 -0
  96. package/lib/cjs/utils/decorators/inheritedDescriptorOf.js.map +1 -0
  97. package/lib/{utils → cjs/utils}/decorators/useDecorators.d.ts +0 -0
  98. package/lib/cjs/utils/decorators/useDecorators.js +14 -0
  99. package/lib/cjs/utils/decorators/useDecorators.js.map +1 -0
  100. package/lib/{utils → cjs/utils}/decorators/useMethodDecorators.d.ts +0 -0
  101. package/lib/cjs/utils/decorators/useMethodDecorators.js +15 -0
  102. package/lib/cjs/utils/decorators/useMethodDecorators.js.map +1 -0
  103. package/lib/cjs/utils/http/getHostInfoFromPort.d.ts +6 -0
  104. package/lib/cjs/utils/http/getHostInfoFromPort.js +21 -0
  105. package/lib/cjs/utils/http/getHostInfoFromPort.js.map +1 -0
  106. package/lib/{utils → cjs/utils}/imports/importPackage.d.ts +0 -0
  107. package/lib/cjs/utils/imports/importPackage.js +35 -0
  108. package/lib/cjs/utils/imports/importPackage.js.map +1 -0
  109. package/lib/{utils → cjs/utils}/index.d.ts +1 -0
  110. package/lib/cjs/utils/index.js +19 -0
  111. package/lib/cjs/utils/index.js.map +1 -0
  112. package/lib/{utils → cjs/utils}/objects/ancestorOf.d.ts +0 -0
  113. package/lib/cjs/utils/objects/ancestorOf.js +12 -0
  114. package/lib/cjs/utils/objects/ancestorOf.js.map +1 -0
  115. package/lib/{utils → cjs/utils}/objects/ancestorsOf.d.ts +0 -0
  116. package/lib/cjs/utils/objects/ancestorsOf.js +22 -0
  117. package/lib/cjs/utils/objects/ancestorsOf.js.map +1 -0
  118. package/lib/{utils → cjs/utils}/objects/classOf.d.ts +0 -0
  119. package/lib/cjs/utils/objects/classOf.js +23 -0
  120. package/lib/cjs/utils/objects/classOf.js.map +1 -0
  121. package/lib/{utils → cjs/utils}/objects/cleanObject.d.ts +0 -0
  122. package/lib/cjs/utils/objects/cleanObject.js +24 -0
  123. package/lib/cjs/utils/objects/cleanObject.js.map +1 -0
  124. package/lib/{utils → cjs/utils}/objects/constructorOf.d.ts +0 -0
  125. package/lib/cjs/utils/objects/constructorOf.js +20 -0
  126. package/lib/cjs/utils/objects/constructorOf.js.map +1 -0
  127. package/lib/{utils → cjs/utils}/objects/createInstance.d.ts +0 -0
  128. package/lib/cjs/utils/objects/createInstance.js +9 -0
  129. package/lib/cjs/utils/objects/createInstance.js.map +1 -0
  130. package/lib/{utils → cjs/utils}/objects/deepClone.d.ts +0 -0
  131. package/lib/cjs/utils/objects/deepClone.js +57 -0
  132. package/lib/cjs/utils/objects/deepClone.js.map +1 -0
  133. package/lib/{utils → cjs/utils}/objects/deepExtends.d.ts +0 -0
  134. package/lib/cjs/utils/objects/deepExtends.js +79 -0
  135. package/lib/cjs/utils/objects/deepExtends.js.map +1 -0
  136. package/lib/{utils → cjs/utils}/objects/deepMerge.d.ts +0 -0
  137. package/lib/cjs/utils/objects/deepMerge.js +63 -0
  138. package/lib/cjs/utils/objects/deepMerge.js.map +1 -0
  139. package/lib/{utils → cjs/utils}/objects/descriptorOf.d.ts +0 -0
  140. package/lib/cjs/utils/objects/descriptorOf.js +19 -0
  141. package/lib/cjs/utils/objects/descriptorOf.js.map +1 -0
  142. package/lib/{utils → cjs/utils}/objects/getClassOrSymbol.d.ts +0 -0
  143. package/lib/cjs/utils/objects/getClassOrSymbol.js +10 -0
  144. package/lib/cjs/utils/objects/getClassOrSymbol.js.map +1 -0
  145. package/lib/{utils → cjs/utils}/objects/getConstructorArgNames.d.ts +0 -0
  146. package/lib/cjs/utils/objects/getConstructorArgNames.js +9 -0
  147. package/lib/cjs/utils/objects/getConstructorArgNames.js.map +1 -0
  148. package/lib/{utils → cjs/utils}/objects/getEnumerableKeys.d.ts +0 -0
  149. package/lib/cjs/utils/objects/getEnumerableKeys.js +20 -0
  150. package/lib/cjs/utils/objects/getEnumerableKeys.js.map +1 -0
  151. package/lib/{utils → cjs/utils}/objects/getValue.d.ts +0 -0
  152. package/lib/cjs/utils/objects/getValue.js +49 -0
  153. package/lib/cjs/utils/objects/getValue.js.map +1 -0
  154. package/lib/{utils → cjs/utils}/objects/index.d.ts +0 -0
  155. package/lib/cjs/utils/objects/index.js +47 -0
  156. package/lib/cjs/utils/objects/index.js.map +1 -0
  157. package/lib/{utils → cjs/utils}/objects/isArray.d.ts +0 -0
  158. package/lib/cjs/utils/objects/isArray.js +23 -0
  159. package/lib/cjs/utils/objects/isArray.js.map +1 -0
  160. package/lib/{utils → cjs/utils}/objects/isArrowFn.d.ts +0 -0
  161. package/lib/cjs/utils/objects/isArrowFn.js +9 -0
  162. package/lib/cjs/utils/objects/isArrowFn.js.map +1 -0
  163. package/lib/{utils → cjs/utils}/objects/isBoolean.d.ts +0 -0
  164. package/lib/cjs/utils/objects/isBoolean.js +17 -0
  165. package/lib/cjs/utils/objects/isBoolean.js.map +1 -0
  166. package/lib/{utils → cjs/utils}/objects/isClass.d.ts +0 -0
  167. package/lib/cjs/utils/objects/isClass.js +26 -0
  168. package/lib/cjs/utils/objects/isClass.js.map +1 -0
  169. package/lib/{utils → cjs/utils}/objects/isCollection.d.ts +0 -0
  170. package/lib/cjs/utils/objects/isCollection.js +22 -0
  171. package/lib/cjs/utils/objects/isCollection.js.map +1 -0
  172. package/lib/{utils → cjs/utils}/objects/isDate.d.ts +0 -0
  173. package/lib/cjs/utils/objects/isDate.js +13 -0
  174. package/lib/cjs/utils/objects/isDate.js.map +1 -0
  175. package/lib/{utils → cjs/utils}/objects/isEmpty.d.ts +0 -0
  176. package/lib/cjs/utils/objects/isEmpty.js +14 -0
  177. package/lib/cjs/utils/objects/isEmpty.js.map +1 -0
  178. package/lib/{utils → cjs/utils}/objects/isEnumerable.d.ts +0 -0
  179. package/lib/cjs/utils/objects/isEnumerable.js +22 -0
  180. package/lib/cjs/utils/objects/isEnumerable.js.map +1 -0
  181. package/lib/{utils → cjs/utils}/objects/isFunction.d.ts +0 -0
  182. package/lib/cjs/utils/objects/isFunction.js +8 -0
  183. package/lib/cjs/utils/objects/isFunction.js.map +1 -0
  184. package/lib/{utils → cjs/utils}/objects/isInheritedFrom.d.ts +0 -0
  185. package/lib/cjs/utils/objects/isInheritedFrom.js +26 -0
  186. package/lib/cjs/utils/objects/isInheritedFrom.js.map +1 -0
  187. package/lib/{utils → cjs/utils}/objects/isNil.d.ts +0 -0
  188. package/lib/cjs/utils/objects/isNil.js +8 -0
  189. package/lib/cjs/utils/objects/isNil.js.map +1 -0
  190. package/lib/{utils → cjs/utils}/objects/isNumber.d.ts +0 -0
  191. package/lib/cjs/utils/objects/isNumber.js +17 -0
  192. package/lib/cjs/utils/objects/isNumber.js.map +1 -0
  193. package/lib/{utils → cjs/utils}/objects/isObject.d.ts +0 -0
  194. package/lib/cjs/utils/objects/isObject.js +8 -0
  195. package/lib/cjs/utils/objects/isObject.js.map +1 -0
  196. package/lib/{utils → cjs/utils}/objects/isObservable.d.ts +0 -0
  197. package/lib/cjs/utils/objects/isObservable.js +8 -0
  198. package/lib/cjs/utils/objects/isObservable.js.map +1 -0
  199. package/lib/{utils → cjs/utils}/objects/isPlainObject.d.ts +0 -0
  200. package/lib/cjs/utils/objects/isPlainObject.js +18 -0
  201. package/lib/cjs/utils/objects/isPlainObject.js.map +1 -0
  202. package/lib/{utils → cjs/utils}/objects/isPrimitive.d.ts +0 -0
  203. package/lib/cjs/utils/objects/isPrimitive.js +30 -0
  204. package/lib/cjs/utils/objects/isPrimitive.js.map +1 -0
  205. package/lib/{utils → cjs/utils}/objects/isPromise.d.ts +0 -0
  206. package/lib/cjs/utils/objects/isPromise.js +16 -0
  207. package/lib/cjs/utils/objects/isPromise.js.map +1 -0
  208. package/lib/{utils → cjs/utils}/objects/isProtectedKey.d.ts +0 -0
  209. package/lib/cjs/utils/objects/isProtectedKey.js +12 -0
  210. package/lib/cjs/utils/objects/isProtectedKey.js.map +1 -0
  211. package/lib/{utils → cjs/utils}/objects/isSerializable.d.ts +0 -0
  212. package/lib/cjs/utils/objects/isSerializable.js +13 -0
  213. package/lib/cjs/utils/objects/isSerializable.js.map +1 -0
  214. package/lib/{utils → cjs/utils}/objects/isStream.d.ts +0 -0
  215. package/lib/cjs/utils/objects/isStream.js +8 -0
  216. package/lib/cjs/utils/objects/isStream.js.map +1 -0
  217. package/lib/{utils → cjs/utils}/objects/isString.d.ts +0 -0
  218. package/lib/cjs/utils/objects/isString.js +16 -0
  219. package/lib/cjs/utils/objects/isString.js.map +1 -0
  220. package/lib/{utils → cjs/utils}/objects/isSymbol.d.ts +0 -0
  221. package/lib/cjs/utils/objects/isSymbol.js +16 -0
  222. package/lib/cjs/utils/objects/isSymbol.js.map +1 -0
  223. package/lib/{utils → cjs/utils}/objects/methodsOf.d.ts +0 -0
  224. package/lib/cjs/utils/objects/methodsOf.js +25 -0
  225. package/lib/cjs/utils/objects/methodsOf.js.map +1 -0
  226. package/lib/{utils → cjs/utils}/objects/nameOf.d.ts +0 -0
  227. package/lib/cjs/utils/objects/nameOf.js +32 -0
  228. package/lib/cjs/utils/objects/nameOf.js.map +1 -0
  229. package/lib/{utils → cjs/utils}/objects/objectKeys.d.ts +0 -0
  230. package/lib/cjs/utils/objects/objectKeys.js +9 -0
  231. package/lib/cjs/utils/objects/objectKeys.js.map +1 -0
  232. package/lib/{utils → cjs/utils}/objects/primitiveOf.d.ts +0 -0
  233. package/lib/cjs/utils/objects/primitiveOf.js +20 -0
  234. package/lib/cjs/utils/objects/primitiveOf.js.map +1 -0
  235. package/lib/{utils → cjs/utils}/objects/prototypeOf.d.ts +0 -0
  236. package/lib/cjs/utils/objects/prototypeOf.js +14 -0
  237. package/lib/cjs/utils/objects/prototypeOf.js.map +1 -0
  238. package/lib/{utils → cjs/utils}/objects/setValue.d.ts +0 -0
  239. package/lib/cjs/utils/objects/setValue.js +34 -0
  240. package/lib/cjs/utils/objects/setValue.js.map +1 -0
  241. package/lib/{utils → cjs/utils}/objects/toMap.d.ts +0 -0
  242. package/lib/cjs/utils/objects/toMap.js +32 -0
  243. package/lib/cjs/utils/objects/toMap.js.map +1 -0
  244. package/lib/{utils → cjs/utils}/objects/toStringConstructor.d.ts +0 -0
  245. package/lib/cjs/utils/objects/toStringConstructor.js +12 -0
  246. package/lib/cjs/utils/objects/toStringConstructor.js.map +1 -0
  247. package/lib/{utils → cjs/utils}/proxyDelegation.d.ts +0 -0
  248. package/lib/cjs/utils/proxyDelegation.js +54 -0
  249. package/lib/cjs/utils/proxyDelegation.js.map +1 -0
  250. package/lib/{utils → cjs/utils}/uniq.d.ts +0 -0
  251. package/lib/cjs/utils/uniq.js +16 -0
  252. package/lib/cjs/utils/uniq.js.map +1 -0
  253. package/lib/esm/decorators/configurable.js +14 -0
  254. package/lib/esm/decorators/configurable.js.map +1 -0
  255. package/lib/esm/decorators/deprecated.js +39 -0
  256. package/lib/esm/decorators/deprecated.js.map +1 -0
  257. package/lib/esm/decorators/enumerable.js +14 -0
  258. package/lib/esm/decorators/enumerable.js.map +1 -0
  259. package/lib/esm/decorators/index.js +15 -0
  260. package/lib/esm/decorators/index.js.map +1 -0
  261. package/lib/esm/decorators/notConfigurable.js +9 -0
  262. package/lib/esm/decorators/notConfigurable.js.map +1 -0
  263. package/lib/esm/decorators/notEnumerable.js +9 -0
  264. package/lib/esm/decorators/notEnumerable.js.map +1 -0
  265. package/lib/esm/decorators/readOnly.js +9 -0
  266. package/lib/esm/decorators/readOnly.js.map +1 -0
  267. package/lib/esm/decorators/storeFn.js +18 -0
  268. package/lib/esm/decorators/storeFn.js.map +1 -0
  269. package/lib/esm/decorators/storeMerge.js +7 -0
  270. package/lib/esm/decorators/storeMerge.js.map +1 -0
  271. package/lib/esm/decorators/storeSet.js +7 -0
  272. package/lib/esm/decorators/storeSet.js.map +1 -0
  273. package/lib/esm/decorators/writable.js +14 -0
  274. package/lib/esm/decorators/writable.js.map +1 -0
  275. package/lib/esm/domain/AnyToPromise.js +144 -0
  276. package/lib/esm/domain/AnyToPromise.js.map +1 -0
  277. package/lib/esm/domain/DecoratorTypes.js +12 -0
  278. package/lib/esm/domain/DecoratorTypes.js.map +1 -0
  279. package/lib/esm/domain/Env.js +16 -0
  280. package/lib/esm/domain/Env.js.map +1 -0
  281. package/lib/esm/domain/Hooks.js +85 -0
  282. package/lib/esm/domain/Hooks.js.map +1 -0
  283. package/lib/esm/domain/Metadata.js +504 -0
  284. package/lib/esm/domain/Metadata.js.map +1 -0
  285. package/lib/esm/domain/Store.js +153 -0
  286. package/lib/esm/domain/Store.js.map +1 -0
  287. package/lib/esm/domain/Type.js +4 -0
  288. package/lib/esm/domain/Type.js.map +1 -0
  289. package/lib/esm/domain/index.js +8 -0
  290. package/lib/esm/domain/index.js.map +1 -0
  291. package/lib/esm/errors/UnsupportedDecoratorType.js +17 -0
  292. package/lib/esm/errors/UnsupportedDecoratorType.js.map +1 -0
  293. package/lib/esm/index.js +6 -0
  294. package/lib/esm/index.js.map +1 -0
  295. package/lib/esm/interfaces/AnyDecorator.js +2 -0
  296. package/lib/esm/interfaces/AnyDecorator.js.map +1 -0
  297. package/lib/esm/interfaces/DecoratorParameters.js +2 -0
  298. package/lib/esm/interfaces/DecoratorParameters.js.map +1 -0
  299. package/lib/esm/interfaces/HashOf.js +2 -0
  300. package/lib/esm/interfaces/HashOf.js.map +1 -0
  301. package/lib/esm/interfaces/MetadataTypes.js +2 -0
  302. package/lib/esm/interfaces/MetadataTypes.js.map +1 -0
  303. package/lib/esm/interfaces/ValueOf.js +2 -0
  304. package/lib/esm/interfaces/ValueOf.js.map +1 -0
  305. package/lib/esm/interfaces/index.js +2 -0
  306. package/lib/esm/interfaces/index.js.map +1 -0
  307. package/lib/esm/utils/catchError.js +17 -0
  308. package/lib/esm/utils/catchError.js.map +1 -0
  309. package/lib/esm/utils/decorators/decorateMethodsOf.js +19 -0
  310. package/lib/esm/utils/decorators/decorateMethodsOf.js.map +1 -0
  311. package/lib/esm/utils/decorators/decoratorArgs.js +5 -0
  312. package/lib/esm/utils/decorators/decoratorArgs.js.map +1 -0
  313. package/lib/esm/utils/decorators/decoratorTypeOf.js +19 -0
  314. package/lib/esm/utils/decorators/decoratorTypeOf.js.map +1 -0
  315. package/lib/esm/utils/decorators/inheritedDescriptorOf.js +11 -0
  316. package/lib/esm/utils/decorators/inheritedDescriptorOf.js.map +1 -0
  317. package/lib/esm/utils/decorators/useDecorators.js +10 -0
  318. package/lib/esm/utils/decorators/useDecorators.js.map +1 -0
  319. package/lib/esm/utils/decorators/useMethodDecorators.js +10 -0
  320. package/lib/esm/utils/decorators/useMethodDecorators.js.map +1 -0
  321. package/lib/esm/utils/http/getHostInfoFromPort.js +17 -0
  322. package/lib/esm/utils/http/getHostInfoFromPort.js.map +1 -0
  323. package/lib/esm/utils/imports/importPackage.js +12 -0
  324. package/lib/esm/utils/imports/importPackage.js.map +1 -0
  325. package/lib/esm/utils/index.js +16 -0
  326. package/lib/esm/utils/index.js.map +1 -0
  327. package/lib/esm/utils/objects/ancestorOf.js +7 -0
  328. package/lib/esm/utils/objects/ancestorOf.js.map +1 -0
  329. package/lib/esm/utils/objects/ancestorsOf.js +18 -0
  330. package/lib/esm/utils/objects/ancestorsOf.js.map +1 -0
  331. package/lib/esm/utils/objects/classOf.js +18 -0
  332. package/lib/esm/utils/objects/classOf.js.map +1 -0
  333. package/lib/esm/utils/objects/cleanObject.js +20 -0
  334. package/lib/esm/utils/objects/cleanObject.js.map +1 -0
  335. package/lib/esm/utils/objects/constructorOf.js +15 -0
  336. package/lib/esm/utils/objects/constructorOf.js.map +1 -0
  337. package/lib/esm/utils/objects/createInstance.js +5 -0
  338. package/lib/esm/utils/objects/createInstance.js.map +1 -0
  339. package/lib/esm/utils/objects/deepClone.js +53 -0
  340. package/lib/esm/utils/objects/deepClone.js.map +1 -0
  341. package/lib/esm/utils/objects/deepExtends.js +75 -0
  342. package/lib/esm/utils/objects/deepExtends.js.map +1 -0
  343. package/lib/esm/utils/objects/deepMerge.js +58 -0
  344. package/lib/esm/utils/objects/deepMerge.js.map +1 -0
  345. package/lib/esm/utils/objects/descriptorOf.js +14 -0
  346. package/lib/esm/utils/objects/descriptorOf.js.map +1 -0
  347. package/lib/esm/utils/objects/getClassOrSymbol.js +6 -0
  348. package/lib/esm/utils/objects/getClassOrSymbol.js.map +1 -0
  349. package/lib/esm/utils/objects/getConstructorArgNames.js +5 -0
  350. package/lib/esm/utils/objects/getConstructorArgNames.js.map +1 -0
  351. package/lib/esm/utils/objects/getEnumerableKeys.js +16 -0
  352. package/lib/esm/utils/objects/getEnumerableKeys.js.map +1 -0
  353. package/lib/esm/utils/objects/getValue.js +45 -0
  354. package/lib/esm/utils/objects/getValue.js.map +1 -0
  355. package/lib/esm/utils/objects/index.js +44 -0
  356. package/lib/esm/utils/objects/index.js.map +1 -0
  357. package/lib/esm/utils/objects/isArray.js +18 -0
  358. package/lib/esm/utils/objects/isArray.js.map +1 -0
  359. package/lib/esm/utils/objects/isArrowFn.js +5 -0
  360. package/lib/esm/utils/objects/isArrowFn.js.map +1 -0
  361. package/lib/esm/utils/objects/isBoolean.js +12 -0
  362. package/lib/esm/utils/objects/isBoolean.js.map +1 -0
  363. package/lib/esm/utils/objects/isClass.js +22 -0
  364. package/lib/esm/utils/objects/isClass.js.map +1 -0
  365. package/lib/esm/utils/objects/isCollection.js +18 -0
  366. package/lib/esm/utils/objects/isCollection.js.map +1 -0
  367. package/lib/esm/utils/objects/isDate.js +9 -0
  368. package/lib/esm/utils/objects/isDate.js.map +1 -0
  369. package/lib/esm/utils/objects/isEmpty.js +10 -0
  370. package/lib/esm/utils/objects/isEmpty.js.map +1 -0
  371. package/lib/esm/utils/objects/isEnumerable.js +18 -0
  372. package/lib/esm/utils/objects/isEnumerable.js.map +1 -0
  373. package/lib/esm/utils/objects/isFunction.js +4 -0
  374. package/lib/esm/utils/objects/isFunction.js.map +1 -0
  375. package/lib/esm/utils/objects/isInheritedFrom.js +22 -0
  376. package/lib/esm/utils/objects/isInheritedFrom.js.map +1 -0
  377. package/lib/esm/utils/objects/isNil.js +4 -0
  378. package/lib/esm/utils/objects/isNil.js.map +1 -0
  379. package/lib/esm/utils/objects/isNumber.js +12 -0
  380. package/lib/esm/utils/objects/isNumber.js.map +1 -0
  381. package/lib/esm/utils/objects/isObject.js +4 -0
  382. package/lib/esm/utils/objects/isObject.js.map +1 -0
  383. package/lib/esm/utils/objects/isObservable.js +4 -0
  384. package/lib/esm/utils/objects/isObservable.js.map +1 -0
  385. package/lib/esm/utils/objects/isPlainObject.js +13 -0
  386. package/lib/esm/utils/objects/isPlainObject.js.map +1 -0
  387. package/lib/esm/utils/objects/isPrimitive.js +24 -0
  388. package/lib/esm/utils/objects/isPrimitive.js.map +1 -0
  389. package/lib/esm/utils/objects/isPromise.js +12 -0
  390. package/lib/esm/utils/objects/isPromise.js.map +1 -0
  391. package/lib/esm/utils/objects/isProtectedKey.js +8 -0
  392. package/lib/esm/utils/objects/isProtectedKey.js.map +1 -0
  393. package/lib/esm/utils/objects/isSerializable.js +9 -0
  394. package/lib/esm/utils/objects/isSerializable.js.map +1 -0
  395. package/lib/esm/utils/objects/isStream.js +4 -0
  396. package/lib/esm/utils/objects/isStream.js.map +1 -0
  397. package/lib/esm/utils/objects/isString.js +11 -0
  398. package/lib/esm/utils/objects/isString.js.map +1 -0
  399. package/lib/esm/utils/objects/isSymbol.js +11 -0
  400. package/lib/esm/utils/objects/isSymbol.js.map +1 -0
  401. package/lib/esm/utils/objects/methodsOf.js +21 -0
  402. package/lib/esm/utils/objects/methodsOf.js.map +1 -0
  403. package/lib/esm/utils/objects/nameOf.js +26 -0
  404. package/lib/esm/utils/objects/nameOf.js.map +1 -0
  405. package/lib/esm/utils/objects/objectKeys.js +5 -0
  406. package/lib/esm/utils/objects/objectKeys.js.map +1 -0
  407. package/lib/esm/utils/objects/primitiveOf.js +16 -0
  408. package/lib/esm/utils/objects/primitiveOf.js.map +1 -0
  409. package/lib/esm/utils/objects/prototypeOf.js +10 -0
  410. package/lib/esm/utils/objects/prototypeOf.js.map +1 -0
  411. package/lib/esm/utils/objects/setValue.js +30 -0
  412. package/lib/esm/utils/objects/setValue.js.map +1 -0
  413. package/lib/esm/utils/objects/toMap.js +28 -0
  414. package/lib/esm/utils/objects/toMap.js.map +1 -0
  415. package/lib/esm/utils/objects/toStringConstructor.js +8 -0
  416. package/lib/esm/utils/objects/toStringConstructor.js.map +1 -0
  417. package/lib/esm/utils/proxyDelegation.js +50 -0
  418. package/lib/esm/utils/proxyDelegation.js.map +1 -0
  419. package/lib/esm/utils/uniq.js +11 -0
  420. package/lib/esm/utils/uniq.js.map +1 -0
  421. package/lib/types/decorators/configurable.d.ts +2 -0
  422. package/lib/types/decorators/deprecated.d.ts +32 -0
  423. package/lib/types/decorators/enumerable.d.ts +2 -0
  424. package/lib/types/decorators/index.d.ts +14 -0
  425. package/lib/types/decorators/notConfigurable.d.ts +2 -0
  426. package/lib/types/decorators/notEnumerable.d.ts +2 -0
  427. package/lib/types/decorators/readOnly.d.ts +2 -0
  428. package/lib/types/decorators/storeFn.d.ts +9 -0
  429. package/lib/types/decorators/storeMerge.d.ts +1 -0
  430. package/lib/types/decorators/storeSet.d.ts +1 -0
  431. package/lib/types/decorators/writable.d.ts +2 -0
  432. package/lib/types/domain/AnyToPromise.d.ts +42 -0
  433. package/lib/types/domain/DecoratorTypes.d.ts +10 -0
  434. package/lib/types/domain/Env.d.ts +13 -0
  435. package/lib/types/domain/Hooks.d.ts +45 -0
  436. package/lib/types/domain/Metadata.d.ts +442 -0
  437. package/lib/types/domain/Store.d.ts +69 -0
  438. package/lib/types/domain/Type.d.ts +11 -0
  439. package/lib/types/domain/index.d.ts +7 -0
  440. package/lib/types/errors/UnsupportedDecoratorType.d.ts +5 -0
  441. package/lib/types/index.d.ts +6 -0
  442. package/lib/types/interfaces/AnyDecorator.d.ts +1 -0
  443. package/lib/types/interfaces/DecoratorParameters.d.ts +3 -0
  444. package/lib/types/interfaces/HashOf.d.ts +1 -0
  445. package/lib/types/interfaces/MetadataTypes.d.ts +5 -0
  446. package/lib/types/interfaces/ValueOf.d.ts +1 -0
  447. package/lib/types/interfaces/index.d.ts +4 -0
  448. package/lib/types/utils/catchError.d.ts +2 -0
  449. package/lib/types/utils/decorators/decorateMethodsOf.d.ts +1 -0
  450. package/lib/types/utils/decorators/decoratorArgs.d.ts +2 -0
  451. package/lib/types/utils/decorators/decoratorTypeOf.d.ts +2 -0
  452. package/lib/types/utils/decorators/inheritedDescriptorOf.d.ts +1 -0
  453. package/lib/types/utils/decorators/useDecorators.d.ts +2 -0
  454. package/lib/types/utils/decorators/useMethodDecorators.d.ts +3 -0
  455. package/lib/types/utils/http/getHostInfoFromPort.d.ts +6 -0
  456. package/lib/types/utils/imports/importPackage.d.ts +1 -0
  457. package/lib/types/utils/index.d.ts +13 -0
  458. package/lib/types/utils/objects/ancestorOf.d.ts +2 -0
  459. package/lib/types/utils/objects/ancestorsOf.d.ts +6 -0
  460. package/lib/types/utils/objects/classOf.d.ts +13 -0
  461. package/lib/types/utils/objects/cleanObject.d.ts +6 -0
  462. package/lib/types/utils/objects/constructorOf.d.ts +11 -0
  463. package/lib/types/utils/objects/createInstance.d.ts +1 -0
  464. package/lib/types/utils/objects/deepClone.d.ts +6 -0
  465. package/lib/types/utils/objects/deepExtends.d.ts +10 -0
  466. package/lib/types/utils/objects/deepMerge.d.ts +9 -0
  467. package/lib/types/utils/objects/descriptorOf.d.ts +8 -0
  468. package/lib/types/utils/objects/getClassOrSymbol.d.ts +1 -0
  469. package/lib/types/utils/objects/getConstructorArgNames.d.ts +1 -0
  470. package/lib/types/utils/objects/getEnumerableKeys.d.ts +5 -0
  471. package/lib/types/utils/objects/getValue.d.ts +32 -0
  472. package/lib/types/utils/objects/index.d.ts +43 -0
  473. package/lib/types/utils/objects/isArray.d.ts +13 -0
  474. package/lib/types/utils/objects/isArrowFn.d.ts +1 -0
  475. package/lib/types/utils/objects/isBoolean.d.ts +7 -0
  476. package/lib/types/utils/objects/isClass.d.ts +1 -0
  477. package/lib/types/utils/objects/isCollection.d.ts +6 -0
  478. package/lib/types/utils/objects/isDate.d.ts +6 -0
  479. package/lib/types/utils/objects/isEmpty.d.ts +6 -0
  480. package/lib/types/utils/objects/isEnumerable.d.ts +6 -0
  481. package/lib/types/utils/objects/isFunction.d.ts +1 -0
  482. package/lib/types/utils/objects/isInheritedFrom.d.ts +1 -0
  483. package/lib/types/utils/objects/isNil.d.ts +1 -0
  484. package/lib/types/utils/objects/isNumber.d.ts +7 -0
  485. package/lib/types/utils/objects/isObject.d.ts +1 -0
  486. package/lib/types/utils/objects/isObservable.d.ts +1 -0
  487. package/lib/types/utils/objects/isPlainObject.d.ts +7 -0
  488. package/lib/types/utils/objects/isPrimitive.d.ts +14 -0
  489. package/lib/types/utils/objects/isPromise.d.ts +7 -0
  490. package/lib/types/utils/objects/isProtectedKey.d.ts +5 -0
  491. package/lib/types/utils/objects/isSerializable.d.ts +1 -0
  492. package/lib/types/utils/objects/isStream.d.ts +1 -0
  493. package/lib/types/utils/objects/isString.d.ts +6 -0
  494. package/lib/types/utils/objects/isSymbol.d.ts +6 -0
  495. package/lib/types/utils/objects/methodsOf.d.ts +5 -0
  496. package/lib/types/utils/objects/nameOf.d.ts +14 -0
  497. package/lib/types/utils/objects/objectKeys.d.ts +1 -0
  498. package/lib/types/utils/objects/primitiveOf.d.ts +1 -0
  499. package/lib/types/utils/objects/prototypeOf.d.ts +6 -0
  500. package/lib/types/utils/objects/setValue.d.ts +1 -0
  501. package/lib/types/utils/objects/toMap.d.ts +3 -0
  502. package/lib/types/utils/objects/toStringConstructor.d.ts +1 -0
  503. package/lib/types/utils/proxyDelegation.d.ts +33 -0
  504. package/lib/types/utils/uniq.d.ts +2 -0
  505. package/package.json +10 -6
  506. package/tsconfig.compile.esm.json +23 -0
  507. package/lib/index.js +0 -2317
  508. package/lib/index.js.map +0 -1
  509. package/lib/index.modern.js +0 -2207
  510. package/lib/index.modern.js.map +0 -1
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ (0, tslib_1.__exportStar)(require("./ancestorOf"), exports);
5
+ (0, tslib_1.__exportStar)(require("./ancestorsOf"), exports);
6
+ (0, tslib_1.__exportStar)(require("./classOf"), exports);
7
+ (0, tslib_1.__exportStar)(require("./cleanObject"), exports);
8
+ (0, tslib_1.__exportStar)(require("./constructorOf"), exports);
9
+ (0, tslib_1.__exportStar)(require("./deepClone"), exports);
10
+ (0, tslib_1.__exportStar)(require("./deepExtends"), exports);
11
+ (0, tslib_1.__exportStar)(require("./deepMerge"), exports);
12
+ (0, tslib_1.__exportStar)(require("./getClassOrSymbol"), exports);
13
+ (0, tslib_1.__exportStar)(require("./getConstructorArgNames"), exports);
14
+ (0, tslib_1.__exportStar)(require("./getEnumerableKeys"), exports);
15
+ (0, tslib_1.__exportStar)(require("./ancestorOf"), exports);
16
+ (0, tslib_1.__exportStar)(require("./getValue"), exports);
17
+ (0, tslib_1.__exportStar)(require("./isArray"), exports);
18
+ (0, tslib_1.__exportStar)(require("./isArrowFn"), exports);
19
+ (0, tslib_1.__exportStar)(require("./isBoolean"), exports);
20
+ (0, tslib_1.__exportStar)(require("./isClass"), exports);
21
+ (0, tslib_1.__exportStar)(require("./isCollection"), exports);
22
+ (0, tslib_1.__exportStar)(require("./isDate"), exports);
23
+ (0, tslib_1.__exportStar)(require("./isEmpty"), exports);
24
+ (0, tslib_1.__exportStar)(require("./isEnumerable"), exports);
25
+ (0, tslib_1.__exportStar)(require("./isFunction"), exports);
26
+ (0, tslib_1.__exportStar)(require("./isInheritedFrom"), exports);
27
+ (0, tslib_1.__exportStar)(require("./isNil"), exports);
28
+ (0, tslib_1.__exportStar)(require("./isNumber"), exports);
29
+ (0, tslib_1.__exportStar)(require("./isObject"), exports);
30
+ (0, tslib_1.__exportStar)(require("./isObservable"), exports);
31
+ (0, tslib_1.__exportStar)(require("./isPlainObject"), exports);
32
+ (0, tslib_1.__exportStar)(require("./isPrimitive"), exports);
33
+ (0, tslib_1.__exportStar)(require("./isPromise"), exports);
34
+ (0, tslib_1.__exportStar)(require("./isProtectedKey"), exports);
35
+ (0, tslib_1.__exportStar)(require("./isStream"), exports);
36
+ (0, tslib_1.__exportStar)(require("./isString"), exports);
37
+ (0, tslib_1.__exportStar)(require("./isSymbol"), exports);
38
+ (0, tslib_1.__exportStar)(require("./isSerializable"), exports);
39
+ (0, tslib_1.__exportStar)(require("./methodsOf"), exports);
40
+ (0, tslib_1.__exportStar)(require("./nameOf"), exports);
41
+ (0, tslib_1.__exportStar)(require("./objectKeys"), exports);
42
+ (0, tslib_1.__exportStar)(require("./primitiveOf"), exports);
43
+ (0, tslib_1.__exportStar)(require("./prototypeOf"), exports);
44
+ (0, tslib_1.__exportStar)(require("./setValue"), exports);
45
+ (0, tslib_1.__exportStar)(require("./toMap"), exports);
46
+ (0, tslib_1.__exportStar)(require("./toStringConstructor"), exports);
47
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/objects/index.ts"],"names":[],"mappings":";;;AAAA,4DAA6B;AAC7B,6DAA8B;AAC9B,yDAA0B;AAC1B,6DAA8B;AAC9B,+DAAgC;AAChC,2DAA4B;AAC5B,6DAA8B;AAC9B,2DAA4B;AAC5B,kEAAmC;AACnC,wEAAyC;AACzC,mEAAoC;AACpC,4DAA6B;AAC7B,0DAA2B;AAC3B,yDAA0B;AAC1B,2DAA4B;AAC5B,2DAA4B;AAC5B,yDAA0B;AAC1B,8DAA+B;AAC/B,wDAAyB;AACzB,yDAA0B;AAC1B,8DAA+B;AAC/B,4DAA6B;AAC7B,iEAAkC;AAClC,uDAAwB;AACxB,0DAA2B;AAC3B,0DAA2B;AAC3B,8DAA+B;AAC/B,+DAAgC;AAChC,6DAA8B;AAC9B,2DAA4B;AAC5B,gEAAiC;AACjC,0DAA2B;AAC3B,0DAA2B;AAC3B,0DAA2B;AAC3B,gEAAiC;AACjC,2DAA4B;AAC5B,wDAAyB;AACzB,4DAA6B;AAC7B,6DAA8B;AAC9B,6DAA8B;AAC9B,0DAA2B;AAC3B,uDAAwB;AACxB,qEAAsC","sourcesContent":["export * from \"./ancestorOf\";\nexport * from \"./ancestorsOf\";\nexport * from \"./classOf\";\nexport * from \"./cleanObject\";\nexport * from \"./constructorOf\";\nexport * from \"./deepClone\";\nexport * from \"./deepExtends\";\nexport * from \"./deepMerge\";\nexport * from \"./getClassOrSymbol\";\nexport * from \"./getConstructorArgNames\";\nexport * from \"./getEnumerableKeys\";\nexport * from \"./ancestorOf\";\nexport * from \"./getValue\";\nexport * from \"./isArray\";\nexport * from \"./isArrowFn\";\nexport * from \"./isBoolean\";\nexport * from \"./isClass\";\nexport * from \"./isCollection\";\nexport * from \"./isDate\";\nexport * from \"./isEmpty\";\nexport * from \"./isEnumerable\";\nexport * from \"./isFunction\";\nexport * from \"./isInheritedFrom\";\nexport * from \"./isNil\";\nexport * from \"./isNumber\";\nexport * from \"./isObject\";\nexport * from \"./isObservable\";\nexport * from \"./isPlainObject\";\nexport * from \"./isPrimitive\";\nexport * from \"./isPromise\";\nexport * from \"./isProtectedKey\";\nexport * from \"./isStream\";\nexport * from \"./isString\";\nexport * from \"./isSymbol\";\nexport * from \"./isSerializable\";\nexport * from \"./methodsOf\";\nexport * from \"./nameOf\";\nexport * from \"./objectKeys\";\nexport * from \"./primitiveOf\";\nexport * from \"./prototypeOf\";\nexport * from \"./setValue\";\nexport * from \"./toMap\";\nexport * from \"./toStringConstructor\";\n"]}
File without changes
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isArrayOrArrayClass = exports.isArray = void 0;
4
+ /**
5
+ * Return true if value is an array
6
+ * @param target
7
+ * @returns {boolean}
8
+ */
9
+ function isArray(target) {
10
+ return Array.isArray(target);
11
+ }
12
+ exports.isArray = isArray;
13
+ /**
14
+ * Return true if the clazz is an array.
15
+ * @param target
16
+ * @returns {boolean}
17
+ * @ignore
18
+ */
19
+ function isArrayOrArrayClass(target) {
20
+ return target === Array || isArray(target);
21
+ }
22
+ exports.isArrayOrArrayClass = isArrayOrArrayClass;
23
+ //# sourceMappingURL=isArray.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isArray.js","sourceRoot":"","sources":["../../../../src/utils/objects/isArray.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,OAAO,CAAU,MAAe;IAC9C,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC;AAFD,0BAEC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAU,MAAe;IAC1D,OAAO,MAAM,KAAK,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7C,CAAC;AAFD,kDAEC","sourcesContent":["/**\n * Return true if value is an array\n * @param target\n * @returns {boolean}\n */\nexport function isArray<T = any>(target: unknown): target is T[] {\n return Array.isArray(target);\n}\n\n/**\n * Return true if the clazz is an array.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isArrayOrArrayClass<T = any>(target: unknown): target is T[] {\n return target === Array || isArray(target);\n}\n"]}
File without changes
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isArrowFn = void 0;
4
+ const isFunction_1 = require("./isFunction");
5
+ function isArrowFn(target) {
6
+ return target && (0, isFunction_1.isFunction)(target) && !target.prototype;
7
+ }
8
+ exports.isArrowFn = isArrowFn;
9
+ //# sourceMappingURL=isArrowFn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isArrowFn.js","sourceRoot":"","sources":["../../../../src/utils/objects/isArrowFn.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAExC,SAAgB,SAAS,CAAC,MAAW;IACnC,OAAO,MAAM,IAAI,IAAA,uBAAU,EAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC;AAC3D,CAAC;AAFD,8BAEC","sourcesContent":["import {isFunction} from \"./isFunction\";\n\nexport function isArrowFn(target: any): target is Function {\n return target && isFunction(target) && !target.prototype;\n}\n"]}
File without changes
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isBooleanOrBooleanClass = exports.isBoolean = void 0;
4
+ /**
5
+ *
6
+ * @param target
7
+ * @returns {boolean}
8
+ */
9
+ function isBoolean(target) {
10
+ return typeof target === "boolean" || target instanceof Boolean || target === Boolean;
11
+ }
12
+ exports.isBoolean = isBoolean;
13
+ function isBooleanOrBooleanClass(target) {
14
+ return typeof target === "boolean" || target instanceof Boolean || target === Boolean;
15
+ }
16
+ exports.isBooleanOrBooleanClass = isBooleanOrBooleanClass;
17
+ //# sourceMappingURL=isBoolean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isBoolean.js","sourceRoot":"","sources":["../../../../src/utils/objects/isBoolean.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,SAAS,CAAC,MAAW;IACnC,OAAO,OAAO,MAAM,KAAK,SAAS,IAAI,MAAM,YAAY,OAAO,IAAI,MAAM,KAAK,OAAO,CAAC;AACxF,CAAC;AAFD,8BAEC;AAED,SAAgB,uBAAuB,CAAC,MAAW;IACjD,OAAO,OAAO,MAAM,KAAK,SAAS,IAAI,MAAM,YAAY,OAAO,IAAI,MAAM,KAAK,OAAO,CAAC;AACxF,CAAC;AAFD,0DAEC","sourcesContent":["/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isBoolean(target: any): target is boolean {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n\nexport function isBooleanOrBooleanClass(target: any): target is boolean {\n return typeof target === \"boolean\" || target instanceof Boolean || target === Boolean;\n}\n"]}
File without changes
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isClass = void 0;
4
+ const isArray_1 = require("./isArray");
5
+ const isArrowFn_1 = require("./isArrowFn");
6
+ const isDate_1 = require("./isDate");
7
+ const isPlainObject_1 = require("./isPlainObject");
8
+ const isPrimitive_1 = require("./isPrimitive");
9
+ const isPromise_1 = require("./isPromise");
10
+ const isSymbol_1 = require("./isSymbol");
11
+ function isClass(target) {
12
+ if (!target) {
13
+ return false;
14
+ }
15
+ if ((0, isArrowFn_1.isArrowFn)(target)) {
16
+ return false;
17
+ }
18
+ return !((0, isSymbol_1.isSymbol)(target) ||
19
+ (0, isPrimitive_1.isPrimitiveOrPrimitiveClass)(target) ||
20
+ (0, isPlainObject_1.isClassObject)(target) ||
21
+ (0, isDate_1.isDate)(target) ||
22
+ (0, isPromise_1.isPromise)(target) ||
23
+ (0, isArray_1.isArrayOrArrayClass)(target));
24
+ }
25
+ exports.isClass = isClass;
26
+ //# sourceMappingURL=isClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isClass.js","sourceRoot":"","sources":["../../../../src/utils/objects/isClass.ts"],"names":[],"mappings":";;;AAAA,uCAA8C;AAC9C,2CAAsC;AACtC,qCAAgC;AAChC,mDAA8C;AAC9C,+CAA0D;AAC1D,2CAAsC;AACtC,yCAAoC;AAEpC,SAAgB,OAAO,CAAC,MAAW;IACjC,IAAI,CAAC,MAAM,EAAE;QACX,OAAO,KAAK,CAAC;KACd;IAED,IAAI,IAAA,qBAAS,EAAC,MAAM,CAAC,EAAE;QACrB,OAAO,KAAK,CAAC;KACd;IAED,OAAO,CAAC,CACN,IAAA,mBAAQ,EAAC,MAAM,CAAC;QAChB,IAAA,yCAA2B,EAAC,MAAM,CAAC;QACnC,IAAA,6BAAa,EAAC,MAAM,CAAC;QACrB,IAAA,eAAM,EAAC,MAAM,CAAC;QACd,IAAA,qBAAS,EAAC,MAAM,CAAC;QACjB,IAAA,6BAAmB,EAAC,MAAM,CAAC,CAC5B,CAAC;AACJ,CAAC;AAjBD,0BAiBC","sourcesContent":["import {isArrayOrArrayClass} from \"./isArray\";\nimport {isArrowFn} from \"./isArrowFn\";\nimport {isDate} from \"./isDate\";\nimport {isClassObject} from \"./isPlainObject\";\nimport {isPrimitiveOrPrimitiveClass} from \"./isPrimitive\";\nimport {isPromise} from \"./isPromise\";\nimport {isSymbol} from \"./isSymbol\";\n\nexport function isClass(target: any) {\n if (!target) {\n return false;\n }\n\n if (isArrowFn(target)) {\n return false;\n }\n\n return !(\n isSymbol(target) ||\n isPrimitiveOrPrimitiveClass(target) ||\n isClassObject(target) ||\n isDate(target) ||\n isPromise(target) ||\n isArrayOrArrayClass(target)\n );\n}\n"]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isCollection = void 0;
4
+ const isArray_1 = require("./isArray");
5
+ /**
6
+ * Return true if the target.
7
+ * @param target
8
+ * @returns {boolean}
9
+ */
10
+ function isCollection(target) {
11
+ return ((0, isArray_1.isArrayOrArrayClass)(target) ||
12
+ target === Map ||
13
+ target instanceof Map ||
14
+ target === Set ||
15
+ target instanceof Set ||
16
+ target === WeakMap ||
17
+ target instanceof WeakMap ||
18
+ target === WeakSet ||
19
+ target instanceof WeakSet);
20
+ }
21
+ exports.isCollection = isCollection;
22
+ //# sourceMappingURL=isCollection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isCollection.js","sourceRoot":"","sources":["../../../../src/utils/objects/isCollection.ts"],"names":[],"mappings":";;;AAAA,uCAA8C;AAE9C;;;;GAIG;AACH,SAAgB,YAAY,CAAC,MAAW;IACtC,OAAO,CACL,IAAA,6BAAmB,EAAC,MAAM,CAAC;QAC3B,MAAM,KAAK,GAAG;QACd,MAAM,YAAY,GAAG;QACrB,MAAM,KAAK,GAAG;QACd,MAAM,YAAY,GAAG;QACrB,MAAM,KAAK,OAAO;QAClB,MAAM,YAAY,OAAO;QACzB,MAAM,KAAK,OAAO;QAClB,MAAM,YAAY,OAAO,CAC1B,CAAC;AACJ,CAAC;AAZD,oCAYC","sourcesContent":["import {isArrayOrArrayClass} from \"./isArray\";\n\n/**\n * Return true if the target.\n * @param target\n * @returns {boolean}\n */\nexport function isCollection(target: any): boolean {\n return (\n isArrayOrArrayClass(target) ||\n target === Map ||\n target instanceof Map ||\n target === Set ||\n target instanceof Set ||\n target === WeakMap ||\n target instanceof WeakMap ||\n target === WeakSet ||\n target instanceof WeakSet\n );\n}\n"]}
File without changes
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isDate = void 0;
4
+ /**
5
+ *
6
+ * @param target
7
+ * @returns {boolean}
8
+ */
9
+ function isDate(target) {
10
+ return target === Date || (target instanceof Date && !isNaN(+target));
11
+ }
12
+ exports.isDate = isDate;
13
+ //# sourceMappingURL=isDate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isDate.js","sourceRoot":"","sources":["../../../../src/utils/objects/isDate.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,MAAM,CAAC,MAAW;IAChC,OAAO,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACxE,CAAC;AAFD,wBAEC","sourcesContent":["/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isDate(target: any): target is Date {\n return target === Date || (target instanceof Date && !isNaN(+target));\n}\n"]}
File without changes
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isEmpty = void 0;
4
+ const isNil_1 = require("./isNil");
5
+ /**
6
+ * Return true if the value is an empty string, null or undefined.
7
+ * @param value
8
+ * @returns {boolean}
9
+ */
10
+ function isEmpty(value) {
11
+ return value === "" || (0, isNil_1.isNil)(value);
12
+ }
13
+ exports.isEmpty = isEmpty;
14
+ //# sourceMappingURL=isEmpty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEmpty.js","sourceRoot":"","sources":["../../../../src/utils/objects/isEmpty.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAE9B;;;;GAIG;AACH,SAAgB,OAAO,CAAC,KAAU;IAChC,OAAO,KAAK,KAAK,EAAE,IAAI,IAAA,aAAK,EAAC,KAAK,CAAC,CAAC;AACtC,CAAC;AAFD,0BAEC","sourcesContent":["import {isNil} from \"./isNil\";\n\n/**\n * Return true if the value is an empty string, null or undefined.\n * @param value\n * @returns {boolean}\n */\nexport function isEmpty(value: any): boolean {\n return value === \"\" || isNil(value);\n}\n"]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isEnumerable = void 0;
4
+ const inheritedDescriptorOf_1 = require("../decorators/inheritedDescriptorOf");
5
+ const classOf_1 = require("./classOf");
6
+ /**
7
+ *
8
+ * @param obj
9
+ * @param key
10
+ */
11
+ function isEnumerable(obj, key) {
12
+ const klass = (0, classOf_1.classOf)(obj);
13
+ if (klass) {
14
+ const descriptor = (0, inheritedDescriptorOf_1.inheritedDescriptorOf)(klass, key);
15
+ if (descriptor) {
16
+ return descriptor.enumerable;
17
+ }
18
+ }
19
+ return Object.prototype.propertyIsEnumerable.call(obj, key);
20
+ }
21
+ exports.isEnumerable = isEnumerable;
22
+ //# sourceMappingURL=isEnumerable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isEnumerable.js","sourceRoot":"","sources":["../../../../src/utils/objects/isEnumerable.ts"],"names":[],"mappings":";;;AAAA,+EAA0E;AAC1E,uCAAkC;AAElC;;;;GAIG;AACH,SAAgB,YAAY,CAAC,GAAQ,EAAE,GAAW;IAChD,MAAM,KAAK,GAAG,IAAA,iBAAO,EAAC,GAAG,CAAC,CAAC;IAE3B,IAAI,KAAK,EAAE;QACT,MAAM,UAAU,GAAG,IAAA,6CAAqB,EAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAErD,IAAI,UAAU,EAAE;YACd,OAAO,UAAU,CAAC,UAAU,CAAC;SAC9B;KACF;IAED,OAAO,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAC9D,CAAC;AAZD,oCAYC","sourcesContent":["import {inheritedDescriptorOf} from \"../decorators/inheritedDescriptorOf\";\nimport {classOf} from \"./classOf\";\n\n/**\n *\n * @param obj\n * @param key\n */\nexport function isEnumerable(obj: any, key: string) {\n const klass = classOf(obj);\n\n if (klass) {\n const descriptor = inheritedDescriptorOf(klass, key);\n\n if (descriptor) {\n return descriptor.enumerable;\n }\n }\n\n return Object.prototype.propertyIsEnumerable.call(obj, key);\n}\n"]}
File without changes
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isFunction = void 0;
4
+ function isFunction(target) {
5
+ return typeof target === "function";
6
+ }
7
+ exports.isFunction = isFunction;
8
+ //# sourceMappingURL=isFunction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isFunction.js","sourceRoot":"","sources":["../../../../src/utils/objects/isFunction.ts"],"names":[],"mappings":";;;AAAA,SAAgB,UAAU,CAAC,MAAW;IACpC,OAAO,OAAO,MAAM,KAAK,UAAU,CAAC;AACtC,CAAC;AAFD,gCAEC","sourcesContent":["export function isFunction(target: any): target is Function {\n return typeof target === \"function\";\n}\n"]}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isInheritedFrom = void 0;
4
+ const classOf_1 = require("./classOf");
5
+ const ancestorOf_1 = require("./ancestorOf");
6
+ const nameOf_1 = require("./nameOf");
7
+ function isInheritedFrom(target, from, deep = 5) {
8
+ if (!target || !from) {
9
+ return false;
10
+ }
11
+ target = (0, classOf_1.classOf)(target);
12
+ from = (0, classOf_1.classOf)(from);
13
+ while ((0, nameOf_1.nameOf)(target) !== "") {
14
+ if (!deep) {
15
+ return false;
16
+ }
17
+ if (target === from) {
18
+ return true;
19
+ }
20
+ target = (0, ancestorOf_1.ancestorOf)(target);
21
+ deep--;
22
+ }
23
+ return false;
24
+ }
25
+ exports.isInheritedFrom = isInheritedFrom;
26
+ //# sourceMappingURL=isInheritedFrom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isInheritedFrom.js","sourceRoot":"","sources":["../../../../src/utils/objects/isInheritedFrom.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAClC,6CAAwC;AACxC,qCAAgC;AAEhC,SAAgB,eAAe,CAAC,MAAW,EAAE,IAAS,EAAE,IAAI,GAAG,CAAC;IAC9D,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE;QACpB,OAAO,KAAK,CAAC;KACd;IAED,MAAM,GAAG,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC;IACzB,IAAI,GAAG,IAAA,iBAAO,EAAC,IAAI,CAAC,CAAC;IAErB,OAAO,IAAA,eAAM,EAAC,MAAM,CAAC,KAAK,EAAE,EAAE;QAC5B,IAAI,CAAC,IAAI,EAAE;YACT,OAAO,KAAK,CAAC;SACd;QACD,IAAI,MAAM,KAAK,IAAI,EAAE;YACnB,OAAO,IAAI,CAAC;SACb;QAED,MAAM,GAAG,IAAA,uBAAU,EAAC,MAAM,CAAC,CAAC;QAC5B,IAAI,EAAE,CAAC;KACR;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AArBD,0CAqBC","sourcesContent":["import {classOf} from \"./classOf\";\nimport {ancestorOf} from \"./ancestorOf\";\nimport {nameOf} from \"./nameOf\";\n\nexport function isInheritedFrom(target: any, from: any, deep = 5): boolean {\n if (!target || !from) {\n return false;\n }\n\n target = classOf(target);\n from = classOf(from);\n\n while (nameOf(target) !== \"\") {\n if (!deep) {\n return false;\n }\n if (target === from) {\n return true;\n }\n\n target = ancestorOf(target);\n deep--;\n }\n\n return false;\n}\n"]}
File without changes
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isNil = void 0;
4
+ function isNil(value) {
5
+ return value === undefined || value === null;
6
+ }
7
+ exports.isNil = isNil;
8
+ //# sourceMappingURL=isNil.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNil.js","sourceRoot":"","sources":["../../../../src/utils/objects/isNil.ts"],"names":[],"mappings":";;;AAAA,SAAgB,KAAK,CAAC,KAAU;IAC9B,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;AAC/C,CAAC;AAFD,sBAEC","sourcesContent":["export function isNil(value: any): boolean {\n return value === undefined || value === null;\n}\n"]}
File without changes
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isNumberOrNumberClass = exports.isNumber = void 0;
4
+ /**
5
+ *
6
+ * @param target
7
+ * @returns {boolean}
8
+ */
9
+ function isNumber(target) {
10
+ return typeof target === "number";
11
+ }
12
+ exports.isNumber = isNumber;
13
+ function isNumberOrNumberClass(target) {
14
+ return typeof target === "number" || target instanceof Number || target === Number;
15
+ }
16
+ exports.isNumberOrNumberClass = isNumberOrNumberClass;
17
+ //# sourceMappingURL=isNumber.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isNumber.js","sourceRoot":"","sources":["../../../../src/utils/objects/isNumber.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC;AAED,SAAgB,qBAAqB,CAAC,MAAW;IAC/C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,YAAY,MAAM,IAAI,MAAM,KAAK,MAAM,CAAC;AACrF,CAAC;AAFD,sDAEC","sourcesContent":["/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isNumber(target: any): target is number {\n return typeof target === \"number\";\n}\n\nexport function isNumberOrNumberClass(target: any): target is number {\n return typeof target === \"number\" || target instanceof Number || target === Number;\n}\n"]}
File without changes
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isObject = void 0;
4
+ function isObject(target) {
5
+ return typeof target === "object";
6
+ }
7
+ exports.isObject = isObject;
8
+ //# sourceMappingURL=isObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isObject.js","sourceRoot":"","sources":["../../../../src/utils/objects/isObject.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC","sourcesContent":["export function isObject(target: any): target is object {\n return typeof target === \"object\";\n}\n"]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isObservable = void 0;
4
+ function isObservable(obj) {
5
+ return !!obj && typeof obj.lift === "function" && typeof obj.subscribe === "function";
6
+ }
7
+ exports.isObservable = isObservable;
8
+ //# sourceMappingURL=isObservable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isObservable.js","sourceRoot":"","sources":["../../../../src/utils/objects/isObservable.ts"],"names":[],"mappings":";;;AAAA,SAAgB,YAAY,CAAI,GAAQ;IACtC,OAAO,CAAC,CAAC,GAAG,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU,CAAC;AACxF,CAAC;AAFD,oCAEC","sourcesContent":["export function isObservable<T>(obj: any): boolean {\n return !!obj && typeof obj.lift === \"function\" && typeof obj.subscribe === \"function\";\n}\n"]}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPlainObject = exports.isClassObject = void 0;
4
+ const classOf_1 = require("./classOf");
5
+ /**
6
+ *
7
+ * @param target
8
+ * @returns {boolean}
9
+ */
10
+ function isClassObject(target) {
11
+ return target === Object;
12
+ }
13
+ exports.isClassObject = isClassObject;
14
+ function isPlainObject(target) {
15
+ return isClassObject((0, classOf_1.classOf)(target)) && target !== Object;
16
+ }
17
+ exports.isPlainObject = isPlainObject;
18
+ //# sourceMappingURL=isPlainObject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPlainObject.js","sourceRoot":"","sources":["../../../../src/utils/objects/isPlainObject.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC;;;;GAIG;AACH,SAAgB,aAAa,CAAC,MAAW;IACvC,OAAO,MAAM,KAAK,MAAM,CAAC;AAC3B,CAAC;AAFD,sCAEC;AAED,SAAgB,aAAa,CAAC,MAAW;IACvC,OAAO,aAAa,CAAC,IAAA,iBAAO,EAAC,MAAM,CAAC,CAAC,IAAI,MAAM,KAAK,MAAM,CAAC;AAC7D,CAAC;AAFD,sCAEC","sourcesContent":["import {classOf} from \"./classOf\";\n\n/**\n *\n * @param target\n * @returns {boolean}\n */\nexport function isClassObject(target: any): target is Object {\n return target === Object;\n}\n\nexport function isPlainObject(target: any): boolean {\n return isClassObject(classOf(target)) && target !== Object;\n}\n"]}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPrimitiveClass = exports.isPrimitive = exports.isPrimitiveOrPrimitiveClass = void 0;
4
+ const isBoolean_1 = require("./isBoolean");
5
+ const isNumber_1 = require("./isNumber");
6
+ const isString_1 = require("./isString");
7
+ /**
8
+ * Return true if the given obj is a primitive.
9
+ * @param target
10
+ * @returns {boolean}
11
+ * @ignore
12
+ */
13
+ function isPrimitiveOrPrimitiveClass(target) {
14
+ return (0, isString_1.isStringOrStringClass)(target) || (0, isNumber_1.isNumberOrNumberClass)(target) || (0, isBoolean_1.isBooleanOrBooleanClass)(target);
15
+ }
16
+ exports.isPrimitiveOrPrimitiveClass = isPrimitiveOrPrimitiveClass;
17
+ /**
18
+ * Return true if the given obj is a primitive.
19
+ * @param target
20
+ * @returns {boolean}
21
+ */
22
+ function isPrimitive(target) {
23
+ return (0, isString_1.isString)(target) || (0, isNumber_1.isNumber)(target) || (0, isBoolean_1.isBoolean)(target);
24
+ }
25
+ exports.isPrimitive = isPrimitive;
26
+ function isPrimitiveClass(target) {
27
+ return [String, Number, Boolean].includes(target);
28
+ }
29
+ exports.isPrimitiveClass = isPrimitiveClass;
30
+ //# sourceMappingURL=isPrimitive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPrimitive.js","sourceRoot":"","sources":["../../../../src/utils/objects/isPrimitive.ts"],"names":[],"mappings":";;;AAAA,2CAA+D;AAC/D,yCAA2D;AAC3D,yCAA2D;AAE3D;;;;;GAKG;AACH,SAAgB,2BAA2B,CAAC,MAAW;IACrD,OAAO,IAAA,gCAAqB,EAAC,MAAM,CAAC,IAAI,IAAA,gCAAqB,EAAC,MAAM,CAAC,IAAI,IAAA,mCAAuB,EAAC,MAAM,CAAC,CAAC;AAC3G,CAAC;AAFD,kEAEC;AAED;;;;GAIG;AACH,SAAgB,WAAW,CAAC,MAAW;IACrC,OAAO,IAAA,mBAAQ,EAAC,MAAM,CAAC,IAAI,IAAA,mBAAQ,EAAC,MAAM,CAAC,IAAI,IAAA,qBAAS,EAAC,MAAM,CAAC,CAAC;AACnE,CAAC;AAFD,kCAEC;AAED,SAAgB,gBAAgB,CAAC,MAAW;IAC1C,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC;AAFD,4CAEC","sourcesContent":["import {isBoolean, isBooleanOrBooleanClass} from \"./isBoolean\";\nimport {isNumber, isNumberOrNumberClass} from \"./isNumber\";\nimport {isString, isStringOrStringClass} from \"./isString\";\n\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n * @ignore\n */\nexport function isPrimitiveOrPrimitiveClass(target: any): boolean {\n return isStringOrStringClass(target) || isNumberOrNumberClass(target) || isBooleanOrBooleanClass(target);\n}\n\n/**\n * Return true if the given obj is a primitive.\n * @param target\n * @returns {boolean}\n */\nexport function isPrimitive(target: any): boolean {\n return isString(target) || isNumber(target) || isBoolean(target);\n}\n\nexport function isPrimitiveClass(target: any) {\n return [String, Number, Boolean].includes(target);\n}\n"]}
File without changes
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isPromise = void 0;
4
+ /**
5
+ * Tests to see if the object is an ES2015 (ES6) Promise
6
+ * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}
7
+ * @param target
8
+ * @returns {boolean}
9
+ */
10
+ function isPromise(target) {
11
+ return (target === Promise ||
12
+ target instanceof Promise ||
13
+ (!!target && typeof target.subscribe !== "function" && typeof target.then === "function"));
14
+ }
15
+ exports.isPromise = isPromise;
16
+ //# sourceMappingURL=isPromise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isPromise.js","sourceRoot":"","sources":["../../../../src/utils/objects/isPromise.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,SAAgB,SAAS,CAAU,MAAW;IAC5C,OAAO,CACL,MAAM,KAAK,OAAO;QAClB,MAAM,YAAY,OAAO;QACzB,CAAC,CAAC,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,SAAS,KAAK,UAAU,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC,CAC1F,CAAC;AACJ,CAAC;AAND,8BAMC","sourcesContent":["/**\n * Tests to see if the object is an ES2015 (ES6) Promise\n * @see {@link https://www.ecma-international.org/ecma-262/6.0/#sec-promise-objects}\n * @param target\n * @returns {boolean}\n */\nexport function isPromise<T = any>(target: any): target is Promise<T> {\n return (\n target === Promise ||\n target instanceof Promise ||\n (!!target && typeof target.subscribe !== \"function\" && typeof target.then === \"function\")\n );\n}\n"]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isProtectedKey = void 0;
4
+ /**
5
+ * Prevent prototype pollution vulnerability
6
+ * @param key
7
+ */
8
+ function isProtectedKey(key) {
9
+ return ["__proto__", "constructor", "prototype"].includes(key);
10
+ }
11
+ exports.isProtectedKey = isProtectedKey;
12
+ //# sourceMappingURL=isProtectedKey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isProtectedKey.js","sourceRoot":"","sources":["../../../../src/utils/objects/isProtectedKey.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,cAAc,CAAC,GAAW;IACxC,OAAO,CAAC,WAAW,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;AACjE,CAAC;AAFD,wCAEC","sourcesContent":["/**\n * Prevent prototype pollution vulnerability\n * @param key\n */\nexport function isProtectedKey(key: string) {\n return [\"__proto__\", \"constructor\", \"prototype\"].includes(key);\n}\n"]}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSerializable = void 0;
4
+ const isStream_1 = require("./isStream");
5
+ const isBoolean_1 = require("./isBoolean");
6
+ const isNumber_1 = require("./isNumber");
7
+ const isString_1 = require("./isString");
8
+ const isNil_1 = require("./isNil");
9
+ function isSerializable(data) {
10
+ return !(Buffer.isBuffer(data) || (0, isStream_1.isStream)(data) || (0, isBoolean_1.isBoolean)(data) || (0, isNumber_1.isNumber)(data) || (0, isString_1.isString)(data) || (0, isNil_1.isNil)(data));
11
+ }
12
+ exports.isSerializable = isSerializable;
13
+ //# sourceMappingURL=isSerializable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isSerializable.js","sourceRoot":"","sources":["../../../../src/utils/objects/isSerializable.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AACpC,2CAAsC;AACtC,yCAAoC;AACpC,yCAAoC;AACpC,mCAA8B;AAE9B,SAAgB,cAAc,CAAC,IAAS;IACtC,OAAO,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,qBAAS,EAAC,IAAI,CAAC,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,mBAAQ,EAAC,IAAI,CAAC,IAAI,IAAA,aAAK,EAAC,IAAI,CAAC,CAAC,CAAC;AAC1H,CAAC;AAFD,wCAEC","sourcesContent":["import {isStream} from \"./isStream\";\nimport {isBoolean} from \"./isBoolean\";\nimport {isNumber} from \"./isNumber\";\nimport {isString} from \"./isString\";\nimport {isNil} from \"./isNil\";\n\nexport function isSerializable(data: any) {\n return !(Buffer.isBuffer(data) || isStream(data) || isBoolean(data) || isNumber(data) || isString(data) || isNil(data));\n}\n"]}
File without changes
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isStream = void 0;
4
+ function isStream(obj) {
5
+ return obj !== null && typeof obj === "object" && typeof obj.pipe === "function";
6
+ }
7
+ exports.isStream = isStream;
8
+ //# sourceMappingURL=isStream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isStream.js","sourceRoot":"","sources":["../../../../src/utils/objects/isStream.ts"],"names":[],"mappings":";;;AAAA,SAAgB,QAAQ,CAAC,GAAQ;IAC/B,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,CAAC,IAAI,KAAK,UAAU,CAAC;AACnF,CAAC;AAFD,4BAEC","sourcesContent":["export function isStream(obj: any): boolean {\n return obj !== null && typeof obj === \"object\" && typeof obj.pipe === \"function\";\n}\n"]}
File without changes
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isStringOrStringClass = exports.isString = void 0;
4
+ /**
5
+ * @param target
6
+ * @returns {boolean}
7
+ */
8
+ function isString(target) {
9
+ return typeof target === "string";
10
+ }
11
+ exports.isString = isString;
12
+ function isStringOrStringClass(target) {
13
+ return typeof target === "string" || target instanceof String || target === String;
14
+ }
15
+ exports.isStringOrStringClass = isStringOrStringClass;
16
+ //# sourceMappingURL=isString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isString.js","sourceRoot":"","sources":["../../../../src/utils/objects/isString.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC;AAED,SAAgB,qBAAqB,CAAC,MAAW;IAC/C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,YAAY,MAAM,IAAI,MAAM,KAAK,MAAM,CAAC;AACrF,CAAC;AAFD,sDAEC","sourcesContent":["/**\n * @param target\n * @returns {boolean}\n */\nexport function isString(target: any): target is string {\n return typeof target === \"string\";\n}\n\nexport function isStringOrStringClass(target: any): target is string {\n return typeof target === \"string\" || target instanceof String || target === String;\n}\n"]}
File without changes
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isSymbolOrSymbolClass = exports.isSymbol = void 0;
4
+ /**
5
+ *
6
+ * @param target
7
+ */
8
+ function isSymbol(target) {
9
+ return typeof target === "symbol";
10
+ }
11
+ exports.isSymbol = isSymbol;
12
+ function isSymbolOrSymbolClass(target) {
13
+ return typeof target === "symbol" || target instanceof Symbol || target === Symbol;
14
+ }
15
+ exports.isSymbolOrSymbolClass = isSymbolOrSymbolClass;
16
+ //# sourceMappingURL=isSymbol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isSymbol.js","sourceRoot":"","sources":["../../../../src/utils/objects/isSymbol.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,SAAgB,QAAQ,CAAC,MAAW;IAClC,OAAO,OAAO,MAAM,KAAK,QAAQ,CAAC;AACpC,CAAC;AAFD,4BAEC;AAED,SAAgB,qBAAqB,CAAC,MAAW;IAC/C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,YAAY,MAAM,IAAI,MAAM,KAAK,MAAM,CAAC;AACrF,CAAC;AAFD,sDAEC","sourcesContent":["/**\n *\n * @param target\n */\nexport function isSymbol(target: any): target is symbol {\n return typeof target === \"symbol\";\n}\n\nexport function isSymbolOrSymbolClass(target: any): target is symbol {\n return typeof target === \"symbol\" || target instanceof Symbol || target === Symbol;\n}\n"]}
File without changes