single-file-cli 2.6.2 → 2.6.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/build.sh CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  set -e
4
4
 
5
- CORE_PACKAGE="npm:single-file-core@1.5.116"
5
+ CORE_PACKAGE="npm:single-file-core@1.5.119"
6
6
  ESBUILD_PACKAGE="npm:esbuild@0.27.7"
7
7
 
8
8
  project_dir=$(pwd)
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@single-file/single-file-cli",
3
- "version": "2.6.2",
3
+ "version": "2.6.4",
4
4
  "description": "SingleFile CLI",
5
5
  "exports": {
6
6
  ".": "./single-file-cli-api.js"
@@ -128,11 +128,13 @@ const pathAPI = {
128
128
 
129
129
  const isDeno = DENO_RUNTIME_DETECTED;
130
130
 
131
- // the connection to the browser relies on the WebSocket of the runtime, which
132
- // Node.js provides since 22.4.0 and can still be turned off with
133
- // --no-experimental-websocket
131
+ // the connection to the browser relies on the WebSocket of the runtime. Every version the
132
+ // engines field supports has one, so reaching this means either an older runtime than that,
133
+ // or Node.js started with --no-experimental-websocket, which still removes the global on
134
+ // current versions. The message names neither version, so that it cannot drift away from
135
+ // the engines field the way it already did once
134
136
  if (typeof globalThis.WebSocket !== "function") {
135
- throw new Error("WebSocket is not available, Node.js 22.4.0 or later is required");
137
+ throw new Error("WebSocket is not available: the runtime is older than this package supports, or it was started with --no-experimental-websocket");
136
138
  }
137
139
 
138
140
  export { DenoAPI as Deno, pathAPI as path, isDeno };