@pipelab/plugin-construct 1.0.0-beta.20 → 1.0.0-beta.22
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/dist/assets/script.ts +18 -18
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/assets/script.ts
CHANGED
|
@@ -163,6 +163,24 @@ export const script = async (
|
|
|
163
163
|
registerWelcomeToConstructListener(page, log);
|
|
164
164
|
registerNewVersionAvailableListener(page, log);
|
|
165
165
|
|
|
166
|
+
// as soon as it appear, without blocking flow
|
|
167
|
+
// ignore asking for update
|
|
168
|
+
const notNowBtn = page.getByText("Not now");
|
|
169
|
+
notNowBtn
|
|
170
|
+
.waitFor({
|
|
171
|
+
timeout: 0,
|
|
172
|
+
})
|
|
173
|
+
.then(async () => {
|
|
174
|
+
return notNowBtn.click();
|
|
175
|
+
})
|
|
176
|
+
.then(() => {
|
|
177
|
+
log("notNowBtn clicked");
|
|
178
|
+
})
|
|
179
|
+
.catch(async (e) => {
|
|
180
|
+
if (e.message.includes("Target page, context or browser has been closed")) return;
|
|
181
|
+
log("notNowBtn.click() failed", e.message);
|
|
182
|
+
});
|
|
183
|
+
|
|
166
184
|
log("after event");
|
|
167
185
|
|
|
168
186
|
await page.waitForTimeout(2000);
|
|
@@ -223,24 +241,6 @@ export const script = async (
|
|
|
223
241
|
log("progress", `${finalText * 100}%`);
|
|
224
242
|
}, 500);
|
|
225
243
|
|
|
226
|
-
// as soon as it appear, without blocking flow
|
|
227
|
-
// ignore asking for update
|
|
228
|
-
const notNowBtn = page.getByText("Not now");
|
|
229
|
-
notNowBtn
|
|
230
|
-
.waitFor({
|
|
231
|
-
timeout: 0,
|
|
232
|
-
})
|
|
233
|
-
.then(async () => {
|
|
234
|
-
return notNowBtn.click();
|
|
235
|
-
})
|
|
236
|
-
.then(() => {
|
|
237
|
-
log("notNowBtn clicked");
|
|
238
|
-
})
|
|
239
|
-
.catch(async (e) => {
|
|
240
|
-
if (e.message.includes("Target page, context or browser has been closed")) return;
|
|
241
|
-
log("notNowBtn.click() failed", e.message);
|
|
242
|
-
});
|
|
243
|
-
|
|
244
244
|
registerInstallButtonListener(page, log);
|
|
245
245
|
registerWebglErrorListener(page, log);
|
|
246
246
|
registerMissingAddonErrorListener(page, log);
|
package/dist/index.cjs
CHANGED
|
@@ -151689,6 +151689,15 @@ const script = async (page, log, filePath, username, password, version, download
|
|
|
151689
151689
|
log("after navigating");
|
|
151690
151690
|
registerWelcomeToConstructListener(page, log);
|
|
151691
151691
|
registerNewVersionAvailableListener(page, log);
|
|
151692
|
+
const notNowBtn = page.getByText("Not now");
|
|
151693
|
+
notNowBtn.waitFor({ timeout: 0 }).then(async () => {
|
|
151694
|
+
return notNowBtn.click();
|
|
151695
|
+
}).then(() => {
|
|
151696
|
+
log("notNowBtn clicked");
|
|
151697
|
+
}).catch(async (e) => {
|
|
151698
|
+
if (e.message.includes("Target page, context or browser has been closed")) return;
|
|
151699
|
+
log("notNowBtn.click() failed", e.message);
|
|
151700
|
+
});
|
|
151692
151701
|
log("after event");
|
|
151693
151702
|
await page.waitForTimeout(2e3);
|
|
151694
151703
|
log("after wait");
|
|
@@ -151722,15 +151731,6 @@ const script = async (page, log, filePath, username, password, version, download
|
|
|
151722
151731
|
const textAsNumber = parseFloat(text);
|
|
151723
151732
|
log("progress", `${(Number.isNaN(textAsNumber) ? 0 : textAsNumber) * 100}%`);
|
|
151724
151733
|
}, 500);
|
|
151725
|
-
const notNowBtn = page.getByText("Not now");
|
|
151726
|
-
notNowBtn.waitFor({ timeout: 0 }).then(async () => {
|
|
151727
|
-
return notNowBtn.click();
|
|
151728
|
-
}).then(() => {
|
|
151729
|
-
log("notNowBtn clicked");
|
|
151730
|
-
}).catch(async (e) => {
|
|
151731
|
-
if (e.message.includes("Target page, context or browser has been closed")) return;
|
|
151732
|
-
log("notNowBtn.click() failed", e.message);
|
|
151733
|
-
});
|
|
151734
151734
|
registerInstallButtonListener(page, log);
|
|
151735
151735
|
registerWebglErrorListener(page, log);
|
|
151736
151736
|
registerMissingAddonErrorListener(page, log);
|
package/dist/index.mjs
CHANGED
|
@@ -151686,6 +151686,15 @@ const script = async (page, log, filePath, username, password, version, download
|
|
|
151686
151686
|
log("after navigating");
|
|
151687
151687
|
registerWelcomeToConstructListener(page, log);
|
|
151688
151688
|
registerNewVersionAvailableListener(page, log);
|
|
151689
|
+
const notNowBtn = page.getByText("Not now");
|
|
151690
|
+
notNowBtn.waitFor({ timeout: 0 }).then(async () => {
|
|
151691
|
+
return notNowBtn.click();
|
|
151692
|
+
}).then(() => {
|
|
151693
|
+
log("notNowBtn clicked");
|
|
151694
|
+
}).catch(async (e) => {
|
|
151695
|
+
if (e.message.includes("Target page, context or browser has been closed")) return;
|
|
151696
|
+
log("notNowBtn.click() failed", e.message);
|
|
151697
|
+
});
|
|
151689
151698
|
log("after event");
|
|
151690
151699
|
await page.waitForTimeout(2e3);
|
|
151691
151700
|
log("after wait");
|
|
@@ -151719,15 +151728,6 @@ const script = async (page, log, filePath, username, password, version, download
|
|
|
151719
151728
|
const textAsNumber = parseFloat(text);
|
|
151720
151729
|
log("progress", `${(Number.isNaN(textAsNumber) ? 0 : textAsNumber) * 100}%`);
|
|
151721
151730
|
}, 500);
|
|
151722
|
-
const notNowBtn = page.getByText("Not now");
|
|
151723
|
-
notNowBtn.waitFor({ timeout: 0 }).then(async () => {
|
|
151724
|
-
return notNowBtn.click();
|
|
151725
|
-
}).then(() => {
|
|
151726
|
-
log("notNowBtn clicked");
|
|
151727
|
-
}).catch(async (e) => {
|
|
151728
|
-
if (e.message.includes("Target page, context or browser has been closed")) return;
|
|
151729
|
-
log("notNowBtn.click() failed", e.message);
|
|
151730
|
-
});
|
|
151731
151731
|
registerInstallButtonListener(page, log);
|
|
151732
151732
|
registerWebglErrorListener(page, log);
|
|
151733
151733
|
registerMissingAddonErrorListener(page, log);
|