jso-protector 0.4.2 → 0.4.4

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 CHANGED
@@ -1,5 +1,37 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.4 - 2026-08-31
4
+
5
+ - **`javascriptobfuscator login` saves your credentials once, for every project
6
+ on the machine.** Getting a first protected build used to take about seven
7
+ steps: install, hit the error, find the site, register, verify email, locate
8
+ the dashboard, copy two values, work out two platform-specific environment
9
+ variable names, set them, and run again - then set them again in the next
10
+ shell. `login` opens the dashboard, takes the two values (the password is not
11
+ echoed), and stores them in `~/.jso-protector/credentials.json`.
12
+ - `javascriptobfuscator logout` removes them.
13
+ - Stored credentials are resolved **last**, after an explicit flag, a project
14
+ config and the environment variables, so no existing CI setup changes
15
+ behaviour.
16
+ - The missing-credential errors now name `login` as the fastest fix.
17
+ - The store is written 0600. That is real protection on POSIX; Windows does not
18
+ honour the mode, so there it is only as protected as your user profile - the
19
+ same position as `~/.npmrc`.
20
+
21
+ ## 0.4.3 - 2026-08-30
22
+
23
+ Error messages only. No behaviour changes.
24
+
25
+ - **The "Missing API key" error now says where to get one.** It previously named
26
+ three places to *put* a key and no place to *obtain* one, which left a first-time
27
+ user with a dead end: measured against `javascript-obfuscator`, their first
28
+ command emits working protected output while ours printed this error. The
29
+ message now links the dashboard page that issues a free key, and the npm setup
30
+ guide. Same for "Missing API password", which is shown beside the key.
31
+ - Applied at all six sites - the protect path, `--doctor`, and config validation -
32
+ so the guidance is the same wherever you hit it.
33
+ - Also published under the package's new name, `javascriptobfuscator-com`.
34
+
3
35
  ## 0.4.2 - 2026-08-27
4
36
 
5
37
  Metadata only. No behaviour changes.
package/LICENSE CHANGED
@@ -54,7 +54,7 @@ open-source licence.
54
54
  Some functionality transmits source code to the JavaScript Obfuscator hosted
55
55
  API and requires a valid, current subscription. Your use of those features is
56
56
  additionally governed by the service terms published at
57
- https://www.javascriptobfuscator.com/. Nothing in this licence grants access
57
+ https://javascriptobfuscator.com/. Nothing in this licence grants access
58
58
  to the hosted service.
59
59
 
60
60
  5. NO WARRANTY
@@ -87,4 +87,4 @@ open-source licence.
87
87
  This licence is governed by the laws of the jurisdiction in which the
88
88
  copyright holder is established, without regard to conflict-of-law rules.
89
89
 
