@jay-framework/stack-route-scanner 0.11.0 → 0.12.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 (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +5 -2
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const fs = require("fs");
4
4
  const path = require("path");
5
+ const logger = require("@jay-framework/logger");
5
6
  var JayRouteParamType = /* @__PURE__ */ ((JayRouteParamType2) => {
6
7
  JayRouteParamType2[JayRouteParamType2["single"] = 0] = "single";
7
8
  JayRouteParamType2[JayRouteParamType2["catchAll"] = 1] = "catchAll";
@@ -136,11 +137,10 @@ async function scanRoutes(baseDir, options) {
136
137
  const sortedRoutes = sortRoutesByPriority(routes);
137
138
  const { routes: enrichedRoutes, inferenceLog } = inferParamsForStaticRoutes(sortedRoutes);
138
139
  if (inferenceLog.length > 0) {
139
- console.log("[route-scanner] Inferred params for static override routes:");
140
+ logger.getLogger().info("[route-scanner] Inferred params for static override routes:");
140
141
  for (const entry of inferenceLog) {
141
- console.log(
142
- ` ${entry.staticRoute} → params from ${entry.dynamicRoute}:`,
143
- entry.inferredParams
142
+ logger.getLogger().info(
143
+ ` ${entry.staticRoute} → params from ${entry.dynamicRoute}: ${JSON.stringify(entry.inferredParams)}`
144
144
  );
145
145
  }
146
146
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jay-framework/stack-route-scanner",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.mts",
@@ -8,6 +8,9 @@
8
8
  "dist",
9
9
  "readme.md"
10
10
  ],
11
+ "dependencies": {
12
+ "@jay-framework/logger": "^0.12.0"
13
+ },
11
14
  "scripts": {
12
15
  "build": "npm run build:js && npm run build:types",
13
16
  "build:watch": "npm run build:js -- --watch & npm run build:types -- --watch",
@@ -20,7 +23,7 @@
20
23
  "test:watch": "vitest"
21
24
  },
22
25
  "devDependencies": {
23
- "@jay-framework/dev-environment": "^0.11.0",
26
+ "@jay-framework/dev-environment": "^0.12.0",
24
27
  "@types/node": "^20.11.5",
25
28
  "nodemon": "^3.0.3",
26
29
  "replace-in-file": "^7.1.0",