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/ai.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
// JSO AI client. Wraps the four /v1/ai/* endpoints documented at
|
|
4
|
-
// https://
|
|
4
|
+
// https://javascriptobfuscator.com/Docs/AIApi.aspx
|
|
5
5
|
//
|
|
6
6
|
// Same auth model as the protect API: { apiKey, apiPassword } (base64
|
|
7
7
|
// values from the dashboard). Reads JSO_API_KEY / JSO_API_PASSWORD from
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
const http = require("node:http");
|
|
14
14
|
const https = require("node:https");
|
|
15
15
|
|
|
16
|
-
const DEFAULT_ENDPOINT = "https://
|
|
16
|
+
const DEFAULT_ENDPOINT = "https://javascriptobfuscator.com";
|
|
17
17
|
|
|
18
18
|
function resolveCredentials(opts = {}) {
|
|
19
19
|
const apiKey = opts.apiKey || process.env.JSO_API_KEY;
|