html-snapshots 0.17.8 → 0.18.2
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/.c8rc.json +5 -0
- package/.github/workflows/verify.yml +3 -3
- package/LICENSE.md +1 -1
- package/README.md +5 -5
- package/examples/custom/myFilter.js +1 -1
- package/examples/custom/package-lock.json +74 -67
- package/examples/custom/package.json +1 -1
- package/examples/custom/snapshot.js +1 -1
- package/examples/debug-phantomjs/package-lock.json +74 -67
- package/examples/debug-phantomjs/package.json +1 -1
- package/examples/debug-phantomjs/snapshot.js +1 -1
- package/examples/html5rocks/package-lock.json +74 -67
- package/examples/html5rocks/package.json +1 -1
- package/examples/html5rocks/snapshot.js +1 -1
- package/examples/process-limit/package-lock.json +74 -67
- package/examples/process-limit/package.json +1 -1
- package/examples/process-limit/snapshot.js +1 -1
- package/examples/simple-promise/package-lock.json +74 -67
- package/examples/simple-promise/package.json +1 -1
- package/examples/simple-promise/snapshot.js +1 -1
- package/examples/sitemap-index/package-lock.json +131 -124
- package/examples/sitemap-index/package.json +1 -1
- package/examples/sitemap-index/snapshot.js +1 -1
- package/examples/utils/index.js +1 -1
- package/examples/verbose/package-lock.json +74 -67
- package/examples/verbose/package.json +1 -1
- package/examples/verbose/snapshot.js +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/node.js +1 -1
- package/lib/common/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/package.json +19 -19
- package/test/helpers/options.js +1 -1
- package/test/helpers/result.js +1 -1
- package/test/helpers/sitemap.js +1 -1
- package/test/mocha/async/test.js +1 -1
- package/test/mocha/common/helpers.js +1 -1
- package/test/mocha/common/node.js +1 -1
- package/test/mocha/common/test.js +1 -1
- package/test/mocha/html-snapshots/basics.js +1 -1
- package/test/mocha/html-snapshots/myFilter.js +1 -1
- package/test/mocha/html-snapshots/phantomjs-options.js +1 -1
- package/test/mocha/html-snapshots/process-limit.js +1 -1
- package/test/mocha/html-snapshots/robots.js +1 -1
- package/test/mocha/html-snapshots/sitemap-index.js +1 -1
- package/test/mocha/html-snapshots/sitemap.js +1 -1
- package/test/mocha/html-snapshots/snapshot-scripts.js +1 -1
- package/test/mocha/html-snapshots/test.js +1 -1
- package/test/mocha/html-snapshots/use-jquery.js +1 -1
- package/test/mocha/html-snapshots/utils.js +1 -1
- package/test/mocha/input-generators/sitemap-index.js +1 -1
- package/test/mocha/input-generators/sitemap.js +1 -1
- package/test/mocha/input-generators/test.js +1 -1
- package/test/server/index.js +1 -1
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"asn1": {
|
|
19
|
-
"version": "0.2.
|
|
20
|
-
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.
|
|
21
|
-
"integrity": "sha512-
|
|
19
|
+
"version": "0.2.6",
|
|
20
|
+
"resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz",
|
|
21
|
+
"integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==",
|
|
22
22
|
"requires": {
|
|
23
23
|
"safer-buffer": "~2.1.0"
|
|
24
24
|
}
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU="
|
|
30
30
|
},
|
|
31
31
|
"async": {
|
|
32
|
-
"version": "3.2.
|
|
33
|
-
"resolved": "https://registry.npmjs.org/async/-/async-3.2.
|
|
34
|
-
"integrity": "sha512-
|
|
32
|
+
"version": "3.2.3",
|
|
33
|
+
"resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz",
|
|
34
|
+
"integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g=="
|
|
35
35
|
},
|
|
36
36
|
"async-lock": {
|
|
37
|
-
"version": "1.
|
|
38
|
-
"resolved": "https://registry.npmjs.org/async-lock/-/async-lock-1.
|
|
39
|
-
"integrity": "sha512-
|
|
37
|
+
"version": "1.3.1",
|
|
38
|
+
"resolved": "https://registry.npmjs.org/async-lock/-/async-lock-1.3.1.tgz",
|
|
39
|
+
"integrity": "sha512-zK7xap9UnttfbE23JmcrNIyueAn6jWshihJqA33U/hEnKprF/lVGBDsBv/bqLm2YMMl1DnpHhUY044eA0t1TUw=="
|
|
40
40
|
},
|
|
41
41
|
"asynckit": {
|
|
42
42
|
"version": "0.4.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"integrity": "sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA=="
|
|
55
55
|
},
|
|
56
56
|
"balanced-match": {
|
|
57
|
-
"version": "1.0.
|
|
58
|
-
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.
|
|
59
|
-
"integrity": "
|
|
57
|
+
"version": "1.0.2",
|
|
58
|
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
|
|
59
|
+
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
|
|
60
60
|
},
|
|
61
61
|
"bcrypt-pbkdf": {
|
|
62
62
|
"version": "1.0.2",
|
|
@@ -81,9 +81,9 @@
|
|
|
81
81
|
"integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI="
|
|
82
82
|
},
|
|
83
83
|
"buffer-from": {
|
|
84
|
-
"version": "1.1.
|
|
85
|
-
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.
|
|
86
|
-
"integrity": "sha512-
|
|
84
|
+
"version": "1.1.2",
|
|
85
|
+
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",
|
|
86
|
+
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="
|
|
87
87
|
},
|
|
88
88
|
"caseless": {
|
|
89
89
|
"version": "0.12.0",
|
|
@@ -124,9 +124,9 @@
|
|
|
124
124
|
}
|
|
125
125
|
},
|
|
126
126
|
"core-util-is": {
|
|
127
|
-
"version": "1.0.
|
|
128
|
-
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.
|
|
129
|
-
"integrity": "
|
|
127
|
+
"version": "1.0.3",
|
|
128
|
+
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
|
|
129
|
+
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
|
|
130
130
|
},
|
|
131
131
|
"custom-error-instance": {
|
|
132
132
|
"version": "2.1.1",
|
|
@@ -185,11 +185,11 @@
|
|
|
185
185
|
},
|
|
186
186
|
"dependencies": {
|
|
187
187
|
"mkdirp": {
|
|
188
|
-
"version": "0.5.
|
|
189
|
-
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.
|
|
190
|
-
"integrity": "sha512-
|
|
188
|
+
"version": "0.5.6",
|
|
189
|
+
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
|
|
190
|
+
"integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
|
|
191
191
|
"requires": {
|
|
192
|
-
"minimist": "^1.2.
|
|
192
|
+
"minimist": "^1.2.6"
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
@@ -256,9 +256,9 @@
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
"glob": {
|
|
259
|
-
"version": "7.
|
|
260
|
-
"resolved": "https://registry.npmjs.org/glob/-/glob-7.
|
|
261
|
-
"integrity": "sha512-
|
|
259
|
+
"version": "7.2.0",
|
|
260
|
+
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz",
|
|
261
|
+
"integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==",
|
|
262
262
|
"requires": {
|
|
263
263
|
"fs.realpath": "^1.0.0",
|
|
264
264
|
"inflight": "^1.0.4",
|
|
@@ -269,9 +269,9 @@
|
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
271
|
"graceful-fs": {
|
|
272
|
-
"version": "4.2.
|
|
273
|
-
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.
|
|
274
|
-
"integrity": "sha512-
|
|
272
|
+
"version": "4.2.10",
|
|
273
|
+
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz",
|
|
274
|
+
"integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA=="
|
|
275
275
|
},
|
|
276
276
|
"har-schema": {
|
|
277
277
|
"version": "2.0.0",
|
|
@@ -297,19 +297,19 @@
|
|
|
297
297
|
}
|
|
298
298
|
},
|
|
299
299
|
"html-snapshots": {
|
|
300
|
-
"version": "0.
|
|
301
|
-
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-0.
|
|
302
|
-
"integrity": "sha512-
|
|
300
|
+
"version": "0.18.1",
|
|
301
|
+
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-0.18.1.tgz",
|
|
302
|
+
"integrity": "sha512-KZWStebO9hZegnrRjFkQnP+GrBL5kFKVHkxROPLW9SIfzt8mahxbiY8Gj+m0aP/JVairtkR5r65r+58q2RHzWA==",
|
|
303
303
|
"requires": {
|
|
304
|
-
"async": "3.2.
|
|
305
|
-
"async-lock": "1.
|
|
304
|
+
"async": "3.2.3",
|
|
305
|
+
"async-lock": "1.3.1",
|
|
306
306
|
"combine-errors": "3.0.3",
|
|
307
|
-
"lodash": "
|
|
308
|
-
"mkdirp": "
|
|
307
|
+
"lodash": "4.17.21",
|
|
308
|
+
"mkdirp": "1.0.4",
|
|
309
309
|
"phantomjs-prebuilt": "2.1.16",
|
|
310
|
-
"request": "
|
|
311
|
-
"rimraf": "
|
|
312
|
-
"xml2js": "
|
|
310
|
+
"request": "2.88.2",
|
|
311
|
+
"rimraf": "3.0.2",
|
|
312
|
+
"xml2js": "0.4.23"
|
|
313
313
|
}
|
|
314
314
|
},
|
|
315
315
|
"http-signature": {
|
|
@@ -367,9 +367,9 @@
|
|
|
367
367
|
"integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM="
|
|
368
368
|
},
|
|
369
369
|
"json-schema": {
|
|
370
|
-
"version": "0.
|
|
371
|
-
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.
|
|
372
|
-
"integrity": "
|
|
370
|
+
"version": "0.4.0",
|
|
371
|
+
"resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz",
|
|
372
|
+
"integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA=="
|
|
373
373
|
},
|
|
374
374
|
"json-schema-traverse": {
|
|
375
375
|
"version": "0.4.1",
|
|
@@ -390,13 +390,13 @@
|
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
392
|
"jsprim": {
|
|
393
|
-
"version": "1.4.
|
|
394
|
-
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.
|
|
395
|
-
"integrity": "
|
|
393
|
+
"version": "1.4.2",
|
|
394
|
+
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz",
|
|
395
|
+
"integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==",
|
|
396
396
|
"requires": {
|
|
397
397
|
"assert-plus": "1.0.0",
|
|
398
398
|
"extsprintf": "1.3.0",
|
|
399
|
-
"json-schema": "0.
|
|
399
|
+
"json-schema": "0.4.0",
|
|
400
400
|
"verror": "1.10.0"
|
|
401
401
|
}
|
|
402
402
|
},
|
|
@@ -414,9 +414,9 @@
|
|
|
414
414
|
}
|
|
415
415
|
},
|
|
416
416
|
"lodash": {
|
|
417
|
-
"version": "4.17.
|
|
418
|
-
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.
|
|
419
|
-
"integrity": "sha512-
|
|
417
|
+
"version": "4.17.21",
|
|
418
|
+
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
|
419
|
+
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
|
420
420
|
},
|
|
421
421
|
"lodash._baseiteratee": {
|
|
422
422
|
"version": "4.7.0",
|
|
@@ -468,30 +468,30 @@
|
|
|
468
468
|
}
|
|
469
469
|
},
|
|
470
470
|
"mime-db": {
|
|
471
|
-
"version": "1.
|
|
472
|
-
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.
|
|
473
|
-
"integrity": "sha512-
|
|
471
|
+
"version": "1.52.0",
|
|
472
|
+
"resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
|
|
473
|
+
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="
|
|
474
474
|
},
|
|
475
475
|
"mime-types": {
|
|
476
|
-
"version": "2.1.
|
|
477
|
-
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.
|
|
478
|
-
"integrity": "sha512-
|
|
476
|
+
"version": "2.1.35",
|
|
477
|
+
"resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
|
|
478
|
+
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
|
|
479
479
|
"requires": {
|
|
480
|
-
"mime-db": "1.
|
|
480
|
+
"mime-db": "1.52.0"
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
483
|
"minimatch": {
|
|
484
|
-
"version": "3.
|
|
485
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.
|
|
486
|
-
"integrity": "sha512-
|
|
484
|
+
"version": "3.1.2",
|
|
485
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
|
|
486
|
+
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
|
|
487
487
|
"requires": {
|
|
488
488
|
"brace-expansion": "^1.1.7"
|
|
489
489
|
}
|
|
490
490
|
},
|
|
491
491
|
"minimist": {
|
|
492
|
-
"version": "1.2.
|
|
493
|
-
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.
|
|
494
|
-
"integrity": "sha512-
|
|
492
|
+
"version": "1.2.6",
|
|
493
|
+
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
|
|
494
|
+
"integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
|
|
495
495
|
},
|
|
496
496
|
"mkdirp": {
|
|
497
497
|
"version": "1.0.4",
|
|
@@ -581,9 +581,9 @@
|
|
|
581
581
|
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
|
|
582
582
|
},
|
|
583
583
|
"qs": {
|
|
584
|
-
"version": "6.5.
|
|
585
|
-
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.
|
|
586
|
-
"integrity": "sha512-
|
|
584
|
+
"version": "6.5.3",
|
|
585
|
+
"resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz",
|
|
586
|
+
"integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA=="
|
|
587
587
|
},
|
|
588
588
|
"readable-stream": {
|
|
589
589
|
"version": "2.3.7",
|
|
@@ -658,9 +658,9 @@
|
|
|
658
658
|
"integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw=="
|
|
659
659
|
},
|
|
660
660
|
"sshpk": {
|
|
661
|
-
"version": "1.
|
|
662
|
-
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.
|
|
663
|
-
"integrity": "sha512
|
|
661
|
+
"version": "1.17.0",
|
|
662
|
+
"resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.17.0.tgz",
|
|
663
|
+
"integrity": "sha512-/9HIEs1ZXGhSPE8X6Ccm7Nam1z8KcoCqPdI7ecm1N33EzAetWahvQWVqLZtaZQ+IDKX4IyA2o0gBzqIMkAagHQ==",
|
|
664
664
|
"requires": {
|
|
665
665
|
"asn1": "~0.2.3",
|
|
666
666
|
"assert-plus": "^1.0.0",
|
|
@@ -739,6 +739,13 @@
|
|
|
739
739
|
"assert-plus": "^1.0.0",
|
|
740
740
|
"core-util-is": "1.0.2",
|
|
741
741
|
"extsprintf": "^1.2.0"
|
|
742
|
+
},
|
|
743
|
+
"dependencies": {
|
|
744
|
+
"core-util-is": {
|
|
745
|
+
"version": "1.0.2",
|
|
746
|
+
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz",
|
|
747
|
+
"integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac="
|
|
748
|
+
}
|
|
742
749
|
}
|
|
743
750
|
},
|
|
744
751
|
"which": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Snapshot an example website.
|
|
3
|
-
* Copyright (c) 2013 -
|
|
3
|
+
* Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
|
|
4
4
|
*
|
|
5
5
|
* Use sitemap.xml to snapshot an entire site.
|
|
6
6
|
* Use the verbose option to debug the loading of one of the pages.
|
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 - 2022, 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
package/lib/common/node.js
CHANGED
package/lib/common/sitemap.js
CHANGED
|
@@ -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 - 2022 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 - 2022 Alex Grant, LocalNerve, contributors
|
|
10
10
|
* Licensed under the MIT license.
|
|
11
11
|
*/
|
|
12
12
|
/* global Promise */
|
|
@@ -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 - 2022 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
/* global Promise */
|
|
@@ -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 - 2022 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Does not support wildcards.
|
|
7
7
|
* If you need wildcards, use the sitemap input generator.
|
|
8
8
|
*
|
|
9
|
-
* Copyright (c) 2013 -
|
|
9
|
+
* Copyright (c) 2013 - 2022 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 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 - 2022 Alex Grant, LocalNerve, contributors
|
|
8
8
|
* Licensed under the MIT license.
|
|
9
9
|
*/
|
|
10
10
|
/* global Promise */
|
|
@@ -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 - 2022 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 - 2022 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 - 2022 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 - 2022 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 - 2022 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 - 2022 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 - 2022 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 - 2022 Alex Grant, LocalNerve, contributors
|
|
11
11
|
* Licensed under the MIT license.
|
|
12
12
|
*/
|
|
13
13
|
var selectorDetect = require("./modules/selectorDetect");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "html-snapshots",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Alex Grant",
|
|
6
6
|
"email": "alex@localnerve.com",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test:common": "mocha test/mocha/common/*.js --exit --reporter spec",
|
|
25
25
|
"test:input-generators": "mocha test/mocha/input-generators/*.js --exit --reporter spec",
|
|
26
26
|
"test:html-snapshots": "mocha test/mocha/html-snapshots/*.js --exit --reporter spec",
|
|
27
|
-
"test:cover": "
|
|
27
|
+
"test:cover": "c8 -- npm test",
|
|
28
28
|
"validate": "npm ls"
|
|
29
29
|
},
|
|
30
30
|
"pre-commit": [
|
|
@@ -46,29 +46,29 @@
|
|
|
46
46
|
"sitemap.xml"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"async": "3.2.
|
|
50
|
-
"async-lock": "1.2
|
|
49
|
+
"async": "3.2.4",
|
|
50
|
+
"async-lock": "1.3.2",
|
|
51
51
|
"combine-errors": "3.0.3",
|
|
52
|
-
"lodash": "
|
|
53
|
-
"mkdirp": "
|
|
52
|
+
"lodash": "4.17.21",
|
|
53
|
+
"mkdirp": "1.0.4",
|
|
54
54
|
"phantomjs-prebuilt": "2.1.16",
|
|
55
|
-
"request": "
|
|
56
|
-
"rimraf": "
|
|
57
|
-
"xml2js": "
|
|
55
|
+
"request": "2.88.2",
|
|
56
|
+
"rimraf": "3.0.2",
|
|
57
|
+
"xml2js": "0.4.23"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"coveralls": "
|
|
61
|
-
"eslint": "
|
|
62
|
-
"express": "
|
|
63
|
-
"mocha": "
|
|
64
|
-
"
|
|
65
|
-
"precommit-hook": "
|
|
66
|
-
"server-destroy": "
|
|
67
|
-
"sitemap-xml": "
|
|
68
|
-
"handlebars": "4.7.
|
|
60
|
+
"coveralls": "3.1.1",
|
|
61
|
+
"eslint": "8.14.0",
|
|
62
|
+
"express": "4.18.1",
|
|
63
|
+
"mocha": "10.0.0",
|
|
64
|
+
"c8": "7.11.2",
|
|
65
|
+
"precommit-hook": "3.0.0",
|
|
66
|
+
"server-destroy": "1.0.1",
|
|
67
|
+
"sitemap-xml": "0.1.0",
|
|
68
|
+
"handlebars": "4.7.7"
|
|
69
69
|
},
|
|
70
70
|
"license": "MIT",
|
|
71
71
|
"engines": {
|
|
72
|
-
"node": ">=
|
|
72
|
+
"node": ">= 14"
|
|
73
73
|
}
|
|
74
74
|
}
|
package/test/helpers/options.js
CHANGED
package/test/helpers/result.js
CHANGED
package/test/helpers/sitemap.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Helper to add dynamic url nodes to a test sitemap.
|
|
3
3
|
*
|
|
4
|
-
* Copyright (c) 2013 -
|
|
4
|
+
* Copyright (c) 2013 - 2022, Alex Grant, LocalNerve, contributors
|
|
5
5
|
*/
|
|
6
6
|
var smLib = require("sitemap-xml");
|
|
7
7
|
var urlLib = require("url");
|
package/test/mocha/async/test.js
CHANGED