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 +1 -1
- package/deno.json +1 -1
- package/lib/bidi-client.js +1 -1
- package/lib/cdp-client.js +1 -1
- package/lib/single-file-archive.js +6 -5
- package/lib/single-file-bundle.js +1 -1
- package/lib/version.js +1 -1
- package/options.js +3 -1
- package/package.json +1 -1
- package/single-file-cli-api.js +20 -0
- package/test/e2e/dump-json.test.js +111 -0
- package/test/e2e/font-face-source-order.test.js +38 -19
- package/test/e2e/insert-head-elements.test.js +71 -0
package/build.sh
CHANGED
package/deno.json
CHANGED
package/lib/bidi-client.js
CHANGED
|
@@ -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);
|