single-file-cli 2.0.17 → 2.0.18

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@single-file/single-file-cli",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "SingleFile CLI",
5
5
  "nodeModulesDir": true,
6
6
  "exports": {
package/lib/cdp-client.js CHANGED
@@ -136,7 +136,7 @@ async function getPageData(options) {
136
136
  async function onLifecycleEvent({ params }) {
137
137
  const { name, frameId } = params;
138
138
  if (frameId === topFrameId) {
139
- if (name === "DOMContentLoaded") {
139
+ if (!contentLoaded && name === "init" || name === "firstPaint") {
140
140
  contentLoaded = true;
141
141
  }
142
142
  if (contentLoaded && name === (options.browserWaitUntil || NETWORK_IDLE_STATE)) {
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "2.0.17";
1
+ export const version = "2.0.18";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-cli",
3
- "version": "2.0.17",
3
+ "version": "2.0.18",
4
4
  "description": "SingleFile CLI",
5
5
  "author": "Gildas Lormeau",
6
6
  "engines": {