pkgviz 0.1.1 → 0.1.3
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/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +12 -19
- package/.next/app-path-routes-manifest.json +2 -3
- package/.next/build-manifest.json +2 -2
- package/.next/cache/.previewinfo +1 -1
- package/.next/cache/.rscinfo +1 -1
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/chrome-devtools-workspace-uuid +1 -1
- package/.next/cache/eslint/.cache_6t30dc +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/1.pack +0 -0
- package/.next/cache/webpack/client-production/10.pack +0 -0
- package/.next/cache/webpack/client-production/11.pack +0 -0
- package/.next/cache/webpack/client-production/2.pack +0 -0
- package/.next/cache/webpack/client-production/3.pack +0 -0
- package/.next/cache/webpack/client-production/4.pack +0 -0
- package/.next/cache/webpack/client-production/5.pack +0 -0
- package/.next/cache/webpack/client-production/6.pack +0 -0
- package/.next/cache/webpack/client-production/7.pack +0 -0
- package/.next/cache/webpack/client-production/8.pack +0 -0
- package/.next/cache/webpack/client-production/9.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack.old +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/1.pack +0 -0
- package/.next/cache/webpack/server-production/10.pack +0 -0
- package/.next/cache/webpack/server-production/11.pack +0 -0
- package/.next/cache/webpack/server-production/12.pack +0 -0
- package/.next/cache/webpack/server-production/13.pack +0 -0
- package/.next/cache/webpack/server-production/14.pack +0 -0
- package/.next/cache/webpack/server-production/15.pack +0 -0
- package/.next/cache/webpack/server-production/16.pack +0 -0
- package/.next/cache/webpack/server-production/17.pack +0 -0
- package/.next/cache/webpack/server-production/18.pack +0 -0
- package/.next/cache/webpack/server-production/19.pack +0 -0
- package/.next/cache/webpack/server-production/2.pack +0 -0
- package/.next/cache/webpack/server-production/20.pack +0 -0
- package/.next/cache/webpack/server-production/3.pack +0 -0
- package/.next/cache/webpack/server-production/4.pack +0 -0
- package/.next/cache/webpack/server-production/5.pack +0 -0
- package/.next/cache/webpack/server-production/6.pack +0 -0
- package/.next/cache/webpack/server-production/7.pack +0 -0
- package/.next/cache/webpack/server-production/8.pack +0 -0
- package/.next/cache/webpack/server-production/9.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack.old +0 -0
- package/.next/prerender-manifest.json +14 -14
- package/.next/server/app/_not-found/page.js +2 -2
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +17 -18
- package/.next/server/app/api/audit/json/route.js +1 -1
- package/.next/server/app/api/audit/json/route.js.nft.json +1 -1
- package/.next/server/app/api/audit/json/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/audit/xml/route.js +1 -1
- package/.next/server/app/api/audit/xml/route.js.nft.json +1 -1
- package/.next/server/app/api/audit/xml/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/fs/getAllFilesRecursive/route.js +1 -1
- package/.next/server/app/api/fs/getAllFilesRecursive/route.js.nft.json +1 -1
- package/.next/server/app/api/fs/getAllFilesRecursive/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/fs/getRoot/route.js +1 -0
- package/.next/server/app/api/fs/{getGraph → getRoot}/route.js.nft.json +1 -1
- package/.next/server/app/api/fs/getRoot/route_client-reference-manifest.js +1 -0
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +18 -22
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +2 -3
- package/.next/server/chunks/437.js +2 -0
- package/.next/server/chunks/55.js +1 -1
- package/.next/server/chunks/671.js +3 -3
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_error.js +2 -2
- package/.next/server/pages-manifest.json +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/cLstCXin_AA0G6e69spyG/_buildManifest.js +1 -0
- package/.next/static/chunks/485-f571e09734f16464.js +1 -0
- package/.next/static/chunks/app/api/audit/json/route-e7260609795439d8.js +1 -0
- package/.next/static/chunks/app/api/audit/xml/route-e7260609795439d8.js +1 -0
- package/.next/static/chunks/app/api/fs/getAllFilesRecursive/route-e7260609795439d8.js +1 -0
- package/.next/static/chunks/app/api/fs/getRoot/route-e7260609795439d8.js +1 -0
- package/.next/static/chunks/app/layout-8aae7fba5ed8afb3.js +1 -0
- package/.next/static/chunks/app/page-0292b0f989e4d3c5.js +1 -0
- package/.next/static/css/{9d2991f387a19b1b.css → 9330711708db9e89.css} +2 -2
- package/.next/static/media/4cf2300e9c8272f7-s.p.woff2 +0 -0
- package/.next/trace +2 -13
- package/.next/types/app/api/fs/{getGraph → getRoot}/route.ts +3 -3
- package/README.md +8 -19
- package/bin/pkgviz.ts +4 -6
- package/package.json +5 -4
- package/.next/cache/eslint/.cache_23iu9t +0 -1
- package/.next/cache/webpack/client-production/12.pack +0 -0
- package/.next/cache/webpack/client-production/13.pack +0 -0
- package/.next/cache/webpack/client-production/14.pack +0 -0
- package/.next/cache/webpack/client-production/15.pack +0 -0
- package/.next/cache/webpack/client-production/16.pack +0 -0
- package/.next/cache/webpack/edge-server-production/index.pack.old +0 -0
- package/.next/server/app/api/fs/detectLanguage/route.js +0 -2
- package/.next/server/app/api/fs/detectLanguage/route.js.nft.json +0 -1
- package/.next/server/app/api/fs/detectLanguage/route_client-reference-manifest.js +0 -1
- package/.next/server/app/api/fs/getGraph/route.js +0 -1
- package/.next/server/app/api/fs/getGraph/route_client-reference-manifest.js +0 -1
- package/.next/server/chunks/669.js +0 -2
- package/.next/static/chunks/466-b4a500cbd8df897e.js +0 -1
- package/.next/static/chunks/app/api/audit/json/route-368bcf018f5b1da2.js +0 -1
- package/.next/static/chunks/app/api/audit/xml/route-368bcf018f5b1da2.js +0 -1
- package/.next/static/chunks/app/api/fs/detectLanguage/route-368bcf018f5b1da2.js +0 -1
- package/.next/static/chunks/app/api/fs/getAllFilesRecursive/route-368bcf018f5b1da2.js +0 -1
- package/.next/static/chunks/app/api/fs/getGraph/route-368bcf018f5b1da2.js +0 -1
- package/.next/static/chunks/app/layout-160414dfb322fd52.js +0 -1
- package/.next/static/chunks/app/page-17b2a17ccc3dc891.js +0 -1
- package/.next/static/media/569ce4b8f30dc480-s.p.woff2 +0 -0
- package/.next/static/tOO3k6S3kc9LUxosG3ajE/_buildManifest.js +0 -1
- package/.next/types/app/api/fs/detectLanguage/route.ts +0 -347
- /package/.next/static/{tOO3k6S3kc9LUxosG3ajE → cLstCXin_AA0G6e69spyG}/_ssgManifest.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// File: /Users/a_rtiphishl_e/git/pkgviz/src/app/api/fs/
|
|
2
|
-
import * as entry from '../../../../../../src/app/api/fs/
|
|
1
|
+
// File: /Users/a_rtiphishl_e/git/pkgviz/src/app/api/fs/getRoot/route.ts
|
|
2
|
+
import * as entry from '../../../../../../src/app/api/fs/getRoot/route.js'
|
|
3
3
|
import type { NextRequest } from 'next/server.js'
|
|
4
4
|
|
|
5
|
-
type TEntry = typeof import('../../../../../../src/app/api/fs/
|
|
5
|
+
type TEntry = typeof import('../../../../../../src/app/api/fs/getRoot/route.js')
|
|
6
6
|
|
|
7
7
|
type SegmentParams<T extends Object = any> = T extends Record<string, any>
|
|
8
8
|
? { [K in keyof T]: T[K] extends string ? string | string[] | undefined : never }
|
package/README.md
CHANGED
|
@@ -10,16 +10,13 @@ Visualizing and showing the dependencies of packages in your project is the firs
|
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
|
-
Make sure to have
|
|
13
|
+
Make sure to have Bun & Node installed, check `package.json` for allowed versions
|
|
14
14
|
|
|
15
15
|
## Quickstart
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
# 1. Install dependencies
|
|
18
|
+
# 1. Install dependencies (bun/yarn/pnpm/npm)
|
|
19
19
|
bun install
|
|
20
|
-
yarn install
|
|
21
|
-
pnpm install
|
|
22
|
-
npm install
|
|
23
20
|
|
|
24
21
|
# 2. Create your .env file
|
|
25
22
|
cp .env.tpl .env
|
|
@@ -27,10 +24,7 @@ cp .env.tpl .env
|
|
|
27
24
|
# 3. Supply the project path to analyze in the .env file
|
|
28
25
|
|
|
29
26
|
# 4. Run the app
|
|
30
|
-
bun
|
|
31
|
-
yarn run dev
|
|
32
|
-
pnpm run dev
|
|
33
|
-
npm run dev
|
|
27
|
+
bun dev
|
|
34
28
|
```
|
|
35
29
|
|
|
36
30
|
## Documentation
|
|
@@ -39,26 +33,21 @@ Find the official documentation at Github Pages here:
|
|
|
39
33
|
|
|
40
34
|
[artiphishle.github.io/forensics-docs](https://artiphishle.github.io/forensics-docs/)
|
|
41
35
|
|
|
36
|
+
## Just get the analysis
|
|
37
|
+
|
|
38
|
+
Run `bunx pkgviz` from any project root (Java & TypeScript, more to follow) and a `audit.json` will be generated for you.
|
|
39
|
+
|
|
42
40
|
## Test
|
|
43
41
|
|
|
44
42
|
```bash
|
|
45
|
-
# Run tests
|
|
43
|
+
# Run tests (bun/yarn/pnpm/npm)
|
|
46
44
|
bun run test
|
|
47
|
-
yarn run test
|
|
48
|
-
pnpm run test
|
|
49
|
-
npm run test
|
|
50
45
|
|
|
51
46
|
# Print Coverage to stdout
|
|
52
47
|
bun run test:cov
|
|
53
|
-
yarn run test:cov
|
|
54
|
-
pnpm run test:cov
|
|
55
|
-
npm run test:cov
|
|
56
48
|
|
|
57
49
|
# Generate HTML Coverage to 'test/coverage/index.html'
|
|
58
50
|
bun test:cov:html
|
|
59
|
-
yarn test:cov:html
|
|
60
|
-
pnpm test:cov:html
|
|
61
|
-
npm test:cov:html
|
|
62
51
|
```
|
|
63
52
|
|
|
64
53
|
## Contributing
|
package/bin/pkgviz.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
|
|
3
2
|
import { existsSync } from 'node:fs';
|
|
4
3
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
5
4
|
import { dirname, resolve } from 'node:path';
|
|
6
5
|
import { fileURLToPath } from 'node:url';
|
|
7
6
|
import * as net from 'node:net';
|
|
8
7
|
|
|
9
|
-
|
|
8
|
+
interface Opts {
|
|
10
9
|
out: string;
|
|
11
10
|
open: boolean;
|
|
12
11
|
serve: boolean;
|
|
13
12
|
prod: boolean;
|
|
14
|
-
port?: number;
|
|
15
13
|
route: string;
|
|
16
14
|
waitMs: number;
|
|
17
15
|
pretty: boolean;
|
|
18
16
|
verbose: boolean;
|
|
19
|
-
|
|
17
|
+
port?: number;
|
|
18
|
+
}
|
|
20
19
|
|
|
21
20
|
function parseArgs(argv: string[]): Opts {
|
|
22
21
|
const o: Opts = {
|
|
@@ -148,10 +147,9 @@ function openBrowser(url: string) {
|
|
|
148
147
|
|
|
149
148
|
async function main() {
|
|
150
149
|
const opts = parseArgs(process.argv);
|
|
151
|
-
|
|
152
150
|
const callerRoot = process.cwd(); // The project being analyzed
|
|
153
|
-
const pkgRoot = resolvePackageRoot(); // The packaged Next app root
|
|
154
151
|
const port = await findFreePort(opts.port);
|
|
152
|
+
const pkgRoot = resolvePackageRoot(); // The packaged Next app root
|
|
155
153
|
const nextBin = resolveNextBin(pkgRoot);
|
|
156
154
|
const hasBuild = existsSync(resolve(pkgRoot, '.next'));
|
|
157
155
|
const mode = opts.prod || hasBuild ? 'start' : 'dev';
|
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"bun": ">=1.2.18",
|
|
14
14
|
"npm": ">=10.9.2"
|
|
15
15
|
},
|
|
16
|
-
"version": "0.1.
|
|
16
|
+
"version": "0.1.3",
|
|
17
17
|
"scripts": {
|
|
18
18
|
"dev": "next dev --turbopack",
|
|
19
19
|
"build": "next build",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"test:cov:html": "c8 --report-dir=./test/coverage --reporter=html tsx --test"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@artiphishle/testosterone": "^0.
|
|
30
|
+
"@artiphishle/testosterone": "^0.2.5",
|
|
31
31
|
"cytoscape": "^3.31.2",
|
|
32
32
|
"cytoscape-klay": "^3.1.4",
|
|
33
33
|
"fp-ts": "^2.16.9",
|
|
@@ -38,8 +38,9 @@
|
|
|
38
38
|
"radix-ui": "^1.2.0",
|
|
39
39
|
"react": "^19.0.0",
|
|
40
40
|
"react-dom": "^19.0.0",
|
|
41
|
-
"
|
|
42
|
-
"typescript": "^5"
|
|
41
|
+
"testosterone": "^1.3.1",
|
|
42
|
+
"typescript": "^5",
|
|
43
|
+
"xml-js": "^1.6.11"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@eslint/eslintrc": "^3",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/json/route.ts":"1","/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/xml/route.ts":"2","/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/detectLanguage/route.ts":"3","/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getAllFilesRecursive/route.ts":"4","/Users/a_rtiphishl_e/git/forensics/src/app/layout.tsx":"5","/Users/a_rtiphishl_e/git/forensics/src/app/page.tsx":"6","/Users/a_rtiphishl_e/git/forensics/src/components/Breadcrumb.tsx":"7","/Users/a_rtiphishl_e/git/forensics/src/components/Header.tsx":"8","/Users/a_rtiphishl_e/git/forensics/src/components/Loader.tsx":"9","/Users/a_rtiphishl_e/git/forensics/src/components/Main.tsx":"10","/Users/a_rtiphishl_e/git/forensics/src/components/Settings.tsx":"11","/Users/a_rtiphishl_e/git/forensics/src/components/Switch.tsx":"12","/Users/a_rtiphishl_e/git/forensics/src/components/ZoomInput.tsx":"13","/Users/a_rtiphishl_e/git/forensics/src/contexts/SettingsContext.tsx":"14","/Users/a_rtiphishl_e/git/forensics/src/hooks/useCytoscape.ts":"15","/Users/a_rtiphishl_e/git/forensics/src/i18n/en.ts":"16","/Users/a_rtiphishl_e/git/forensics/src/i18n/i18n.ts":"17","/Users/a_rtiphishl_e/git/forensics/src/types/types.ts":"18","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/rules/markCyclicPackages.ts":"19","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterByPackagePrefix.ts":"20","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackages.ts":"21","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterVendorPackages.ts":"22","/Users/a_rtiphishl_e/git/forensics/src/utils/getAudit.ts":"23","/Users/a_rtiphishl_e/git/forensics/src/utils/java/extractJavaPackageFromImport.ts":"24","/Users/a_rtiphishl_e/git/forensics/src/utils/java/findEntryPoint.ts":"25","/Users/a_rtiphishl_e/git/forensics/src/utils/java/parseJavaFile.ts":"26","/Users/a_rtiphishl_e/git/forensics/src/utils/parseEnv.ts":"27","/Users/a_rtiphishl_e/git/forensics/src/utils/java/getIntrinsicPackagesRecursive.ts":"28","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/buildGraph.ts":"29","/Users/a_rtiphishl_e/git/forensics/src/utils/getParsedFileStructure.ts":"30","/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getGraph/route.ts":"31","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/style.ts":"32","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getMaxEdgeWeight.ts":"33","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getWeightBuckets.ts":"34","/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/hasChildren.ts":"35","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterEmptyPackages.ts":"36","/Users/a_rtiphishl_e/git/forensics/src/utils/getJson.ts":"37","/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/extractTypeScriptPackageFromImport.ts":"38","/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/parseFile.ts":"39","/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.ts":"40","/Users/a_rtiphishl_e/git/forensics/src/app/providers.tsx":"41","/Users/a_rtiphishl_e/git/forensics/src/components/Setting.tsx":"42","/Users/a_rtiphishl_e/git/forensics/src/components/ThemeToggle.tsx":"43","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/layout.ts":"44","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/style.ts":"45","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/layout.ts":"46","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/style.ts":"47","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/layout.ts":"48","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/style.ts":"49","/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.types.ts":"50","/Users/a_rtiphishl_e/git/forensics/src/contexts/constants.ts":"51","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/layout.ts":"52","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/style.ts":"53","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/layout.ts":"54","/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/style.ts":"55","/Users/a_rtiphishl_e/git/forensics/src/themes/constants.ts":"56","/Users/a_rtiphishl_e/git/forensics/src/themes/getLayoutStyle.ts":"57","/Users/a_rtiphishl_e/git/forensics/src/themes/types.ts":"58","/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackagesFromDepth.ts":"59","/Users/a_rtiphishl_e/git/forensics/src/store/useLocalStorage.ts":"60"},{"size":530,"mtime":1745838828022,"results":"61","hashOfConfig":"62"},{"size":575,"mtime":1745838828021,"results":"63","hashOfConfig":"62"},{"size":383,"mtime":1753464452463,"results":"64","hashOfConfig":"62"},{"size":248,"mtime":1745838828023,"results":"65","hashOfConfig":"62"},{"size":726,"mtime":1757336810996,"results":"66","hashOfConfig":"62"},{"size":1365,"mtime":1757340558114,"results":"67","hashOfConfig":"62"},{"size":1040,"mtime":1745866486085,"results":"68","hashOfConfig":"62"},{"size":905,"mtime":1757336666530,"results":"69","hashOfConfig":"62"},{"size":243,"mtime":1745866501232,"results":"70","hashOfConfig":"62"},{"size":350,"mtime":1757302444184,"results":"71","hashOfConfig":"62"},{"size":5917,"mtime":1757346309504,"results":"72","hashOfConfig":"62"},{"size":1180,"mtime":1757295345047,"results":"73","hashOfConfig":"62"},{"size":1466,"mtime":1757295345048,"results":"74","hashOfConfig":"62"},{"size":2815,"mtime":1757353916156,"results":"75","hashOfConfig":"62"},{"size":7724,"mtime":1757353777248,"results":"76","hashOfConfig":"62"},{"size":656,"mtime":1757319907539,"results":"77","hashOfConfig":"62"},{"size":233,"mtime":1745838828035,"results":"78","hashOfConfig":"62"},{"size":1146,"mtime":1757353759676,"results":"79","hashOfConfig":"62"},{"size":7570,"mtime":1757347898073,"results":"80","hashOfConfig":"62"},{"size":761,"mtime":1745838828031,"results":"81","hashOfConfig":"62"},{"size":2809,"mtime":1753464452465,"results":"82","hashOfConfig":"62"},{"size":569,"mtime":1745838828031,"results":"83","hashOfConfig":"62"},{"size":1494,"mtime":1757348117556,"results":"84","hashOfConfig":"62"},{"size":1248,"mtime":1745838828027,"results":"85","hashOfConfig":"62"},{"size":615,"mtime":1745838828028,"results":"86","hashOfConfig":"62"},{"size":3317,"mtime":1757336761223,"results":"87","hashOfConfig":"62"},{"size":1677,"mtime":1757319907540,"results":"88","hashOfConfig":"62"},{"size":1060,"mtime":1745838828027,"results":"89","hashOfConfig":"62"},{"size":3127,"mtime":1757348456546,"results":"90","hashOfConfig":"62"},{"size":3203,"mtime":1757344441925,"results":"91","hashOfConfig":"62"},{"size":695,"mtime":1757348019728,"results":"92","hashOfConfig":"62"},{"size":4356,"mtime":1757295345048,"results":"93","hashOfConfig":"62"},{"size":274,"mtime":1746777364291,"results":"94","hashOfConfig":"62"},{"size":1506,"mtime":1757336753129,"results":"95","hashOfConfig":"62"},{"size":285,"mtime":1746794901538,"results":"96","hashOfConfig":"62"},{"size":1002,"mtime":1757305846381,"results":"97","hashOfConfig":"62"},{"size":271,"mtime":1745838828028,"results":"98","hashOfConfig":"62"},{"size":664,"mtime":1757345410788,"results":"99","hashOfConfig":"62"},{"size":3568,"mtime":1757346159441,"results":"100","hashOfConfig":"62"},{"size":3856,"mtime":1757336708623,"results":"101","hashOfConfig":"62"},{"size":388,"mtime":1757295345046,"results":"102","hashOfConfig":"62"},{"size":395,"mtime":1757295345047,"results":"103","hashOfConfig":"62"},{"size":772,"mtime":1757295345047,"results":"104","hashOfConfig":"62"},{"size":320,"mtime":1757302444186,"results":"105","hashOfConfig":"62"},{"size":424,"mtime":1757305846381,"results":"106","hashOfConfig":"62"},{"size":179,"mtime":1757302444186,"results":"107","hashOfConfig":"62"},{"size":177,"mtime":1753560368623,"results":"108","hashOfConfig":"62"},{"size":341,"mtime":1757302444187,"results":"109","hashOfConfig":"62"},{"size":490,"mtime":1753560115795,"results":"110","hashOfConfig":"62"},{"size":240,"mtime":1753464452464,"results":"111","hashOfConfig":"62"},{"size":188,"mtime":1757348634455,"results":"112","hashOfConfig":"62"},{"size":2037,"mtime":1757305846380,"results":"113","hashOfConfig":"62"},{"size":179,"mtime":1757305846380,"results":"114","hashOfConfig":"62"},{"size":7103,"mtime":1757312739041,"results":"115","hashOfConfig":"62"},{"size":171,"mtime":1757312739041,"results":"116","hashOfConfig":"62"},{"size":681,"mtime":1757354183353,"results":"117","hashOfConfig":"62"},{"size":803,"mtime":1757354247403,"results":"118","hashOfConfig":"62"},{"size":133,"mtime":1757348604413,"results":"119","hashOfConfig":"62"},{"size":5776,"mtime":1757319907540,"results":"120","hashOfConfig":"62"},{"size":934,"mtime":1757353874335,"results":"121","hashOfConfig":"62"},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"177kd3e",{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","suppressedMessages":"133","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","suppressedMessages":"136","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","suppressedMessages":"139","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","suppressedMessages":"142","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","suppressedMessages":"145","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","suppressedMessages":"148","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","suppressedMessages":"151","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","suppressedMessages":"154","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","suppressedMessages":"157","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","suppressedMessages":"160","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"161","messages":"162","suppressedMessages":"163","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","suppressedMessages":"166","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"167","messages":"168","suppressedMessages":"169","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","suppressedMessages":"172","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","suppressedMessages":"175","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","suppressedMessages":"178","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","suppressedMessages":"181","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","suppressedMessages":"184","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","suppressedMessages":"187","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","suppressedMessages":"190","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","suppressedMessages":"193","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"194","messages":"195","suppressedMessages":"196","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","suppressedMessages":"199","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","suppressedMessages":"202","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","suppressedMessages":"205","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"206","messages":"207","suppressedMessages":"208","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"209","messages":"210","suppressedMessages":"211","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"212","messages":"213","suppressedMessages":"214","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"215","messages":"216","suppressedMessages":"217","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"218","messages":"219","suppressedMessages":"220","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"221","messages":"222","suppressedMessages":"223","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"224","messages":"225","suppressedMessages":"226","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"227","messages":"228","suppressedMessages":"229","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"230","messages":"231","suppressedMessages":"232","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"233","messages":"234","suppressedMessages":"235","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"236","messages":"237","suppressedMessages":"238","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"239","messages":"240","suppressedMessages":"241","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"242","messages":"243","suppressedMessages":"244","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"245","messages":"246","suppressedMessages":"247","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"248","messages":"249","suppressedMessages":"250","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"251","messages":"252","suppressedMessages":"253","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"254","messages":"255","suppressedMessages":"256","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"257","messages":"258","suppressedMessages":"259","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"260","messages":"261","suppressedMessages":"262","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"263","messages":"264","suppressedMessages":"265","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"266","messages":"267","suppressedMessages":"268","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"269","messages":"270","suppressedMessages":"271","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"272","messages":"273","suppressedMessages":"274","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"275","messages":"276","suppressedMessages":"277","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"278","messages":"279","suppressedMessages":"280","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"281","messages":"282","suppressedMessages":"283","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"284","messages":"285","suppressedMessages":"286","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"287","messages":"288","suppressedMessages":"289","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"290","messages":"291","suppressedMessages":"292","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"293","messages":"294","suppressedMessages":"295","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"296","messages":"297","suppressedMessages":"298","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"299","messages":"300","suppressedMessages":"301","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/json/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/audit/xml/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/detectLanguage/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getAllFilesRecursive/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/layout.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/page.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Breadcrumb.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Header.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Loader.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Main.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Settings.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Switch.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/ZoomInput.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/contexts/SettingsContext.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/hooks/useCytoscape.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/i18n/en.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/i18n/i18n.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/types/types.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/rules/markCyclicPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterByPackagePrefix.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterVendorPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/getAudit.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/extractJavaPackageFromImport.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/findEntryPoint.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/parseJavaFile.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/parseEnv.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/java/getIntrinsicPackagesRecursive.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/buildGraph.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/getParsedFileStructure.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/api/fs/getGraph/route.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getMaxEdgeWeight.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/getWeightBuckets.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/cytoscape/hasChildren.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterEmptyPackages.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/getJson.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/extractTypeScriptPackageFromImport.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/typescript/parseFile.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/app/providers.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/Setting.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/components/ThemeToggle.tsx",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/circle/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/concentric/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/grid/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/detectLanguage.types.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/contexts/constants.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/breadthfirst/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/layout.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/basic/klay/style.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/constants.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/getLayoutStyle.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/themes/types.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/utils/filter/filterSubPackagesFromDepth.ts",[],[],"/Users/a_rtiphishl_e/git/forensics/src/store/useLocalStorage.ts",[],[]]
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(()=>{var a={};a.id=217,a.ids=[217],a.modules={116:(a,b,c)=>{"use strict";c.d(b,{HD:()=>m,Wl:()=>l,ki:()=>k,od:()=>j});var d=c(7218);c(9130);var e=c(9021),f=c.n(e),g=c(3873),h=c.n(g),i=c(9435);async function j(a){if(!f().existsSync(a)||!f().statSync(a).isDirectory())throw Error(`Directory does not exist: ${a}`);let b=f().readdirSync(a),c={[i.g.JavaScript]:[],[i.g.TypeScript]:[],[i.g.Java]:[],[i.g.Unknown]:[]};if(b.includes("package.json")&&!b.includes("tsconfig.json")&&c[i.g.JavaScript].push("package.json without tsconfig.json"),b.some(a=>a.endsWith(".js")||a.endsWith(".jsx"))&&c[i.g.JavaScript].push(".js/.jsx files"),b.includes("node_modules")&&c[i.g.JavaScript].push("node_modules directory"),b.includes("tsconfig.json")&&c[i.g.TypeScript].push("tsconfig.json"),b.some(a=>a.endsWith(".ts")||a.endsWith(".tsx"))&&c[i.g.TypeScript].push(".ts/.tsx files"),b.includes("package.json"))try{let b=JSON.parse(f().readFileSync(h().join(a,"package.json"),"utf8"));(b.dependencies?.typescript||b.devDependencies?.typescript)&&c[i.g.TypeScript].push("typescript dependency")}catch(a){console.error(a)}b.includes("pom.xml")&&c[i.g.Java].push("pom.xml"),(b.includes("build.gradle")||b.includes("build.gradle.kts"))&&c[i.g.Java].push("gradle build file"),b.some(a=>a.endsWith(".java"))&&c[i.g.Java].push(".java files"),(b.includes(".mvn")||b.includes("mvnw")||b.includes("mvnw.cmd"))&&c[i.g.Java].push("Maven wrapper");let d={[i.g.JavaScript]:c[i.g.JavaScript].length,[i.g.TypeScript]:c[i.g.TypeScript].length,[i.g.Java]:c[i.g.Java].length,[i.g.Unknown]:0},e=i.g.Unknown,g=0;for(let[a,b]of Object.entries(d))b>g&&(g=b,e=a);let j=Object.values(d).reduce((a,b)=>a+b,0);return{language:e,confidence:j>0?g/j:0,indicators:c[e]}}async function k(a){let b=f().readdirSync(a);return b.includes("package.json")&&!b.includes("tsconfig.json")}async function l(a){let b=f().readdirSync(a);return b.includes("tsconfig.json")&&b.includes("package.json")}async function m(a){let b=f().readdirSync(a);return b.includes("pom.xml")||b.some(a=>a.endsWith(".java"))||b.includes("build.gradle")||b.includes("build.gradle.kts")}(0,c(7478).D)([j,k,l,m]),(0,d.A)(j,"4032fd1bc41915d3b34b247f2d03883e08a21814b9",null),(0,d.A)(k,"4073eddbbfa6d3b1885a87940a364df8005f92243d",null),(0,d.A)(l,"4062ab72d69278f312eea5dfbb1325d479c934b5c0",null),(0,d.A)(m,"40fb82966d2793eba4da272a945a7b2ee538cd1441",null)},261:a=>{"use strict";a.exports=require("next/dist/shared/lib/router/utils/app-paths")},846:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},1888:(a,b,c)=>{"use strict";c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(6559),e=c(8088),f=c(7719),g=c(6191),h=c(1289),i=c(261),j=c(2603),k=c(9893),l=c(4823),m=c(7220),n=c(6946),o=c(7912),p=c(9786),q=c(6143),r=c(6439),s=c(3365),t=c(5043);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/fs/detectLanguage/route",pathname:"/api/fs/detectLanguage",filename:"route",bundlePath:"app/api/fs/detectLanguage/route"},distDir:".next",projectDir:"",resolvedPagePath:"/Users/a_rtiphishl_e/git/pkgviz/src/app/api/fs/detectLanguage/route.ts",nextConfigOutput:"",userland:t}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){var d;let f="/api/fs/detectLanguage/route";"/index"===f&&(f="/");let t=await u.prepare(a,b,{srcPage:f,multiZoneDraftMode:"false"});if(!t)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,params:w,nextConfig:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=t,E=(0,i.normalizeAppPath)(f),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new r.NoFallbackError}let G=null;!F||u.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===u.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,h.getTracer)(),L=K.getActiveScopeSpan(),M={params:w,prerenderManifest:z,renderOpts:{experimental:{dynamicIO:!!x.experimental.dynamicIO,authInterrupts:!!x.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,g.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=x.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>u.onRequestError(a,b,d,A)},sharedContext:{buildId:v}},N=new j.NodeNextRequest(a),O=new j.NodeNextResponse(b),P=k.NextRequestAdapter.fromNodeNextRequest(N,(0,k.signalFromNodeResponse)(b));try{let d=async c=>u.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==l.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),i=async h=>{var i,j;let k=async({previousCacheEntry:e})=>{try{if(!(0,g.getRequestMeta)(a,"minimalMode")&&B&&C&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let f=await d(h);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,n.I)(N,O,f,M.renderOpts.pendingWaitUntil),null;{let a=await f.blob(),b=(0,o.toNodeOutgoingHttpHeaders)(f.headers);j&&(b[q.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=q.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=q.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:s.CachedRouteKind.APP_ROUTE,status:f.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,m.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await u.handleResponse({req:a,nextConfig:x,cacheKey:G,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==s.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,g.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let r=(0,o.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,g.getRequestMeta)(a,"minimalMode")&&F||r.delete(q.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||r.get("Cache-Control")||r.set("Cache-Control",(0,p.getCacheControlHeader)(l.cacheControl)),await (0,n.I)(N,O,new Response(l.value.body,{headers:r,status:l.value.status||200})),null};L?await i(L):await K.withPropagatedContext(a.headers,()=>K.trace(l.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:h.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},i))}catch(b){if(L||b instanceof r.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,m.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,n.I)(N,O,new Response(null,{status:500})),null}}},3033:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},3295:a=>{"use strict";a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3873:a=>{"use strict";a.exports=require("path")},4870:a=>{"use strict";a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},5043:(a,b,c)=>{"use strict";c.r(b),c.d(b,{GET:()=>g});var d=c(7218);c(9130);var e=c(116),f=c(2190);async function g(){let a="/Users/a_rtiphishl_e/git/pkgviz";if(!a)throw Error("[api/fs/languageDetection] Missing ENV: 'NEXT_PUBLIC_PROJECT_PATH'");let b=(0,e.od)(a);return f.NextResponse.json({language:b})}(0,c(7478).D)([g]),(0,d.A)(g,"0041ff699592d256f3ff55e11e0eb6842a27ae2320",null)},6439:a=>{"use strict";a.exports=require("next/dist/shared/lib/no-fallback-error.external")},6461:(a,b,c)=>{"use strict";c.r(b),c.d(b,{"0041ff699592d256f3ff55e11e0eb6842a27ae2320":()=>d.GET,"4032fd1bc41915d3b34b247f2d03883e08a21814b9":()=>e.od,"4062ab72d69278f312eea5dfbb1325d479c934b5c0":()=>e.Wl,"4073eddbbfa6d3b1885a87940a364df8005f92243d":()=>e.ki,"40fb82966d2793eba4da272a945a7b2ee538cd1441":()=>e.HD});var d=c(5043),e=c(116)},6487:()=>{},7218:(a,b,c)=>{"use strict";Object.defineProperty(b,"A",{enumerable:!0,get:function(){return d.registerServerReference}});let d=c(1369)},7478:(a,b)=>{"use strict";function c(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
|
|
2
|
-
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(b,"D",{enumerable:!0,get:function(){return c}})},8335:()=>{},8354:a=>{"use strict";a.exports=require("util")},9021:a=>{"use strict";a.exports=require("fs")},9130:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{decryptActionBoundArgs:function(){return q},encryptActionBoundArgs:function(){return p}}),c(4822);let d=c(1369),e=c(5624),f=c(7855),g=c(2602),h=c(3033),i=c(4971),j=function(a){return a&&a.__esModule?a:{default:a}}(c(1120)),k=new TextEncoder,l=new TextDecoder;async function m(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=atob(b),e=d.slice(0,16),f=d.slice(16),h=l.decode(await (0,g.decrypt)(c,(0,g.stringToUint8Array)(e),(0,g.stringToUint8Array)(f)));if(!h.startsWith(a))throw Object.defineProperty(Error("Invalid Server Action payload: failed to decrypt."),"__NEXT_ERROR_CODE",{value:"E191",enumerable:!1,configurable:!0});return h.slice(a.length)}async function n(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=new Uint8Array(16);h.workUnitAsyncStorage.exit(()=>crypto.getRandomValues(d));let e=(0,g.arrayBufferToString)(d.buffer),f=await (0,g.encrypt)(c,d,k.encode(a+b));return btoa(e+(0,g.arrayBufferToString)(f))}var o=function(a){return a[a.Ready=0]="Ready",a[a.Pending=1]="Pending",a[a.Complete=2]="Complete",a}(o||{});let p=j.default.cache(async function a(b,...c){let e=h.workUnitAsyncStorage.getStore(),j=(null==e?void 0:e.type)==="prerender"?e.cacheSignal:void 0,{clientModules:k}=(0,g.getClientReferenceManifestForRsc)(),l=Error();Error.captureStackTrace(l,a);let m=!1,o=(null==e?void 0:e.type)==="prerender"?(0,i.createHangingInputAbortSignal)(e):void 0,p=0;function q(){0===p&&(p=1,null==j||j.beginRead())}function r(){1===p&&(null==j||j.endRead()),p=2}o&&j&&o.addEventListener("abort",q,{once:!0});let s=await (0,f.streamToString)((0,d.renderToReadableStream)(c,k,{filterStackFrame:void 0,signal:o,onError(a){(null==o||!o.aborted)&&(m||(m=!0,l.message=a instanceof Error?a.message:String(a)))}}),o);if(m)throw r(),l;if(!e)return n(b,s);q();let t=(0,h.getPrerenderResumeDataCache)(e),u=(0,h.getRenderResumeDataCache)(e),v=b+s,w=(null==t?void 0:t.encryptedBoundArgs.get(v))??(null==u?void 0:u.encryptedBoundArgs.get(v));if(w)return w;let x=await n(b,s);return r(),null==t||t.encryptedBoundArgs.set(v,x),x});async function q(a,b){let c,d=await b,f=h.workUnitAsyncStorage.getStore();if(f){let b="prerender"===f.type?f.cacheSignal:void 0,e=(0,h.getPrerenderResumeDataCache)(f),g=(0,h.getRenderResumeDataCache)(f);(c=(null==e?void 0:e.decryptedBoundArgs.get(d))??(null==g?void 0:g.decryptedBoundArgs.get(d)))||(null==b||b.beginRead(),c=await m(a,d),null==b||b.endRead(),null==e||e.decryptedBoundArgs.set(d,c))}else c=await m(a,d);let{edgeRscModuleMapping:i,rscModuleMapping:j}=(0,g.getClientReferenceManifestForRsc)();return await (0,e.createFromReadableStream)(new ReadableStream({start(a){a.enqueue(k.encode(c)),(null==f?void 0:f.type)==="prerender"?f.renderSignal.aborted?a.close():f.renderSignal.addEventListener("abort",()=>a.close(),{once:!0}):a.close()}}),{serverConsumerManifest:{moduleLoading:null,moduleMap:j,serverModuleMap:(0,g.getServerModuleMap)()}})}},9294:a=>{"use strict";a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},9435:(a,b,c)=>{"use strict";c.d(b,{g:()=>d});var d=function(a){return a.JavaScript="javascript",a.TypeScript="typescript",a.Java="java",a.Unknown="unknown",a}({})}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[985,376,55],()=>b(b.s=1888));module.exports=c})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":1,"files":["../../../../../../node_modules/next/dist/client/components/app-router-headers.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/index.js","../../../../../../node_modules/next/dist/compiled/@opentelemetry/api/package.json","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/index.js","../../../../../../node_modules/next/dist/compiled/jsonwebtoken/package.json","../../../../../../node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js","../../../../../../node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js","../../../../../../node_modules/next/dist/lib/constants.js","../../../../../../node_modules/next/dist/lib/interop-default.js","../../../../../../node_modules/next/dist/lib/is-error.js","../../../../../../node_modules/next/dist/lib/semver-noop.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/action-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/after-task-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/async-local-storage.js","../../../../../../node_modules/next/dist/server/app-render/cache-signal.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/dynamic-access-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.external.js","../../../../../../node_modules/next/dist/server/app-render/module-loading/track-module-loading.instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-async-storage.external.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js","../../../../../../node_modules/next/dist/server/app-render/work-unit-async-storage.external.js","../../../../../../node_modules/next/dist/server/lib/cache-handlers/default.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/memory-cache.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/shared-cache-controls.external.js","../../../../../../node_modules/next/dist/server/lib/incremental-cache/tags-manifest.external.js","../../../../../../node_modules/next/dist/server/lib/lru-cache.js","../../../../../../node_modules/next/dist/server/lib/router-utils/instrumentation-globals.external.js","../../../../../../node_modules/next/dist/server/lib/trace/constants.js","../../../../../../node_modules/next/dist/server/lib/trace/tracer.js","../../../../../../node_modules/next/dist/server/load-manifest.external.js","../../../../../../node_modules/next/dist/server/response-cache/types.js","../../../../../../node_modules/next/dist/shared/lib/deep-freeze.js","../../../../../../node_modules/next/dist/shared/lib/invariant-error.js","../../../../../../node_modules/next/dist/shared/lib/is-plain-object.js","../../../../../../node_modules/next/dist/shared/lib/is-thenable.js","../../../../../../node_modules/next/dist/shared/lib/no-fallback-error.external.js","../../../../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js","../../../../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js","../../../../../../node_modules/next/dist/shared/lib/segment.js","../../../../../../node_modules/next/package.json","../../../../../../package.json","../../../../../package.json","../../../../chunks/376.js","../../../../chunks/55.js","../../../../chunks/985.js","../../../../webpack-runtime.js","route_client-reference-manifest.js"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/fs/detectLanguage/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"894":{"*":{"id":"6346","name":"*","chunks":[],"async":false}},"1295":{"*":{"id":"7173","name":"*","chunks":[],"async":false}},"1362":{"*":{"id":"218","name":"*","chunks":[],"async":false}},"3617":{"*":{"id":"716","name":"*","chunks":[],"async":false}},"4470":{"*":{"id":"6013","name":"*","chunks":[],"async":false}},"4911":{"*":{"id":"8827","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"7924","name":"*","chunks":[],"async":false}},"6975":{"*":{"id":"99","name":"*","chunks":[],"async":false}},"7555":{"*":{"id":"8243","name":"*","chunks":[],"async":false}},"8175":{"*":{"id":"5587","name":"*","chunks":[],"async":false}},"8393":{"*":{"id":"5227","name":"*","chunks":[],"async":false}},"9665":{"*":{"id":"2763","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/builtin/global-error.js":{"id":8393,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":8393,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/client-page.js":{"id":894,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/client-page.js":{"id":894,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/client-segment.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":6975,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":6975,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/layout-router.js":{"id":7555,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7555,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":4911,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":4911,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/metadata/metadata-boundary.js":{"id":9665,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/metadata/metadata-boundary.js":{"id":9665,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1295,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1295,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":8175,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":8175,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next-themes/dist/index.mjs":{"id":1362,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":4147,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":8489,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/src/app/globals.css":{"id":347,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/src/contexts/SettingsContext.tsx":{"id":4470,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/src/app/page.tsx":{"id":3617,"name":"*","chunks":["747","static/chunks/90542734-bad8998e58193cb9.js","870","static/chunks/dec7c704-381848996e700553.js","466","static/chunks/466-b4a500cbd8df897e.js","974","static/chunks/app/page-17b2a17ccc3dc891.js"],"async":false}},"entryCSSFiles":{"/Users/a_rtiphishl_e/git/pkgviz/src/":[],"/Users/a_rtiphishl_e/git/pkgviz/src/app/layout":[{"inlined":false,"path":"static/css/9d2991f387a19b1b.css"}],"/Users/a_rtiphishl_e/git/pkgviz/src/app/page":[],"/Users/a_rtiphishl_e/git/pkgviz/src/app/api/fs/detectLanguage/route":[]},"rscModuleMapping":{"347":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"894":{"*":{"id":"6444","name":"*","chunks":[],"async":false}},"1295":{"*":{"id":"1307","name":"*","chunks":[],"async":false}},"1362":{"*":{"id":"3392","name":"*","chunks":[],"async":false}},"3617":{"*":{"id":"8823","name":"*","chunks":[],"async":false}},"4470":{"*":{"id":"9864","name":"*","chunks":[],"async":false}},"4911":{"*":{"id":"2089","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"6042","name":"*","chunks":[],"async":false}},"6975":{"*":{"id":"9477","name":"*","chunks":[],"async":false}},"7555":{"*":{"id":"9345","name":"*","chunks":[],"async":false}},"8175":{"*":{"id":"4817","name":"*","chunks":[],"async":false}},"8393":{"*":{"id":"6133","name":"*","chunks":[],"async":false}},"9665":{"*":{"id":"6577","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(()=>{var a={};a.id=818,a.ids=[818],a.modules={261:a=>{a.exports=require("next/dist/shared/lib/router/utils/app-paths")},846:a=>{a.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},1883:(a,b,c)=>{c.d(b,{Z:()=>d});function d(a){let b=function a(b,c="",d=[],e=new Map){return Object.keys(b).forEach(f=>{let g=b[f];if(!g?.className){let b=c?`${c}.${f}`:f;return d.push({data:{id:b,path:b,label:b,isIntrinsic:!0},group:"nodes"}),a(g,b,d,e)}let h=g.package?.trim();h&&(g.imports??[]).map(a=>a.pkg?.trim()).filter(a=>!!a).forEach(a=>{if(a===h)return;let b=`${h}->${a}`,c=e.get(b),d=c?.data?.weight??0;e.set(b,{data:{source:h,target:a,weight:d+1},group:"edges"})})}),{nodes:d,edges:e}}(a);return b.edges.forEach(({data:{source:a,target:c}})=>{[a,c].forEach(a=>{let c=String(a??"").trim();c&&(b.nodes.find(a=>a.data.id===c)||b.nodes.push({data:{id:c,label:c,path:c},group:"nodes"}))})}),{nodes:b.nodes,edges:Array.from(b.edges.values())}}},3024:a=>{a.exports=require("node:fs")},3033:a=>{a.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},3295:a=>{a.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},3873:a=>{a.exports=require("path")},4810:(a,b,c)=>{c.r(b),c.d(b,{handler:()=>z,patchFetch:()=>y,routeModule:()=>u,serverHooks:()=>x,workAsyncStorage:()=>v,workUnitAsyncStorage:()=>w});var d=c(6559),e=c(8088),f=c(7719),g=c(6191),h=c(1289),i=c(261),j=c(2603),k=c(9893),l=c(4823),m=c(7220),n=c(6946),o=c(7912),p=c(9786),q=c(6143),r=c(6439),s=c(3365),t=c(9802);let u=new d.AppRouteRouteModule({definition:{kind:e.RouteKind.APP_ROUTE,page:"/api/fs/getGraph/route",pathname:"/api/fs/getGraph",filename:"route",bundlePath:"app/api/fs/getGraph/route"},distDir:".next",projectDir:"",resolvedPagePath:"/Users/a_rtiphishl_e/git/pkgviz/src/app/api/fs/getGraph/route.ts",nextConfigOutput:"",userland:t}),{workAsyncStorage:v,workUnitAsyncStorage:w,serverHooks:x}=u;function y(){return(0,f.patchFetch)({workAsyncStorage:v,workUnitAsyncStorage:w})}async function z(a,b,c){var d;let f="/api/fs/getGraph/route";"/index"===f&&(f="/");let t=await u.prepare(a,b,{srcPage:f,multiZoneDraftMode:"false"});if(!t)return b.statusCode=400,b.end("Bad Request"),null==c.waitUntil||c.waitUntil.call(c,Promise.resolve()),null;let{buildId:v,params:w,nextConfig:x,isDraftMode:y,prerenderManifest:z,routerServerContext:A,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,resolvedPathname:D}=t,E=(0,i.normalizeAppPath)(f),F=!!(z.dynamicRoutes[E]||z.routes[D]);if(F&&!y){let a=!!z.routes[D],b=z.dynamicRoutes[E];if(b&&!1===b.fallback&&!a)throw new r.NoFallbackError}let G=null;!F||u.isDev||y||(G="/index"===(G=D)?"/":G);let H=!0===u.isDev||!F,I=F&&!H,J=a.method||"GET",K=(0,h.getTracer)(),L=K.getActiveScopeSpan(),M={params:w,prerenderManifest:z,renderOpts:{experimental:{dynamicIO:!!x.experimental.dynamicIO,authInterrupts:!!x.experimental.authInterrupts},supportsDynamicResponse:H,incrementalCache:(0,g.getRequestMeta)(a,"incrementalCache"),cacheLifeProfiles:null==(d=x.experimental)?void 0:d.cacheLife,isRevalidate:I,waitUntil:c.waitUntil,onClose:a=>{b.on("close",a)},onAfterTaskError:void 0,onInstrumentationRequestError:(b,c,d)=>u.onRequestError(a,b,d,A)},sharedContext:{buildId:v}},N=new j.NodeNextRequest(a),O=new j.NodeNextResponse(b),P=k.NextRequestAdapter.fromNodeNextRequest(N,(0,k.signalFromNodeResponse)(b));try{let d=async c=>u.handle(P,M).finally(()=>{if(!c)return;c.setAttributes({"http.status_code":b.statusCode,"next.rsc":!1});let d=K.getRootSpanAttributes();if(!d)return;if(d.get("next.span_type")!==l.BaseServerSpan.handleRequest)return void console.warn(`Unexpected root span type '${d.get("next.span_type")}'. Please report this Next.js issue https://github.com/vercel/next.js`);let e=d.get("next.route");if(e){let a=`${J} ${e}`;c.setAttributes({"next.route":e,"http.route":e,"next.span_name":a}),c.updateName(a)}else c.updateName(`${J} ${a.url}`)}),i=async h=>{var i,j;let k=async({previousCacheEntry:e})=>{try{if(!(0,g.getRequestMeta)(a,"minimalMode")&&B&&C&&!e)return b.statusCode=404,b.setHeader("x-nextjs-cache","REVALIDATED"),b.end("This page could not be found"),null;let f=await d(h);a.fetchMetrics=M.renderOpts.fetchMetrics;let i=M.renderOpts.pendingWaitUntil;i&&c.waitUntil&&(c.waitUntil(i),i=void 0);let j=M.renderOpts.collectedTags;if(!F)return await (0,n.I)(N,O,f,M.renderOpts.pendingWaitUntil),null;{let a=await f.blob(),b=(0,o.toNodeOutgoingHttpHeaders)(f.headers);j&&(b[q.NEXT_CACHE_TAGS_HEADER]=j),!b["content-type"]&&a.type&&(b["content-type"]=a.type);let c=void 0!==M.renderOpts.collectedRevalidate&&!(M.renderOpts.collectedRevalidate>=q.INFINITE_CACHE)&&M.renderOpts.collectedRevalidate,d=void 0===M.renderOpts.collectedExpire||M.renderOpts.collectedExpire>=q.INFINITE_CACHE?void 0:M.renderOpts.collectedExpire;return{value:{kind:s.CachedRouteKind.APP_ROUTE,status:f.status,body:Buffer.from(await a.arrayBuffer()),headers:b},cacheControl:{revalidate:c,expire:d}}}}catch(b){throw(null==e?void 0:e.isStale)&&await u.onRequestError(a,b,{routerKind:"App Router",routePath:f,routeType:"route",revalidateReason:(0,m.c)({isRevalidate:I,isOnDemandRevalidate:B})},A),b}},l=await u.handleResponse({req:a,nextConfig:x,cacheKey:G,routeKind:e.RouteKind.APP_ROUTE,isFallback:!1,prerenderManifest:z,isRoutePPREnabled:!1,isOnDemandRevalidate:B,revalidateOnlyGenerated:C,responseGenerator:k,waitUntil:c.waitUntil});if(!F)return null;if((null==l||null==(i=l.value)?void 0:i.kind)!==s.CachedRouteKind.APP_ROUTE)throw Object.defineProperty(Error(`Invariant: app-route received invalid cache entry ${null==l||null==(j=l.value)?void 0:j.kind}`),"__NEXT_ERROR_CODE",{value:"E701",enumerable:!1,configurable:!0});(0,g.getRequestMeta)(a,"minimalMode")||b.setHeader("x-nextjs-cache",B?"REVALIDATED":l.isMiss?"MISS":l.isStale?"STALE":"HIT"),y&&b.setHeader("Cache-Control","private, no-cache, no-store, max-age=0, must-revalidate");let r=(0,o.fromNodeOutgoingHttpHeaders)(l.value.headers);return(0,g.getRequestMeta)(a,"minimalMode")&&F||r.delete(q.NEXT_CACHE_TAGS_HEADER),!l.cacheControl||b.getHeader("Cache-Control")||r.get("Cache-Control")||r.set("Cache-Control",(0,p.getCacheControlHeader)(l.cacheControl)),await (0,n.I)(N,O,new Response(l.value.body,{headers:r,status:l.value.status||200})),null};L?await i(L):await K.withPropagatedContext(a.headers,()=>K.trace(l.BaseServerSpan.handleRequest,{spanName:`${J} ${a.url}`,kind:h.SpanKind.SERVER,attributes:{"http.method":J,"http.target":a.url}},i))}catch(b){if(L||b instanceof r.NoFallbackError||await u.onRequestError(a,b,{routerKind:"App Router",routePath:E,routeType:"route",revalidateReason:(0,m.c)({isRevalidate:I,isOnDemandRevalidate:B})}),F)throw b;return await (0,n.I)(N,O,new Response(null,{status:500})),null}}},4870:a=>{a.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},6095:(a,b,c)=>{c.r(b),c.d(b,{"0067fad7d060b9d37eefe3223496ffc0c2f5529868":()=>d.GET,"4032fd1bc41915d3b34b247f2d03883e08a21814b9":()=>f.od,"4062ab72d69278f312eea5dfbb1325d479c934b5c0":()=>f.Wl,"4073eddbbfa6d3b1885a87940a364df8005f92243d":()=>f.ki,"4082586f2bc6e0dff9dd57aa593357079bd5118cd6":()=>e.z,"40fb82966d2793eba4da272a945a7b2ee538cd1441":()=>f.HD,"6068bc3c27fb26fb7fa9b2828f657d5452c9aac3fd":()=>g.q,"702986da4b663c1a33ef3c386dce3246363731a9fa":()=>h.b,"78301c09c45540d3b3d88fbffd4190e52f0c26bb8b":()=>e.j});var d=c(9802),e=c(6089),f=c(116),g=c(7937),h=c(6032)},6439:a=>{a.exports=require("next/dist/shared/lib/no-fallback-error.external")},6760:a=>{a.exports=require("node:path")},7500:(a,b,c)=>{c.d(b,{FW:()=>d});function d(a,b){let c=function(a){let b=new Map;for(let c of a.nodes){let a=String(c.data.id);b.has(a)||b.set(a,new Set)}for(let c of a.edges){let a=String(c.data.source),d=String(c.data.target);b.has(a)||b.set(a,new Set),b.has(d)||b.set(d,new Set),b.get(a).add(d)}return b}(b),d=function(a){let b=0,c=new Map,d=new Map,e=[],f=new Set,g=[];for(let h of a.keys())c.has(h)||function h(i){for(let g of(c.set(i,b),d.set(i,b),b++,e.push(i),f.add(i),a.get(i)??[]))c.has(g)?f.has(g)&&d.set(i,Math.min(d.get(i),c.get(g))):(h(g),d.set(i,Math.min(d.get(i),d.get(g))));if(d.get(i)===c.get(i)){let a,b=[];do a=e.pop(),f.delete(a),b.push(a);while(a!==i);g.push(b)}}(h);return g}(c),e=function(a){let b=function(a){let b=[],c=a=>{for(let d in a){let e=a[d];e&&"object"==typeof e&&"path"in e&&"package"in e?b.push(e):e&&"object"==typeof e&&c(e)}};return c(a),b}(a),c=new Map;for(let a of b){let b=a.package;for(let d of a.imports??[]){let e=d.pkg;if(!e||e===b)continue;let f=`${b}->${e}`;c.has(f)||c.set(f,[]),c.get(f).push({filePath:a.path,fileClass:a.className,importName:d.name,isIntrinsic:d.isIntrinsic})}}return c}(a),f=[],g=new Set;for(let a of d){let b=1===a.length&&(c.get(a[0])?.has(a[0])??!1);if(a.length>1||b){a.forEach(a=>g.add(a));let b=function(a,b){for(let c of Array.from(b)){let d=[],e=new Set,f=function f(g){for(let h of(d.push(g),e.add(g),a.get(g)??[]))if(b.has(h)){if(h===c&&d.length>1)return[...d,c];if(!e.has(h)){let a=f(h);if(a)return a}}return d.pop(),null}(c);if(f)return f}return null}(c,new Set(a))??[...a,a[0]],d=[];for(let a=0;a<b.length-1;a++){let c=b[a],f=b[a+1],g=`${c}->${f}`;d.push({from:c,to:f,via:e.get(g)??[]})}f.push({packages:b,edges:d})}}return{cycles:f,packageSet:g,graph:b}}},8354:a=>{a.exports=require("util")},9021:a=>{a.exports=require("fs")},9294:a=>{a.exports=require("next/dist/server/app-render/work-async-storage.external.js")},9748:a=>{a.exports=require("fs/promises")},9802:(a,b,c)=>{c.r(b),c.d(b,{GET:()=>i});var d=c(7218);c(9130);var e=c(2190),f=c(1883),g=c(6089),h=c(7500);async function i(){let a=await (0,g.z)(),b=(0,h.FW)(a,(0,f.Z)(a));return e.NextResponse.json(b.graph)}(0,c(7478).D)([i]),(0,d.A)(i,"0067fad7d060b9d37eefe3223496ffc0c2f5529868",null)},9899:a=>{a.exports=require("typescript")}};var b=require("../../../../webpack-runtime.js");b.C(a);var c=b.X(0,[985,376,55,669],()=>b(b.s=4810));module.exports=c})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
globalThis.__RSC_MANIFEST=(globalThis.__RSC_MANIFEST||{});globalThis.__RSC_MANIFEST["/api/fs/getGraph/route"]={"moduleLoading":{"prefix":"/_next/"},"ssrModuleMapping":{"894":{"*":{"id":"6346","name":"*","chunks":[],"async":false}},"1295":{"*":{"id":"7173","name":"*","chunks":[],"async":false}},"1362":{"*":{"id":"218","name":"*","chunks":[],"async":false}},"3617":{"*":{"id":"716","name":"*","chunks":[],"async":false}},"4470":{"*":{"id":"6013","name":"*","chunks":[],"async":false}},"4911":{"*":{"id":"8827","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"7924","name":"*","chunks":[],"async":false}},"6975":{"*":{"id":"99","name":"*","chunks":[],"async":false}},"7555":{"*":{"id":"8243","name":"*","chunks":[],"async":false}},"8175":{"*":{"id":"5587","name":"*","chunks":[],"async":false}},"8393":{"*":{"id":"5227","name":"*","chunks":[],"async":false}},"9665":{"*":{"id":"2763","name":"*","chunks":[],"async":false}}},"edgeSSRModuleMapping":{},"clientModules":{"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/builtin/global-error.js":{"id":8393,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/builtin/global-error.js":{"id":8393,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/client-page.js":{"id":894,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/client-page.js":{"id":894,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/client-segment.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/client-segment.js":{"id":4970,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/http-access-fallback/error-boundary.js":{"id":6975,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/http-access-fallback/error-boundary.js":{"id":6975,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/layout-router.js":{"id":7555,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/layout-router.js":{"id":7555,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/metadata/async-metadata.js":{"id":4911,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/metadata/async-metadata.js":{"id":4911,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/metadata/metadata-boundary.js":{"id":9665,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/metadata/metadata-boundary.js":{"id":9665,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/client/components/render-from-template-context.js":{"id":1295,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/client/components/render-from-template-context.js":{"id":1295,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/lib/metadata/generate/icon-mark.js":{"id":8175,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/dist/esm/lib/metadata/generate/icon-mark.js":{"id":8175,"name":"*","chunks":[],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next-themes/dist/index.mjs":{"id":1362,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Geist\",\"arguments\":[{\"variable\":\"--font-geist-sans\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistSans\"}":{"id":4147,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/node_modules/next/font/google/target.css?{\"path\":\"src/app/layout.tsx\",\"import\":\"Geist_Mono\",\"arguments\":[{\"variable\":\"--font-geist-mono\",\"subsets\":[\"latin\"]}],\"variableName\":\"geistMono\"}":{"id":8489,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/src/app/globals.css":{"id":347,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/src/contexts/SettingsContext.tsx":{"id":4470,"name":"*","chunks":["177","static/chunks/app/layout-160414dfb322fd52.js"],"async":false},"/Users/a_rtiphishl_e/git/pkgviz/src/app/page.tsx":{"id":3617,"name":"*","chunks":["747","static/chunks/90542734-bad8998e58193cb9.js","870","static/chunks/dec7c704-381848996e700553.js","466","static/chunks/466-b4a500cbd8df897e.js","974","static/chunks/app/page-17b2a17ccc3dc891.js"],"async":false}},"entryCSSFiles":{"/Users/a_rtiphishl_e/git/pkgviz/src/":[],"/Users/a_rtiphishl_e/git/pkgviz/src/app/layout":[{"inlined":false,"path":"static/css/9d2991f387a19b1b.css"}],"/Users/a_rtiphishl_e/git/pkgviz/src/app/page":[],"/Users/a_rtiphishl_e/git/pkgviz/src/app/api/fs/getGraph/route":[]},"rscModuleMapping":{"347":{"*":{"id":"1135","name":"*","chunks":[],"async":false}},"894":{"*":{"id":"6444","name":"*","chunks":[],"async":false}},"1295":{"*":{"id":"1307","name":"*","chunks":[],"async":false}},"1362":{"*":{"id":"3392","name":"*","chunks":[],"async":false}},"3617":{"*":{"id":"8823","name":"*","chunks":[],"async":false}},"4470":{"*":{"id":"9864","name":"*","chunks":[],"async":false}},"4911":{"*":{"id":"2089","name":"*","chunks":[],"async":false}},"4970":{"*":{"id":"6042","name":"*","chunks":[],"async":false}},"6975":{"*":{"id":"9477","name":"*","chunks":[],"async":false}},"7555":{"*":{"id":"9345","name":"*","chunks":[],"async":false}},"8175":{"*":{"id":"4817","name":"*","chunks":[],"async":false}},"8393":{"*":{"id":"6133","name":"*","chunks":[],"async":false}},"9665":{"*":{"id":"6577","name":"*","chunks":[],"async":false}}},"edgeRscModuleMapping":{}}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
exports.id=669,exports.ids=[669],exports.modules={116:(a,b,c)=>{"use strict";c.d(b,{HD:()=>m,Wl:()=>l,ki:()=>k,od:()=>j});var d=c(7218);c(9130);var e=c(9021),f=c.n(e),g=c(3873),h=c.n(g),i=c(9435);async function j(a){if(!f().existsSync(a)||!f().statSync(a).isDirectory())throw Error(`Directory does not exist: ${a}`);let b=f().readdirSync(a),c={[i.g.JavaScript]:[],[i.g.TypeScript]:[],[i.g.Java]:[],[i.g.Unknown]:[]};if(b.includes("package.json")&&!b.includes("tsconfig.json")&&c[i.g.JavaScript].push("package.json without tsconfig.json"),b.some(a=>a.endsWith(".js")||a.endsWith(".jsx"))&&c[i.g.JavaScript].push(".js/.jsx files"),b.includes("node_modules")&&c[i.g.JavaScript].push("node_modules directory"),b.includes("tsconfig.json")&&c[i.g.TypeScript].push("tsconfig.json"),b.some(a=>a.endsWith(".ts")||a.endsWith(".tsx"))&&c[i.g.TypeScript].push(".ts/.tsx files"),b.includes("package.json"))try{let b=JSON.parse(f().readFileSync(h().join(a,"package.json"),"utf8"));(b.dependencies?.typescript||b.devDependencies?.typescript)&&c[i.g.TypeScript].push("typescript dependency")}catch(a){console.error(a)}b.includes("pom.xml")&&c[i.g.Java].push("pom.xml"),(b.includes("build.gradle")||b.includes("build.gradle.kts"))&&c[i.g.Java].push("gradle build file"),b.some(a=>a.endsWith(".java"))&&c[i.g.Java].push(".java files"),(b.includes(".mvn")||b.includes("mvnw")||b.includes("mvnw.cmd"))&&c[i.g.Java].push("Maven wrapper");let d={[i.g.JavaScript]:c[i.g.JavaScript].length,[i.g.TypeScript]:c[i.g.TypeScript].length,[i.g.Java]:c[i.g.Java].length,[i.g.Unknown]:0},e=i.g.Unknown,g=0;for(let[a,b]of Object.entries(d))b>g&&(g=b,e=a);let j=Object.values(d).reduce((a,b)=>a+b,0);return{language:e,confidence:j>0?g/j:0,indicators:c[e]}}async function k(a){let b=f().readdirSync(a);return b.includes("package.json")&&!b.includes("tsconfig.json")}async function l(a){let b=f().readdirSync(a);return b.includes("tsconfig.json")&&b.includes("package.json")}async function m(a){let b=f().readdirSync(a);return b.includes("pom.xml")||b.some(a=>a.endsWith(".java"))||b.includes("build.gradle")||b.includes("build.gradle.kts")}(0,c(7478).D)([j,k,l,m]),(0,d.A)(j,"4032fd1bc41915d3b34b247f2d03883e08a21814b9",null),(0,d.A)(k,"4073eddbbfa6d3b1885a87940a364df8005f92243d",null),(0,d.A)(l,"4062ab72d69278f312eea5dfbb1325d479c934b5c0",null),(0,d.A)(m,"40fb82966d2793eba4da272a945a7b2ee538cd1441",null)},6032:(a,b,c)=>{"use strict";c.d(b,{b:()=>g});var d=c(7218);c(9130);var e=c(9021),f=c(3873);async function g(a=(0,f.resolve)("/Users/a_rtiphishl_e/git/pkgviz"),b,c=[]){if(!a)throw Error("Required env: NEXT_PUBLIC_PROJECT_PATH");let d=(0,f.resolve)(a,"src/main/java"),h=b??d,i=(0,e.readdirSync)(h,{withFileTypes:!0}),j=i.filter(a=>a.isDirectory());if(i.filter(a=>a.isFile()&&a.name.endsWith(".java")).length>0&&0===j.length){let a=(0,f.relative)(d,h).replace(/\//g,".");c.push(a)}for(let b of j){let d=(0,f.resolve)(h,b.name);await g(a,d,c)}return c}(0,c(7478).D)([g]),(0,d.A)(g,"702986da4b663c1a33ef3c386dce3246363731a9fa",null)},6089:(a,b,c)=>{"use strict";c.d(b,{z:()=>q,j:()=>p});var d=c(7218);c(9130);var e=c(3024),f=c(6760),g=c(116),h=c(7937),i=c(9748),j=c.n(i),k=c(3873),l=c.n(k),m=c(9899);async function n(a,b){let c=await j().readFile(a,"utf-8"),d=l().relative(b,a),e=d.split("/").slice(0,-1);return{className:function(a,b){let c=a.match(/class\s+(\w+)/);return c?c[1]:l().basename(b,".ts")}(c,a),imports:function(a){let b=m.createSourceFile("temp.ts",a,m.ScriptTarget.Latest,!0),c=[];return b.forEachChild(a=>{if(m.isImportDeclaration(a)){let b=a.moduleSpecifier.text,d=b.replace(/^\@/,"src");c.push({name:d.split("/").join("."),pkg:function(a){console.log("import:",a);let b=a.split("/").slice(0,-1).join("/");return(b.startsWith("@/")?b.replace(/^@/,"src"):b).split("/").join(".")}(b),isIntrinsic:b.startsWith("@")})}}),c}(c),methods:function(a){let b=m.createSourceFile("temp.ts",a,m.ScriptTarget.Latest,!0),c=[];return!function a(b){if(m.isMethodDeclaration(b)&&b.name){let a=b.name.getText(),d=b.type?.getText()??"void",e=b.parameters.map(a=>a.getText()),f=m.getCombinedModifierFlags(b),g="default";f&m.ModifierFlags.Private?g="private":f&m.ModifierFlags.Protected?g="protected":f&m.ModifierFlags.Public&&(g="public"),c.push({name:a,returnType:d,parameters:e,visibility:g})}m.forEachChild(b,a)}(b),c}(c),calls:function(a){let b=m.createSourceFile("temp.ts",a,m.ScriptTarget.Latest,!0),c=[];return!function a(b){if(m.isCallExpression(b)&&m.isPropertyAccessExpression(b.expression)){let a=b.expression.expression.getText(),d=b.expression.name.getText();c.push({callee:a,method:d})}m.forEachChild(b,a)}(b),c}(c),package:e.join("."),path:d}}var o=c(9435);async function p(a,b={},c=a,d){let g=(0,e.readdirSync)(a,{withFileTypes:!0}),i=[".cache","coverage",".git",".github","examples","packages","test",".meta","node_modules",".next",".vscode"];for(let e of g){if(i.includes(e.name))continue;let g=(0,f.join)(a,e.name);d===o.g.Java?e.isDirectory()?b[e.name]=await p(g,{},"",d):e.isFile()&&e.name.endsWith(".java")&&(b[e.name]=await (0,h.q)(g,c)):d===o.g.TypeScript&&(e.isDirectory()?b[e.name]=await p(g,{},"",d):(e.isFile()&&e.name.endsWith(".ts")||e.name.endsWith(".tsx"))&&(b[e.name]=await n(g,c)))}return b}async function q(a="/Users/a_rtiphishl_e/git/pkgviz"){let b=(await (0,g.od)(a)).language;if(console.log("detected:",b),![o.g.Java,o.g.TypeScript].includes(b))throw Error("Supported language is 'Java' & 'TypeScript'. More to follow.");let c=function(a,b){switch(b){case o.g.Java:return!function(a){let b=(0,f.resolve)(a,"src/main/java");if(!(0,e.existsSync)(b))throw Error("Missing dir: 'src/main/java'")}(a),(0,f.resolve)(a,"src/main/java");case o.g.TypeScript:return(0,f.resolve)(a);default:throw Error(`Invalid file structure for ${b}`)}}(a,b);return console.log("rootDir:",c),await p(c,{},"",b)}(0,c(7478).D)([p,q]),(0,d.A)(p,"78301c09c45540d3b3d88fbffd4190e52f0c26bb8b",null),(0,d.A)(q,"4082586f2bc6e0dff9dd57aa593357079bd5118cd6",null)},6487:()=>{},7218:(a,b,c)=>{"use strict";Object.defineProperty(b,"A",{enumerable:!0,get:function(){return d.registerServerReference}});let d=c(1369)},7478:(a,b)=>{"use strict";function c(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
|
|
2
|
-
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(b,"D",{enumerable:!0,get:function(){return c}})},7937:(a,b,c)=>{"use strict";c.d(b,{q:()=>j});var d=c(7218);c(9130);var e=c(9021),f=c.n(e),g=c(3873),h=c.n(g),i=c(6032);async function j(a,b){let c=f().readFileSync(a,"utf-8"),d=h().basename(a,".java"),e=await (0,i.b)(),g=function(a,b){let c=RegExp(`(?:public\\s+)?(class|interface|enum|record)\\s+${b}\\b`);if(a.match(c))return b;let d=a.match(/(?:public\s+)?(class|interface|enum|record)\s+([A-Za-z0-9_]+)/);return d?.[2]||""}(c,d),j=function(a){let b=a.match(/^package\s+([a-zA-Z0-9_.]+);/m);return b?.[1]||""}(c),k=Array.from(c.matchAll(/^import\s+([a-zA-Z0-9_.*]+);/gm)).map(a=>a[1]).map(a=>{let b=function(a){let b=a.replace(/\.\*$/,""),c=b.split(".").reverse();if(c.length<2||c[0].toLowerCase()===c[0])return b;let d=!1,e=[];for(let a of c)!d&&/^[A-Z]/.test(a)||(d=!0,e.push(a));return e.reverse().join(".")}(a);return{name:a,pkg:b,isIntrinsic:e.includes(b)}}),l=function(a){let b,c=/(?:(public|protected|private)\s+)?(?:static\s+)?([\w<>[\]]+)\s+(\w+)\s*\(([^)]*)\)\s*\{/g,d=[];for(;null!==(b=c.exec(a));){let a=b[1]||"default",c=b[2],e=b[3],f=b[4].split(",").map(a=>a.trim()).filter(Boolean);d.push({name:e,returnType:c,parameters:f,visibility:a})}return d}(c),m=function(a){let b,c=/(\b\w+)\.(\w+)\s*\(/g,d=[];for(;null!==(b=c.exec(a));){let a=b[1],c=b[2];d.push({callee:a,method:c})}return d}(c);return{className:g,package:j,imports:k,methods:l,calls:m,path:h().relative(b,a)}}(0,c(7478).D)([j]),(0,d.A)(j,"6068bc3c27fb26fb7fa9b2828f657d5452c9aac3fd",null)},8335:()=>{},9130:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{decryptActionBoundArgs:function(){return q},encryptActionBoundArgs:function(){return p}}),c(4822);let d=c(1369),e=c(5624),f=c(7855),g=c(2602),h=c(3033),i=c(4971),j=function(a){return a&&a.__esModule?a:{default:a}}(c(1120)),k=new TextEncoder,l=new TextDecoder;async function m(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=atob(b),e=d.slice(0,16),f=d.slice(16),h=l.decode(await (0,g.decrypt)(c,(0,g.stringToUint8Array)(e),(0,g.stringToUint8Array)(f)));if(!h.startsWith(a))throw Object.defineProperty(Error("Invalid Server Action payload: failed to decrypt."),"__NEXT_ERROR_CODE",{value:"E191",enumerable:!1,configurable:!0});return h.slice(a.length)}async function n(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=new Uint8Array(16);h.workUnitAsyncStorage.exit(()=>crypto.getRandomValues(d));let e=(0,g.arrayBufferToString)(d.buffer),f=await (0,g.encrypt)(c,d,k.encode(a+b));return btoa(e+(0,g.arrayBufferToString)(f))}var o=function(a){return a[a.Ready=0]="Ready",a[a.Pending=1]="Pending",a[a.Complete=2]="Complete",a}(o||{});let p=j.default.cache(async function a(b,...c){let e=h.workUnitAsyncStorage.getStore(),j=(null==e?void 0:e.type)==="prerender"?e.cacheSignal:void 0,{clientModules:k}=(0,g.getClientReferenceManifestForRsc)(),l=Error();Error.captureStackTrace(l,a);let m=!1,o=(null==e?void 0:e.type)==="prerender"?(0,i.createHangingInputAbortSignal)(e):void 0,p=0;function q(){0===p&&(p=1,null==j||j.beginRead())}function r(){1===p&&(null==j||j.endRead()),p=2}o&&j&&o.addEventListener("abort",q,{once:!0});let s=await (0,f.streamToString)((0,d.renderToReadableStream)(c,k,{filterStackFrame:void 0,signal:o,onError(a){(null==o||!o.aborted)&&(m||(m=!0,l.message=a instanceof Error?a.message:String(a)))}}),o);if(m)throw r(),l;if(!e)return n(b,s);q();let t=(0,h.getPrerenderResumeDataCache)(e),u=(0,h.getRenderResumeDataCache)(e),v=b+s,w=(null==t?void 0:t.encryptedBoundArgs.get(v))??(null==u?void 0:u.encryptedBoundArgs.get(v));if(w)return w;let x=await n(b,s);return r(),null==t||t.encryptedBoundArgs.set(v,x),x});async function q(a,b){let c,d=await b,f=h.workUnitAsyncStorage.getStore();if(f){let b="prerender"===f.type?f.cacheSignal:void 0,e=(0,h.getPrerenderResumeDataCache)(f),g=(0,h.getRenderResumeDataCache)(f);(c=(null==e?void 0:e.decryptedBoundArgs.get(d))??(null==g?void 0:g.decryptedBoundArgs.get(d)))||(null==b||b.beginRead(),c=await m(a,d),null==b||b.endRead(),null==e||e.decryptedBoundArgs.set(d,c))}else c=await m(a,d);let{edgeRscModuleMapping:i,rscModuleMapping:j}=(0,g.getClientReferenceManifestForRsc)();return await (0,e.createFromReadableStream)(new ReadableStream({start(a){a.enqueue(k.encode(c)),(null==f?void 0:f.type)==="prerender"?f.renderSignal.aborted?a.close():f.renderSignal.addEventListener("abort",()=>a.close(),{once:!0}):a.close()}}),{serverConsumerManifest:{moduleLoading:null,moduleMap:j,serverModuleMap:(0,g.getServerModuleMap)()}})}},9435:(a,b,c)=>{"use strict";c.d(b,{g:()=>d});var d=function(a){return a.JavaScript="javascript",a.TypeScript="typescript",a.Java="java",a.Unknown="unknown",a}({})}};
|