jso-protector 0.4.11 → 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/CHANGELOG.md +38 -0
- package/README.md +1178 -1168
- package/RELEASE.md +12 -0
- package/bin/jso-protector.js +13 -0
- package/examples/README.md +1 -1
- package/package.json +6 -2
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
|
|
package/bin/jso-protector.js
CHANGED
|
@@ -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.";
|
|
@@ -12343,6 +12355,7 @@ async function main(argv = process.argv.slice(2)) {
|
|
|
12343
12355
|
if (isAnonymousRun(config) && !args.json) {
|
|
12344
12356
|
process.stderr.write(
|
|
12345
12357
|
"No credentials found - running anonymously on the free tier (up to 20 files, 200 KB per request, no VM protection)." + "\n" +
|
|
12358
|
+
"Free-tier output carries a 7-line header comment naming this product. Paid plans do not." + "\n" +
|
|
12346
12359
|
"Anonymous runs are capped at 5 per hour. A free account raises that to 100 per hour:" + "\n" +
|
|
12347
12360
|
" https://javascriptobfuscator.com/register.aspx?src=cli-anon" + "\n" +
|
|
12348
12361
|
"Already have an account? Run `javascriptobfuscator login`." + "\n\n");
|
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.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.
|
|
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: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: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,10 @@
|
|
|
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",
|
|
253
|
+
"verify:sitemap-freshness": "node ../polyglot-smoke/check-sitemap-freshness.js",
|
|
254
|
+
"verify:plan-numbers": "node ../polyglot-smoke/check-plan-numbers.js",
|
|
251
255
|
"verify:faq-visibility": "node ../polyglot-smoke/check-faq-visibility.js",
|
|
252
256
|
"verify:artifact-claims": "node ../polyglot-smoke/check-public-artifact-claims.js",
|
|
253
257
|
"verify:artifact-claims-live": "node ../polyglot-smoke/check-public-artifact-claims.js --live",
|