single-file-cli 2.9.0 → 2.9.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/build-dev.sh CHANGED
@@ -92,7 +92,9 @@ const hookScript = await Deno.readTextFile('lib-dev/single-file-hooks-frames.js'
92
92
  script += 'const hookScript = ' + JSON.stringify(hookScript) + ';';
93
93
  const zipScript = await Deno.readTextFile('lib-dev/zip.min.js');
94
94
  script += 'const zipScript = ' + JSON.stringify(zipScript) + ';';
95
- script += 'export { script, zipScript, hookScript };';
95
+ const webStreamsPonyfill = await Deno.readTextFile('node_modules/web-streams-polyfill/dist/ponyfill.js');
96
+ script += 'const webStreamsPonyfill = ' + JSON.stringify(webStreamsPonyfill) + ';';
97
+ script += 'export { script, zipScript, hookScript, webStreamsPonyfill };';
96
98
  await Deno.writeTextFile('lib-dev/single-file-bundle.js', script)
97
99
  await Promise.all(SCRIPTS.map(script => Deno.remove(script)));
98
100
  await Deno.remove('lib-dev/single-file-hooks-frames.js');
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.121"
5
+ CORE_PACKAGE="npm:single-file-core@1.5.123"
6
6
  ESBUILD_PACKAGE="npm:esbuild@0.27.7"
7
7
  WEB_STREAMS_PACKAGE="npm:web-streams-polyfill@4.3.0"
8
8
 
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@single-file/single-file-cli",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "description": "SingleFile CLI",
5
5
  "exports": {
6
6
  ".": "./single-file-cli-api.js"
@@ -65,7 +65,7 @@ const PRINT_TO_PDF_FUNCTION_NAME = "printToPDF";
65
65
  const SET_SCREENSHOT_FUNCTION_NAME = "setScreenshot";
66
66
  const SET_PDF_FUNCTION_NAME = "setPDF";
67
67
  const SET_PAGE_DATA_FUNCTION_NAME = "setPageData";
68
- const SINGLE_FILE_GLOBAL_DECLARATION = "var singlefile=";
68
+ const SINGLE_FILE_GLOBAL_DECLARATION = /var singlefile\s*=\s*/;
69
69
  const SINGLE_FILE_GLOBAL_ASSIGNMENT = "globalThis.singlefile=window.singlefile=";
70
70
  const SERVER_CONNECT_TIMEOUT = 30000;
71
71
  const SESSION_TIMEOUT = 120000;