afterpack 0.0.10 → 0.0.11
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/dist/cli.js +6 -4
- package/dist/cli.js.map +1 -1
- package/package.json +3 -11
package/dist/cli.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
//#region package.json
|
|
3
|
+
var version = "0.0.11";
|
|
3
4
|
|
|
5
|
+
//#endregion
|
|
4
6
|
//#region src/cli.ts
|
|
5
7
|
const args = process.argv.slice(2);
|
|
6
8
|
if (args.includes("--version") || args.includes("-v")) {
|
|
7
|
-
console.log(`AfterPack v${version
|
|
9
|
+
console.log(`AfterPack v${version}`);
|
|
8
10
|
process.exit(0);
|
|
9
11
|
}
|
|
10
12
|
if (args[0] === "audit") {
|
|
11
13
|
console.log(`
|
|
12
14
|
╔═══════════════════════════════════════════════════════╗
|
|
13
|
-
║ AfterPack v${version
|
|
15
|
+
║ AfterPack v${version.padEnd(42)}║
|
|
14
16
|
╚═══════════════════════════════════════════════════════╝
|
|
15
17
|
|
|
16
18
|
Audit command coming soon!
|
|
@@ -27,7 +29,7 @@ if (args[0] === "audit") {
|
|
|
27
29
|
}
|
|
28
30
|
console.log(`
|
|
29
31
|
╔═══════════════════════════════════════════════════════╗
|
|
30
|
-
║ AfterPack v${version
|
|
32
|
+
║ AfterPack v${version.padEnd(42)}║
|
|
31
33
|
╚═══════════════════════════════════════════════════════╝
|
|
32
34
|
|
|
33
35
|
Coming soon: High-performance JavaScript protection.
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","names":[],"sources":["../src/cli.ts"],"sourcesContent":["#!/usr/bin/env node\n\nimport { version } from \"
|
|
1
|
+
{"version":3,"file":"cli.js","names":[],"sources":["../package.json","../src/cli.ts"],"sourcesContent":["{\n \"name\": \"afterpack\",\n \"version\": \"0.0.11\",\n \"description\": \"A high-performance post-build JavaScript obfuscator and minifier\",\n \"type\": \"module\",\n \"main\": \"./dist/cli.js\",\n \"bin\": {\n \"afterpack\": \"./dist/cli.js\"\n },\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"build\": \"tsdown src/cli.ts --format esm --dts\",\n \"dev\": \"tsdown src/cli.ts --format esm --watch\",\n \"test\": \"vitest run\",\n \"test:watch\": \"vitest\",\n \"prepublishOnly\": \"pnpm build\",\n \"prepack\": \"tsx scripts/prepack.ts\",\n \"postpack\": \"tsx scripts/postpack.ts\",\n \"release\": \"npm version patch && git push && git push --tags\",\n \"release:minor\": \"npm version minor && git push && git push --tags\",\n \"release:major\": \"npm version major && git push && git push --tags\"\n },\n \"keywords\": [\n \"obfuscator\",\n \"minifier\",\n \"javascript\",\n \"protection\",\n \"security\",\n \"afterpack\"\n ],\n \"author\": \"AfterPack <hello@afterpack.dev>\",\n \"license\": \"MIT\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/afterpack-dev/afterpack.git\"\n },\n \"homepage\": \"https://afterpack.dev\",\n \"bugs\": {\n \"url\": \"https://github.com/afterpack-dev/afterpack/issues\"\n },\n \"engines\": {\n \"node\": \">=18\"\n },\n \"devDependencies\": {\n \"@types/node\": \"^25.0.9\",\n \"tsdown\": \"^0.11.0\",\n \"tsx\": \"^4.21.0\",\n \"typescript\": \"^5.0.0\",\n \"vitest\": \"^2.0.0\"\n }\n}\n","#!/usr/bin/env node\n\nimport { version } from \"../package.json\";\n\nconst args = process.argv.slice(2);\n\n// Version flag\nif (args.includes(\"--version\") || args.includes(\"-v\")) {\n console.log(`AfterPack v${version}`);\n process.exit(0);\n}\n\n// Audit command\nif (args[0] === \"audit\") {\n console.log(`\n ╔═══════════════════════════════════════════════════════╗\n ║ AfterPack v${version.padEnd(42)}║\n ╚═══════════════════════════════════════════════════════╝\n\n Audit command coming soon!\n\n This will analyze your site and reveal what AI can\n extract from your client-side JavaScript.\n\n ┌─────────────────────────────────────────────────────┐\n │ Join the waitlist to get notified: │\n │ https://www.afterpack.dev │\n └─────────────────────────────────────────────────────┘\n`);\n process.exit(0);\n}\n\n// Default: show main waitlist message\nconsole.log(`\n ╔═══════════════════════════════════════════════════════╗\n ║ AfterPack v${version.padEnd(42)}║\n ╚═══════════════════════════════════════════════════════╝\n\n Coming soon: High-performance JavaScript protection.\n\n Secure your client-side logic from AI extraction,\n reverse engineering, vulnerability scanning, and\n automated scraping.\n\n ┌─────────────────────────────────────────────────────┐\n │ Join the waitlist for early access: │\n │ https://www.afterpack.dev │\n └─────────────────────────────────────────────────────┘\n`);\n"],"mappings":";;cAEa;;;;ACEb,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE;AAGlC,IAAI,KAAK,SAAS,YAAY,IAAI,KAAK,SAAS,KAAK,EAAE;AACrD,SAAQ,KAAK,aAAa,QAAQ,EAAE;AACpC,SAAQ,KAAK,EAAE;AAChB;AAGD,IAAI,KAAK,OAAO,SAAS;AACvB,SAAQ,KAAK;;kBAEG,QAAQ,OAAO,GAAG,CAAC;;;;;;;;;;;;EAYnC;AACA,SAAQ,KAAK,EAAE;AAChB;AAGD,QAAQ,KAAK;;kBAEK,QAAQ,OAAO,GAAG,CAAC;;;;;;;;;;;;;EAanC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "afterpack",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "A high-performance post-build JavaScript obfuscator and minifier",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/cli.js",
|
|
@@ -10,13 +10,7 @@
|
|
|
10
10
|
"files": [
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
|
-
"scripts": {
|
|
14
|
-
"build": "tsdown src/cli.ts --format esm --dts",
|
|
15
|
-
"dev": "tsdown src/cli.ts --format esm --watch",
|
|
16
|
-
"test": "vitest run",
|
|
17
|
-
"test:watch": "vitest",
|
|
18
|
-
"prepublishOnly": "pnpm build"
|
|
19
|
-
},
|
|
13
|
+
"scripts": {},
|
|
20
14
|
"keywords": [
|
|
21
15
|
"obfuscator",
|
|
22
16
|
"minifier",
|
|
@@ -38,12 +32,10 @@
|
|
|
38
32
|
"engines": {
|
|
39
33
|
"node": ">=18"
|
|
40
34
|
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@afterpack/core": "^0.0.9"
|
|
43
|
-
},
|
|
44
35
|
"devDependencies": {
|
|
45
36
|
"@types/node": "^25.0.9",
|
|
46
37
|
"tsdown": "^0.11.0",
|
|
38
|
+
"tsx": "^4.21.0",
|
|
47
39
|
"typescript": "^5.0.0",
|
|
48
40
|
"vitest": "^2.0.0"
|
|
49
41
|
}
|