puppeteer-browser-ready 0.5.9 → 1.0.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/README.md CHANGED
@@ -207,7 +207,29 @@ Run specification suites with global fixtures:<br>
207
207
  [2021-07-14T11:38:26.704Z] Web Server - shutdown: true
208
208
  ```
209
209
 
210
+ ## E) Test Timeout Errors
211
+ By default Mocha allows a test 2,000 ms to complete before timing out with a failure.&nbsp;
212
+ Web page load times can vary significantly, so it's sometimes a good idea to use the `timeout`
213
+ option to bump up the allowed test execution time.
214
+
215
+ Example configuration in **package.json** to allow 5,000 ms:
216
+ ```json
217
+ "scripts": {
218
+ "pretest": "run-scripts build",
219
+ "test": "mocha spec/*.spec.js --timeout 5000"
220
+ },
221
+ ```
222
+
210
223
  <br>
211
224
 
212
225
  ---
226
+ **CLI Build Tools**
227
+ - 🎋 [add-dist-header](https://github.com/center-key/add-dist-header):&nbsp; _Prepend a one-line banner comment (with license notice) to distribution files_
228
+ - 📄 [copy-file-util](https://github.com/center-key/copy-file-util):&nbsp; _Copy or rename a file with optional package version number_
229
+ - 📂 [copy-folder-util](https://github.com/center-key/copy-folder-util):&nbsp; _Recursively copy files from one folder to another folder_
230
+ - 🔍 [replacer-util](https://github.com/center-key/replacer-util):&nbsp; _Find and replace strings or template outputs in text files_
231
+ - 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets):&nbsp; _Revision web asset filenames with cache busting content hash fingerprints_
232
+ - 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):&nbsp; _Organize npm scripts into named groups of easy to manage commands_
233
+ - 🚦 [w3c-html-validator](https://github.com/center-key/w3c-html-validator):&nbsp; _Check the markup validity of HTML files using the W3C validator_
234
+
213
235
  [MIT License](LICENSE.txt)
@@ -1,4 +1,4 @@
1
- //! puppeteer-browser-ready v0.5.9 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1
+ //! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
2
2
 
3
3
  /// <reference types="cheerio" />
4
4
  import { Browser, HTTPResponse, Page } from 'puppeteer';
@@ -1,4 +1,4 @@
1
- //! puppeteer-browser-ready v0.5.9 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1
+ //! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
2
2
 
3
3
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
4
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
@@ -1,4 +1,4 @@
1
- //! puppeteer-browser-ready v0.5.9 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
1
+ //! puppeteer-browser-ready v1.0.0 ~~ https://github.com/center-key/puppeteer-browser-ready ~~ MIT License
2
2
 
3
3
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
4
4
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "puppeteer-browser-ready",
3
- "version": "0.5.9",
4
- "description": "Simple utility to go to a URL and wait for the HTTP response (written in TypeScript)",
3
+ "version": "1.0.0",
4
+ "description": "Simple utility to go to a URL and wait for the HTTP response",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "module": "dist/puppeteer-browser-ready.js",
@@ -81,7 +81,7 @@
81
81
  "test": "mocha spec/*.spec.js --timeout 5000 --retries 1"
82
82
  },
83
83
  "peerDependencies": {
84
- "puppeteer": "^5 || ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || ^13 || ^14 || ^15 || ^16 || ^17 || ^18 || ^19 < 19.6"
84
+ "puppeteer": "^5 || ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || ^13 || ^14 || ^15 || ^16 || ^17 || ^18 || ^19.7"
85
85
  },
86
86
  "dependencies": {
87
87
  "cheerio": "~1.0.0-rc.12",
@@ -91,19 +91,19 @@
91
91
  "devDependencies": {
92
92
  "@types/cheerio": "~0.22",
93
93
  "@types/express": "~4.17",
94
- "@types/node": "~18.13",
94
+ "@types/node": "~18.14",
95
95
  "@types/ws": "~8.5",
96
- "@typescript-eslint/eslint-plugin": "~5.51",
97
- "@typescript-eslint/parser": "~5.51",
98
- "add-dist-header": "~0.3",
96
+ "@typescript-eslint/eslint-plugin": "~5.52",
97
+ "@typescript-eslint/parser": "~5.52",
98
+ "add-dist-header": "~1.0",
99
99
  "assert-deep-strict-equal": "~1.0",
100
- "copy-file-util": "~0.1",
101
- "copy-folder-util": "~0.2",
102
- "eslint": "~8.33",
100
+ "copy-file-util": "~1.0",
101
+ "copy-folder-util": "~1.0",
102
+ "eslint": "~8.34",
103
103
  "jshint": "~2.13",
104
104
  "mocha": "~10.2",
105
105
  "open": "~8.4",
106
- "puppeteer": "19.5",
106
+ "puppeteer": "~19.7",
107
107
  "rimraf": "3",
108
108
  "run-scripts-util": "~0.1",
109
109
  "typescript": "~4.9",