jso-protector 0.4.10 → 0.4.12

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.
@@ -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
- jso-protector --init
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,28 @@ 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
- "Run `javascriptobfuscator login` to use your plan." + "\n\n");
12345
+ "No credentials found - running anonymously on the free tier (up to 20 files, 200 KB per request, no VM protection)." + "\n" +
12346
+ "Free-tier output carries a 7-line header comment naming this product. Paid plans do not." + "\n" +
12347
+ "Anonymous runs are capped at 5 per hour. A free account raises that to 100 per hour:" + "\n" +
12348
+ " https://javascriptobfuscator.com/register.aspx?src=cli-anon" + "\n" +
12349
+ "Already have an account? Run `javascriptobfuscator login`." + "\n\n");
12330
12350
  }
12331
12351
  if (!files.length) {
12332
12352
  throw new Error("No matching input files found.");
@@ -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.10
42
+ npm install --save-dev javascriptobfuscator-com@0.4.12
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.10",
3
+ "version": "0.4.12",
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",
@@ -225,7 +225,7 @@
225
225
  "smoke": "node ./bin/jso-protector.js --help && node ./bin/jso-protector.js --config ./jso.config.example.json --dry-run --json",
226
226
  "smoke:api": "node ./bin/jso-protector.js --config ./jso.config.example.json --json",
227
227
  "test": "node ./test/cli.test.js && node ./test/ai.test.js && node ./test/ai-precheck.test.js && node ./test/ai-script-governance.test.js && node ./test/data-exfiltration-guard.test.js && node ./test/compat-scan.test.js && node ./test/compliance.test.js && node ./test/evidence-forwarder.test.js && node ./test/config-schema.test.js && node ./test/countermeasures.test.js && node ./test/environment-integrity.test.js && node ./test/estimate.test.js && node ./test/github-action.test.js && node ./test/governance.test.js && node ./test/local-bridge.test.js && node ./test/managed-integrity.test.js && node ./test/named-sets.test.js && node ./test/release-signer.test.js && node ./test/scan-watermarks.test.js && node ./test/third-party-inventory.test.js && node ./test/watermark.test.js && node ./test/wire-format-vectors.test.js",
228
- "verify": "npm test && npm run verify:package && npm run verify:examples && npm run verify:publish-metadata && npm run verify:ci && npm run verify:polyglot && npm run verify:ai && npm run verify:verify-scripts-tracked && npm run verify:aspnet-bom && npm run verify:aspnet-compile && npm run verify:endrequest-guard && npm run verify:health-readiness && npm run verify:legacy-soap-security && npm run verify:online-demo-security && npm run verify:parser-engine && npm run verify:emit-validation && npm run verify:emit-validation-modern && npm run verify:runtime-defense-libraries && npm run verify:internal-links && npm run verify:seo && npm run verify:faq-visibility && npm run verify:artifact-claims && npm run verify:runtime-dashboard && npm run verify:payment-page && npm run verify:payment-activation && npm run verify:payment-row-completeness && npm run verify:account-recovery && npm run verify:registration && npm run verify:admin-auth && npm run verify:http-api-auth && npm run verify:request-body-limits && npm run verify:public-form-security && npm run verify:operational-logs && npm run verify:richtexteditor-surface && npm run verify:dashboard-resource-governance && npm run verify:dashboard-diagnostic-surface && npm run verify:web-integrity-policy && npm run verify:entitlements && npm run verify:enterprise-governance && npm run verify:database-migrations && npm run verify:source-secrets && npm run verify:ignored-shipping-secrets && npm run verify:winforms-runtime-floor && npm run verify:ai-billing && npm run verify:ai-key-security && npm run verify:ajax-transport && npm run verify:competitor-gap && npm run verify:parity-defect-sync && npm run verify:source-map-evidence && npm run verify:migration-review && npm run verify:identifier-cache-review && npm run verify:runtime-defense-review && npm run verify:vm-proof && npm run verify:deployment-hygiene && npm run verify:download-artifacts && npm run verify:download-examples && npm run verify:copy-discipline && npm run verify:github-action && npm run verify:outbound-nofollow",
228
+ "verify": "npm test && npm run verify:package && npm run verify:examples && npm run verify:publish-metadata && npm run verify:ci && npm run verify:polyglot && npm run verify:ai && npm run verify:verify-scripts-tracked && npm run verify:aspnet-bom && npm run verify:aspnet-compile && npm run verify:endrequest-guard && npm run verify:health-readiness && npm run verify:legacy-soap-security && npm run verify:online-demo-security && npm run verify:parser-engine && npm run verify:emit-validation && npm run verify:emit-validation-modern && npm run verify:runtime-defense-libraries && npm run verify:internal-links && npm run verify:seo && npm run verify:sitemap-freshness && npm run verify:faq-visibility && npm run verify:artifact-claims && npm run verify:runtime-dashboard && npm run verify:plan-numbers && npm run verify:payment-page && npm run verify:payment-activation && npm run verify:payment-row-completeness && npm run verify:account-recovery && npm run verify:registration && npm run verify:admin-auth && npm run verify:http-api-auth && npm run verify:request-body-limits && npm run verify:public-form-security && npm run verify:operational-logs && npm run verify:richtexteditor-surface && npm run verify:dashboard-resource-governance && npm run verify:dashboard-diagnostic-surface && npm run verify:web-integrity-policy && npm run verify:entitlements && npm run verify:enterprise-governance && npm run verify:database-migrations && npm run verify:source-secrets && npm run verify:ignored-shipping-secrets && npm run verify:winforms-runtime-floor && npm run verify:ai-billing && npm run verify:ai-key-security && npm run verify:ajax-transport && npm run verify:competitor-gap && npm run verify:parity-defect-sync && npm run verify:source-map-evidence && npm run verify:migration-review && npm run verify:identifier-cache-review && npm run verify:runtime-defense-review && npm run verify:vm-proof && npm run verify:deployment-hygiene && npm run verify:download-artifacts && npm run verify:download-examples && npm run verify:copy-discipline && npm run verify:github-action && npm run verify:outbound-nofollow",
229
229
  "verify:release": "npm run verify && npm run verify:corpus-protect && npm run verify:corpus-runtime",
230
230
  "verify:verify-scripts-tracked": "node ../polyglot-smoke/check-verify-scripts-tracked.js",
231
231
  "verify:parity-defect-sync": "node ../polyglot-smoke/check-parity-defect-sync.js",
@@ -248,6 +248,8 @@
248
248
  "verify:runtime-defense-libraries": "node ../../tools/corpus-protect/runtime-defense-libraries.js",
249
249
  "verify:internal-links": "node ../polyglot-smoke/check-internal-links.js",
250
250
  "verify:seo": "node ../polyglot-smoke/check-public-seo.js",
251
+ "verify:sitemap-freshness": "node ../polyglot-smoke/check-sitemap-freshness.js",
252
+ "verify:plan-numbers": "node ../polyglot-smoke/check-plan-numbers.js",
251
253
  "verify:faq-visibility": "node ../polyglot-smoke/check-faq-visibility.js",
252
254
  "verify:artifact-claims": "node ../polyglot-smoke/check-public-artifact-claims.js",
253
255
  "verify:artifact-claims-live": "node ../polyglot-smoke/check-public-artifact-claims.js --live",