jso-protector 0.4.12 → 0.4.13

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/README.md CHANGED
@@ -1,13 +1,23 @@
1
- # jso-protector
1
+ # JavaScript Obfuscator
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/jso-protector.svg)](https://www.npmjs.com/package/jso-protector)
3
+ [![npm version](https://img.shields.io/npm/v/javascriptobfuscator-com.svg)](https://www.npmjs.com/package/javascriptobfuscator-com)
4
4
  [![tests](https://github.com/richtexteditor/jso-protector/actions/workflows/test.yml/badge.svg)](https://github.com/richtexteditor/jso-protector/actions/workflows/test.yml)
5
- [![node](https://img.shields.io/node/v/jso-protector.svg)](https://www.npmjs.com/package/jso-protector)
5
+ [![node](https://img.shields.io/node/v/javascriptobfuscator-com.svg)](https://www.npmjs.com/package/javascriptobfuscator-com)
6
6
 
7
7
  Obfuscate and protect JavaScript as part of your build: a dependency-free CLI,
8
8
  Node API, and plugins for webpack, Vite, Rollup, esbuild, Next.js, Metro, and
9
9
  the rest of the toolchain.
10
10
 
11
+ > **Two package names, one build.** Install **`javascriptobfuscator-com`** - that
12
+ > is the canonical name. `jso-protector` is the original name and publishes the
13
+ > same code, so existing installs keep working. Whichever you install, the CLI is
14
+ > on your PATH as both `javascriptobfuscator` and `jso-protector`.
15
+ >
16
+ > The bare name `javascriptobfuscator` is not available on npm: the registry
17
+ > refuses it as too similar to an existing package, so `npx javascriptobfuscator`
18
+ > only works once the package is installed in the project. Use
19
+ > `npx javascriptobfuscator-com` for a one-off run with nothing installed.
20
+
11
21
  ```bash
12
22
  npm install --save-dev javascriptobfuscator-com
13
23
  npx javascriptobfuscator --input dist --output dist-protected
package/RELEASE.md CHANGED
@@ -65,6 +65,18 @@ disagree. Work in this order:
65
65
  8. **Publish**: `npm publish`. Then install from the registry into a scratch
66
66
  directory and exercise the new behaviour end to end — a green local tree
67
67
  proves the tarball, not the release.
68
+ 9. **Push the public repo.** `github.com/richtexteditor/jso-protector` is the
69
+ source people find from the npm page's repository link, and NOTHING in this
70
+ loop used to update it -- which is the whole reason it drifts. It was at
71
+ 0.4.10 while npm served 0.4.12, and the 0.4.12 release itself widened the
72
+ gap by one because there was no step here to stop it.
73
+
74
+ The second name, `javascriptobfuscator-com`, is published from the same tree
75
+ with only `name` swapped (verified by diffing the two registry manifests:
76
+ `name` is the only field that differs). It has no repo of its own.
77
+
78
+ The push is an outward-facing action on a public surface, so it is a
79
+ deliberate step, not something to fold into `npm publish`.
68
80
 
69
81
  ## What ships in the tarball
70
82
 
@@ -4657,6 +4657,18 @@ function apiFailureHint(details = {}) {
4657
4657
  // so a keyless first run was told to "check account status, plan limits,
4658
4658
  // credits, or subscription state" for a quota no account would fix.
4659
4659
  if (details.status === 429) return "";
4660
+
4661
+ // Same reasoning, second case: a PLAN REFUSAL from the server already names
4662
+ // the feature, the plan that covers it, the upgrade URL, and - since
4663
+ // 2026-09-05 - how to keep working without the option on the current plan.
4664
+ // Appending "check account status, plan limits, credits, or subscription
4665
+ // state" after that tells a reader who has just been told exactly what to do
4666
+ // to go and look for something vague instead.
4667
+ //
4668
+ // Detected by the upgrade link rather than by the wording, because the
4669
+ // wording varies per feature while every plan refusal built by
4670
+ // Plans.cs carries that URL.
4671
+ if (/premium-membership\.aspx/.test(details.message || "")) return "";
4660
4672
  const text = `${details.status || ""} ${details.type || ""} ${details.message || ""}`.toLowerCase();
4661
4673
  if (/payment|paid|plan|subscription|credit|quota|limit|expired|billing|over[- ]?limit/.test(text)) {
4662
4674
  return "Paid API access is enforced by the hosted API; check account status, plan limits, credits, or subscription state.";
@@ -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.12
42
+ npm install --save-dev javascriptobfuscator-com@0.4.13
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.12",
3
+ "version": "0.4.13",
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: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",
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:changelog-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:live-changelog": "node ../polyglot-smoke/check-changelog-freshness.js --live",
252
+ "verify:changelog-freshness": "node ../polyglot-smoke/check-changelog-freshness.js",
251
253
  "verify:sitemap-freshness": "node ../polyglot-smoke/check-sitemap-freshness.js",
252
254
  "verify:plan-numbers": "node ../polyglot-smoke/check-plan-numbers.js",
253
255
  "verify:faq-visibility": "node ../polyglot-smoke/check-faq-visibility.js",