@codependix/nestjs-modules 0.0.8 → 0.0.9

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.9 (2026-10-08)
2
+
3
+ This was a version bump only for codependix-nestjs-modules to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.0.8 (2026-10-08)
2
6
 
3
7
  This was a version bump only for codependix-nestjs-modules to align it with other projects, there were no code changes.
package/README.md CHANGED
@@ -191,13 +191,13 @@ None.
191
191
  ### Project
192
192
 
193
193
  ![Lines of Code](https://img.shields.io/badge/Lines_of_Code-2122-22c55e?style=flat-square)
194
- ![Repository Size](https://img.shields.io/badge/Repository_Size-80.87_kB-6b7280?style=flat-square)
194
+ ![Repository Size](https://img.shields.io/badge/Repository_Size-81.02_kB-6b7280?style=flat-square)
195
195
  ![Folders](https://img.shields.io/badge/Folders-6-4a4a4a?style=flat-square)
196
196
  ![Source Files](https://img.shields.io/badge/Source_Files-30-3178c6?style=flat-square)
197
197
 
198
198
  ### Measured Targets
199
199
 
200
- ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-4.65_kB_gzip-6b7280?style=flat-square)
200
+ ![Compiled JavaScript Size](https://img.shields.io/badge/Compiled_JavaScript_Size-4.69_kB_gzip-6b7280?style=flat-square)
201
201
 
202
202
  ### TypeScript
203
203
 
@@ -379,14 +379,14 @@ None.
379
379
  ### Markdown
380
380
 
381
381
  ![Markdown Files](https://img.shields.io/badge/Markdown_Files-2-083fa1?style=flat-square)
382
- ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-245-1f6feb?style=flat-square)
382
+ ![Markdown Lines](https://img.shields.io/badge/Markdown_Lines-249-1f6feb?style=flat-square)
383
383
  ![H1](https://img.shields.io/badge/H1-1-7c3aed?style=flat-square)
384
- ![H2](https://img.shields.io/badge/H2-12-8b5cf6?style=flat-square)
384
+ ![H2](https://img.shields.io/badge/H2-13-8b5cf6?style=flat-square)
385
385
  ![H3](https://img.shields.io/badge/H3-14-a78bfa?style=flat-square)
386
386
  ![H4](https://img.shields.io/badge/H4-0-c4b5fd?style=flat-square)
387
387
  ![H5](https://img.shields.io/badge/H5-0-ddd6fe?style=flat-square)
388
388
  ![H6](https://img.shields.io/badge/H6-0-ede9fe?style=flat-square)
389
- ![Paragraphs](https://img.shields.io/badge/Paragraphs-50-64748b?style=flat-square)
389
+ ![Paragraphs](https://img.shields.io/badge/Paragraphs-51-64748b?style=flat-square)
390
390
  ![Lists](https://img.shields.io/badge/Lists-8-16a34a?style=flat-square)
391
391
  ![List Items](https://img.shields.io/badge/List_Items-27-22c55e?style=flat-square)
392
392
  ![Task List Items](https://img.shields.io/badge/Task_List_Items-0-4ade80?style=flat-square)
package/dist/src/index.js CHANGED
@@ -5,16 +5,16 @@ import l from "pino";
5
5
  import { pathToFileURL as u } from "node:url";
6
6
  import { ModulesContainer as d, NestFactory as f } from "@nestjs/core";
7
7
  import { ConfigModule as p } from "@nestjs/config";
8
- //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/module-graph/module-graph.constants.ts
8
+ //#region \0rolldown/runtime.js
9
9
  var m = "_This project defines no NestJS modules to graph._", h = "flowchart LR", g = "_Rounded modules are global: every module can inject them, so their edges are left out._", _ = 4;
10
10
  //#endregion
11
11
  //#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorateMetadata.js
12
- function v(e, t) {
12
+ function __decorateMetadata(e, t) {
13
13
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
14
14
  }
15
15
  //#endregion
16
16
  //#region \0@oxc-project+runtime@0.151.0/helpers/esm/decorate.js
17
- function y(e, t, n, r) {
17
+ function __decorate(e, t, n, r) {
18
18
  var i = arguments.length, a = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, n) : r, o;
19
19
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") a = Reflect.decorate(e, t, n, r);
20
20
  else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (a = (i < 3 ? o(a) : i > 3 ? o(t, n, a) : o(t, n)) || a);
@@ -22,20 +22,20 @@ function y(e, t, n, r) {
22
22
  }
23
23
  //#endregion
24
24
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/module-graph/module-graph.service.ts
25
- var b = class {
25
+ var v = class ModuleGraphService {
26
26
  constructor() {}
27
27
  collectEdgesAndNodes(e, t) {
28
- let n = [], r = /* @__PURE__ */ new Set(), i = [], a = (e, t) => {
28
+ let n = [], r = /* @__PURE__ */ new Set(), i = [], addNode = (e, t) => {
29
29
  n.some((n) => n.name === e && n.declaringFile === t) || n.push({
30
30
  declaringFile: t,
31
31
  name: e
32
32
  });
33
33
  };
34
- for (let t of e) a(t.name, t.declaringFile ?? "");
35
- for (let n of e) for (let o of n.imports) t.has(o) || (i.push({
34
+ for (let t of e) addNode(t.name, t.declaringFile ?? "");
35
+ for (let n of e) for (let a of n.imports) t.has(a) || (i.push({
36
36
  source: n.name,
37
- target: o
38
- }), r.add(n.name), r.add(o), a(o, e.find((e) => e.name === o)?.declaringFile ?? ""));
37
+ target: a
38
+ }), r.add(n.name), r.add(a), addNode(a, e.find((e) => e.name === a)?.declaringFile ?? ""));
39
39
  return {
40
40
  connectedModuleNames: r,
41
41
  edges: i,
@@ -90,19 +90,19 @@ var b = class {
90
90
  return e.ambientModuleNames.length > 0 && t.push("", g), t.join("\n");
91
91
  }
92
92
  };
93
- b = y([n(), v("design:paramtypes", [])], b);
93
+ v = __decorate([n(), __decorateMetadata("design:paramtypes", [])], v);
94
94
  //#endregion
95
95
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/module-graph/module-graph.module.ts
96
- var x = class {};
97
- x = y([r({
96
+ var y = class ModuleGraphModule {};
97
+ y = __decorate([r({
98
98
  controllers: [],
99
- exports: [b],
99
+ exports: [v],
100
100
  imports: [],
101
- providers: [b]
102
- })], x);
101
+ providers: [v]
102
+ })], y);
103
103
  //#endregion
104
104
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/nestjs-modules-workspace-graph/nestjs-modules-workspace-graph.constants.ts
105
- var S = "_This workspace has no NestJS modules, in any project._", C = "graph LR", w = class {
105
+ var b = "_This workspace has no NestJS modules, in any project._", x = "graph LR", S = class NestjsModulesWorkspaceGraphService {
106
106
  constructor() {}
107
107
  compareEdges(e, t) {
108
108
  return e.source.localeCompare(t.source) || e.target.localeCompare(t.target);
@@ -130,33 +130,33 @@ var S = "_This workspace has no NestJS modules, in any project._", C = "graph LR
130
130
  };
131
131
  }
132
132
  renderMermaid(e) {
133
- return e.edges.length === 0 ? S : [
133
+ return e.edges.length === 0 ? b : [
134
134
  "```mermaid",
135
- C,
135
+ x,
136
136
  ...e.moduleNames.map((e) => this.renderNode(e)),
137
137
  ...e.edges.map((e) => ` ${this.toNodeIdentifier(e.source)} --> ${this.toNodeIdentifier(e.target)}`),
138
138
  "```"
139
139
  ].join("\n");
140
140
  }
141
141
  };
142
- w = y([n(), v("design:paramtypes", [])], w);
142
+ S = __decorate([n(), __decorateMetadata("design:paramtypes", [])], S);
143
143
  //#endregion
144
144
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/nestjs-modules-workspace-graph/nestjs-modules-workspace-graph.module.ts
145
- var T = class {};
146
- T = y([r({
145
+ var C = class NestjsModulesWorkspaceGraphModule {};
146
+ C = __decorate([r({
147
147
  controllers: [],
148
- exports: [w],
148
+ exports: [S],
149
149
  imports: [],
150
- providers: [w]
151
- })], T);
150
+ providers: [S]
151
+ })], C);
152
152
  //#endregion
153
153
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/nestjs-project/nestjs-project.constants.ts
154
- var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "MainModule", A = [
154
+ var w = "framework:nestjs", T = ".module.ts", E = "src/main.module.ts", D = "MainModule", O = [
155
155
  /^ConfigHostModule$/,
156
156
  /^InternalCoreModule$/,
157
157
  /^SyntheticRootModule$/,
158
158
  /^TypeOrmCoreModule$/
159
- ], j = [/^ConfigModule$/], M = /^(\p{Extended_Pictographic}️?(?:‍\p{Extended_Pictographic}️?)*)\s+/u, N = /^([A-Za-z]+)/, P = /* @__PURE__ */ new Set([
159
+ ], k = [/^ConfigModule$/], A = /^(\p{Extended_Pictographic}️?(?:‍\p{Extended_Pictographic}️?)*)\s+/u, j = /^([A-Za-z]+)/, M = /* @__PURE__ */ new Set([
160
160
  "built",
161
161
  "cut",
162
162
  "found",
@@ -174,7 +174,7 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
174
174
  "split",
175
175
  "took",
176
176
  "wrote"
177
- ]), F = /* @__PURE__ */ new Set([
177
+ ]), N = /* @__PURE__ */ new Set([
178
178
  "CommandFactory",
179
179
  "ExceptionHandler",
180
180
  "GraphQLModule",
@@ -184,9 +184,9 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
184
184
  "RouterExplorer",
185
185
  "RoutesResolver",
186
186
  "TypeOrmModule"
187
- ]), I, L = class extends e {
187
+ ]), P, F = class LoggerService extends e {
188
188
  static {
189
- I = this;
189
+ P = this;
190
190
  }
191
191
  constructor() {
192
192
  super();
@@ -194,15 +194,15 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
194
194
  static isProduction = process.env.NODE_ENV === "production";
195
195
  static rootLogger;
196
196
  static writesToStandardError = !1;
197
- child = I.root;
197
+ child = P.root;
198
198
  static createRootLogger() {
199
199
  let e = process.env.LOG_LEVEL ?? "info";
200
- return I.isProduction ? I.writesToStandardError ? l({ level: e }, l.destination(2)) : l({ level: e }) : l({
200
+ return P.isProduction ? P.writesToStandardError ? l({ level: e }, l.destination(2)) : l({ level: e }) : l({
201
201
  level: e,
202
202
  transport: {
203
203
  options: {
204
204
  colorize: !0,
205
- destination: I.writesToStandardError ? 2 : 1,
205
+ destination: P.writesToStandardError ? 2 : 1,
206
206
  ignore: "pid,hostname,emoji",
207
207
  messageFormat: "{emoji} {msg}",
208
208
  singleLine: !0
@@ -212,14 +212,14 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
212
212
  });
213
213
  }
214
214
  static logToStandardError() {
215
- if (I.rootLogger !== void 0) {
215
+ if (P.rootLogger !== void 0) {
216
216
  process.emitWarning("LoggerService.logToStandardError() was called after the first log line, so log lines still go to standard output and anything piping that stream will read them as data. Call it as the first statement of the application's bootstrap.");
217
217
  return;
218
218
  }
219
- I.writesToStandardError = !0;
219
+ P.writesToStandardError = !0;
220
220
  }
221
221
  assertConventionalMessage(e) {
222
- if (I.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
222
+ if (P.isProduction || this.shouldSkipConventionalMessageValidation(e.context)) return;
223
223
  let t = this.getConventionalMessageViolation(e.parsed);
224
224
  if (t !== void 0) throw Error(t);
225
225
  }
@@ -230,21 +230,21 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
230
230
  }), {
231
231
  ...e.data,
232
232
  context: e.context,
233
- ...I.isProduction ? {} : { emoji: e.parsed.emoji }
233
+ ...P.isProduction ? {} : { emoji: e.parsed.emoji }
234
234
  };
235
235
  }
236
236
  getConventionalMessageViolation(e) {
237
237
  let t = e.emoji, n = e.text;
238
238
  if (t === void 0) return `Log message must start with an emoji naming its subject, then a verb: "${n}"`;
239
- let r = N.exec(n)?.[1];
239
+ let r = j.exec(n)?.[1];
240
240
  if (r === void 0 || !this.isConventionalVerb(r)) return `Log message must begin with a verb in present progressive or past tense, got "${r ?? ""}": "${t} ${n}"`;
241
241
  }
242
242
  isConventionalVerb(e) {
243
243
  let t = e.toLowerCase();
244
- return t.endsWith("ing") || t.endsWith("ed") || P.has(t);
244
+ return t.endsWith("ing") || t.endsWith("ed") || M.has(t);
245
245
  }
246
246
  parseMessage(e) {
247
- let t = String(e), n = M.exec(t), r = n?.[1];
247
+ let t = String(e), n = A.exec(t), r = n?.[1];
248
248
  return r === void 0 ? {
249
249
  emoji: void 0,
250
250
  text: t
@@ -254,10 +254,10 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
254
254
  };
255
255
  }
256
256
  shouldSkipConventionalMessageValidation(e) {
257
- return e !== void 0 && F.has(e);
257
+ return e !== void 0 && N.has(e);
258
258
  }
259
259
  static get root() {
260
- return I.rootLogger ??= I.createRootLogger(), I.rootLogger;
260
+ return P.rootLogger ??= P.createRootLogger(), P.rootLogger;
261
261
  }
262
262
  buildErrorLogEntry(e, t) {
263
263
  let n = t instanceof Error ? t.stack || t.message : String(t);
@@ -301,7 +301,7 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
301
301
  this.info(e, t, n);
302
302
  }
303
303
  setContext(e) {
304
- super.setContext(e), this.child = I.root.child({ context: e });
304
+ super.setContext(e), this.child = P.root.child({ context: e });
305
305
  }
306
306
  verbose(e, t, n) {
307
307
  let r = this.parseMessage(e);
@@ -320,40 +320,40 @@ var E = "framework:nestjs", D = ".module.ts", O = "src/main.module.ts", k = "Mai
320
320
  }), r.text);
321
321
  }
322
322
  };
323
- L = I = y([n({ scope: i.TRANSIENT }), v("design:paramtypes", [])], L);
323
+ F = P = __decorate([n({ scope: i.TRANSIENT }), __decorateMetadata("design:paramtypes", [])], F);
324
324
  //#endregion
325
325
  //#region packages/logging/src/modules/logger/logger.module.ts
326
- var R = class {};
327
- R = y([t(), r({
326
+ var I = class LoggerModule {};
327
+ I = __decorate([t(), r({
328
328
  controllers: [],
329
- exports: [L],
329
+ exports: [F],
330
330
  imports: [],
331
- providers: [L]
332
- })], R);
331
+ providers: [F]
332
+ })], I);
333
333
  //#endregion
334
334
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/nestjs-project/nestjs-project-synthetic.module.ts
335
- var z, B = z = class {
335
+ var L, R = L = class SyntheticRootModule {
336
336
  static forModules(e) {
337
337
  return {
338
338
  imports: [p.forRoot({
339
339
  ignoreEnvFile: !0,
340
340
  isGlobal: !0
341
341
  }), ...e],
342
- module: z
342
+ module: L
343
343
  };
344
344
  }
345
345
  };
346
- B = z = y([r({})], B);
346
+ R = L = __decorate([r({})], R);
347
347
  //#endregion
348
348
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/nestjs-project/nestjs-project.service.ts
349
- var V, H = V = class {
349
+ var z, B = z = class NestjsProjectService {
350
350
  logger;
351
351
  constructor(e) {
352
- this.logger = e, this.logger.setContext(V.name);
352
+ this.logger = e, this.logger.setContext(z.name);
353
353
  }
354
354
  async buildSyntheticRootModule(e) {
355
355
  let t = this.findModuleFiles(a.join(e.absoluteRoot, "src")), n = await Promise.all(t.map(async (e) => this.loadModuleClasses(e)));
356
- return B.forModules(n.flat());
356
+ return R.forModules(n.flat());
357
357
  }
358
358
  async discoverModuleDeclaringFiles(e) {
359
359
  let t = this.findModuleFiles(a.join(e.absoluteRoot, "src"));
@@ -389,12 +389,12 @@ var V, H = V = class {
389
389
  return Object.entries(t).filter((e) => e[0].endsWith("Module") && typeof e[1] == "function").map(([, e]) => e);
390
390
  }
391
391
  async loadRootModule(e) {
392
- let t = (await import(u(e).href))[k];
393
- if (typeof t != "function") throw TypeError(`Expected ${e} to export a ${k} class`);
392
+ let t = (await import(u(e).href))[D];
393
+ if (typeof t != "function") throw TypeError(`Expected ${e} to export a ${D} class`);
394
394
  return t;
395
395
  }
396
396
  describeProject(e, t) {
397
- let n = a.join(e, O);
397
+ let n = a.join(e, E);
398
398
  return {
399
399
  absoluteRoot: e,
400
400
  name: t,
@@ -411,7 +411,7 @@ var V, H = V = class {
411
411
  preview: !0
412
412
  }), a;
413
413
  try {
414
- a = this.exploreContainer(i, [...A, ...t === void 0 ? j : []]);
414
+ a = this.exploreContainer(i, [...O, ...t === void 0 ? k : []]);
415
415
  } finally {
416
416
  this.logger.debug("🚀 Booted a project's container", void 0, { project: e.name }), await i.close();
417
417
  }
@@ -421,18 +421,18 @@ var V, H = V = class {
421
421
  }));
422
422
  }
423
423
  isNestjsProject(e) {
424
- return e.tags.includes(E);
424
+ return e.tags.includes(w);
425
425
  }
426
426
  };
427
- H = V = y([n(), v("design:paramtypes", [L === void 0 ? Object : L])], H);
427
+ B = z = __decorate([n(), __decorateMetadata("design:paramtypes", [F === void 0 ? Object : F])], B);
428
428
  //#endregion
429
429
  //#region packages/ic-suite/codependix/codependix-nestjs-modules/src/modules/nestjs-project/nestjs-project.module.ts
430
- var U = class {};
431
- U = y([r({
430
+ var V = class NestjsProjectModule {};
431
+ V = __decorate([r({
432
432
  controllers: [],
433
- exports: [H],
434
- imports: [R],
435
- providers: [H]
436
- })], U);
433
+ exports: [B],
434
+ imports: [I],
435
+ providers: [B]
436
+ })], V);
437
437
  //#endregion
438
- export { g as MODULE_GRAPH_AMBIENT_LEGEND, _ as MODULE_GRAPH_AMBIENT_MINIMUM_MODULES, h as MODULE_GRAPH_MERMAID_HEADER, m as MODULE_GRAPH_UNCONNECTED, x as ModuleGraphModule, b as ModuleGraphService, C as NESTJS_MODULES_WORKSPACE_GRAPH_MERMAID_HEADER, S as NESTJS_MODULES_WORKSPACE_GRAPH_UNCONNECTED, A as NESTJS_PROJECT_IGNORED_MODULES, D as NESTJS_PROJECT_MODULE_FILE_SUFFIX, k as NESTJS_PROJECT_ROOT_MODULE_EXPORT, O as NESTJS_PROJECT_ROOT_MODULE_FILE, j as NESTJS_PROJECT_SYNTHETIC_IGNORED_MODULES, E as NESTJS_PROJECT_TAG, T as NestjsModulesWorkspaceGraphModule, w as NestjsModulesWorkspaceGraphService, U as NestjsProjectModule, H as NestjsProjectService };
438
+ export { g as MODULE_GRAPH_AMBIENT_LEGEND, _ as MODULE_GRAPH_AMBIENT_MINIMUM_MODULES, h as MODULE_GRAPH_MERMAID_HEADER, m as MODULE_GRAPH_UNCONNECTED, y as ModuleGraphModule, v as ModuleGraphService, x as NESTJS_MODULES_WORKSPACE_GRAPH_MERMAID_HEADER, b as NESTJS_MODULES_WORKSPACE_GRAPH_UNCONNECTED, O as NESTJS_PROJECT_IGNORED_MODULES, T as NESTJS_PROJECT_MODULE_FILE_SUFFIX, D as NESTJS_PROJECT_ROOT_MODULE_EXPORT, E as NESTJS_PROJECT_ROOT_MODULE_FILE, k as NESTJS_PROJECT_SYNTHETIC_IGNORED_MODULES, w as NESTJS_PROJECT_TAG, C as NestjsModulesWorkspaceGraphModule, S as NestjsModulesWorkspaceGraphService, V as NestjsProjectModule, B as NestjsProjectService };
package/package.json CHANGED
@@ -61,5 +61,5 @@
61
61
  "strict": true
62
62
  },
63
63
  "types": "./dist/src/index.d.ts",
64
- "version": "0.0.8"
64
+ "version": "0.0.9"
65
65
  }