@thangnm.nip/arouter 0.1.7 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/.next/BUILD_ID +1 -1
- package/.next/standalone/.next/app-path-routes-manifest.json +5 -5
- package/.next/standalone/.next/build-manifest.json +2 -2
- package/.next/standalone/.next/server/app/(dashboard)/mitm/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_global-error.html +2 -2
- package/.next/standalone/.next/server/app/_global-error.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/.next/server/app/_not-found.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/alias/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/console-logs/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/settings/route.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/antigravity-mitm/settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/claude-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/codex-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/copilot-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/droid-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/openclaw-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/cli-tools/opencode-settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/keys/[id]/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/keys/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/locale/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/models/alias/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/models/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/providers/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/api/version/route_client-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/app/index.html +1 -1
- package/.next/standalone/.next/server/app/index.rsc +4 -4
- package/.next/standalone/.next/server/app/index.segments/!KGRhc2hib2FyZCk/__PAGE__.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/index.segments/_full.segment.rsc +4 -4
- package/.next/standalone/.next/server/app/index.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/index.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/index.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/mitm.html +1 -1
- package/.next/standalone/.next/server/app/mitm.rsc +5 -5
- package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk/mitm/__PAGE__.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk/mitm.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/mitm.segments/!KGRhc2hib2FyZCk.segment.rsc +2 -2
- package/.next/standalone/.next/server/app/mitm.segments/_full.segment.rsc +5 -5
- package/.next/standalone/.next/server/app/mitm.segments/_head.segment.rsc +1 -1
- package/.next/standalone/.next/server/app/mitm.segments/_index.segment.rsc +3 -3
- package/.next/standalone/.next/server/app/mitm.segments/_tree.segment.rsc +1 -1
- package/.next/standalone/.next/server/app-paths-manifest.json +5 -5
- package/.next/standalone/.next/server/chunks/182.js +1 -1
- package/.next/standalone/.next/server/chunks/411.js +1 -1
- package/.next/standalone/.next/server/pages/404.html +1 -1
- package/.next/standalone/.next/server/pages/500.html +2 -2
- package/.next/standalone/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/.next/static/chunks/{702-95bdd18daf0b487c.js → 702-48478a677dbcb531.js} +1 -1
- package/.next/standalone/package.json +3 -1
- package/.next/standalone/src/mitm/manager.js +5 -3
- package/.next/standalone/src/mitm/server.js +8 -2
- package/package.json +3 -1
- package/scripts/postinstall.mjs +325 -0
- package/scripts/prepare-standalone.mjs +71 -0
- /package/.next/standalone/.next/static/{D0LEa5K3p5asRN-XfJyez → RLvllJ-D4tTteJ5JTm91z}/_buildManifest.js +0 -0
- /package/.next/standalone/.next/static/{D0LEa5K3p5asRN-XfJyez → RLvllJ-D4tTteJ5JTm91z}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
4
|
+
|
|
5
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = path.dirname(__filename);
|
|
7
|
+
|
|
8
|
+
const projectRoot = path.join(__dirname, '..');
|
|
9
|
+
const standaloneDir = path.join(projectRoot, '.next', 'standalone');
|
|
10
|
+
|
|
11
|
+
// Function to copy a directory recursively
|
|
12
|
+
function copyDirSync(src, dest) {
|
|
13
|
+
if (!fs.existsSync(src)) return;
|
|
14
|
+
|
|
15
|
+
if (!fs.existsSync(dest)) {
|
|
16
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
20
|
+
|
|
21
|
+
for (let entry of entries) {
|
|
22
|
+
const srcPath = path.join(src, entry.name);
|
|
23
|
+
const destPath = path.join(dest, entry.name);
|
|
24
|
+
|
|
25
|
+
if (entry.isDirectory()) {
|
|
26
|
+
copyDirSync(srcPath, destPath);
|
|
27
|
+
} else {
|
|
28
|
+
fs.copyFileSync(srcPath, destPath);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
console.log('Copying static assets to standalone directory...');
|
|
34
|
+
|
|
35
|
+
// Copy 'src/mitm' directory
|
|
36
|
+
const mitmSrc = path.join(projectRoot, 'src', 'mitm');
|
|
37
|
+
const mitmDest = path.join(standaloneDir, 'src', 'mitm');
|
|
38
|
+
if (fs.existsSync(mitmSrc)) {
|
|
39
|
+
console.log(`Copying ${mitmSrc} to ${mitmDest}`);
|
|
40
|
+
copyDirSync(mitmSrc, mitmDest);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Manually copy untraced dependencies for mitm
|
|
44
|
+
const mitmDeps = ['node-forge', 'node-machine-id'];
|
|
45
|
+
mitmDeps.forEach(dep => {
|
|
46
|
+
const depSrc = path.join(projectRoot, 'node_modules', dep);
|
|
47
|
+
const depDest = path.join(standaloneDir, 'node_modules', dep);
|
|
48
|
+
if (fs.existsSync(depSrc)) {
|
|
49
|
+
console.log(`Copying untraced module: ${dep}`);
|
|
50
|
+
copyDirSync(depSrc, depDest);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// Copy 'public' directory
|
|
55
|
+
const publicSrc = path.join(projectRoot, 'public');
|
|
56
|
+
const publicDest = path.join(standaloneDir, 'public');
|
|
57
|
+
if (fs.existsSync(publicSrc)) {
|
|
58
|
+
console.log(`Copying ${publicSrc} to ${publicDest}`);
|
|
59
|
+
copyDirSync(publicSrc, publicDest);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Copy '.next/static' directory
|
|
63
|
+
const staticSrc = path.join(projectRoot, '.next', 'static');
|
|
64
|
+
// Important: Next.js reads static files from .next/standalone/.next/static
|
|
65
|
+
const staticDest = path.join(standaloneDir, '.next', 'static');
|
|
66
|
+
if (fs.existsSync(staticSrc)) {
|
|
67
|
+
console.log(`Copying ${staticSrc} to ${staticDest}`);
|
|
68
|
+
copyDirSync(staticSrc, staticDest);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
console.log('Standalone preparation complete!');
|
|
File without changes
|
|
File without changes
|