single-file-cli 2.10.0 → 2.11.0

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.126"
5
+ CORE_PACKAGE="npm:single-file-core@1.5.127"
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.10.0",
3
+ "version": "2.11.0",
4
4
  "description": "SingleFile CLI",
5
5
  "exports": {
6
6
  ".": "./single-file-cli-api.js"
@@ -315,7 +315,7 @@ async function setupNetwork(pageContext) {
315
315
  }
316
316
  }, pageContext));
317
317
  }
318
- if (options.outputJson) {
318
+ if (options.outputJson || options.dumpJson) {
319
319
  setupHttpInfoCapture(pageContext);
320
320
  }
321
321
  if (options.browserCookies && options.browserCookies.length) {
package/lib/cdp-client.js CHANGED
@@ -388,7 +388,7 @@ function captureHttpInfo(params, urlState, { options, debugMessages, httpInfo })
388
388
  const LOCATION_HEADER_NAME = "location";
389
389
  const { request, resourceType, responseHeaders, responseStatusCode, responseStatusText } = params;
390
390
  const shouldCapture = resourceType === DOCUMENT_RESOURCE_TYPE &&
391
- options.outputJson &&
391
+ (options.outputJson || options.dumpJson) &&
392
392
  !httpInfo.request &&
393
393
  responseStatusCode !== undefined &&
394
394
  (request.url === urlState.url || request.url === urlState.alternativeUrl);