jso-protector 0.2.0 → 0.4.1
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 +108 -0
- package/MIGRATION.md +27 -2
- package/README.md +203 -75
- package/RELEASE.md +58 -65
- package/ai.js +2 -2
- package/bin/jso-protector.js +852 -119
- package/ci/Jenkinsfile +5 -4
- package/ci/argo-workflows.yaml +5 -4
- package/ci/azure-pipelines.yml +5 -4
- package/ci/bitbucket-pipelines.yml +6 -5
- package/ci/buildkite.yml +5 -4
- package/ci/circleci.yml +5 -4
- package/ci/drone.yml +5 -4
- package/ci/github-actions.yml +5 -4
- package/ci/gitlab-ci.yml +5 -4
- package/ci/gocd.yaml +5 -4
- package/ci/teamcity.kts +6 -5
- package/ci/tekton.yaml +5 -4
- package/ci/verify-examples.js +80 -0
- package/ci/verify-package.js +8 -1
- package/ci/woodpecker.yml +6 -5
- package/examples/README.md +6 -2
- package/examples/curl/README.md +2 -2
- package/examples/helm/README.md +1 -1
- package/examples/pre-commit/README.md +2 -2
- package/examples/react-native/README.md +3 -3
- package/index.d.ts +26 -2
- package/index.js +135 -12
- package/jso.config.example.json +1 -1
- package/jso.config.schema.json +164 -42
- package/package.json +60 -6
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jso-protector",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.4.1",
|
|
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",
|
|
7
|
-
"homepage": "https://
|
|
7
|
+
"homepage": "https://javascriptobfuscator.com/docs/npmcli.aspx",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"javascript-obfuscator",
|
|
10
10
|
"obfuscation",
|
|
@@ -25,7 +25,17 @@
|
|
|
25
25
|
"rollup",
|
|
26
26
|
"esbuild",
|
|
27
27
|
"gulp",
|
|
28
|
-
"grunt"
|
|
28
|
+
"grunt",
|
|
29
|
+
"obfuscator",
|
|
30
|
+
"javascript-obfuscation",
|
|
31
|
+
"code-protection",
|
|
32
|
+
"source-code-protection",
|
|
33
|
+
"anti-tamper",
|
|
34
|
+
"minify",
|
|
35
|
+
"protect",
|
|
36
|
+
"typescript",
|
|
37
|
+
"nodejs",
|
|
38
|
+
"build-tool"
|
|
29
39
|
],
|
|
30
40
|
"files": [
|
|
31
41
|
"bin/",
|
|
@@ -204,18 +214,60 @@
|
|
|
204
214
|
"scripts": {
|
|
205
215
|
"smoke": "node ./bin/jso-protector.js --help && node ./bin/jso-protector.js --config ./jso.config.example.json --dry-run --json",
|
|
206
216
|
"smoke:api": "node ./bin/jso-protector.js --config ./jso.config.example.json --json",
|
|
207
|
-
"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/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",
|
|
208
|
-
|
|
217
|
+
"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",
|
|
218
|
+
"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",
|
|
219
|
+
"verify:release": "npm run verify && npm run verify:corpus-protect && npm run verify:corpus-runtime",
|
|
220
|
+
"verify:verify-scripts-tracked": "node ../polyglot-smoke/check-verify-scripts-tracked.js",
|
|
221
|
+
"verify:parity-defect-sync": "node ../polyglot-smoke/check-parity-defect-sync.js",
|
|
209
222
|
"verify:aspnet-bom": "node ../polyglot-smoke/check-aspnet-bom.js",
|
|
210
223
|
"verify:aspnet-compile": "node ../polyglot-smoke/check-aspnet-compile.js",
|
|
211
224
|
"verify:endrequest-guard": "node ../polyglot-smoke/check-endrequest-guard.js",
|
|
225
|
+
"verify:payment-row-completeness": "node ../polyglot-smoke/check-payment-row-completeness.js",
|
|
226
|
+
"verify:health-readiness": "node ../polyglot-smoke/check-health-readiness.js",
|
|
227
|
+
"verify:live-health": "node ../polyglot-smoke/check-production-health.js",
|
|
228
|
+
"verify:live-seo": "node ../polyglot-smoke/check-live-seo.js",
|
|
229
|
+
"verify:legacy-soap-security": "node ../polyglot-smoke/check-legacy-soap-security.js",
|
|
230
|
+
"verify:online-demo-security": "node ../polyglot-smoke/check-online-demo-security.js",
|
|
212
231
|
"verify:parser-engine": "node ../polyglot-smoke/check-parser-engine.js",
|
|
232
|
+
"verify:package-closure": "bash ../../tools/verify-package-closure.sh",
|
|
233
|
+
"verify:package-behaviour": "bash ../../tools/verify-package-behaviour.sh",
|
|
213
234
|
"verify:emit-validation": "node ../../tools/emit-validation/run.js",
|
|
235
|
+
"verify:emit-validation-modern": "node ../../tools/emit-validation/run.js modern",
|
|
214
236
|
"verify:corpus-protect": "node ../../tools/corpus-protect/run.js",
|
|
237
|
+
"verify:corpus-runtime": "node ../../tools/corpus-protect/runtime-smoke.js",
|
|
238
|
+
"verify:runtime-defense-libraries": "node ../../tools/corpus-protect/runtime-defense-libraries.js",
|
|
215
239
|
"verify:internal-links": "node ../polyglot-smoke/check-internal-links.js",
|
|
216
240
|
"verify:seo": "node ../polyglot-smoke/check-public-seo.js",
|
|
241
|
+
"verify:faq-visibility": "node ../polyglot-smoke/check-faq-visibility.js",
|
|
242
|
+
"verify:artifact-claims": "node ../polyglot-smoke/check-public-artifact-claims.js",
|
|
243
|
+
"verify:artifact-claims-live": "node ../polyglot-smoke/check-public-artifact-claims.js --live",
|
|
217
244
|
"verify:runtime-dashboard": "node ../polyglot-smoke/check-runtime-dashboard.js",
|
|
218
245
|
"verify:payment-page": "node ../polyglot-smoke/check-payment-page-evidence.js",
|
|
246
|
+
"verify:payment-activation": "node ../polyglot-smoke/check-payment-activation-security.js",
|
|
247
|
+
"verify:account-recovery": "node ../polyglot-smoke/check-account-recovery-security.js",
|
|
248
|
+
"verify:registration": "node ../polyglot-smoke/check-registration-security.js",
|
|
249
|
+
"verify:admin-auth": "node ../polyglot-smoke/check-admin-auth-security.js",
|
|
250
|
+
"verify:http-api-auth": "node ../polyglot-smoke/check-http-api-auth-security.js",
|
|
251
|
+
"verify:request-body-limits": "node ../polyglot-smoke/check-request-body-limits.js",
|
|
252
|
+
"verify:public-form-security": "node ../polyglot-smoke/check-public-form-security.js",
|
|
253
|
+
"verify:operational-logs": "node ../polyglot-smoke/check-operational-log-governance.js",
|
|
254
|
+
"verify:richtexteditor-surface": "node ../polyglot-smoke/check-richtexteditor-surface.js",
|
|
255
|
+
"verify:dashboard-resource-governance": "node ../polyglot-smoke/check-dashboard-resource-governance.js",
|
|
256
|
+
"verify:dashboard-diagnostic-surface": "node ../polyglot-smoke/check-dashboard-diagnostic-surface.js",
|
|
257
|
+
"verify:web-integrity-policy": "node ../polyglot-smoke/check-web-integrity-policy-security.js",
|
|
258
|
+
"verify:entitlements": "node ../polyglot-smoke/check-entitlement-consistency.js",
|
|
259
|
+
"verify:enterprise-governance": "node ../polyglot-smoke/check-enterprise-governance-security.js",
|
|
260
|
+
"verify:database-migrations": "node ../polyglot-smoke/check-database-migration-drift.js",
|
|
261
|
+
"verify:source-secrets": "node ../polyglot-smoke/check-source-secret-discipline.js",
|
|
262
|
+
"verify:ignored-shipping-secrets": "node ../polyglot-smoke/check-ignored-shipping-secrets.js",
|
|
263
|
+
"verify:winforms-runtime-floor": "node ../polyglot-smoke/check-winforms-runtime-floor.js",
|
|
264
|
+
"verify:ai-billing": "node ../polyglot-smoke/check-ai-billing-security.js",
|
|
265
|
+
"verify:ai-key-security": "node ../polyglot-smoke/check-ai-key-security.js",
|
|
266
|
+
"verify:ajax-transport": "node ../polyglot-smoke/check-ajax-transport-security.js",
|
|
267
|
+
"verify:js-safe-integer-ids": "node ../polyglot-smoke/check-js-safe-integer-ids.js",
|
|
268
|
+
"verify:mixedfile-roundtrip": "node ../../tools/mixedfile-roundtrip/run.js",
|
|
269
|
+
"verify:mixedfile-protect": "node ../../tools/mixedfile-protect/run.js",
|
|
270
|
+
"verify:local-report": "node ../../tools/local-report/run.js",
|
|
219
271
|
"verify:competitor-gap": "node ../polyglot-smoke/check-competitor-gap-report.js",
|
|
220
272
|
"verify:source-map-evidence": "node ../polyglot-smoke/check-source-map-evidence.js",
|
|
221
273
|
"verify:migration-review": "node ../polyglot-smoke/check-migration-review.js",
|
|
@@ -224,9 +276,11 @@
|
|
|
224
276
|
"verify:vm-proof": "node ../polyglot-smoke/check-vm-proof-pack.js",
|
|
225
277
|
"verify:deployment-hygiene": "node ../polyglot-smoke/check-archive-hygiene.js",
|
|
226
278
|
"verify:download-artifacts": "node ../polyglot-smoke/check-download-artifacts.js",
|
|
279
|
+
"verify:download-examples": "node ../polyglot-smoke/check-download-examples.js",
|
|
227
280
|
"verify:copy-discipline": "node ../polyglot-smoke/check-public-copy-discipline.js",
|
|
228
281
|
"verify:github-action": "node ../polyglot-smoke/check-github-action.js",
|
|
229
282
|
"verify:package": "node ./ci/verify-package.js",
|
|
283
|
+
"verify:examples": "node ./ci/verify-examples.js",
|
|
230
284
|
"verify:publish-metadata": "node ./ci/verify-publish-metadata.js --allow-local",
|
|
231
285
|
"verify:publish-ready": "node ./ci/verify-publish-metadata.js",
|
|
232
286
|
"verify:ci": "node ./ci/verify-templates.js",
|