Skip to content

Commit d660d45

Browse files
committed
Release v1.0.1
1 parent d742f29 commit d660d45

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

dist/puppeteer-browser-ready.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1+
//! puppeteer-browser-ready v1.0.1 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
22

33
/// <reference types="cheerio" />
44
import { Browser, HTTPResponse, Page } from 'puppeteer';
55
import { Server } from 'http';
6+
import { SuiteFunction } from 'mocha';
67
import httpTerminator from 'http-terminator';
78
export type StartWebServerSettings = {
89
folder: string;
@@ -34,6 +35,9 @@ export type BrowserReadySettings = {
3435
verbose: boolean;
3536
};
3637
export type BrowserReadyOptions = Partial<BrowserReadySettings>;
38+
declare global {
39+
var describe: SuiteFunction;
40+
}
3741
declare const browserReady: {
3842
log(...args: unknown[]): void;
3943
startWebServer(options?: StartWebServerOptions): Promise<Http>;

dist/puppeteer-browser-ready.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1+
//! puppeteer-browser-ready v1.0.1 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
22

33
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
44
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -15,7 +15,7 @@ import httpTerminator from 'http-terminator';
1515
// Package
1616
const browserReady = {
1717
log(...args) {
18-
const indent = typeof globalThis['describe'] === 'function' ? ' [' : '[';
18+
const indent = typeof globalThis.describe === 'function' ? ' [' : '[';
1919
console.log(indent + new Date().toISOString() + ']', ...args);
2020
},
2121
startWebServer(options) {

dist/puppeteer-browser-ready.umd.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1+
//! puppeteer-browser-ready v1.0.1 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
22

33
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
44
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -30,7 +30,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3030
// Package
3131
const browserReady = {
3232
log(...args) {
33-
const indent = typeof globalThis['describe'] === 'function' ? ' [' : '[';
33+
const indent = typeof globalThis.describe === 'function' ? ' [' : '[';
3434
console.log(indent + new Date().toISOString() + ']', ...args);
3535
},
3636
startWebServer(options) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppeteer-browser-ready",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Simple utility to go to a URL and wait for the HTTP response",
55
"license": "MIT",
66
"type": "module",

0 commit comments

Comments
 (0)