jso-protector 0.4.7 → 0.4.9
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 +34 -0
- package/README.md +687 -673
- package/bin/jso-protector.js +10 -0
- package/package.json +1 -1
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.9",
|
|
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",
|