@deot/dev-test 2.9.2 → 2.9.8

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 CHANGED
@@ -318,7 +318,6 @@ class Launch {
318
318
  throw new Error("page is not defined. createPage invote first");
319
319
  }
320
320
  });
321
- /* istanbul ignore next -- @preserve */
322
321
  this.puppeteerOptions = process.env.CI ? { args: ["--no-sandbox", "--disable-setuid-sandbox"] } : {};
323
322
  }
324
323
  createBrowser(force) {
@@ -355,7 +354,6 @@ class Launch {
355
354
  localStorage.clear();
356
355
  }
357
356
  );
358
- /* istanbul ignore next -- @preserve */
359
357
  this.options.logLevel !== "slient" && page.on("console", (e) => {
360
358
  const key = e.type();
361
359
  console[key].call(console[key], `${key} from puppeteer: `, ...e.args().map((i) => i.remoteObject()));
@@ -451,13 +449,11 @@ const impl = () => {
451
449
  await launch.createPage(true);
452
450
  });
453
451
  afterEach(async () => {
454
- /* istanbul ignore else -- @preserve */
455
452
  if (!launch.page.isClosed()) {
456
453
  await launch.page.close();
457
454
  }
458
455
  });
459
456
  afterAll(async () => {
460
- /* istanbul ignore else -- @preserve */
461
457
  if (launch.browser.isConnected()) {
462
458
  await launch.browser.close();
463
459
  }
@@ -517,12 +513,10 @@ const host = (force) => {
517
513
  }
518
514
  }
519
515
  }
520
- /* istanbul ignore next -- @preserve */
521
516
  return ips[0] || "localhost";
522
517
  };
523
518
  defaultHost = host();
524
519
  const port = (host$ = defaultHost, port$ = 1024) => {
525
- /* istanbul ignore next -- @preserve */
526
520
  if (port$ < 1024) throw new Error("port < 1024");
527
521
  return new Promise((resolve, reject) => {
528
522
  const server = http__namespace.createServer();
package/dist/index.js CHANGED
@@ -293,7 +293,6 @@ class Launch {
293
293
  throw new Error("page is not defined. createPage invote first");
294
294
  }
295
295
  });
296
- /* istanbul ignore next -- @preserve */
297
296
  this.puppeteerOptions = process.env.CI ? { args: ["--no-sandbox", "--disable-setuid-sandbox"] } : {};
298
297
  }
299
298
  createBrowser(force) {
@@ -330,7 +329,6 @@ class Launch {
330
329
  localStorage.clear();
331
330
  }
332
331
  );
333
- /* istanbul ignore next -- @preserve */
334
332
  this.options.logLevel !== "slient" && page.on("console", (e) => {
335
333
  const key = e.type();
336
334
  console[key].call(console[key], `${key} from puppeteer: `, ...e.args().map((i) => i.remoteObject()));
@@ -426,13 +424,11 @@ const impl = () => {
426
424
  await launch.createPage(true);
427
425
  });
428
426
  afterEach(async () => {
429
- /* istanbul ignore else -- @preserve */
430
427
  if (!launch.page.isClosed()) {
431
428
  await launch.page.close();
432
429
  }
433
430
  });
434
431
  afterAll(async () => {
435
- /* istanbul ignore else -- @preserve */
436
432
  if (launch.browser.isConnected()) {
437
433
  await launch.browser.close();
438
434
  }
@@ -492,12 +488,10 @@ const host = (force) => {
492
488
  }
493
489
  }
494
490
  }
495
- /* istanbul ignore next -- @preserve */
496
491
  return ips[0] || "localhost";
497
492
  };
498
493
  defaultHost = host();
499
494
  const port = (host$ = defaultHost, port$ = 1024) => {
500
- /* istanbul ignore next -- @preserve */
501
495
  if (port$ < 1024) throw new Error("port < 1024");
502
496
  return new Promise((resolve, reject) => {
503
497
  const server = http.createServer();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deot/dev-test",
3
- "version": "2.9.2",
3
+ "version": "2.9.8",
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.9.2",
23
- "puppeteer": "^24.23.0"
22
+ "@deot/dev-shared": "^2.9.8",
23
+ "puppeteer": "^24.31.0"
24
24
  }
25
25
  }