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 +1 -1
- package/deno.json +1 -1
- package/lib/deno-polyfill.js +6 -4
- package/lib/single-file-archive.js +5 -5
- package/lib/single-file-bundle.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/test/e2e/canvas-round-trip.test.js +93 -0
- package/test/e2e/fidelity.test.js +214 -0
- package/test/e2e/saved-page-opens.test.js +79 -0
- package/test/fidelity/README.md +111 -0
- package/test/fidelity/browser.js +162 -0
- package/test/fidelity/make-font.js +294 -0
- package/test/fidelity/pages/duplicate-stylesheet/index.html +126 -0
- package/test/fidelity/pages/fonts/band.ttf +0 -0
- package/test/fidelity/pages/fonts/bar.ttf +0 -0
- package/test/fidelity/pages/fonts/block.ttf +0 -0
- package/test/fidelity/pages/frame-fonts/index.html +53 -0
- package/test/fidelity/pages/linked-stylesheet/index.html +30 -0
- package/test/fidelity/pages/linked-stylesheet/theme.css +38 -0
- package/test/fidelity/pages/synthetic-italic/index.html +59 -0
- package/test/fidelity/pages/unresolved-font-property/index.html +75 -0
- package/test/fidelity/pages/used-fonts/index.html +96 -0
- package/test/fidelity/server.js +70 -0
- package/test/target.js +49 -4
package/build.sh
CHANGED
package/deno.json
CHANGED
package/lib/deno-polyfill.js
CHANGED
|
@@ -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
|
|
132
|
-
//
|
|
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
|
|
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 };
|