jso-protector 0.4.7 → 0.4.8
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 +18 -0
- package/bin/jso-protector.js +10 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.8 - 2026-09-01
|
|
4
|
+
|
|
5
|
+
The rate-limit message a first run actually sees.
|
|
6
|
+
|
|
7
|
+
- A keyless run that tripped the free-tier cap used to print
|
|
8
|
+
`API returned non-JSON response (429): The custom error module does not
|
|
9
|
+
recognize this error.` That sentence was IIS's, not ours: the server writes a
|
|
10
|
+
proper JSON body, and IIS's custom-error module was discarding it before it
|
|
11
|
+
left the machine. Fixed server-side; the message now says which of the two
|
|
12
|
+
ceilings was hit and how to raise it.
|
|
13
|
+
- The CLI no longer appends its paid-plan hint to a 429. The word "limit" in a
|
|
14
|
+
rate-limit message matched the billing regexp, so someone with no account was
|
|
15
|
+
being told to go check their subscription state.
|
|
16
|
+
- `--help` now shows the positional form. `jso-protector app.js` has always
|
|
17
|
+
worked and writes `app-obfuscated.js` beside the input - the same default the
|
|
18
|
+
competitor's CLI uses - but nothing in the help output said so, so anyone
|
|
19
|
+
arriving with that muscle memory had no way to find it.
|
|
20
|
+
|
|
3
21
|
## 0.4.7 - 2026-08-31
|
|
4
22
|
|
|
5
23
|
Attribution only. No behaviour changes.
|
package/bin/jso-protector.js
CHANGED
|
@@ -889,6 +889,9 @@ function printHelp() {
|
|
|
889
889
|
process.stdout.write(`jso-protector
|
|
890
890
|
|
|
891
891
|
Usage:
|
|
892
|
+
jso-protector app.js Writes app-obfuscated.js beside it
|
|
893
|
+
jso-protector app.js protected/app.js Input and output as positional paths
|
|
894
|
+
jso-protector app.js --output protected.js
|
|
892
895
|
jso-protector --config jso.config.json
|
|
893
896
|
jso-protector --input dist --output dist-protected
|
|
894
897
|
jso-protector --stdin --stdout --file-name app.js
|
|
@@ -4645,6 +4648,13 @@ function formatApiFailure(details = {}, secrets = []) {
|
|
|
4645
4648
|
}
|
|
4646
4649
|
|
|
4647
4650
|
function apiFailureHint(details = {}) {
|
|
4651
|
+
// A 429 already carries a complete, actionable message from the server
|
|
4652
|
+
// (which ceiling was hit, how long to wait, and that signing in raises it).
|
|
4653
|
+
// Appending the billing hint on top of it was actively misleading: the
|
|
4654
|
+
// word "limit" in a rate-limit message matched the paid-plan regexp below,
|
|
4655
|
+
// so a keyless first run was told to "check account status, plan limits,
|
|
4656
|
+
// credits, or subscription state" for a quota no account would fix.
|
|
4657
|
+
if (details.status === 429) return "";
|
|
4648
4658
|
const text = `${details.status || ""} ${details.type || ""} ${details.message || ""}`.toLowerCase();
|
|
4649
4659
|
if (/payment|paid|plan|subscription|credit|quota|limit|expired|billing|over[- ]?limit/.test(text)) {
|
|
4650
4660
|
return "Paid API access is enforced by the hosted API; check account status, plan limits, credits, or subscription state.";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jso-protector",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
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",
|