html-snapshots 4.13.1 → 4.15.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/LICENSE.md +1 -1
- package/lib/async/exists.js +1 -1
- package/lib/async/index.js +1 -1
- package/lib/common/index.js +1 -1
- package/lib/common/sitemap/index.js +1 -1
- package/lib/common/sitemap/sitemap-collection.js +1 -1
- package/lib/common/sitemap/sitemap-index.js +1 -1
- package/lib/common/sitemap/sitemap.js +1 -1
- package/lib/html-snapshots.js +1 -1
- package/lib/input-generators/_base.js +1 -1
- package/lib/input-generators/array.js +1 -1
- package/lib/input-generators/index.js +1 -1
- package/lib/input-generators/robots.js +1 -1
- package/lib/input-generators/sitemap-index.js +1 -1
- package/lib/input-generators/sitemap.js +1 -1
- package/lib/input-generators/textfile.js +1 -1
- package/lib/phantom/customFilter.js +1 -1
- package/lib/phantom/default.js +1 -1
- package/lib/phantom/modules/cli.js +1 -1
- package/lib/phantom/modules/detectors.js +1 -1
- package/lib/phantom/modules/globals.js +1 -1
- package/lib/phantom/modules/selectorDetect.js +1 -1
- package/lib/phantom/modules/verbose.js +1 -1
- package/lib/phantom/removeScripts.js +1 -1
- package/lib/puppeteer/index.js +1 -1
- package/lib/puppeteer/removeScripts.js +1 -1
- package/package.json +4 -4
package/LICENSE.md
CHANGED
package/lib/async/exists.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Empirically, I found that either one of these NodeJS checks can fail,
|
|
6
6
|
* but both don't. This is a workaround.
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c) 2013 -
|
|
8
|
+
* Copyright (c) 2013 - 2025, Alex Grant, LocalNerve, contributors
|
|
9
9
|
* Licensed under the MIT license.
|
|
10
10
|
*/
|
|
11
11
|
|
package/lib/async/index.js
CHANGED
package/lib/common/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reused sitemap modules.
|
|
3
3
|
* Used by robots, sitemap, and sitemap-index input generators.
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c) 2013 -
|
|
5
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
6
6
|
* Licensed under the MIT license.
|
|
7
7
|
*/
|
|
8
8
|
const sitemap = require("./sitemap");
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Generates the urls for a sitemap-index.
|
|
5
5
|
*
|
|
6
|
-
* Copyright (c) 2013 -
|
|
6
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
7
7
|
* Licensed under the MIT license.
|
|
8
8
|
*/
|
|
9
9
|
const smc = require("./sitemap-collection");
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* An input generator for html-snapshots that uses a sitemap.xml file.
|
|
5
5
|
* Creates the snapshot arguments driven from sitemap.xml urls.
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c) 2013 -
|
|
7
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
|
package/lib/html-snapshots.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* By default, uses a selector to search content to determine if
|
|
7
7
|
* a page is "ready" for its html snapshot.
|
|
8
8
|
*
|
|
9
|
-
* Copyright (c) 2013 -
|
|
9
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
10
10
|
* Licensed under the MIT license.
|
|
11
11
|
*/
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* An input generator for html-snapshots that uses a javascript array
|
|
5
5
|
* to generate snapshot input from the host relative page urls.
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c) 2013 -
|
|
7
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Input generator factory
|
|
5
5
|
* Create an input generator that produces snapshots arguments
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c) 2013 -
|
|
7
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* An input generator for html-snapshots that uses a simple robots.txt file.
|
|
5
5
|
* Creates the snapshot arguments driven from robots.txt Sitemap or Allow directives.
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c) 2013 -
|
|
7
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* An input generator for html-snapshots that uses a sitemap index xml file.
|
|
5
5
|
* Creates the snapshot arguments driven from multiple sitemap.xml urls.
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c) 2013 -
|
|
7
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
const common = require("../common");
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* An input generator for html-snapshots that uses a sitemap.xml file.
|
|
5
5
|
* Creates the snapshot arguments driven from sitemap.xml urls.
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c) 2013 -
|
|
7
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* An input generator for html-snapshots that uses a simple text file
|
|
5
5
|
* with the host relative page urls, one per line.
|
|
6
6
|
*
|
|
7
|
-
* Copyright (c) 2013 -
|
|
7
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This is a phantomJS script that runs in phantomjs.
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c) 2013 -
|
|
10
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
11
11
|
* Licensed under the MIT license.
|
|
12
12
|
*/
|
|
13
13
|
var selectorDetect = require("./modules/selectorDetect");
|
package/lib/phantom/default.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This is a phantomJS script that runs in phantomjs.
|
|
8
8
|
*
|
|
9
|
-
* Copyright (c) 2013 -
|
|
9
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
10
10
|
* Licensed under the MIT license.
|
|
11
11
|
*/
|
|
12
12
|
var selectorDetect = require("./modules/selectorDetect");
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* This is a module for a phantomJS script that runs in phantomjs.
|
|
13
13
|
*
|
|
14
|
-
* Copyright (c) 2013 -
|
|
14
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
15
15
|
* Licensed under the MIT license.
|
|
16
16
|
*/
|
|
17
17
|
/* global document, $ */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This is a module for a phantomJS script that runs in phantomjs.
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c) 2013 -
|
|
8
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
9
9
|
* Licensed under the MIT license.
|
|
10
10
|
*/
|
|
11
11
|
/* global phantom */
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This is a module for a phantomJS script that runs in phantomjs.
|
|
7
7
|
*
|
|
8
|
-
* Copyright (c) 2013 -
|
|
8
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
9
9
|
* Licensed under the MIT license.
|
|
10
10
|
*/
|
|
11
11
|
/* global window */
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This is a phantomJS script that runs in phantomjs.
|
|
9
9
|
*
|
|
10
|
-
* Copyright (c) 2013 -
|
|
10
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
11
11
|
* Licensed under the MIT license.
|
|
12
12
|
*/
|
|
13
13
|
var selectorDetect = require("./modules/selectorDetect");
|
package/lib/puppeteer/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* [8] - slowMo
|
|
15
15
|
* [9] - arbitrary launchOptions
|
|
16
16
|
*
|
|
17
|
-
* Copyright (c) 2013 -
|
|
17
|
+
* Copyright (c) 2013 - 2025 Alex Grant, LocalNerve, contributors
|
|
18
18
|
* Licensed under the MIT license.
|
|
19
19
|
*/
|
|
20
20
|
const puppeteer = require('puppeteer');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-snapshots",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Alex Grant",
|
|
6
6
|
"email": "alex@localnerve.com",
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
"combine-errors": "3.0.3",
|
|
56
56
|
"got": "^13.0.0",
|
|
57
57
|
"phantomjs-prebuilt": "2.1.16",
|
|
58
|
-
"puppeteer": "^
|
|
58
|
+
"puppeteer": "^24.1.0",
|
|
59
59
|
"xml2js": "0.6.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"eslint": "^9.
|
|
63
|
-
"@eslint/js": "^9.
|
|
62
|
+
"eslint": "^9.18.0",
|
|
63
|
+
"@eslint/js": "^9.18.0",
|
|
64
64
|
"globals": "^15.14.0",
|
|
65
65
|
"express": "^4.21.2",
|
|
66
66
|
"mocha": "^11.0.1",
|