create-appraisejs 0.2.0-alpha.6 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-appraisejs",
3
- "version": "0.2.0-alpha.6",
3
+ "version": "0.2.0",
4
4
  "description": "Scaffold a new AppraiseJS app in your directory",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Hasnat Jamil",
@@ -1,5 +1,5 @@
1
1
  {
2
- "preparedAt": "2026-03-25T13:42:37.013Z",
2
+ "preparedAt": "2026-03-25T14:39:54.179Z",
3
3
  "inputHash": "3d8e428a4dcbb25e993b9373c10b2a974387982a734dcfc9281c24bb38f6f36d",
4
4
  "databasePath": "prisma/dev.db"
5
5
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="next" />
2
2
  /// <reference types="next/image-types/global" />
3
- import "./.next/dev/types/routes.d.ts";
3
+ import "./.next/types/routes.d.ts";
4
4
 
5
5
  // NOTE: This file should not be edited
6
6
  // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
Binary file
@@ -32,24 +32,24 @@ export function normalizeRoute(value: string | null | undefined): string {
32
32
  }
33
33
 
34
34
  function buildModulePathMap(modules: Module[]): Map<string, string> {
35
- const moduleById = new Map(modules.map(module => [module.id, module]))
35
+ const moduleById = new Map(modules.map(moduleRecord => [moduleRecord.id, moduleRecord]))
36
36
  const pathByModuleId = new Map<string, string>()
37
37
 
38
- const buildPath = (module: Module): string => {
39
- const cached = pathByModuleId.get(module.id)
38
+ const buildPath = (moduleRecord: Module): string => {
39
+ const cached = pathByModuleId.get(moduleRecord.id)
40
40
  if (cached) {
41
41
  return cached
42
42
  }
43
43
 
44
- const parent = module.parentId ? moduleById.get(module.parentId) : null
45
- const pathValue = parent ? `${buildPath(parent)}/${module.name}` : `/${module.name}`
44
+ const parent = moduleRecord.parentId ? moduleById.get(moduleRecord.parentId) : null
45
+ const pathValue = parent ? `${buildPath(parent)}/${moduleRecord.name}` : `/${moduleRecord.name}`
46
46
 
47
- pathByModuleId.set(module.id, pathValue.replace(/\/{2,}/g, '/'))
48
- return pathByModuleId.get(module.id)!
47
+ pathByModuleId.set(moduleRecord.id, pathValue.replace(/\/{2,}/g, '/'))
48
+ return pathByModuleId.get(moduleRecord.id)!
49
49
  }
50
50
 
51
- for (const module of modules) {
52
- buildPath(module)
51
+ for (const moduleRecord of modules) {
52
+ buildPath(moduleRecord)
53
53
  }
54
54
 
55
55
  return pathByModuleId