90
- Questions about licensing: https://www.javascriptobfuscator.com/
90
+ Questions about licensing: https://javascriptobfuscator.com/
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # jso-protector
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/jso-protector.svg)](https://www.npmjs.com/package/jso-protector)
4
+ [![tests](https://github.com/richtexteditor/jso-protector/actions/workflows/test.yml/badge.svg)](https://github.com/richtexteditor/jso-protector/actions/workflows/test.yml)
5
+ [![node](https://img.shields.io/node/v/jso-protector.svg)](https://www.npmjs.com/package/jso-protector)
6
+
3
7
  Obfuscate and protect JavaScript as part of your build: a dependency-free CLI,
4
8
  Node API, and plugins for webpack, Vite, Rollup, esbuild, Next.js, Metro, and
5
9
  the rest of the toolchain.
@@ -114,8 +118,8 @@ Two CLI flags help wire `jso-protector` into a CI pipeline that has to debug pro
114
118
  Upload `dist-protected/jso-report.json` as a build artifact alongside the protected JS so the demangling map is available wherever crash triage happens. For VM beta reviews, `--verify-vm-proof` checks that the source-free report shows `UseVMProtection`, `VMProtectionApplied`, a non-zero virtualized function count, and no unresolved VM warnings. `--vm-proof-pack` turns the same report into a Markdown or JSON reviewer packet with build identity, release label, polymorphism fingerprint, VM pass/fail checklist, review decision, warnings, hot-path/cold-path guidance, recommendations, and a VM Proof Review Assistant for BYO AI or internal reviewers.
115
119
  For AI-resistance reviews, `--ai-resistance-evidence` turns the same source-free report into a current evidence checklist: build identity, strong protection options, optional VM proof, runtime-defense evidence, compatibility evidence, a non-scoring attacker-model review matrix, review decision, claim boundaries, a Review Assistant Packet for BYO AI or internal reviewers, and a clear `scoreStatus` that says the Resistance Score is still planned. Add `--ai-resistance-evidence-output reports/ai-resistance-evidence.md` for a reviewer artifact, `--json` for machine-readable evidence, and `--require-vm-proof` when VM-backed evidence must be a hard CI gate.
116
120
 
117
- The [JSO GitHub Action](https://github.com/marketplace/actions/javascript-obfuscator)
118
- wraps the saved-report workflow too: `report-path`, `vm-proof-pack-report`,
121
+ The GitHub Action that ships in this repository (`ci/github-actions.yml`, and
122
+ the `jso-github-action` package) wraps the saved-report workflow too: `report-path`, `vm-proof-pack-report`,
119
123
  and `ai-resistance-evidence-report` outputs let CI upload source-free reviewer
120
124
  artifacts beside the protected build, while `build-id` and
121
125
  `polymorphism-fingerprint` remain available for runtime crash correlation.
@@ -332,7 +336,25 @@ Keep billing, entitlement checks, plan limits, and API secrets on the server sid
332
336
 
333
337
  If the hosted API rejects a request, the CLI reports dashboard credential hints for authentication failures and account/plan/credit guidance for entitlement failures. API keys and passwords are redacted from error messages before they reach terminal logs.
334
338
 
335
- Set credentials from the dashboard:
339
+ ### Sign in once
340
+
341
+ ```bash
342
+ npx javascriptobfuscator login
343
+ ```
344
+
345
+ This opens the dashboard, takes the API Key and API Password (the password is
346
+ not echoed), and stores them in `~/.jso-protector/credentials.json` for every
347
+ project on the machine. `npx javascriptobfuscator logout` removes them.
348
+
349
+ The store is written `0600`. That is real protection on POSIX; Windows does not
350
+ honour the mode, so there the file is only as protected as your user profile
351
+ directory - the same position as `~/.npmrc`.
352
+
353
+ ### Or set them per shell
354
+
355
+ Stored credentials are read **last**, so an explicit flag, a project config, or
356
+ these environment variables always win - a CI setup is unaffected by whatever a
357
+ developer has logged in with locally.
336
358
 
337
359
  ```bash
338
360
  set JSO_API_KEY=base64-api-key-from-dashboard
@@ -1177,7 +1199,7 @@ jso ai compat-scan --config jso.config.json --fail-on error
1177
1199
  jso ai compat-scan --config jso.config.json --max-files 50 # cap quota burn on huge repos
1178
1200
  ```
1179
1201
 
1180
- Both paths hit the same `/v1/ai/compat-check` endpoint. `--ai-precheck` just folds it into the obfuscation flow so CI doesn't need a second step. Requires a JSO API key with AI access 鈥?FreeTrial works for testing the wire format; Basic and up for production usage. See the [JSO AI quick start](https://javascriptobfuscator.com/Docs/AIQuickStart.aspx) for tier details.
1202
+ Both paths hit the same `/v1/ai/compat-check` endpoint. `--ai-precheck` just folds it into the obfuscation flow so CI doesn't need a second step. Requires a JSO API key with AI access 鈥?FreeTrial works for testing the wire format; Basic and up for production usage. See the [JSO AI quick start](https://javascriptobfuscator.com/docs/aiquickstart.aspx) for tier details.
1181
1203
 
1182
1204
  ### AI usage and BYO key health
1183
1205
 
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://javascriptobfuscator.com/Docs/AIApi.aspx
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
@@ -898,6 +898,8 @@ Usage:
898
898
  jso-protector --payment-page-headers-from-har reports/checkout.har --payment-page-headers-baseline reports/payment-page-headers.baseline.json --payment-page-headers-output reports/payment-page-headers.json
899
899
  jso-protector --script-inventory-audit reports/payment-script-inventory.json --runtime-inventory-snapshot reports/runtime-inventory.json
900
900
  jso-protector --init
901
+ javascriptobfuscator login Sign in once and save credentials for this machine
902
+ javascriptobfuscator logout Remove the saved credentials
901
903
 
902
904
  Options:
903
905
  --config <file> Config file path. Supports JSON, CommonJS .cjs/.js, and ESM .mjs/.js files.
@@ -2340,11 +2342,23 @@ function mergeConfig(config, args = {}) {
2340
2342
  reservedNames: (args.reservedNames && args.reservedNames.length) ? args.reservedNames : config.reservedNames
2341
2343
  });
2342
2344
 
2345
+ // Credentials saved by `javascriptobfuscator login`. Deliberately LAST in the
2346
+ // chain: an explicit flag, a project config, or a CI environment variable must
2347
+ // always win over a developer's machine-wide login.
2348
+ let _stored;
2349
+ const storedCredentials = () => {
2350
+ if (_stored === undefined) {
2351
+ try { _stored = require("../credentials.js").readStored() || {}; }
2352
+ catch (err) { _stored = {}; }
2353
+ }
2354
+ return _stored;
2355
+ };
2356
+
2343
2357
  const merged = {
2344
2358
  mode: args.mode || config.mode || readEnv(["NODE_ENV"]) || null,
2345
2359
  endpoint: args.endpoint || config.endpoint || readEnv(["JSO_ENDPOINT", "JAVASCRIPT_OBFUSCATOR_ENDPOINT"]) || DEFAULT_ENDPOINT,
2346
- apiKey: resolveEnv(args.apiKey || config.apiKey || readEnv(["JSO_API_KEY", "JAVASCRIPT_OBFUSCATOR_API_KEY"]) || ""),
2347
- apiPassword: resolveEnv(args.apiPassword || config.apiPassword || readEnv(["JSO_API_PASSWORD", "JAVASCRIPT_OBFUSCATOR_API_PASSWORD"]) || ""),
2360
+ apiKey: resolveEnv(args.apiKey || config.apiKey || readEnv(["JSO_API_KEY", "JAVASCRIPT_OBFUSCATOR_API_KEY"]) || storedCredentials().apiKey || ""),
2361
+ apiPassword: resolveEnv(args.apiPassword || config.apiPassword || readEnv(["JSO_API_PASSWORD", "JAVASCRIPT_OBFUSCATOR_API_PASSWORD"]) || storedCredentials().apiPassword || ""),
2348
2362
  projectName: config.projectName || "jso-protector",
2349
2363
  preset,
2350
2364
  input: args.input || config.input || "dist",
@@ -2656,7 +2670,7 @@ function initConfig(args = {}) {
2656
2670
  }), null, 2)}\n`, "utf8");
2657
2671
  process.stdout.write(`Created ${target}\n`);
2658
2672
  process.stdout.write(`Template: ${templateName}\n`);
2659
- process.stdout.write("This package is local-only. Install it from a workspace path, file: dependency, or internal npm pack tarball.\n");
2673
+ process.stdout.write("Install: npm install --save-dev jso-protector\n");
2660
2674
  process.stdout.write("Next: jso-protector --config jso.config.json --release-check --json\n");
2661
2675
  }
2662
2676
 
@@ -4667,8 +4681,8 @@ function normalizeName(name) {
4667
4681
  }
4668
4682
 
4669
4683
  function assertReady(config) {
4670
- if (!config.apiKey) throw new Error("Missing API key. Set JSO_API_KEY, JAVASCRIPT_OBFUSCATOR_API_KEY, or apiKey in config.");
4671
- if (!config.apiPassword) throw new Error("Missing API password. Set JSO_API_PASSWORD, JAVASCRIPT_OBFUSCATOR_API_PASSWORD, or apiPassword in config.");
4684
+ if (!config.apiKey) throw new Error("Missing API key. Run `javascriptobfuscator login` to sign in and save credentials, or create a key at https://javascriptobfuscator.com/dashboard/APIKeys.aspx and set JSO_API_KEY.");
4685
+ if (!config.apiPassword) throw new Error("Missing API password. Run `javascriptobfuscator login` to sign in and save credentials, or copy it from https://javascriptobfuscator.com/dashboard/APIKeys.aspx and set JSO_API_PASSWORD.");
4672
4686
  }
4673
4687
 
4674
4688
  function sha256(value) {
@@ -4849,8 +4863,8 @@ async function runDoctor(config, args = {}) {
4849
4863
  const checks = [];
4850
4864
  const limitations = collectCompetitorLimitations(args.rawConfig && typeof args.rawConfig === "object" ? args.rawConfig : config, args);
4851
4865
  addDoctorCheck(checks, "endpoint", isValidUrl(config.endpoint), `Endpoint: ${config.endpoint}`, "Endpoint must be a valid URL.");
4852
- addDoctorCheck(checks, "apiKey", !!config.apiKey, "API key is present.", "Missing API key. Set JSO_API_KEY, JAVASCRIPT_OBFUSCATOR_API_KEY, or apiKey in config.");
4853
- addDoctorCheck(checks, "apiPassword", !!config.apiPassword, "API password is present.", "Missing API password. Set JSO_API_PASSWORD, JAVASCRIPT_OBFUSCATOR_API_PASSWORD, or apiPassword in config.");
4866
+ addDoctorCheck(checks, "apiKey", !!config.apiKey, "API key is present.", "Missing API key. Run `javascriptobfuscator login` to sign in and save credentials, or create a key at https://javascriptobfuscator.com/dashboard/APIKeys.aspx and set JSO_API_KEY.");
4867
+ addDoctorCheck(checks, "apiPassword", !!config.apiPassword, "API password is present.", "Missing API password. Run `javascriptobfuscator login` to sign in and save credentials, or copy it from https://javascriptobfuscator.com/dashboard/APIKeys.aspx and set JSO_API_PASSWORD.");
4854
4868
  addDoctorCheck(checks, "preset", true, `Preset: ${config.preset}`);
4855
4869
  addDoctorCheck(checks, "options", Object.keys(config.options || {}).length > 0, `${Object.keys(config.options || {}).length} option(s) enabled.`, "No protection options are enabled.");
4856
4870
 
@@ -7119,8 +7133,8 @@ function validateProtectionConfig(config, args = {}) {
7119
7133
  }
7120
7134
 
7121
7135
  addValidationCheck(checks, "endpoint", isValidUrl(resolved.endpoint) ? "ok" : "error", isValidUrl(resolved.endpoint) ? `Endpoint: ${resolved.endpoint}` : "Endpoint must be a valid HTTP or HTTPS URL.");
7122
- addValidationCheck(checks, "apiKey", resolved.apiKey ? "ok" : "error", resolved.apiKey ? "API key is present." : "Missing API key. Set JSO_API_KEY, JAVASCRIPT_OBFUSCATOR_API_KEY, or apiKey in config.");
7123
- addValidationCheck(checks, "apiPassword", resolved.apiPassword ? "ok" : "error", resolved.apiPassword ? "API password is present." : "Missing API password. Set JSO_API_PASSWORD, JAVASCRIPT_OBFUSCATOR_API_PASSWORD, or apiPassword in config.");
7136
+ addValidationCheck(checks, "apiKey", resolved.apiKey ? "ok" : "error", resolved.apiKey ? "API key is present." : "Missing API key. Run `javascriptobfuscator login` to sign in and save credentials, or create a key at https://javascriptobfuscator.com/dashboard/APIKeys.aspx and set JSO_API_KEY.");
7137
+ addValidationCheck(checks, "apiPassword", resolved.apiPassword ? "ok" : "error", resolved.apiPassword ? "API password is present." : "Missing API password. Run `javascriptobfuscator login` to sign in and save credentials, or copy it from https://javascriptobfuscator.com/dashboard/APIKeys.aspx and set JSO_API_PASSWORD.");
7124
7138
  addCredentialStorageValidation(checks, config, args);
7125
7139
  addValidationCheck(checks, "preset", "ok", `Preset: ${resolved.preset}`);
7126
7140
  addValidationCheck(checks, "paths", resolved.input && resolved.output ? "ok" : "error", resolved.input && resolved.output ? "Input and output paths are configured." : "Input and output paths must be configured.");
@@ -7647,26 +7661,20 @@ function writeVersion(json) {
7647
7661
 
7648
7662
  function writeLocalOnlyGuidance(json) {
7649
7663
  const guidance = {
7650
- ok: false,
7651
- sourceLeavesMachine: false,
7652
- npmPublished: false,
7653
- packageDistribution: "local-only",
7654
- message: "This package is intentionally local-only as a distribution artifact and is not published to npm. Install it from a workspace path, a file: dependency, or an internal npm pack tarball. The npm CLI and desktop app protect JavaScript through the hosted service. Use --dry-run, --validate-config, --release-check, --competitor-gap-report, and --doctor for local preflight only. If project policy requires source code to remain local during protection, current JavaScript Obfuscator protection workflows do not meet that requirement.",
7655
- localInstallCommands: [
7656
- "npm install --save-dev ./packages/jso-protector",
7657
- "npm install --save-dev ../packages/jso-protector",
7658
- "npm install --save-dev path/to/jso-protector-0.2.0.tgz"
7664
+ ok: true,
7665
+ sourceLeavesMachineByDefault: true,
7666
+ sourceCanStayLocal: true,
7667
+ localProtectionFlag: "--local",
7668
+ npmPublished: true,
7669
+ packageDistribution: "npm",
7670
+ message: "Protection runs through the hosted service by default: the files you select are sent to it. If your source must stay on your machine, run this CLI with --local, which uses the bundled jso-local executable and keeps source on-device; it still makes an online entitlement check, and VM bytecode protection remains a hosted step. Everything listed under offlinePreflightCommands runs entirely offline and sends nothing.",
7671
+ installCommands: [
7672
+ "npm install --save-dev jso-protector"
7659
7673
  ],
7660
- localPackageJsonDependency: {
7661
- devDependencies: {
7662
- "jso-protector": "file:../packages/jso-protector"
7663
- }
7664
- },
7665
- internalTarballCommands: [
7666
- "npm pack --json",
7667
- "npm install --save-dev path/to/jso-protector-0.2.0.tgz"
7674
+ localProtectionCommands: [
7675
+ "jso-protector --local --input dist --output dist-protected"
7668
7676
  ],
7669
- localPreflightCommands: [
7677
+ offlinePreflightCommands: [
7670
7678
  "jso-protector --config jso.config.json --release-check --json",
7671
7679
  "jso-protector --config jso.config.json --competitor-gap-report --json",
7672
7680
  "jso-protector --source-map-evidence dist-protected/jso-manifest.json --source-map-evidence-output reports/source-map-evidence.md",
@@ -7680,12 +7688,16 @@ function writeLocalOnlyGuidance(json) {
7680
7688
  return;
7681
7689
  }
7682
7690
  process.stdout.write(`${guidance.message}\n`);
7683
- process.stdout.write("Local install commands:\n");
7684
- for (const command of guidance.localInstallCommands) {
7691
+ process.stdout.write("Install:\n");
7692
+ for (const command of guidance.installCommands) {
7693
+ process.stdout.write(`- ${command}\n`);
7694
+ }
7695
+ process.stdout.write("Protect on this machine:\n");
7696
+ for (const command of guidance.localProtectionCommands) {
7685
7697
  process.stdout.write(`- ${command}\n`);
7686
7698
  }
7687
- process.stdout.write("Local preflight commands:\n");
7688
- for (const command of guidance.localPreflightCommands) {
7699
+ process.stdout.write("Offline preflight commands:\n");
7700
+ for (const command of guidance.offlinePreflightCommands) {
7689
7701
  process.stdout.write(`- ${command}\n`);
7690
7702
  }
7691
7703
  }
@@ -11816,6 +11828,19 @@ async function main(argv = process.argv.slice(2)) {
11816
11828
  // `jso ai <subcommand>` -- intercept before parseArgs so the AI
11817
11829
  // surface gets its own flag set without bloating the protect-side
11818
11830
  // parser. See ai-cli.js for the subcommand definitions.
11831
+ // `login` / `logout` -- a user-level credential store. Intercepted here for
11832
+ // the same reason as `ai`: it needs no protect-side flags. See credentials.js.
11833
+ if (argv.length > 0 && (argv[0] === "login" || argv[0] === "logout")) {
11834
+ const creds = require("../credentials.js");
11835
+ const code = argv[0] === "login" ? await creds.login(argv.slice(1)) : creds.logout();
11836
+ if (code !== 0) {
11837
+ const err = new Error("jso " + argv[0] + " exited with code " + code);
11838
+ err.exitCode = code;
11839
+ throw err;
11840
+ }
11841
+ return;
11842
+ }
11843
+
11819
11844
  if (argv.length > 0 && argv[0] === "ai") {
11820
11845
  const aiCli = require("../ai-cli.js");
11821
11846
  const code = await aiCli.main(argv.slice(1));
@@ -41,7 +41,10 @@ for (const file of jsonFiles) {
41
41
  }
42
42
 
43
43
  const readme = fs.readFileSync(path.join(examplesRoot, "README.md"), "utf8");
44
- if (!readme.includes(`npm install --save-dev jso-protector@${expectedVersion}`)) fail("examples README does not install the current public version");
44
+ // The package is published as `javascriptobfuscator-com` since 2026-08-30;
45
+ // `jso-protector` is the deprecated former name. Assert the CANONICAL name so
46
+ // this gate cannot go on enforcing a name we no longer tell customers to install.
47
+ if (!readme.includes(`npm install --save-dev javascriptobfuscator-com@${expectedVersion}`)) fail("examples README does not install the current public version under the canonical package name");
45
48
  if (readme.includes("intentionally not published to npm")) fail("examples README still says the public package is unpublished");
46
49
 
47
50
  const reactNativeReadme = fs.readFileSync(path.join(examplesRoot, "react-native", "README.md"), "utf8");
@@ -24,6 +24,7 @@ const REQUIRED_PACKED_FILES = [
24
24
  "bun.js",
25
25
  "browserify.d.ts",
26
26
  "browserify.js",
27
+ "credentials.js",
27
28
  "ci/azure-pipelines.yml",
28
29
  "ci/github-actions.yml",
29
30
  "ci/gitlab-ci.yml",
@@ -117,6 +118,18 @@ function exec(command, args, options = {}) {
117
118
  }
118
119
 
119
120
  function canSpawnChildren() {
121
+ // KNOWN COVERAGE GAP, deliberately left in place. Windows always takes the
122
+ // portable path, so the full verification - the half that installs the packed
123
+ // tarball and runs the CLI from it - never runs on the maintainer's machine.
124
+ // That is why three separate gates still asserting the pre-publication story
125
+ // ("not published to npm", "source can never stay local") survived here and
126
+ // were only caught when CI ran the real path on Linux.
127
+ //
128
+ // Making it run here is not a one-line change: npm is npm.cmd, which Node
129
+ // refuses to spawn without a shell since the 2024 argument-injection
130
+ // hardening, and shelling it changes how `npm pack --json` output arrives.
131
+ // Until someone does that properly, CI is the only place the full path runs -
132
+ // so a green local run is NOT evidence that this gate passes.
120
133
  if (process.platform === "win32") {
121
134
  return false;
122
135
  }
@@ -238,7 +251,13 @@ import protectTurbopackBuild from "jso-protector/turbopack";
238
251
  import viteProtector from "jso-protector/vite";
239
252
  import webpackProtector from "jso-protector/webpack";
240
253
  import webpackLoader from "jso-protector/webpack-loader";
241
- import schema from "jso-protector/schema" assert { type: "json" };
254
+ import { createRequire } from "node:module";
255
+ // Import attributes would be the natural way to read the JSON export, but the
256
+ // syntax changed under us: \`assert { type: "json" }\` was removed in Node 22 and
257
+ // \`with { type: "json" }\` only exists from 18.20 / 20.10. package.json says
258
+ // engines >=18, so neither spelling covers the whole supported range and
259
+ // createRequire does. Caught by CI on Node 22 after passing on Node 24 locally.
260
+ const schema = createRequire(import.meta.url)("jso-protector/schema");
242
261
 
243
262
  assert.equal(typeof api.obfuscate, "function");
244
263
  for (const entry of [
@@ -298,16 +317,21 @@ assert.equal(typeof schema.properties.endpoint, "object");
298
317
  }
299
318
 
300
319
  const localOnly = JSON.parse(exec(npm, ["exec", "--", "jso-protector", "--local-only", "--json"], { cwd: projectDir }));
320
+ // Third gate found pinning the pre-publication story, after the metadata
321
+ // guard and the CLI's own tests. It asserted the package could never keep
322
+ // source on the machine; --local has done exactly that since before 0.4.0.
301
323
  if (
302
- localOnly.sourceLeavesMachine !== false ||
303
- !Array.isArray(localOnly.localPreflightCommands) ||
304
- !localOnly.localPreflightCommands.some((command) => command.includes("--release-check --json")) ||
305
- !localOnly.localPreflightCommands.some((command) => command.includes("--competitor-gap-report --json"))
324
+ localOnly.npmPublished !== true ||
325
+ localOnly.sourceCanStayLocal !== true ||
326
+ localOnly.localProtectionFlag !== "--local" ||
327
+ !Array.isArray(localOnly.offlinePreflightCommands) ||
328
+ !localOnly.offlinePreflightCommands.some((command) => command.includes("--release-check --json")) ||
329
+ !localOnly.offlinePreflightCommands.some((command) => command.includes("--competitor-gap-report --json"))
306
330
  ) {
307
331
  throw new Error(`Local-only guidance output is wrong: ${JSON.stringify(localOnly)}`);
308
332
  }
309
- if (localOnly.npmPublished !== false || localOnly.packageDistribution !== "local-only" || !localOnly.localInstallCommands.some((command) => command.includes("./packages/jso-protector"))) {
310
- throw new Error(`Local package guidance output is wrong: ${JSON.stringify(localOnly)}`);
333
+ if (localOnly.packageDistribution !== "npm" || !localOnly.installCommands.some((command) => command === "npm install --save-dev jso-protector")) {
334
+ throw new Error(`Package distribution guidance output is wrong: ${JSON.stringify(localOnly)}`);
311
335
  }
312
336
 
313
337
  const samplePath = path.join(projectDir, "sample.js");
@@ -736,11 +760,15 @@ function verifyPublishMetadataGuard(packageDir) {
736
760
  if (report.format !== "jso-protector-publish-metadata") {
737
761
  throw new Error(`Publish metadata guard reported wrong format: ${JSON.stringify(report)}`);
738
762
  }
739
- if (report.ok !== true || report.localOnly !== true || report.localAllowed !== true || report.publishReady !== false) {
740
- throw new Error(`Publish metadata guard should confirm the local-only package policy: ${JSON.stringify(report)}`);
763
+ // The package went public at 0.4.0. This assertion still described the
764
+ // pre-publication policy (localOnly, never publishable) and so failed the
765
+ // moment it ran anywhere the portable shortcut did not apply - which is to
766
+ // say, on CI rather than on the maintainer's machine.
767
+ if (report.ok !== true || report.localOnly !== false || report.proprietaryPublic !== true || report.publishReady !== true) {
768
+ throw new Error(`Publish metadata guard should confirm the published package policy: ${JSON.stringify(report)}`);
741
769
  }
742
770
  if ((report.issues || []).length) {
743
- throw new Error(`Publish metadata guard reported unexpected local-only issues: ${JSON.stringify(report)}`);
771
+ throw new Error(`Publish metadata guard reported unexpected issues: ${JSON.stringify(report)}`);
744
772
  }
745
773
  }
746
774
 
package/credentials.js ADDED
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+
3
+ // User-level credential store for the CLI.
4
+ //
5
+ // Before this existed, credentials could only come from environment variables
6
+ // or a project-local jso.config.json. That meant a first-time user had to find
7
+ // the dashboard, copy two values, work out two platform-specific env var names,
8
+ // and set them again in every new shell. Measured against the competitor, whose
9
+ // package needs no account at all, that was the widest part of the gap we can
10
+ // actually close without changing the API's paid-only contract.
11
+ //
12
+ // The file is per-user and outside any project directory, so it is never
13
+ // committed by accident. It is written 0600, which is real protection on POSIX.
14
+ // On Windows the mode bits are not honoured - MEASURED, the file reports 666 -
15
+ // so there the secret is only as protected as the user profile directory's ACL.
16
+ // That is the same protection npm gives ~/.npmrc, and it is worth knowing rather
17
+ // than assuming the chmod did something.
18
+
19
+ const fs = require("fs");
20
+ const os = require("os");
21
+ const path = require("path");
22
+ const readline = require("readline");
23
+ const { spawn } = require("child_process");
24
+
25
+ const DASHBOARD_URL = "https://javascriptobfuscator.com/dashboard/APIKeys.aspx";
26
+ const STORE_DIR = path.join(os.homedir() || ".", ".jso-protector");
27
+ const STORE_FILE = path.join(STORE_DIR, "credentials.json");
28
+
29
+ function storePath() { return STORE_FILE; }
30
+
31
+ function readStored() {
32
+ try {
33
+ const raw = fs.readFileSync(STORE_FILE, "utf8");
34
+ const parsed = JSON.parse(raw);
35
+ if (!parsed || typeof parsed !== "object") return null;
36
+ const apiKey = typeof parsed.apiKey === "string" ? parsed.apiKey : "";
37
+ const apiPassword = typeof parsed.apiPassword === "string" ? parsed.apiPassword : "";
38
+ if (!apiKey || !apiPassword) return null;
39
+ return { apiKey, apiPassword, endpoint: typeof parsed.endpoint === "string" ? parsed.endpoint : "" };
40
+ } catch (err) {
41
+ // A missing store is the normal case, not an error. A corrupt one must not
42
+ // take down a build that has working credentials in the environment.
43
+ return null;
44
+ }
45
+ }
46
+
47
+ function writeStored(apiKey, apiPassword, endpoint) {
48
+ fs.mkdirSync(STORE_DIR, { recursive: true, mode: 0o700 });
49
+ const body = { apiKey, apiPassword };
50
+ if (endpoint) body.endpoint = endpoint;
51
+ // Write with the restrictive mode from the start rather than chmod-ing after,
52
+ // so the secret is never briefly world-readable.
53
+ fs.writeFileSync(STORE_FILE, JSON.stringify(body, null, 2) + "\n", { encoding: "utf8", mode: 0o600 });
54
+ // No-op on Windows, which does not honour POSIX modes; see the header note.
55
+ try { fs.chmodSync(STORE_FILE, 0o600); } catch (err) { /* best effort */ }
56
+ return STORE_FILE;
57
+ }
58
+
59
+ function clearStored() {
60
+ try { fs.unlinkSync(STORE_FILE); return true; }
61
+ catch (err) { return false; }
62
+ }
63
+
64
+ // A dashboard value is base64. Catching an obviously wrong paste here turns a
65
+ // confusing failure at protect time into an immediate, specific message.
66
+ function looksLikeDashboardValue(value) {
67
+ return typeof value === "string" && value.length >= 8 && /^[A-Za-z0-9+/=_-]+$/.test(value.trim());
68
+ }
69
+
70
+ function openBrowser(url) {
71
+ const cmd = process.platform === "win32" ? "cmd" : (process.platform === "darwin" ? "open" : "xdg-open");
72
+ const args = process.platform === "win32" ? ["/c", "start", "", url] : [url];
73
+ try {
74
+ const child = spawn(cmd, args, { stdio: "ignore", detached: true });
75
+ child.on("error", () => {});
76
+ child.unref();
77
+ return true;
78
+ } catch (err) {
79
+ return false;
80
+ }
81
+ }
82
+
83
+ function ask(rl, question, { hidden = false } = {}) {
84
+ return new Promise((resolve) => {
85
+ if (!hidden) { rl.question(question, (answer) => resolve(answer.trim())); return; }
86
+ // Mute the echo so a pasted secret does not stay on screen or in a shared
87
+ // terminal recording.
88
+ const output = rl.output;
89
+ let muted = false;
90
+ const onData = (chunk) => { if (muted) return; };
91
+ output.write(question);
92
+ muted = true;
93
+ const origWrite = output.write.bind(output);
94
+ output.write = (chunk, ...rest) => { if (muted && typeof chunk === "string" && chunk !== "\n" && chunk !== "\r\n") return true; return origWrite(chunk, ...rest); };
95
+ rl.question("", (answer) => {
96
+ muted = false;
97
+ output.write = origWrite;
98
+ output.write("\n");
99
+ resolve(answer.trim());
100
+ });
101
+ void onData;
102
+ });
103
+ }
104
+
105
+ async function login(argv = []) {
106
+ const noBrowser = argv.includes("--no-browser");
107
+ const out = process.stdout;
108
+
109
+ out.write("Sign in to javascriptobfuscator.com and copy your API credentials.\n\n");
110
+ out.write(" " + DASHBOARD_URL + "\n\n");
111
+ if (!noBrowser) {
112
+ if (openBrowser(DASHBOARD_URL)) out.write("Opened that page in your browser.\n");
113
+ else out.write("Could not open a browser automatically - use the link above.\n");
114
+ }
115
+ out.write("The dashboard shows an API Key and an API Password. Both are already\n");
116
+ out.write("base64 encoded; paste them exactly as shown.\n\n");
117
+
118
+ if (!process.stdin.isTTY) {
119
+ out.write("No interactive terminal. Set JSO_API_KEY and JSO_API_PASSWORD instead,\n");
120
+ out.write("or run this command in a terminal.\n");
121
+ return 1;
122
+ }
123
+
124
+ const rl = readline.createInterface({ input: process.stdin, output: process.stdout, terminal: true });
125
+ try {
126
+ const apiKey = await ask(rl, "API Key: ");
127
+ const apiPassword = await ask(rl, "API Password: ", { hidden: true });
128
+
129
+ if (!apiKey || !apiPassword) {
130
+ out.write("\nBoth values are required. Nothing was saved.\n");
131
+ return 1;
132
+ }
133
+ if (!looksLikeDashboardValue(apiKey) || !looksLikeDashboardValue(apiPassword)) {
134
+ out.write("\nThat does not look like a dashboard value. They are base64 strings -\n");
135
+ out.write("check you copied the value and not the label. Nothing was saved.\n");
136
+ return 1;
137
+ }
138
+
139
+ const file = writeStored(apiKey, apiPassword, "");
140
+ out.write("\nSaved to " + file + "\n");
141
+ out.write("Every project on this machine now uses these credentials.\n");
142
+ out.write("Run `javascriptobfuscator --input dist --output dist-protected` to protect a build.\n");
143
+ out.write("Run `javascriptobfuscator logout` to remove them.\n");
144
+ return 0;
145
+ } finally {
146
+ rl.close();
147
+ }
148
+ }
149
+
150
+ function logout() {
151
+ const removed = clearStored();
152
+ process.stdout.write(removed
153
+ ? "Removed " + STORE_FILE + "\n"
154
+ : "No stored credentials at " + STORE_FILE + "\n");
155
+ return 0;
156
+ }
157
+
158
+ module.exports = { login, logout, readStored, writeStored, clearStored, storePath, looksLikeDashboardValue, DASHBOARD_URL };
@@ -34,10 +34,12 @@ These examples show the common release patterns:
34
34
  `matchesBaseline` uses `match`, `mismatch`, or `missing` so reviewers can
35
35
  see whether a checkout page or frame changed from the approved baseline.
36
36
 
37
- Install the published package before running examples:
37
+ Install the published package before running examples. The package is now
38
+ published as `javascriptobfuscator-com`; `jso-protector` is the former name and
39
+ is deprecated but still updated:
38
40
 
39
41
  ```bash
40
- npm install --save-dev jso-protector@0.4.2
42
+ npm install --save-dev javascriptobfuscator-com@0.4.4
41
43
  ```
42
44
 
43
45
  Repository contributors can instead use the existing `file:../..` development
@@ -1,5 +1,5 @@
1
1
  module.exports = ({ env }) => ({
2
- endpoint: env.JSO_ENDPOINT || "https://www.javascriptobfuscator.com/HttpApi.ashx",
2
+ endpoint: env.JSO_ENDPOINT || "https://javascriptobfuscator.com/HttpApi.ashx",
3
3
  apiKey: "$JSO_API_KEY",
4
4
  apiPassword: "$JSO_API_PASSWORD",
5
5
  projectName: env.CI ? "browser-release-ci" : "browser-release-local",
@@ -1,6 +1,6 @@
1
1
  # curl / bash reference implementation
2
2
 
3
- The smallest possible compliant client of the [JSO HTTP API](https://javascriptobfuscator.com/Docs/WireFormat.aspx). Use this when:
3
+ The smallest possible compliant client of the [JSO HTTP API](https://javascriptobfuscator.com/docs/wireformat.aspx). Use this when:
4
4
 
5
5
  - You need to add JSO protection to a build pipeline written in a language we don't ship a client for.
6
6
  - You want a copy-paste reference for what the wire format actually looks like on the network.
@@ -42,7 +42,7 @@ This is a 100-line shell script. It deliberately doesn't implement:
42
42
  - The bundler-plugin integration surface (`vite`, `webpack`, `rollup`, ...).
43
43
  - Retry logic, exponential backoff, or rate-limit handling.
44
44
 
45
- For a production CI integration, use one of the [shipped language clients](https://javascriptobfuscator.com/Docs/Clients.aspx) instead. The shell script is a reference, not a target.
45
+ For a production CI integration, use one of the [shipped language clients](https://javascriptobfuscator.com/docs/clients.aspx) instead. The shell script is a reference, not a target.
46
46
 
47
47
  ## Verify the response shape
48
48
 
@@ -4,7 +4,7 @@
4
4
  # Use this when the language you need isn't covered by one of the shipped
5
5
  # clients (Node / Python / Go / .NET / Ruby / PHP / Rust). The script
6
6
  # matches the wire format documented at
7
- # https://www.javascriptobfuscator.com/Docs/WireFormat.aspx
7
+ # https://javascriptobfuscator.com/docs/wireformat.aspx
8
8
  #
9
9
  # Required: curl, jq.
10
10
  #
@@ -36,7 +36,7 @@ if [ $# -lt 2 ] || [ $(($# % 2)) -ne 0 ]; then
36
36
  fi
37
37
 
38
38
  preset="${JSO_PRESET:-balanced}"
39
- endpoint="${JSO_ENDPOINT:-https://www.javascriptobfuscator.com/HttpApi.ashx}"
39
+ endpoint="${JSO_ENDPOINT:-https://javascriptobfuscator.com/HttpApi.ashx}"
40
40
 
41
41
  # Build the Items array from the (input, output) argument pairs.
42
42
  items_json="[]"
@@ -12,12 +12,12 @@ type: application
12
12
  version: 0.1.0
13
13
  appVersion: "0.2.0"
14
14
 
15
- home: https://www.javascriptobfuscator.com/
15
+ home: https://javascriptobfuscator.com/
16
16
  sources:
17
- - https://www.javascriptobfuscator.com/Docs/NpmCli.aspx
17
+ - https://javascriptobfuscator.com/docs/npmcli.aspx
18
18
  maintainers:
19
19
  - name: JavaScript Obfuscator
20
- url: https://www.javascriptobfuscator.com/contactus.aspx
20
+ url: https://javascriptobfuscator.com/contactus.aspx
21
21
 
22
22
  keywords:
23
23
  - javascript-obfuscator
@@ -11,7 +11,7 @@
11
11
  # Pre-commit is the wrong place for that; full protection belongs in CI.
12
12
 
13
13
  repos:
14
- - repo: https://www.javascriptobfuscator.com/jso-protector-pre-commit
14
+ - repo: https://javascriptobfuscator.com/jso-protector-pre-commit
15
15
  rev: "v0.2.0" # Pin to a jso-protector release tag.
16
16
  hooks:
17
17
  - id: jso-release-check
@@ -41,5 +41,5 @@ The CI templates in `node_modules/jso-protector/ci/` all run `--release-check` B
41
41
 
42
42
  ## See also
43
43
 
44
- - [npm CLI workflow](https://javascriptobfuscator.com/Docs/NpmCli.aspx)
44
+ - [npm CLI workflow](https://javascriptobfuscator.com/docs/npmcli.aspx)
45
45
  - [Build integrations hub](https://javascriptobfuscator.com/build-integrations.aspx)
package/index.d.ts CHANGED
@@ -809,7 +809,7 @@ export function main(argv?: string[]): Promise<void>;
809
809
  export interface AiCredentials {
810
810
  apiKey?: string;
811
811
  apiPassword?: string;
812
- endpoint?: string; // default https://www.javascriptobfuscator.com
812
+ endpoint?: string; // default https://javascriptobfuscator.com
813
813
  timeoutMs?: number; // default 30000
814
814
  }
815
815
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jso-protector",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
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",
@@ -58,10 +58,11 @@
58
58
  "!examples/**/node_modules/**",
59
59
  "bun.d.ts",
60
60
  "bun.js",
61
- "ai-cli.js",
62
- "ai.js",
61
+ "ai-cli.js",
62
+ "ai.js",
63
63
  "browserify.d.ts",
64
64
  "browserify.js",
65
+ "credentials.js",
65
66
  "esbuild.d.ts",
66
67
  "esbuild.js",
67
68
  "gulp.d.ts",
@@ -78,7 +79,7 @@
78
79
  "parcel.js",
79
80
  "react-native.d.ts",
80
81
  "react-native.js",
81
- "release-signer.js",
82
+ "release-signer.js",
82
83
  "rspack.d.ts",
83
84
  "rspack.js",
84
85
  "rspack-loader.d.ts",
@@ -89,7 +90,7 @@
89
90
  "turbopack.js",
90
91
  "vite.d.ts",
91
92
  "vite.js",
92
- "watermark.js",
93
+ "watermark.js",
93
94
  "webpack.d.ts",
94
95
  "webpack.js",
95
96
  "webpack-loader.d.ts",
@@ -217,25 +218,26 @@
217
218
  "./schema": "./jso.config.schema.json"
218
219
  },
219
220
  "bin": {
221
+ "javascriptobfuscator": "./bin/jso-protector.js",
220
222
  "jso-protector": "./bin/jso-protector.js"
221
223
  },
222
224
  "scripts": {
223
225
  "smoke": "node ./bin/jso-protector.js --help && node ./bin/jso-protector.js --config ./jso.config.example.json --dry-run --json",
224
226
  "smoke:api": "node ./bin/jso-protector.js --config ./jso.config.example.json --json",
225
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",
226
- "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",
227
- "verify:release": "npm run verify && npm run verify:corpus-protect && npm run verify:corpus-runtime",
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",
229
+ "verify:release": "npm run verify && npm run verify:corpus-protect && npm run verify:corpus-runtime",
228
230
  "verify:verify-scripts-tracked": "node ../polyglot-smoke/check-verify-scripts-tracked.js",
229
231
  "verify:parity-defect-sync": "node ../polyglot-smoke/check-parity-defect-sync.js",
230
232
  "verify:aspnet-bom": "node ../polyglot-smoke/check-aspnet-bom.js",
231
233
  "verify:aspnet-compile": "node ../polyglot-smoke/check-aspnet-compile.js",
232
234
  "verify:endrequest-guard": "node ../polyglot-smoke/check-endrequest-guard.js",
233
235
  "verify:payment-row-completeness": "node ../polyglot-smoke/check-payment-row-completeness.js",
234
- "verify:health-readiness": "node ../polyglot-smoke/check-health-readiness.js",
235
- "verify:live-health": "node ../polyglot-smoke/check-production-health.js",
236
- "verify:live-seo": "node ../polyglot-smoke/check-live-seo.js",
237
- "verify:legacy-soap-security": "node ../polyglot-smoke/check-legacy-soap-security.js",
238
- "verify:online-demo-security": "node ../polyglot-smoke/check-online-demo-security.js",
236
+ "verify:health-readiness": "node ../polyglot-smoke/check-health-readiness.js",
237
+ "verify:live-health": "node ../polyglot-smoke/check-production-health.js",
238
+ "verify:live-seo": "node ../polyglot-smoke/check-live-seo.js",
239
+ "verify:legacy-soap-security": "node ../polyglot-smoke/check-legacy-soap-security.js",
240
+ "verify:online-demo-security": "node ../polyglot-smoke/check-online-demo-security.js",
239
241
  "verify:parser-engine": "node ../polyglot-smoke/check-parser-engine.js",
240
242
  "verify:package-closure": "bash ../../tools/verify-package-closure.sh",
241
243
  "verify:package-behaviour": "bash ../../tools/verify-package-behaviour.sh",
@@ -283,7 +285,7 @@
283
285
  "verify:runtime-defense-review": "node ../polyglot-smoke/check-runtime-defense-review.js",
284
286
  "verify:vm-proof": "node ../polyglot-smoke/check-vm-proof-pack.js",
285
287
  "verify:deployment-hygiene": "node ../polyglot-smoke/check-archive-hygiene.js",
286
- "verify:download-artifacts": "node ../polyglot-smoke/check-download-artifacts.js",
288
+ "verify:download-artifacts": "node ../polyglot-smoke/check-download-artifacts.js",
287
289
  "verify:download-examples": "node ../polyglot-smoke/check-download-examples.js",
288
290
  "verify:copy-discipline": "node ../polyglot-smoke/check-public-copy-discipline.js",
289
291
  "verify:github-action": "node ../polyglot-smoke/check-github-action.js",