@depup/nestjs__core 11.1.17-depup.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 (371) hide show
  1. package/LICENSE +22 -0
  2. package/PACKAGE.md +1 -0
  3. package/README.md +25 -0
  4. package/Readme.md +146 -0
  5. package/adapters/http-adapter.d.ts +80 -0
  6. package/adapters/http-adapter.js +90 -0
  7. package/adapters/index.d.ts +1 -0
  8. package/adapters/index.js +4 -0
  9. package/application-config.d.ts +47 -0
  10. package/application-config.js +107 -0
  11. package/changes.json +5 -0
  12. package/constants.d.ts +14 -0
  13. package/constants.js +21 -0
  14. package/discovery/discoverable-meta-host-collection.d.ts +46 -0
  15. package/discovery/discoverable-meta-host-collection.js +98 -0
  16. package/discovery/discovery-module.d.ts +5 -0
  17. package/discovery/discovery-module.js +19 -0
  18. package/discovery/discovery-service.d.ts +76 -0
  19. package/discovery/discovery-service.js +98 -0
  20. package/discovery/index.d.ts +2 -0
  21. package/discovery/index.js +5 -0
  22. package/errors/exception-handler.d.ts +4 -0
  23. package/errors/exception-handler.js +11 -0
  24. package/errors/exceptions/circular-dependency.exception.d.ts +4 -0
  25. package/errors/exceptions/circular-dependency.exception.js +11 -0
  26. package/errors/exceptions/index.d.ts +8 -0
  27. package/errors/exceptions/index.js +11 -0
  28. package/errors/exceptions/invalid-class-module.exception.d.ts +4 -0
  29. package/errors/exceptions/invalid-class-module.exception.js +11 -0
  30. package/errors/exceptions/invalid-class-scope.exception.d.ts +5 -0
  31. package/errors/exceptions/invalid-class-scope.exception.js +16 -0
  32. package/errors/exceptions/invalid-class.exception.d.ts +4 -0
  33. package/errors/exceptions/invalid-class.exception.js +11 -0
  34. package/errors/exceptions/invalid-exception-filter.exception.d.ts +4 -0
  35. package/errors/exceptions/invalid-exception-filter.exception.js +11 -0
  36. package/errors/exceptions/invalid-middleware-configuration.exception.d.ts +4 -0
  37. package/errors/exceptions/invalid-middleware-configuration.exception.js +11 -0
  38. package/errors/exceptions/invalid-middleware.exception.d.ts +4 -0
  39. package/errors/exceptions/invalid-middleware.exception.js +11 -0
  40. package/errors/exceptions/invalid-module.exception.d.ts +4 -0
  41. package/errors/exceptions/invalid-module.exception.js +11 -0
  42. package/errors/exceptions/runtime.exception.d.ts +4 -0
  43. package/errors/exceptions/runtime.exception.js +12 -0
  44. package/errors/exceptions/undefined-dependency.exception.d.ts +6 -0
  45. package/errors/exceptions/undefined-dependency.exception.js +11 -0
  46. package/errors/exceptions/undefined-forwardref.exception.d.ts +5 -0
  47. package/errors/exceptions/undefined-forwardref.exception.js +11 -0
  48. package/errors/exceptions/undefined-module.exception.d.ts +4 -0
  49. package/errors/exceptions/undefined-module.exception.js +11 -0
  50. package/errors/exceptions/unknown-dependencies.exception.d.ts +16 -0
  51. package/errors/exceptions/unknown-dependencies.exception.js +15 -0
  52. package/errors/exceptions/unknown-element.exception.d.ts +4 -0
  53. package/errors/exceptions/unknown-element.exception.js +11 -0
  54. package/errors/exceptions/unknown-export.exception.d.ts +4 -0
  55. package/errors/exceptions/unknown-export.exception.js +11 -0
  56. package/errors/exceptions/unknown-module.exception.d.ts +4 -0
  57. package/errors/exceptions/unknown-module.exception.js +10 -0
  58. package/errors/exceptions/unknown-request-mapping.exception.d.ts +5 -0
  59. package/errors/exceptions/unknown-request-mapping.exception.js +11 -0
  60. package/errors/exceptions-zone.d.ts +5 -0
  61. package/errors/exceptions-zone.js +34 -0
  62. package/errors/messages.d.ts +17 -0
  63. package/errors/messages.js +174 -0
  64. package/exceptions/base-exception-filter-context.d.ts +14 -0
  65. package/exceptions/base-exception-filter-context.js +56 -0
  66. package/exceptions/base-exception-filter.d.ts +20 -0
  67. package/exceptions/base-exception-filter.js +72 -0
  68. package/exceptions/exceptions-handler.d.ts +10 -0
  69. package/exceptions/exceptions-handler.js +34 -0
  70. package/exceptions/external-exception-filter-context.d.ts +12 -0
  71. package/exceptions/external-exception-filter-context.js +42 -0
  72. package/exceptions/external-exception-filter.d.ts +5 -0
  73. package/exceptions/external-exception-filter.js +15 -0
  74. package/exceptions/external-exceptions-handler.d.ts +9 -0
  75. package/exceptions/external-exceptions-handler.js +34 -0
  76. package/exceptions/index.d.ts +1 -0
  77. package/exceptions/index.js +4 -0
  78. package/guards/constants.d.ts +1 -0
  79. package/guards/constants.js +4 -0
  80. package/guards/guards-consumer.d.ts +9 -0
  81. package/guards/guards-consumer.js +39 -0
  82. package/guards/guards-context-creator.d.ts +17 -0
  83. package/guards/guards-context-creator.js +70 -0
  84. package/guards/index.d.ts +3 -0
  85. package/guards/index.js +6 -0
  86. package/helpers/barrier.d.ts +30 -0
  87. package/helpers/barrier.js +46 -0
  88. package/helpers/context-creator.d.ts +10 -0
  89. package/helpers/context-creator.js +33 -0
  90. package/helpers/context-id-factory.d.ts +41 -0
  91. package/helpers/context-id-factory.js +67 -0
  92. package/helpers/context-utils.d.ts +23 -0
  93. package/helpers/context-utils.js +55 -0
  94. package/helpers/execution-context-host.d.ts +19 -0
  95. package/helpers/execution-context-host.js +50 -0
  96. package/helpers/external-context-creator.d.ts +51 -0
  97. package/helpers/external-context-creator.js +166 -0
  98. package/helpers/external-proxy.d.ts +5 -0
  99. package/helpers/external-proxy.js +19 -0
  100. package/helpers/get-class-scope.d.ts +3 -0
  101. package/helpers/get-class-scope.js +8 -0
  102. package/helpers/handler-metadata-storage.d.ts +27 -0
  103. package/helpers/handler-metadata-storage.js +26 -0
  104. package/helpers/http-adapter-host.d.ts +51 -0
  105. package/helpers/http-adapter-host.js +73 -0
  106. package/helpers/index.d.ts +3 -0
  107. package/helpers/index.js +6 -0
  108. package/helpers/interfaces/external-handler-metadata.interface.d.ts +11 -0
  109. package/helpers/interfaces/external-handler-metadata.interface.js +2 -0
  110. package/helpers/interfaces/index.d.ts +2 -0
  111. package/helpers/interfaces/index.js +5 -0
  112. package/helpers/interfaces/params-metadata.interface.d.ts +6 -0
  113. package/helpers/interfaces/params-metadata.interface.js +2 -0
  114. package/helpers/is-durable.d.ts +2 -0
  115. package/helpers/is-durable.js +8 -0
  116. package/helpers/load-adapter.d.ts +1 -0
  117. package/helpers/load-adapter.js +15 -0
  118. package/helpers/messages.d.ts +7 -0
  119. package/helpers/messages.js +29 -0
  120. package/helpers/optional-require.d.ts +1 -0
  121. package/helpers/optional-require.js +11 -0
  122. package/helpers/rethrow.d.ts +1 -0
  123. package/helpers/rethrow.js +7 -0
  124. package/helpers/router-method-factory.d.ts +23 -0
  125. package/helpers/router-method-factory.js +33 -0
  126. package/hooks/before-app-shutdown.hook.d.ts +9 -0
  127. package/hooks/before-app-shutdown.hook.js +51 -0
  128. package/hooks/index.d.ts +5 -0
  129. package/hooks/index.js +8 -0
  130. package/hooks/on-app-bootstrap.hook.d.ts +8 -0
  131. package/hooks/on-app-bootstrap.hook.js +53 -0
  132. package/hooks/on-app-shutdown.hook.d.ts +9 -0
  133. package/hooks/on-app-shutdown.hook.js +54 -0
  134. package/hooks/on-module-destroy.hook.d.ts +8 -0
  135. package/hooks/on-module-destroy.hook.js +53 -0
  136. package/hooks/on-module-init.hook.d.ts +8 -0
  137. package/hooks/on-module-init.hook.js +53 -0
  138. package/hooks/utils/get-instances-grouped-by-hierarchy-level.d.ts +3 -0
  139. package/hooks/utils/get-instances-grouped-by-hierarchy-level.js +27 -0
  140. package/hooks/utils/get-sorted-hierarchy-levels.d.ts +1 -0
  141. package/hooks/utils/get-sorted-hierarchy-levels.js +7 -0
  142. package/index.d.ts +17 -0
  143. package/index.js +32 -0
  144. package/injector/abstract-instance-resolver.d.ts +16 -0
  145. package/injector/abstract-instance-resolver.js +49 -0
  146. package/injector/compiler.d.ts +18 -0
  147. package/injector/compiler.js +35 -0
  148. package/injector/constants.d.ts +3 -0
  149. package/injector/constants.js +8 -0
  150. package/injector/container.d.ts +67 -0
  151. package/injector/container.js +233 -0
  152. package/injector/helpers/provider-classifier.d.ts +4 -0
  153. package/injector/helpers/provider-classifier.js +16 -0
  154. package/injector/helpers/silent-logger.d.ts +10 -0
  155. package/injector/helpers/silent-logger.js +18 -0
  156. package/injector/helpers/transient-instances.d.ts +12 -0
  157. package/injector/helpers/transient-instances.js +28 -0
  158. package/injector/index.d.ts +6 -0
  159. package/injector/index.js +8 -0
  160. package/injector/injector.d.ts +104 -0
  161. package/injector/injector.js +554 -0
  162. package/injector/inquirer/index.d.ts +1 -0
  163. package/injector/inquirer/index.js +4 -0
  164. package/injector/inquirer/inquirer-constants.d.ts +1 -0
  165. package/injector/inquirer/inquirer-constants.js +4 -0
  166. package/injector/inquirer/inquirer-providers.d.ts +2 -0
  167. package/injector/inquirer/inquirer-providers.js +11 -0
  168. package/injector/instance-links-host.d.ts +22 -0
  169. package/injector/instance-links-host.js +56 -0
  170. package/injector/instance-loader.d.ts +23 -0
  171. package/injector/instance-loader.js +88 -0
  172. package/injector/instance-wrapper.d.ts +99 -0
  173. package/injector/instance-wrapper.js +350 -0
  174. package/injector/internal-core-module/index.d.ts +1 -0
  175. package/injector/internal-core-module/index.js +4 -0
  176. package/injector/internal-core-module/internal-core-module-factory.d.ts +9 -0
  177. package/injector/internal-core-module/internal-core-module-factory.js +52 -0
  178. package/injector/internal-core-module/internal-core-module.d.ts +5 -0
  179. package/injector/internal-core-module/internal-core-module.js +40 -0
  180. package/injector/internal-providers-storage.d.ts +9 -0
  181. package/injector/internal-providers-storage.js +19 -0
  182. package/injector/lazy-module-loader/lazy-module-loader-options.interface.d.ts +6 -0
  183. package/injector/lazy-module-loader/lazy-module-loader-options.interface.js +2 -0
  184. package/injector/lazy-module-loader/lazy-module-loader.d.ts +20 -0
  185. package/injector/lazy-module-loader/lazy-module-loader.js +49 -0
  186. package/injector/module-ref.d.ts +106 -0
  187. package/injector/module-ref.js +66 -0
  188. package/injector/module.d.ts +82 -0
  189. package/injector/module.js +432 -0
  190. package/injector/modules-container.d.ts +27 -0
  191. package/injector/modules-container.js +42 -0
  192. package/injector/opaque-key-factory/by-reference-module-opaque-key-factory.d.ts +15 -0
  193. package/injector/opaque-key-factory/by-reference-module-opaque-key-factory.js +41 -0
  194. package/injector/opaque-key-factory/deep-hashed-module-opaque-key-factory.d.ts +15 -0
  195. package/injector/opaque-key-factory/deep-hashed-module-opaque-key-factory.js +83 -0
  196. package/injector/opaque-key-factory/interfaces/module-opaque-key-factory.interface.d.ts +18 -0
  197. package/injector/opaque-key-factory/interfaces/module-opaque-key-factory.interface.js +2 -0
  198. package/injector/settlement-signal.d.ts +37 -0
  199. package/injector/settlement-signal.js +55 -0
  200. package/injector/topology-tree/topology-tree.d.ts +8 -0
  201. package/injector/topology-tree/topology-tree.js +51 -0
  202. package/injector/topology-tree/tree-node.d.ts +14 -0
  203. package/injector/topology-tree/tree-node.js +54 -0
  204. package/inspector/deterministic-uuid-registry.d.ts +6 -0
  205. package/inspector/deterministic-uuid-registry.js +24 -0
  206. package/inspector/graph-inspector.d.ts +26 -0
  207. package/inspector/graph-inspector.js +166 -0
  208. package/inspector/index.d.ts +4 -0
  209. package/inspector/index.js +7 -0
  210. package/inspector/initialize-on-preview.allowlist.d.ts +6 -0
  211. package/inspector/initialize-on-preview.allowlist.js +13 -0
  212. package/inspector/interfaces/edge.interface.d.ts +28 -0
  213. package/inspector/interfaces/edge.interface.js +2 -0
  214. package/inspector/interfaces/enhancer-metadata-cache-entry.interface.d.ts +12 -0
  215. package/inspector/interfaces/enhancer-metadata-cache-entry.interface.js +2 -0
  216. package/inspector/interfaces/entrypoint.interface.d.ts +23 -0
  217. package/inspector/interfaces/entrypoint.interface.js +2 -0
  218. package/inspector/interfaces/extras.interface.d.ts +18 -0
  219. package/inspector/interfaces/extras.interface.js +2 -0
  220. package/inspector/interfaces/node.interface.d.ts +48 -0
  221. package/inspector/interfaces/node.interface.js +2 -0
  222. package/inspector/interfaces/serialized-graph-json.interface.d.ts +14 -0
  223. package/inspector/interfaces/serialized-graph-json.interface.js +2 -0
  224. package/inspector/interfaces/serialized-graph-metadata.interface.d.ts +10 -0
  225. package/inspector/interfaces/serialized-graph-metadata.interface.js +2 -0
  226. package/inspector/noop-graph-inspector.d.ts +2 -0
  227. package/inspector/noop-graph-inspector.js +8 -0
  228. package/inspector/partial-graph.host.d.ts +7 -0
  229. package/inspector/partial-graph.host.js +15 -0
  230. package/inspector/serialized-graph.d.ts +52 -0
  231. package/inspector/serialized-graph.js +124 -0
  232. package/inspector/uuid-factory.d.ts +9 -0
  233. package/inspector/uuid-factory.js +22 -0
  234. package/interceptors/index.d.ts +2 -0
  235. package/interceptors/index.js +5 -0
  236. package/interceptors/interceptors-consumer.d.ts +9 -0
  237. package/interceptors/interceptors-consumer.js +37 -0
  238. package/interceptors/interceptors-context-creator.d.ts +16 -0
  239. package/interceptors/interceptors-context-creator.js +69 -0
  240. package/interfaces/index.d.ts +2 -0
  241. package/interfaces/index.js +2 -0
  242. package/interfaces/module-definition.interface.d.ts +3 -0
  243. package/interfaces/module-definition.interface.js +2 -0
  244. package/interfaces/module-override.interface.d.ts +5 -0
  245. package/interfaces/module-override.interface.js +2 -0
  246. package/internal.d.ts +38 -0
  247. package/internal.js +46 -0
  248. package/metadata-scanner.d.ts +17 -0
  249. package/metadata-scanner.js +83 -0
  250. package/middleware/builder.d.ts +15 -0
  251. package/middleware/builder.js +91 -0
  252. package/middleware/container.d.ts +14 -0
  253. package/middleware/container.js +49 -0
  254. package/middleware/index.d.ts +1 -0
  255. package/middleware/index.js +4 -0
  256. package/middleware/middleware-module.d.ts +33 -0
  257. package/middleware/middleware-module.js +208 -0
  258. package/middleware/resolver.d.ts +10 -0
  259. package/middleware/resolver.js +18 -0
  260. package/middleware/route-info-path-extractor.d.ts +15 -0
  261. package/middleware/route-info-path-extractor.js +81 -0
  262. package/middleware/routes-mapper.d.ts +19 -0
  263. package/middleware/routes-mapper.js +117 -0
  264. package/middleware/utils.d.ts +8 -0
  265. package/middleware/utils.js +106 -0
  266. package/nest-application-context.d.ts +173 -0
  267. package/nest-application-context.js +327 -0
  268. package/nest-application.d.ts +64 -0
  269. package/nest-application.js +328 -0
  270. package/nest-factory.d.ts +83 -0
  271. package/nest-factory.js +232 -0
  272. package/package.json +73 -0
  273. package/pipes/index.d.ts +3 -0
  274. package/pipes/index.js +6 -0
  275. package/pipes/params-token-factory.d.ts +5 -0
  276. package/pipes/params-token-factory.js +19 -0
  277. package/pipes/pipes-consumer.d.ts +10 -0
  278. package/pipes/pipes-consumer.js +21 -0
  279. package/pipes/pipes-context-creator.d.ts +17 -0
  280. package/pipes/pipes-context-creator.js +72 -0
  281. package/repl/assign-to-object.util.d.ts +5 -0
  282. package/repl/assign-to-object.util.js +14 -0
  283. package/repl/constants.d.ts +1 -0
  284. package/repl/constants.js +4 -0
  285. package/repl/index.d.ts +1 -0
  286. package/repl/index.js +4 -0
  287. package/repl/native-functions/debug-repl-fn.d.ts +9 -0
  288. package/repl/native-functions/debug-repl-fn.js +46 -0
  289. package/repl/native-functions/get-repl-fn.d.ts +7 -0
  290. package/repl/native-functions/get-repl-fn.js +19 -0
  291. package/repl/native-functions/help-repl-fn.d.ts +7 -0
  292. package/repl/native-functions/help-repl-fn.js +29 -0
  293. package/repl/native-functions/index.d.ts +6 -0
  294. package/repl/native-functions/index.js +9 -0
  295. package/repl/native-functions/methods-repl-fn.d.ts +8 -0
  296. package/repl/native-functions/methods-repl-fn.js +28 -0
  297. package/repl/native-functions/resolve-repl-fn.d.ts +7 -0
  298. package/repl/native-functions/resolve-repl-fn.js +18 -0
  299. package/repl/native-functions/select-relp-fn.d.ts +7 -0
  300. package/repl/native-functions/select-relp-fn.js +18 -0
  301. package/repl/repl-context.d.ts +26 -0
  302. package/repl/repl-context.js +126 -0
  303. package/repl/repl-function.d.ts +18 -0
  304. package/repl/repl-function.js +19 -0
  305. package/repl/repl-logger.d.ts +5 -0
  306. package/repl/repl-logger.js +22 -0
  307. package/repl/repl-native-commands.d.ts +2 -0
  308. package/repl/repl-native-commands.js +46 -0
  309. package/repl/repl.d.ts +3 -0
  310. package/repl/repl.interfaces.d.ts +16 -0
  311. package/repl/repl.interfaces.js +2 -0
  312. package/repl/repl.js +32 -0
  313. package/router/index.d.ts +3 -0
  314. package/router/index.js +8 -0
  315. package/router/interfaces/exceptions-filter.interface.d.ts +6 -0
  316. package/router/interfaces/exceptions-filter.interface.js +2 -0
  317. package/router/interfaces/exclude-route-metadata.interface.d.ts +15 -0
  318. package/router/interfaces/exclude-route-metadata.interface.js +2 -0
  319. package/router/interfaces/index.d.ts +1 -0
  320. package/router/interfaces/index.js +4 -0
  321. package/router/interfaces/resolver.interface.d.ts +5 -0
  322. package/router/interfaces/resolver.interface.js +2 -0
  323. package/router/interfaces/route-params-factory.interface.d.ts +8 -0
  324. package/router/interfaces/route-params-factory.interface.js +2 -0
  325. package/router/interfaces/route-path-metadata.interface.d.ts +32 -0
  326. package/router/interfaces/route-path-metadata.interface.js +2 -0
  327. package/router/interfaces/routes.interface.d.ts +7 -0
  328. package/router/interfaces/routes.interface.js +2 -0
  329. package/router/legacy-route-converter.d.ts +16 -0
  330. package/router/legacy-route-converter.js +61 -0
  331. package/router/paths-explorer.d.ts +18 -0
  332. package/router/paths-explorer.js +45 -0
  333. package/router/request/index.d.ts +1 -0
  334. package/router/request/index.js +5 -0
  335. package/router/request/request-constants.d.ts +2 -0
  336. package/router/request/request-constants.js +5 -0
  337. package/router/request/request-providers.d.ts +2 -0
  338. package/router/request/request-providers.js +11 -0
  339. package/router/route-params-factory.d.ts +9 -0
  340. package/router/route-params-factory.js +41 -0
  341. package/router/route-path-factory.d.ts +14 -0
  342. package/router/route-path-factory.js +101 -0
  343. package/router/router-exception-filters.d.ts +14 -0
  344. package/router/router-exception-filters.js +40 -0
  345. package/router/router-execution-context.d.ts +54 -0
  346. package/router/router-execution-context.js +186 -0
  347. package/router/router-explorer.d.ts +47 -0
  348. package/router/router-explorer.js +234 -0
  349. package/router/router-module.d.ts +19 -0
  350. package/router/router-module.js +80 -0
  351. package/router/router-proxy.d.ts +6 -0
  352. package/router/router-proxy.js +31 -0
  353. package/router/router-response-controller.d.ts +28 -0
  354. package/router/router-response-controller.js +98 -0
  355. package/router/routes-resolver.d.ts +27 -0
  356. package/router/routes-resolver.js +129 -0
  357. package/router/sse-stream.d.ts +43 -0
  358. package/router/sse-stream.js +83 -0
  359. package/router/utils/exclude-route.util.d.ts +4 -0
  360. package/router/utils/exclude-route.util.js +19 -0
  361. package/router/utils/flatten-route-paths.util.d.ts +6 -0
  362. package/router/utils/flatten-route-paths.util.js +25 -0
  363. package/router/utils/index.d.ts +2 -0
  364. package/router/utils/index.js +5 -0
  365. package/scanner.d.ts +89 -0
  366. package/scanner.js +416 -0
  367. package/services/index.d.ts +1 -0
  368. package/services/index.js +4 -0
  369. package/services/reflector.service.d.ts +111 -0
  370. package/services/reflector.service.js +100 -0
  371. package/tsconfig.build.json +21 -0
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2017-present Kamil Mysliwiec <https://kamilmysliwiec.com>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/PACKAGE.md ADDED
@@ -0,0 +1 @@
1
+ Implements Nest's core functionality, low-level services, and utilities.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @depup/nestjs__core
2
+
3
+ > Dependency-bumped version of [@nestjs/core](https://www.npmjs.com/package/@nestjs/core)
4
+
5
+ Generated by [DepUp](https://github.com/depup/npm) -- all production
6
+ dependencies bumped to latest versions.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @depup/nestjs__core
12
+ ```
13
+
14
+ | Field | Value |
15
+ |-------|-------|
16
+ | Original | [@nestjs/core](https://www.npmjs.com/package/@nestjs/core) @ 11.1.17 |
17
+ | Processed | 2026-03-16 |
18
+ | Smoke test | failed |
19
+ | Deps updated | 0 |
20
+
21
+ ---
22
+
23
+ Source: https://github.com/depup/npm | Original: https://www.npmjs.com/package/@nestjs/core
24
+
25
+ License inherited from the original package.
package/Readme.md ADDED
@@ -0,0 +1,146 @@
1
+ <p align="center">
2
+ <a href="https://nestjs.com/" target="_blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
3
+ </p>
4
+
5
+ [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
6
+ [circleci-url]: https://circleci.com/gh/nestjs/nest
7
+
8
+ <p align="center">A progressive <a href="https://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
9
+ <p align="center">
10
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
11
+ <a href="https://github.com/nestjs/nest/blob/master/LICENSE" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
12
+ <a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
13
+ <a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
14
+ <a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
15
+ <a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
16
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
17
+ <a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg"/></a>
18
+ <a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
19
+ <a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow"></a>
20
+ </p>
21
+ <!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
22
+ [![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->
23
+
24
+ ## Description
25
+
26
+ Nest is a framework for building efficient, scalable <a href="https://nodejs.org" target="_blank">Node.js</a> server-side applications. It uses modern JavaScript, is built with <a href="https://www.typescriptlang.org" target="_blank">TypeScript</a> (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
27
+
28
+ <p>Under the hood, Nest makes use of <a href="https://expressjs.com/" target="_blank">Express</a>, but also provides compatibility with a wide range of other libraries, like <a href="https://github.com/fastify/fastify" target="_blank">Fastify</a>, allowing for easy use of the myriad of third-party plugins which are available.</p>
29
+
30
+ ## Philosophy
31
+
32
+ <p>In recent years, thanks to Node.js, JavaScript has become the “lingua franca” of the web for both front-end and back-end applications, giving rise to awesome projects like <a href="https://angular.io/" target="_blank">Angular</a>, <a href="https://github.com/facebook/react" target="_blank">React</a>, and <a href="https://github.com/vuejs/vue" target="_blank">Vue</a>, which improve developer productivity and enable the construction of fast, testable, and extensible frontend applications. However, on the server-side, while there are a lot of superb libraries, helpers, and tools for Node, none of them effectively solve the main problem - the architecture.</p>
33
+ <p>Nest aims to provide an application architecture out of the box which allows for effortless creation of highly testable, scalable, and loosely coupled and easily maintainable applications. The architecture is heavily inspired by Angular.</p>
34
+
35
+ ## Getting started
36
+
37
+ - To check out the [guide](https://docs.nestjs.com), visit [docs.nestjs.com](https://docs.nestjs.com). :books:
38
+ - 要查看中文 [指南](readme_zh.md), 请访问 [docs.nestjs.cn](https://docs.nestjs.cn). :books:
39
+ - [가이드](readme_kr.md) 문서는 [docs.nestjs.com](https://docs.nestjs.com)에서 확인하실 수 있습니다. :books:
40
+ - [ガイド](readme_jp.md)は [docs.nestjs.com](https://docs.nestjs.com)でご確認ください。 :books:
41
+
42
+ ## Questions
43
+
44
+ For questions and support please use the official [Discord channel](https://discord.gg/G7Qnnhy). The issue list of this repo is **exclusively** for bug reports and feature requests.
45
+
46
+ ## Issues
47
+
48
+ Please make sure to read the [Issue Reporting Checklist](https://github.com/nestjs/nest/blob/master/CONTRIBUTING.md#-submitting-an-issue) before opening an issue. Issues not conforming to the guidelines may be closed immediately.
49
+
50
+ ## Consulting
51
+
52
+ With official support, you can get expert help straight from the Nest core team. We provide dedicated technical support, migration strategies, advice on best practices (and design decisions), PR reviews, and team augmentation. Read more about [support here](https://enterprise.nestjs.com).
53
+
54
+ ## Support
55
+
56
+ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support from the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).
57
+
58
+ #### Principal Sponsors
59
+
60
+ <table style="text-align:center;">
61
+ <tr>
62
+ <td><a href="https://trilon.io" target="_blank"><img src="https://nestjs.com/img/trilon.svg" width="200" valign="middle" /></a></td>
63
+ <td><a href="https://microsoft.com/" target="_blank"><img src="https://nestjs.com/img/logos/microsoft-logo.png" width="180" valign="middle" /></a></td>
64
+ <td><a href="https://mojam.co" target="_blank"><img src="https://nestjs.com/img/logos/mojam-logo.png" width="80" valign="middle" /></a></td>
65
+ <td><a href="https://valor-software.com/" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/valor-software.png" width="170" valign="middle" /></a></td>
66
+ <td><a href="https://serpapi.com/" target="_blank"><img src="https://nestjs.com/img/logos/serpapi-logo.png" width="150" valign="middle" /></a></td>
67
+ </tr>
68
+ </table>
69
+
70
+ #### Gold Sponsors
71
+
72
+ <table style="text-align:center;">
73
+ <tr>
74
+ <td><a href="https://www.redhat.com" target="_blank"><img src="https://nestjs.com/img/logos/red-hat-logo.svg" width="200" valign="middle" /></a></td>
75
+ <td><a href="https://github.com/Sanofi-IADC" target="_blank"><img src="https://docs.nestjs.com/assets/sponsors/sanofi.png" width="180" valign="middle" /></a></td>
76
+ <td><a href="https://nx.dev" target="_blank"><img src="https://nestjs.com/img/logos/nx-logo.png" height="45" valign="middle" /></a></td>
77
+ <td><a href="https://intrinsic.ventures/" target="_blank"><img src="https://nestjs.com/img/logos/intrinisic-logo.png" width="210" valign="middle" /></a></td>
78
+ <td><a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/logos/jetbrains-logo.svg" width="90" valign="middle" /></a></td>
79
+ </tr>
80
+ <tr>
81
+ <td><a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/logos/snyk-logo-black.png" width="185" valign="middle" /></a></td>
82
+ <td><a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/logos/movavi-logo.svg" width="105" valign="middle" /></a></td>
83
+ </tr>
84
+ </table>
85
+
86
+ #### Silver Sponsors
87
+
88
+ <table style="text-align:center;">
89
+ <tr>
90
+ <td><a href="https://www.mercedes-benz.com/" target="_blank"><img src="https://nestjs.com/img/logos/mercedes-logo.png" width="100" valign="middle" /></a></td>
91
+ <td><a href="https://www.dinii.jp/" target="_blank"><img src="https://nestjs.com/img/logos/dinii-logo.png" width="65" valign="middle" /></a></td>
92
+ <td><a href="https://handsontable.com/docs/react-data-grid/?utm_source=NestJS_GH&utm_medium=sponsorship&utm_campaign=library_sponsorship_2024" target="_blank"><img src="https://nestjs.com/img/logos/handsontable-dark-logo.svg#2" width="150" valign="middle" /></a></td>
93
+ <td align="center" valign="middle"><a href="https://www.itflashcards.com/" target="_blank"><img src="https://nestjs.com/img/logos/it_flashcards-logo.png" width="170" valign="middle" /></a></td>
94
+ <td align="center" valign="middle"><a href="https://arcjet.com/?ref=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/arcjet-logo.svg" width="170" valign="middle" /></a></td>
95
+ <td align="center" valign="middle"><a href="https://crawljobs.com" target="_blank"><img src="https://nestjs.com/img/logos/crawljobs-logo.svg" width="130" valign="middle" /></a></td>
96
+ </tr><tr>
97
+ <td align="center" valign="middle"><a href="https://pandektes.com" target="_blank"><img src="https://nestjs.com/img/logos/pandektes-logo.png" width="65" valign="middle" /></a></td>
98
+ </tr>
99
+ </table>
100
+
101
+ #### Sponsors
102
+
103
+ <table>
104
+ <tr>
105
+ <td align="center" valign="middle"><a href="https://www.swingdev.io" target="_blank"><img src="https://nestjs.com/img/logos/swingdev-logo.svg#1" width="110" valign="middle" /></a></td>
106
+ <td align="center" valign="middle"><a href="https://www.novologic.com/" target="_blank"><img src="https://nestjs.com/img/logos/novologic.png" width="110" valign="middle" /></a></td>
107
+ <td align="center" valign="middle"><a href="https://mantro.net/" target="_blank"><img src="https://nestjs.com/img/logos/mantro-logo.svg" width="95" valign="middle" /></a></td>
108
+ <td align="center" valign="middle"><a href="https://triplebyte.com/" target="_blank"><img src="https://nestjs.com/img/logos/triplebyte.png" width="107" valign="middle" /></a></td>
109
+ <td align="center" valign="middle"><a href="https://nearpod.com/" target="_blank"><img src="https://nestjs.com/img/logos/nearpod-logo.svg" width="100" valign="middle" /></a></td>
110
+ <td align="center" valign="middle"><a href="https://genuinebee.com/" target="_blank"><img src="https://nestjs.com/img/logos/genuinebee.svg" width="97" valign="middle" /></a></td>
111
+ </tr>
112
+ <tr>
113
+ <td align="center" valign="middle"><a href="https://vpn-review.com/vpn-for-torrenting" target="_blank"><img src="https://nestjs.com/img/logos/vpn-review-logo.png" width="85" valign="middle" /></a></td>
114
+ <td align="center" valign="middle"><a href="https://lambda-it.ch/" target="_blank"><img src="https://nestjs.com/img/logos/lambda-it-logo.svg" width="115" valign="middle" /></a></td>
115
+ <td align="center" valign="middle"><a href="https://rocketech.it/cases/?utm_source=google&utm_medium=badge&utm_campaign=nestjs" target="_blank"><img src="https://nestjs.com/img/logos/rocketech-logo.svg" width="110" valign="middle" /></a></td>
116
+ <td align="center" valign="middle"><a href="https://www.anonymistic.com/" target="_blank"><img src="https://nestjs.com/img/logos/anonymistic-logo.png" width="125" valign="middle" /></a></td>
117
+ <td align="center" valign="middle"><a href="https://www.naologic.com/" target="_blank"><img src="https://nestjs.com/img/logos/naologic-logo.svg" width="125" valign="middle" /></a></td>
118
+ <td align="center" valign="middle"><a href="https://triplecore.io" target="_blank"><img src="https://nestjs.com/img/logos/triplecore-logo.svg" width="50" valign="middle" /></a></td>
119
+ </tr>
120
+ <tr>
121
+ <td align="center" valign="middle"><a href="https://polygon-software.ch/" target="_blank"><img src="https://nestjs.com/img/logos/polygon-logo.svg" width="120" valign="middle" /></a></td>
122
+ <td align="center" valign="middle"><a href="https://boringowl.io/" target="_blank"><img src="https://nestjs.com/img/logos/boringowl-logo.svg" width="120" valign="middle" /></a></td>
123
+ <td align="center" valign="middle"><a href="https://nordbot.app/" target="_blank"><img src="https://nestjs.com/img/logos/nordbot-logo.png" width="120" valign="middle" /></a></td>
124
+ <td align="center" valign="middle"><a href="https://doppio.sh/" target="_blank"><img src="https://nestjs.com/img/logos/dopiosh-logo.png" width="50" valign="middle" /></a></td>
125
+ <td align="center" valign="middle"><a href="https://www.hingehealth.com/" target="_blank"><img src="https://nestjs.com/img/logos/hinge-health-logo.svg" width="100" valign="middle" /></a></td>
126
+ <td align="center" valign="middle"><a href="https://www.tripoffice.com/" target="_blank"><img src="https://nestjs.com/img/logos/tripoffice-logo.png" width="140" valign="middle" /></a></td>
127
+ </tr>
128
+ <tr>
129
+ <td align="center" valign="middle"><a href="https://solcellsforetag.se/" target="_blank"><img src="https://nestjs.com/img/logos/solcellsforetag-logo.svg" width="140" valign="middle" /></a></td>
130
+ <td align="center" valign="middle"><a href="https://www.route4me.com/" target="_blank"><img src="https://nestjs.com/img/logos/route4me-logo.svg" width="100" valign="middle" /></a></td>
131
+ </tr>
132
+ </table>
133
+
134
+ ## Backers
135
+
136
+ <a href="https://opencollective.com/nest" target="_blank"><img src="https://opencollective.com/nest/backers.svg?width=1000"></a>
137
+
138
+ ## Stay in touch
139
+
140
+ - Author - [Kamil Myśliwiec](https://x.com/kammysliwiec)
141
+ - Website - [https://nestjs.com](https://nestjs.com/)
142
+ - X - [@nestframework](https://x.com/nestframework)
143
+
144
+ ## License
145
+
146
+ Nest is [MIT licensed](LICENSE).
@@ -0,0 +1,80 @@
1
+ import { HttpServer, RequestMethod, VersioningOptions } from '@nestjs/common';
2
+ import { RequestHandler, VersionValue } from '@nestjs/common/interfaces';
3
+ import { NestApplicationOptions } from '@nestjs/common/interfaces/nest-application-options.interface';
4
+ /**
5
+ * @publicApi
6
+ */
7
+ export declare abstract class AbstractHttpAdapter<TServer = any, TRequest = any, TResponse = any> implements HttpServer<TRequest, TResponse> {
8
+ protected instance?: any | undefined;
9
+ protected httpServer: TServer;
10
+ protected onRouteTriggered: ((requestMethod: RequestMethod, path: string) => void) | undefined;
11
+ constructor(instance?: any | undefined);
12
+ init(): Promise<void>;
13
+ use(...args: any[]): any;
14
+ get(handler: RequestHandler): any;
15
+ get(path: any, handler: RequestHandler): any;
16
+ post(handler: RequestHandler): any;
17
+ post(path: any, handler: RequestHandler): any;
18
+ head(handler: RequestHandler): any;
19
+ head(path: any, handler: RequestHandler): any;
20
+ delete(handler: RequestHandler): any;
21
+ delete(path: any, handler: RequestHandler): any;
22
+ put(handler: RequestHandler): any;
23
+ put(path: any, handler: RequestHandler): any;
24
+ patch(handler: RequestHandler): any;
25
+ patch(path: any, handler: RequestHandler): any;
26
+ propfind(handler: RequestHandler): any;
27
+ propfind(path: any, handler: RequestHandler): any;
28
+ proppatch(handler: RequestHandler): any;
29
+ proppatch(path: any, handler: RequestHandler): any;
30
+ mkcol(handler: RequestHandler): any;
31
+ mkcol(path: any, handler: RequestHandler): any;
32
+ copy(handler: RequestHandler): any;
33
+ copy(path: any, handler: RequestHandler): any;
34
+ move(handler: RequestHandler): any;
35
+ move(path: any, handler: RequestHandler): any;
36
+ lock(handler: RequestHandler): any;
37
+ lock(path: any, handler: RequestHandler): any;
38
+ unlock(handler: RequestHandler): any;
39
+ unlock(path: any, handler: RequestHandler): any;
40
+ all(handler: RequestHandler): any;
41
+ all(path: any, handler: RequestHandler): any;
42
+ search(handler: RequestHandler): any;
43
+ search(path: any, handler: RequestHandler): any;
44
+ options(handler: RequestHandler): any;
45
+ options(path: any, handler: RequestHandler): any;
46
+ listen(port: string | number, callback?: () => void): any;
47
+ listen(port: string | number, hostname: string, callback?: () => void): any;
48
+ getHttpServer(): TServer;
49
+ setHttpServer(httpServer: TServer): void;
50
+ setInstance<T = any>(instance: T): void;
51
+ getInstance<T = any>(): T;
52
+ normalizePath(path: string): string;
53
+ setOnRouteTriggered(onRouteTriggered: (requestMethod: RequestMethod, path: string) => void): void;
54
+ getOnRouteTriggered(): ((requestMethod: RequestMethod, path: string) => void) | undefined;
55
+ setOnRequestHook(onRequestHook: Function): void;
56
+ setOnResponseHook(onResponseHook: Function): void;
57
+ abstract close(): any;
58
+ abstract initHttpServer(options: NestApplicationOptions): any;
59
+ abstract useStaticAssets(...args: any[]): any;
60
+ abstract setViewEngine(engine: string): any;
61
+ abstract getRequestHostname(request: any): any;
62
+ abstract getRequestMethod(request: any): any;
63
+ abstract getRequestUrl(request: any): any;
64
+ abstract status(response: any, statusCode: number): any;
65
+ abstract reply(response: any, body: any, statusCode?: number): any;
66
+ abstract end(response: any, message?: string): any;
67
+ abstract render(response: any, view: string, options: any): any;
68
+ abstract redirect(response: any, statusCode: number, url: string): any;
69
+ abstract setErrorHandler(handler: Function, prefix?: string): any;
70
+ abstract setNotFoundHandler(handler: Function, prefix?: string): any;
71
+ abstract isHeadersSent(response: any): any;
72
+ abstract getHeader(response: any, name: string): any;
73
+ abstract setHeader(response: any, name: string, value: string): any;
74
+ abstract appendHeader(response: any, name: string, value: string): any;
75
+ abstract registerParserMiddleware(prefix?: string, rawBody?: boolean): any;
76
+ abstract enableCors(options?: any, prefix?: string): any;
77
+ abstract createMiddlewareFactory(requestMethod: RequestMethod): ((path: string, callback: Function) => any) | Promise<(path: string, callback: Function) => any>;
78
+ abstract getType(): string;
79
+ abstract applyVersionFilter(handler: Function, version: VersionValue, versioningOptions: VersioningOptions): (req: TRequest, res: TResponse, next: () => void) => Function;
80
+ }
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AbstractHttpAdapter = void 0;
4
+ /**
5
+ * @publicApi
6
+ */
7
+ class AbstractHttpAdapter {
8
+ constructor(instance) {
9
+ this.instance = instance;
10
+ }
11
+ async init() { }
12
+ use(...args) {
13
+ return this.instance.use(...args);
14
+ }
15
+ get(...args) {
16
+ return this.instance.get(...args);
17
+ }
18
+ post(...args) {
19
+ return this.instance.post(...args);
20
+ }
21
+ head(...args) {
22
+ return this.instance.head(...args);
23
+ }
24
+ delete(...args) {
25
+ return this.instance.delete(...args);
26
+ }
27
+ put(...args) {
28
+ return this.instance.put(...args);
29
+ }
30
+ patch(...args) {
31
+ return this.instance.patch(...args);
32
+ }
33
+ propfind(...args) {
34
+ return this.instance.propfind(...args);
35
+ }
36
+ proppatch(...args) {
37
+ return this.instance.proppatch(...args);
38
+ }
39
+ mkcol(...args) {
40
+ return this.instance.mkcol(...args);
41
+ }
42
+ copy(...args) {
43
+ return this.instance.copy(...args);
44
+ }
45
+ move(...args) {
46
+ return this.instance.move(...args);
47
+ }
48
+ lock(...args) {
49
+ return this.instance.lock(...args);
50
+ }
51
+ unlock(...args) {
52
+ return this.instance.unlock(...args);
53
+ }
54
+ all(...args) {
55
+ return this.instance.all(...args);
56
+ }
57
+ search(...args) {
58
+ return this.instance.search(...args);
59
+ }
60
+ options(...args) {
61
+ return this.instance.options(...args);
62
+ }
63
+ listen(port, hostname, callback) {
64
+ return this.instance.listen(port, hostname, callback);
65
+ }
66
+ getHttpServer() {
67
+ return this.httpServer;
68
+ }
69
+ setHttpServer(httpServer) {
70
+ this.httpServer = httpServer;
71
+ }
72
+ setInstance(instance) {
73
+ this.instance = instance;
74
+ }
75
+ getInstance() {
76
+ return this.instance;
77
+ }
78
+ normalizePath(path) {
79
+ return path;
80
+ }
81
+ setOnRouteTriggered(onRouteTriggered) {
82
+ this.onRouteTriggered = onRouteTriggered;
83
+ }
84
+ getOnRouteTriggered() {
85
+ return this.onRouteTriggered;
86
+ }
87
+ setOnRequestHook(onRequestHook) { }
88
+ setOnResponseHook(onResponseHook) { }
89
+ }
90
+ exports.AbstractHttpAdapter = AbstractHttpAdapter;
@@ -0,0 +1 @@
1
+ export * from './http-adapter';
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./http-adapter"), exports);
@@ -0,0 +1,47 @@
1
+ import { CanActivate, ExceptionFilter, NestInterceptor, PipeTransform, VersioningOptions, WebSocketAdapter } from '@nestjs/common';
2
+ import { GlobalPrefixOptions } from '@nestjs/common/interfaces';
3
+ import { InstanceWrapper } from './injector/instance-wrapper';
4
+ import { ExcludeRouteMetadata } from './router/interfaces/exclude-route-metadata.interface';
5
+ export declare class ApplicationConfig {
6
+ private ioAdapter;
7
+ private globalPrefix;
8
+ private globalPrefixOptions;
9
+ private globalPipes;
10
+ private globalFilters;
11
+ private globalInterceptors;
12
+ private globalGuards;
13
+ private versioningOptions;
14
+ private readonly globalRequestPipes;
15
+ private readonly globalRequestFilters;
16
+ private readonly globalRequestInterceptors;
17
+ private readonly globalRequestGuards;
18
+ constructor(ioAdapter?: WebSocketAdapter | null);
19
+ setGlobalPrefix(prefix: string): void;
20
+ getGlobalPrefix(): string;
21
+ setGlobalPrefixOptions(options: GlobalPrefixOptions<ExcludeRouteMetadata>): void;
22
+ getGlobalPrefixOptions(): GlobalPrefixOptions<ExcludeRouteMetadata>;
23
+ setIoAdapter(ioAdapter: WebSocketAdapter): void;
24
+ getIoAdapter(): WebSocketAdapter;
25
+ addGlobalPipe(pipe: PipeTransform<any>): void;
26
+ useGlobalPipes(...pipes: PipeTransform<any>[]): void;
27
+ getGlobalFilters(): ExceptionFilter[];
28
+ addGlobalFilter(filter: ExceptionFilter): void;
29
+ useGlobalFilters(...filters: ExceptionFilter[]): void;
30
+ getGlobalPipes(): PipeTransform<any>[];
31
+ getGlobalInterceptors(): NestInterceptor[];
32
+ addGlobalInterceptor(interceptor: NestInterceptor): void;
33
+ useGlobalInterceptors(...interceptors: NestInterceptor[]): void;
34
+ getGlobalGuards(): CanActivate[];
35
+ addGlobalGuard(guard: CanActivate): void;
36
+ useGlobalGuards(...guards: CanActivate[]): void;
37
+ addGlobalRequestInterceptor(wrapper: InstanceWrapper<NestInterceptor>): void;
38
+ getGlobalRequestInterceptors(): InstanceWrapper<NestInterceptor>[];
39
+ addGlobalRequestPipe(wrapper: InstanceWrapper<PipeTransform>): void;
40
+ getGlobalRequestPipes(): InstanceWrapper<PipeTransform>[];
41
+ addGlobalRequestFilter(wrapper: InstanceWrapper<ExceptionFilter>): void;
42
+ getGlobalRequestFilters(): InstanceWrapper<ExceptionFilter>[];
43
+ addGlobalRequestGuard(wrapper: InstanceWrapper<CanActivate>): void;
44
+ getGlobalRequestGuards(): InstanceWrapper<CanActivate>[];
45
+ enableVersioning(options: VersioningOptions): void;
46
+ getVersioning(): VersioningOptions | undefined;
47
+ }
@@ -0,0 +1,107 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationConfig = void 0;
4
+ class ApplicationConfig {
5
+ constructor(ioAdapter = null) {
6
+ this.ioAdapter = ioAdapter;
7
+ this.globalPrefix = '';
8
+ this.globalPrefixOptions = {};
9
+ this.globalPipes = [];
10
+ this.globalFilters = [];
11
+ this.globalInterceptors = [];
12
+ this.globalGuards = [];
13
+ this.globalRequestPipes = [];
14
+ this.globalRequestFilters = [];
15
+ this.globalRequestInterceptors = [];
16
+ this.globalRequestGuards = [];
17
+ }
18
+ setGlobalPrefix(prefix) {
19
+ this.globalPrefix = prefix;
20
+ }
21
+ getGlobalPrefix() {
22
+ return this.globalPrefix;
23
+ }
24
+ setGlobalPrefixOptions(options) {
25
+ this.globalPrefixOptions = options;
26
+ }
27
+ getGlobalPrefixOptions() {
28
+ return this.globalPrefixOptions;
29
+ }
30
+ setIoAdapter(ioAdapter) {
31
+ this.ioAdapter = ioAdapter;
32
+ }
33
+ getIoAdapter() {
34
+ return this.ioAdapter;
35
+ }
36
+ addGlobalPipe(pipe) {
37
+ this.globalPipes.push(pipe);
38
+ }
39
+ useGlobalPipes(...pipes) {
40
+ this.globalPipes = this.globalPipes.concat(pipes);
41
+ }
42
+ getGlobalFilters() {
43
+ return this.globalFilters;
44
+ }
45
+ addGlobalFilter(filter) {
46
+ this.globalFilters.push(filter);
47
+ }
48
+ useGlobalFilters(...filters) {
49
+ this.globalFilters = this.globalFilters.concat(filters);
50
+ }
51
+ getGlobalPipes() {
52
+ return this.globalPipes;
53
+ }
54
+ getGlobalInterceptors() {
55
+ return this.globalInterceptors;
56
+ }
57
+ addGlobalInterceptor(interceptor) {
58
+ this.globalInterceptors.push(interceptor);
59
+ }
60
+ useGlobalInterceptors(...interceptors) {
61
+ this.globalInterceptors = this.globalInterceptors.concat(interceptors);
62
+ }
63
+ getGlobalGuards() {
64
+ return this.globalGuards;
65
+ }
66
+ addGlobalGuard(guard) {
67
+ this.globalGuards.push(guard);
68
+ }
69
+ useGlobalGuards(...guards) {
70
+ this.globalGuards = this.globalGuards.concat(guards);
71
+ }
72
+ addGlobalRequestInterceptor(wrapper) {
73
+ this.globalRequestInterceptors.push(wrapper);
74
+ }
75
+ getGlobalRequestInterceptors() {
76
+ return this.globalRequestInterceptors;
77
+ }
78
+ addGlobalRequestPipe(wrapper) {
79
+ this.globalRequestPipes.push(wrapper);
80
+ }
81
+ getGlobalRequestPipes() {
82
+ return this.globalRequestPipes;
83
+ }
84
+ addGlobalRequestFilter(wrapper) {
85
+ this.globalRequestFilters.push(wrapper);
86
+ }
87
+ getGlobalRequestFilters() {
88
+ return this.globalRequestFilters;
89
+ }
90
+ addGlobalRequestGuard(wrapper) {
91
+ this.globalRequestGuards.push(wrapper);
92
+ }
93
+ getGlobalRequestGuards() {
94
+ return this.globalRequestGuards;
95
+ }
96
+ enableVersioning(options) {
97
+ if (Array.isArray(options.defaultVersion)) {
98
+ // Drop duplicated versions
99
+ options.defaultVersion = Array.from(new Set(options.defaultVersion));
100
+ }
101
+ this.versioningOptions = options;
102
+ }
103
+ getVersioning() {
104
+ return this.versioningOptions;
105
+ }
106
+ }
107
+ exports.ApplicationConfig = ApplicationConfig;
package/changes.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "bumped": {},
3
+ "timestamp": "2026-03-16T12:24:05.208Z",
4
+ "totalUpdated": 0
5
+ }
package/constants.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ import { EnhancerSubtype } from '@nestjs/common/constants';
2
+ export declare const MESSAGES: {
3
+ APPLICATION_START: string;
4
+ APPLICATION_READY: string;
5
+ MICROSERVICE_READY: string;
6
+ UNKNOWN_EXCEPTION_MESSAGE: string;
7
+ ERROR_DURING_SHUTDOWN: string;
8
+ CALL_LISTEN_FIRST: string;
9
+ };
10
+ export declare const APP_INTERCEPTOR = "APP_INTERCEPTOR";
11
+ export declare const APP_PIPE = "APP_PIPE";
12
+ export declare const APP_GUARD = "APP_GUARD";
13
+ export declare const APP_FILTER = "APP_FILTER";
14
+ export declare const ENHANCER_TOKEN_TO_SUBTYPE_MAP: Record<typeof APP_GUARD | typeof APP_PIPE | typeof APP_FILTER | typeof APP_INTERCEPTOR, EnhancerSubtype>;
package/constants.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ENHANCER_TOKEN_TO_SUBTYPE_MAP = exports.APP_FILTER = exports.APP_GUARD = exports.APP_PIPE = exports.APP_INTERCEPTOR = exports.MESSAGES = void 0;
4
+ exports.MESSAGES = {
5
+ APPLICATION_START: `Starting Nest application...`,
6
+ APPLICATION_READY: `Nest application successfully started`,
7
+ MICROSERVICE_READY: `Nest microservice successfully started`,
8
+ UNKNOWN_EXCEPTION_MESSAGE: 'Internal server error',
9
+ ERROR_DURING_SHUTDOWN: 'Error happened during shutdown',
10
+ CALL_LISTEN_FIRST: 'app.listen() needs to be called before calling app.getUrl()',
11
+ };
12
+ exports.APP_INTERCEPTOR = 'APP_INTERCEPTOR';
13
+ exports.APP_PIPE = 'APP_PIPE';
14
+ exports.APP_GUARD = 'APP_GUARD';
15
+ exports.APP_FILTER = 'APP_FILTER';
16
+ exports.ENHANCER_TOKEN_TO_SUBTYPE_MAP = {
17
+ [exports.APP_GUARD]: 'guard',
18
+ [exports.APP_INTERCEPTOR]: 'interceptor',
19
+ [exports.APP_PIPE]: 'pipe',
20
+ [exports.APP_FILTER]: 'filter',
21
+ };
@@ -0,0 +1,46 @@
1
+ import { Type } from '@nestjs/common';
2
+ import { InstanceWrapper } from '../injector/instance-wrapper';
3
+ import { ModulesContainer } from '../injector/modules-container';
4
+ export declare class DiscoverableMetaHostCollection {
5
+ /**
6
+ * A map of class references to metadata keys.
7
+ */
8
+ static readonly metaHostLinks: Map<Function | Type<any>, string>;
9
+ /**
10
+ * A map of metadata keys to instance wrappers (providers) with the corresponding metadata key.
11
+ * The map is weakly referenced by the modules container (unique per application).
12
+ */
13
+ private static readonly providersByMetaKey;
14
+ /**
15
+ * A map of metadata keys to instance wrappers (controllers) with the corresponding metadata key.
16
+ * The map is weakly referenced by the modules container (unique per application).
17
+ */
18
+ private static readonly controllersByMetaKey;
19
+ /**
20
+ * Adds a link between a class reference and a metadata key.
21
+ * @param target The class reference.
22
+ * @param metadataKey The metadata key.
23
+ */
24
+ static addClassMetaHostLink(target: Type | Function, metadataKey: string): void;
25
+ /**
26
+ * Inspects a provider instance wrapper and adds it to the collection of providers
27
+ * if it has a metadata key.
28
+ * @param hostContainerRef A reference to the modules container.
29
+ * @param instanceWrapper A provider instance wrapper.
30
+ * @returns void
31
+ */
32
+ static inspectProvider(hostContainerRef: ModulesContainer, instanceWrapper: InstanceWrapper): void;
33
+ /**
34
+ * Inspects a controller instance wrapper and adds it to the collection of controllers
35
+ * if it has a metadata key.
36
+ * @param hostContainerRef A reference to the modules container.
37
+ * @param instanceWrapper A controller's instance wrapper.
38
+ * @returns void
39
+ */
40
+ static inspectController(hostContainerRef: ModulesContainer, instanceWrapper: InstanceWrapper): void;
41
+ static insertByMetaKey(metaKey: string, instanceWrapper: InstanceWrapper, collection: Map<string, Set<InstanceWrapper>>): void;
42
+ static getProvidersByMetaKey(hostContainerRef: ModulesContainer, metaKey: string): Set<InstanceWrapper>;
43
+ static getControllersByMetaKey(hostContainerRef: ModulesContainer, metaKey: string): Set<InstanceWrapper>;
44
+ private static inspectInstanceWrapper;
45
+ private static getMetaKeyByInstanceWrapper;
46
+ }