@deot/dev-test 2.7.0 → 2.8.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/dist/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -349,7 +349,7 @@ class Launch {
|
|
|
349
349
|
}
|
|
350
350
|
this._page = new Promise((resolve) => {
|
|
351
351
|
(async () => {
|
|
352
|
-
|
|
352
|
+
const page = await this.browser.newPage();
|
|
353
353
|
await page.evaluateOnNewDocument(
|
|
354
354
|
/* istanbul ignore next */
|
|
355
355
|
() => {
|
|
@@ -373,7 +373,7 @@ class Launch {
|
|
|
373
373
|
|
|
374
374
|
const TIME_OUT = 60 * 1e3;
|
|
375
375
|
const impl = () => {
|
|
376
|
-
|
|
376
|
+
const launch = new Launch();
|
|
377
377
|
beforeAll(async () => {
|
|
378
378
|
await launch.createBrowser();
|
|
379
379
|
}, 2e4);
|
|
@@ -438,11 +438,11 @@ let defaultHost = "";
|
|
|
438
438
|
const host = (force) => {
|
|
439
439
|
if (!force && defaultHost)
|
|
440
440
|
return defaultHost;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
for (
|
|
441
|
+
const ips = [];
|
|
442
|
+
const ntwk = os__namespace.networkInterfaces();
|
|
443
|
+
for (const k in ntwk) {
|
|
444
444
|
for (let i = 0; i < ntwk[k].length; i++) {
|
|
445
|
-
|
|
445
|
+
const _add = ntwk[k][i].address;
|
|
446
446
|
if (_add && _add.split(".").length == 4 && !ntwk[k][i].internal && ntwk[k][i].family == "IPv4") {
|
|
447
447
|
ips.push(ntwk[k][i].address);
|
|
448
448
|
}
|
package/dist/index.js
CHANGED
|
@@ -324,7 +324,7 @@ class Launch {
|
|
|
324
324
|
}
|
|
325
325
|
this._page = new Promise((resolve) => {
|
|
326
326
|
(async () => {
|
|
327
|
-
|
|
327
|
+
const page = await this.browser.newPage();
|
|
328
328
|
await page.evaluateOnNewDocument(
|
|
329
329
|
/* istanbul ignore next */
|
|
330
330
|
() => {
|
|
@@ -348,7 +348,7 @@ class Launch {
|
|
|
348
348
|
|
|
349
349
|
const TIME_OUT = 60 * 1e3;
|
|
350
350
|
const impl = () => {
|
|
351
|
-
|
|
351
|
+
const launch = new Launch();
|
|
352
352
|
beforeAll(async () => {
|
|
353
353
|
await launch.createBrowser();
|
|
354
354
|
}, 2e4);
|
|
@@ -413,11 +413,11 @@ let defaultHost = "";
|
|
|
413
413
|
const host = (force) => {
|
|
414
414
|
if (!force && defaultHost)
|
|
415
415
|
return defaultHost;
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
for (
|
|
416
|
+
const ips = [];
|
|
417
|
+
const ntwk = os.networkInterfaces();
|
|
418
|
+
for (const k in ntwk) {
|
|
419
419
|
for (let i = 0; i < ntwk[k].length; i++) {
|
|
420
|
-
|
|
420
|
+
const _add = ntwk[k][i].address;
|
|
421
421
|
if (_add && _add.split(".").length == 4 && !ntwk[k][i].internal && ntwk[k][i].family == "IPv4") {
|
|
422
422
|
ips.push(ntwk[k][i].address);
|
|
423
423
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deot/dev-test",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@deot/dev-shared": "^2.
|
|
23
|
-
"puppeteer": "^21.
|
|
22
|
+
"@deot/dev-shared": "^2.8.0",
|
|
23
|
+
"puppeteer": "^21.6.1"
|
|
24
24
|
}
|
|
25
25
|
}
|