@nexus_js/router 0.9.21 → 0.9.22

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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { buildRouteManifest, extractTenant } from './index.js';
3
+ describe('@nexus_js/router basic functionality', () => {
4
+ it('should export buildRouteManifest function', () => {
5
+ expect(typeof buildRouteManifest).toBe('function');
6
+ });
7
+ it('should export tenant utilities', () => {
8
+ expect(typeof extractTenant).toBe('function');
9
+ });
10
+ it('buildRouteManifest should throw on non-existent directory (graceful)', async () => {
11
+ await expect(buildRouteManifest('/tmp/non-existent-routes-xyz')).rejects.toThrow();
12
+ });
13
+ });
14
+ //# sourceMappingURL=index.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../src/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE/D,QAAQ,CAAC,sCAAsC,EAAE,GAAG,EAAE;IACpD,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gCAAgC,EAAE,GAAG,EAAE;QACxC,MAAM,CAAC,OAAO,aAAa,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,sEAAsE,EAAE,KAAK,IAAI,EAAE;QACpF,MAAM,MAAM,CAAC,kBAAkB,CAAC,8BAA8B,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;IACrF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexus_js/router",
3
- "version": "0.9.21",
3
+ "version": "0.9.22",
4
4
  "description": "Nexus file-based router with nested layouts and dynamic segments",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -12,7 +12,7 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "@nexus_js/compiler": "0.9.21"
15
+ "@nexus_js/compiler": "^0.9.22"
16
16
  },
17
17
  "devDependencies": {
18
18
  "@types/node": "^22.0.0",
@@ -54,6 +54,7 @@
54
54
  "scripts": {
55
55
  "build": "tsc -p tsconfig.json",
56
56
  "dev": "tsc -p tsconfig.json --watch",
57
+ "typecheck": "tsc --noEmit -p tsconfig.json",
57
58
  "test": "vitest run --passWithNoTests",
58
59
  "clean": "rm -rf dist"
59
60
  }