jso-protector 0.4.10 → 0.4.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/CHANGELOG.md +1217 -1195
- package/bin/jso-protector.js +24 -5
- package/examples/README.md +1 -1
- package/package.json +1 -1
package/bin/jso-protector.js
CHANGED
|
@@ -899,6 +899,10 @@ Usage:
|
|
|
899
899
|
jso-protector --migrate-javascript-obfuscator javascript-obfuscator.json --output jso.config.json
|
|
900
900
|
jso-protector --migrate-javascript-obfuscator javascript-obfuscator.config.cjs --output jso.config.json
|
|
901
901
|
jso-protector --migrate-js-confuser js-confuser.config.cjs --output jso.config.json
|
|
902
|
+
jso-protector --init
|
|
903
|
+
javascriptobfuscator login Sign in once and save credentials for this machine
|
|
904
|
+
javascriptobfuscator logout Remove the saved credentials
|
|
905
|
+
Evidence and compliance reports (source-free; run after a protected build):
|
|
902
906
|
jso-protector --ai-resistance-evidence dist-protected/jso-report.json --ai-resistance-evidence-output reports/ai-resistance-evidence.md
|
|
903
907
|
jso-protector --source-map-evidence dist-protected/jso-manifest.json --source-map-evidence-output reports/source-map-evidence.md
|
|
904
908
|
jso-protector --deployment-hygiene-evidence _temp/archive-hygiene.json --deployment-hygiene-output reports/deployment-hygiene.md
|
|
@@ -909,9 +913,7 @@ Usage:
|
|
|
909
913
|
jso-protector --script-inventory-from-snapshot reports/runtime-inventory.json --script-inventory-output reports/payment-script-inventory.json
|
|
910
914
|
jso-protector --payment-page-headers-from-har reports/checkout.har --payment-page-headers-baseline reports/payment-page-headers.baseline.json --payment-page-headers-output reports/payment-page-headers.json
|
|
911
915
|
jso-protector --script-inventory-audit reports/payment-script-inventory.json --runtime-inventory-snapshot reports/runtime-inventory.json
|
|
912
|
-
|
|
913
|
-
javascriptobfuscator login Sign in once and save credentials for this machine
|
|
914
|
-
javascriptobfuscator logout Remove the saved credentials
|
|
916
|
+
|
|
915
917
|
|
|
916
918
|
Options:
|
|
917
919
|
--config <file> Config file path. Supports JSON, CommonJS .cjs/.js, and ESM .mjs/.js files.
|
|
@@ -12323,10 +12325,27 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
12323
12325
|
assertReady(config);
|
|
12324
12326
|
// Say plainly that this run is unauthenticated. Someone whose credentials
|
|
12325
12327
|
// silently stopped resolving must not think they are on their paid plan.
|
|
12328
|
+
//
|
|
12329
|
+
// The second line used to read "Run `javascriptobfuscator login` to use your
|
|
12330
|
+
// plan", which is addressed to someone who ALREADY HAS a plan - and this
|
|
12331
|
+
// message only ever prints for someone who does not. It spent the one moment
|
|
12332
|
+
// we have their attention telling them nothing they could act on.
|
|
12333
|
+
//
|
|
12334
|
+
// A free account is worth naming precisely: the server gives a keyless run
|
|
12335
|
+
// 2 requests/minute and 5/hour per IP, and a signed-in one 10/minute and
|
|
12336
|
+
// 100/hour - twenty times the hourly ceiling, at no cost. Files are batched
|
|
12337
|
+
// up to 20 per request, so 5/hour is about five builds an hour: fine for a
|
|
12338
|
+
// look, tight for iterating.
|
|
12339
|
+
//
|
|
12340
|
+
// That ceiling only began binding for real on 2026-09-03. Before then the
|
|
12341
|
+
// limiter keyed on the Cloudflare edge ip rather than the visitor, so a
|
|
12342
|
+
// single client spread across edge nodes almost never met it.
|
|
12326
12343
|
if (isAnonymousRun(config) && !args.json) {
|
|
12327
12344
|
process.stderr.write(
|
|
12328
|
-
"No credentials found - running on the free tier (up to 20 files, 200 KB per request, no VM protection)." + "\n" +
|
|
12329
|
-
"
|
|
12345
|
+
"No credentials found - running anonymously on the free tier (up to 20 files, 200 KB per request, no VM protection)." + "\n" +
|
|
12346
|
+
"Anonymous runs are capped at 5 per hour. A free account raises that to 100 per hour:" + "\n" +
|
|
12347
|
+
" https://javascriptobfuscator.com/register.aspx?src=cli-anon" + "\n" +
|
|
12348
|
+
"Already have an account? Run `javascriptobfuscator login`." + "\n\n");
|
|
12330
12349
|
}
|
|
12331
12350
|
if (!files.length) {
|
|
12332
12351
|
throw new Error("No matching input files found.");
|
package/examples/README.md
CHANGED
|
@@ -39,7 +39,7 @@ published as `javascriptobfuscator-com`; `jso-protector` is the former name and
|
|
|
39
39
|
is deprecated but still updated:
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
npm install --save-dev javascriptobfuscator-com@0.4.
|
|
42
|
+
npm install --save-dev javascriptobfuscator-com@0.4.11
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
Repository contributors can instead use the existing `file:../..` development
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jso-protector",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Obfuscate and protect JavaScript in your build or CI: dependency-free CLI, Node API, and webpack/Vite/Rollup/esbuild/Next.js/Metro plugins, with one-command migration from javascript-obfuscator and JS-Confuser configs.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "JavaScript Obfuscator",
|