html-snapshots 1.2.0 → 1.3.1
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 +12 -0
- package/examples/html5rocks/package-lock.json +455 -57
- package/examples/html5rocks/package.json +1 -1
- package/examples/simple-promise/package-lock.json +89 -64
- package/examples/simple-promise/package.json +1 -1
- package/examples/sitemap-index/package-lock.json +43 -43
- package/examples/sitemap-index/package.json +1 -1
- package/lib/html-snapshots.js +4 -2
- package/lib/input-generators/_base.js +33 -3
- package/lib/puppeteer/index.js +11 -6
- package/package.json +4 -4
- package/test/mocha/browsers/puppeteer.js +24 -1
- package/test/mocha/input-generators/test.js +90 -0
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "html-snapshots-example",
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"html-snapshots": "^1.0
|
|
11
|
+
"html-snapshots": "^1.2.0"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"node_modules/@sindresorhus/is": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ=="
|
|
40
40
|
},
|
|
41
41
|
"node_modules/@types/node": {
|
|
42
|
-
"version": "18.
|
|
43
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.
|
|
44
|
-
"integrity": "sha512-
|
|
42
|
+
"version": "18.11.3",
|
|
43
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.3.tgz",
|
|
44
|
+
"integrity": "sha512-fNjDQzzOsZeKZu5NATgXUPsaFaTxeRgFXoosrHivTl8RGeV733OLawXsGfEk9a8/tySyZUyiZ6E8LcjPFZ2y1A==",
|
|
45
45
|
"optional": true
|
|
46
46
|
},
|
|
47
47
|
"node_modules/@types/yauzl": {
|
|
@@ -253,16 +253,16 @@
|
|
|
253
253
|
}
|
|
254
254
|
},
|
|
255
255
|
"node_modules/cacheable-request": {
|
|
256
|
-
"version": "10.2.
|
|
257
|
-
"resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.
|
|
258
|
-
"integrity": "sha512-
|
|
256
|
+
"version": "10.2.2",
|
|
257
|
+
"resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.2.tgz",
|
|
258
|
+
"integrity": "sha512-KxjQZM3UIo7/J6W4sLpwFvu1GB3Whv8NtZ8ZrUL284eiQjiXeeqWTdhixNrp/NLZ/JNuFBo6BD4ZaO8ZJ5BN8Q==",
|
|
259
259
|
"dependencies": {
|
|
260
260
|
"@types/http-cache-semantics": "^4.0.1",
|
|
261
261
|
"get-stream": "^6.0.1",
|
|
262
262
|
"http-cache-semantics": "^4.1.0",
|
|
263
263
|
"keyv": "^4.5.0",
|
|
264
264
|
"mimic-response": "^4.0.0",
|
|
265
|
-
"normalize-url": "^7.
|
|
265
|
+
"normalize-url": "^7.2.0",
|
|
266
266
|
"responselike": "^3.0.0"
|
|
267
267
|
},
|
|
268
268
|
"engines": {
|
|
@@ -397,9 +397,9 @@
|
|
|
397
397
|
}
|
|
398
398
|
},
|
|
399
399
|
"node_modules/devtools-protocol": {
|
|
400
|
-
"version": "0.0.
|
|
401
|
-
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.
|
|
402
|
-
"integrity": "sha512-
|
|
400
|
+
"version": "0.0.1045489",
|
|
401
|
+
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1045489.tgz",
|
|
402
|
+
"integrity": "sha512-D+PTmWulkuQW4D1NTiCRCFxF7pQPn0hgp4YyX4wAQ6xYXKOadSWPR3ENGDQ47MW/Ewc9v2rpC/UEEGahgBYpSQ=="
|
|
403
403
|
},
|
|
404
404
|
"node_modules/ecc-jsbn": {
|
|
405
405
|
"version": "0.1.2",
|
|
@@ -567,9 +567,9 @@
|
|
|
567
567
|
}
|
|
568
568
|
},
|
|
569
569
|
"node_modules/got": {
|
|
570
|
-
"version": "12.5.
|
|
571
|
-
"resolved": "https://registry.npmjs.org/got/-/got-12.5.
|
|
572
|
-
"integrity": "sha512-
|
|
570
|
+
"version": "12.5.2",
|
|
571
|
+
"resolved": "https://registry.npmjs.org/got/-/got-12.5.2.tgz",
|
|
572
|
+
"integrity": "sha512-guHGMSEcsA5m1oPRweXUJnug0vuvlkX9wx5hzOka+ZBrBUOJHU0Z1JcNu3QE5IPGnA5aXUsQHdWOD4eJg9/v3A==",
|
|
573
573
|
"dependencies": {
|
|
574
574
|
"@sindresorhus/is": "^5.2.0",
|
|
575
575
|
"@szmarczak/http-timer": "^5.0.1",
|
|
@@ -629,18 +629,18 @@
|
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
"node_modules/html-snapshots": {
|
|
632
|
-
"version": "1.0
|
|
633
|
-
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.0.
|
|
634
|
-
"integrity": "sha512
|
|
632
|
+
"version": "1.2.0",
|
|
633
|
+
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.2.0.tgz",
|
|
634
|
+
"integrity": "sha512-/erOUW66PXzxzmq9daIt9F/sOGtLCKIjT7VuFUutNeZCtjiK6eM6bBiF9CFq9SOsyJ1sWqFasBUsq7F9GSnWpA==",
|
|
635
635
|
"dependencies": {
|
|
636
636
|
"async": "3.2.4",
|
|
637
637
|
"async-lock": "1.3.2",
|
|
638
638
|
"combine-errors": "3.0.3",
|
|
639
|
-
"got": "12.5.
|
|
639
|
+
"got": "12.5.2",
|
|
640
640
|
"lodash": "4.17.21",
|
|
641
641
|
"mkdirp": "1.0.4",
|
|
642
642
|
"phantomjs-prebuilt": "2.1.16",
|
|
643
|
-
"puppeteer": "^
|
|
643
|
+
"puppeteer": "^19.0.0",
|
|
644
644
|
"rimraf": "3.0.2",
|
|
645
645
|
"xml2js": "0.4.23"
|
|
646
646
|
},
|
|
@@ -1126,28 +1126,41 @@
|
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
1128
|
"node_modules/puppeteer": {
|
|
1129
|
-
"version": "
|
|
1130
|
-
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-
|
|
1131
|
-
"integrity": "sha512-
|
|
1129
|
+
"version": "19.0.0",
|
|
1130
|
+
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.0.0.tgz",
|
|
1131
|
+
"integrity": "sha512-3Ga5IVerQQ2hKU9q7T28RmcUsd8F2kL6cYuPcPCzeclSjmHhGydPBZL/KJKC02sG6J6Wfry85uiWpbkjQ5qBiw==",
|
|
1132
1132
|
"hasInstallScript": true,
|
|
1133
|
+
"dependencies": {
|
|
1134
|
+
"https-proxy-agent": "5.0.1",
|
|
1135
|
+
"progress": "2.0.3",
|
|
1136
|
+
"proxy-from-env": "1.1.0",
|
|
1137
|
+
"puppeteer-core": "19.0.0"
|
|
1138
|
+
},
|
|
1139
|
+
"engines": {
|
|
1140
|
+
"node": ">=14.1.0"
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
"node_modules/puppeteer-core": {
|
|
1144
|
+
"version": "19.0.0",
|
|
1145
|
+
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.0.0.tgz",
|
|
1146
|
+
"integrity": "sha512-OljQ9W5M4cBX68vnOAGbcRkVENDHn6lfj6QYoGsnLQsxPAh6ExTQAhHauwdFdQkhYdDExZFWlKArnBONzeHY+g==",
|
|
1133
1147
|
"dependencies": {
|
|
1134
1148
|
"cross-fetch": "3.1.5",
|
|
1135
1149
|
"debug": "4.3.4",
|
|
1136
|
-
"devtools-protocol": "0.0.
|
|
1150
|
+
"devtools-protocol": "0.0.1045489",
|
|
1137
1151
|
"extract-zip": "2.0.1",
|
|
1138
1152
|
"https-proxy-agent": "5.0.1",
|
|
1139
|
-
"progress": "2.0.3",
|
|
1140
1153
|
"proxy-from-env": "1.1.0",
|
|
1141
1154
|
"rimraf": "3.0.2",
|
|
1142
1155
|
"tar-fs": "2.1.1",
|
|
1143
1156
|
"unbzip2-stream": "1.4.3",
|
|
1144
|
-
"ws": "8.
|
|
1157
|
+
"ws": "8.9.0"
|
|
1145
1158
|
},
|
|
1146
1159
|
"engines": {
|
|
1147
1160
|
"node": ">=14.1.0"
|
|
1148
1161
|
}
|
|
1149
1162
|
},
|
|
1150
|
-
"node_modules/puppeteer/node_modules/debug": {
|
|
1163
|
+
"node_modules/puppeteer-core/node_modules/debug": {
|
|
1151
1164
|
"version": "4.3.4",
|
|
1152
1165
|
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz",
|
|
1153
1166
|
"integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==",
|
|
@@ -1163,7 +1176,7 @@
|
|
|
1163
1176
|
}
|
|
1164
1177
|
}
|
|
1165
1178
|
},
|
|
1166
|
-
"node_modules/puppeteer/node_modules/extract-zip": {
|
|
1179
|
+
"node_modules/puppeteer-core/node_modules/extract-zip": {
|
|
1167
1180
|
"version": "2.0.1",
|
|
1168
1181
|
"resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz",
|
|
1169
1182
|
"integrity": "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg==",
|
|
@@ -1182,7 +1195,7 @@
|
|
|
1182
1195
|
"@types/yauzl": "^2.9.1"
|
|
1183
1196
|
}
|
|
1184
1197
|
},
|
|
1185
|
-
"node_modules/puppeteer/node_modules/get-stream": {
|
|
1198
|
+
"node_modules/puppeteer-core/node_modules/get-stream": {
|
|
1186
1199
|
"version": "5.2.0",
|
|
1187
1200
|
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz",
|
|
1188
1201
|
"integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==",
|
|
@@ -1196,7 +1209,7 @@
|
|
|
1196
1209
|
"url": "https://github.com/sponsors/sindresorhus"
|
|
1197
1210
|
}
|
|
1198
1211
|
},
|
|
1199
|
-
"node_modules/puppeteer/node_modules/ms": {
|
|
1212
|
+
"node_modules/puppeteer-core/node_modules/ms": {
|
|
1200
1213
|
"version": "2.1.2",
|
|
1201
1214
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
|
1202
1215
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
|
@@ -1528,9 +1541,9 @@
|
|
|
1528
1541
|
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
|
|
1529
1542
|
},
|
|
1530
1543
|
"node_modules/ws": {
|
|
1531
|
-
"version": "8.
|
|
1532
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-8.
|
|
1533
|
-
"integrity": "sha512-
|
|
1544
|
+
"version": "8.9.0",
|
|
1545
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
|
|
1546
|
+
"integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
|
|
1534
1547
|
"engines": {
|
|
1535
1548
|
"node": ">=10.0.0"
|
|
1536
1549
|
},
|
|
@@ -1597,9 +1610,9 @@
|
|
|
1597
1610
|
"integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ=="
|
|
1598
1611
|
},
|
|
1599
1612
|
"@types/node": {
|
|
1600
|
-
"version": "18.
|
|
1601
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.
|
|
1602
|
-
"integrity": "sha512-
|
|
1613
|
+
"version": "18.11.3",
|
|
1614
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.3.tgz",
|
|
1615
|
+
"integrity": "sha512-fNjDQzzOsZeKZu5NATgXUPsaFaTxeRgFXoosrHivTl8RGeV733OLawXsGfEk9a8/tySyZUyiZ6E8LcjPFZ2y1A==",
|
|
1603
1616
|
"optional": true
|
|
1604
1617
|
},
|
|
1605
1618
|
"@types/yauzl": {
|
|
@@ -1757,16 +1770,16 @@
|
|
|
1757
1770
|
"integrity": "sha512-+qJyx4xiKra8mZrcwhjMRMUhD5NR1R8esPkzIYxX96JiecFoxAXFuz/GpR3+ev4PE1WamHip78wV0vcmPQtp8w=="
|
|
1758
1771
|
},
|
|
1759
1772
|
"cacheable-request": {
|
|
1760
|
-
"version": "10.2.
|
|
1761
|
-
"resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.
|
|
1762
|
-
"integrity": "sha512-
|
|
1773
|
+
"version": "10.2.2",
|
|
1774
|
+
"resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-10.2.2.tgz",
|
|
1775
|
+
"integrity": "sha512-KxjQZM3UIo7/J6W4sLpwFvu1GB3Whv8NtZ8ZrUL284eiQjiXeeqWTdhixNrp/NLZ/JNuFBo6BD4ZaO8ZJ5BN8Q==",
|
|
1763
1776
|
"requires": {
|
|
1764
1777
|
"@types/http-cache-semantics": "^4.0.1",
|
|
1765
1778
|
"get-stream": "^6.0.1",
|
|
1766
1779
|
"http-cache-semantics": "^4.1.0",
|
|
1767
1780
|
"keyv": "^4.5.0",
|
|
1768
1781
|
"mimic-response": "^4.0.0",
|
|
1769
|
-
"normalize-url": "^7.
|
|
1782
|
+
"normalize-url": "^7.2.0",
|
|
1770
1783
|
"responselike": "^3.0.0"
|
|
1771
1784
|
}
|
|
1772
1785
|
},
|
|
@@ -1873,9 +1886,9 @@
|
|
|
1873
1886
|
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="
|
|
1874
1887
|
},
|
|
1875
1888
|
"devtools-protocol": {
|
|
1876
|
-
"version": "0.0.
|
|
1877
|
-
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.
|
|
1878
|
-
"integrity": "sha512-
|
|
1889
|
+
"version": "0.0.1045489",
|
|
1890
|
+
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1045489.tgz",
|
|
1891
|
+
"integrity": "sha512-D+PTmWulkuQW4D1NTiCRCFxF7pQPn0hgp4YyX4wAQ6xYXKOadSWPR3ENGDQ47MW/Ewc9v2rpC/UEEGahgBYpSQ=="
|
|
1879
1892
|
},
|
|
1880
1893
|
"ecc-jsbn": {
|
|
1881
1894
|
"version": "0.1.2",
|
|
@@ -2015,9 +2028,9 @@
|
|
|
2015
2028
|
}
|
|
2016
2029
|
},
|
|
2017
2030
|
"got": {
|
|
2018
|
-
"version": "12.5.
|
|
2019
|
-
"resolved": "https://registry.npmjs.org/got/-/got-12.5.
|
|
2020
|
-
"integrity": "sha512-
|
|
2031
|
+
"version": "12.5.2",
|
|
2032
|
+
"resolved": "https://registry.npmjs.org/got/-/got-12.5.2.tgz",
|
|
2033
|
+
"integrity": "sha512-guHGMSEcsA5m1oPRweXUJnug0vuvlkX9wx5hzOka+ZBrBUOJHU0Z1JcNu3QE5IPGnA5aXUsQHdWOD4eJg9/v3A==",
|
|
2021
2034
|
"requires": {
|
|
2022
2035
|
"@sindresorhus/is": "^5.2.0",
|
|
2023
2036
|
"@szmarczak/http-timer": "^5.0.1",
|
|
@@ -2061,18 +2074,18 @@
|
|
|
2061
2074
|
}
|
|
2062
2075
|
},
|
|
2063
2076
|
"html-snapshots": {
|
|
2064
|
-
"version": "1.0
|
|
2065
|
-
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.0.
|
|
2066
|
-
"integrity": "sha512
|
|
2077
|
+
"version": "1.2.0",
|
|
2078
|
+
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.2.0.tgz",
|
|
2079
|
+
"integrity": "sha512-/erOUW66PXzxzmq9daIt9F/sOGtLCKIjT7VuFUutNeZCtjiK6eM6bBiF9CFq9SOsyJ1sWqFasBUsq7F9GSnWpA==",
|
|
2067
2080
|
"requires": {
|
|
2068
2081
|
"async": "3.2.4",
|
|
2069
2082
|
"async-lock": "1.3.2",
|
|
2070
2083
|
"combine-errors": "3.0.3",
|
|
2071
|
-
"got": "12.5.
|
|
2084
|
+
"got": "12.5.2",
|
|
2072
2085
|
"lodash": "4.17.21",
|
|
2073
2086
|
"mkdirp": "1.0.4",
|
|
2074
2087
|
"phantomjs-prebuilt": "2.1.16",
|
|
2075
|
-
"puppeteer": "^
|
|
2088
|
+
"puppeteer": "^19.0.0",
|
|
2076
2089
|
"rimraf": "3.0.2",
|
|
2077
2090
|
"xml2js": "0.4.23"
|
|
2078
2091
|
}
|
|
@@ -2449,21 +2462,38 @@
|
|
|
2449
2462
|
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
|
|
2450
2463
|
},
|
|
2451
2464
|
"puppeteer": {
|
|
2452
|
-
"version": "
|
|
2453
|
-
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-
|
|
2454
|
-
"integrity": "sha512-
|
|
2465
|
+
"version": "19.0.0",
|
|
2466
|
+
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.0.0.tgz",
|
|
2467
|
+
"integrity": "sha512-3Ga5IVerQQ2hKU9q7T28RmcUsd8F2kL6cYuPcPCzeclSjmHhGydPBZL/KJKC02sG6J6Wfry85uiWpbkjQ5qBiw==",
|
|
2468
|
+
"requires": {
|
|
2469
|
+
"https-proxy-agent": "5.0.1",
|
|
2470
|
+
"progress": "2.0.3",
|
|
2471
|
+
"proxy-from-env": "1.1.0",
|
|
2472
|
+
"puppeteer-core": "19.0.0"
|
|
2473
|
+
},
|
|
2474
|
+
"dependencies": {
|
|
2475
|
+
"progress": {
|
|
2476
|
+
"version": "2.0.3",
|
|
2477
|
+
"resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
|
|
2478
|
+
"integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA=="
|
|
2479
|
+
}
|
|
2480
|
+
}
|
|
2481
|
+
},
|
|
2482
|
+
"puppeteer-core": {
|
|
2483
|
+
"version": "19.0.0",
|
|
2484
|
+
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.0.0.tgz",
|
|
2485
|
+
"integrity": "sha512-OljQ9W5M4cBX68vnOAGbcRkVENDHn6lfj6QYoGsnLQsxPAh6ExTQAhHauwdFdQkhYdDExZFWlKArnBONzeHY+g==",
|
|
2455
2486
|
"requires": {
|
|
2456
2487
|
"cross-fetch": "3.1.5",
|
|
2457
2488
|
"debug": "4.3.4",
|
|
2458
|
-
"devtools-protocol": "0.0.
|
|
2489
|
+
"devtools-protocol": "0.0.1045489",
|
|
2459
2490
|
"extract-zip": "2.0.1",
|
|
2460
2491
|
"https-proxy-agent": "5.0.1",
|
|
2461
|
-
"progress": "2.0.3",
|
|
2462
2492
|
"proxy-from-env": "1.1.0",
|
|
2463
2493
|
"rimraf": "3.0.2",
|
|
2464
2494
|
"tar-fs": "2.1.1",
|
|
2465
2495
|
"unbzip2-stream": "1.4.3",
|
|
2466
|
-
"ws": "8.
|
|
2496
|
+
"ws": "8.9.0"
|
|
2467
2497
|
},
|
|
2468
2498
|
"dependencies": {
|
|
2469
2499
|
"debug": {
|
|
@@ -2497,11 +2527,6 @@
|
|
|
2497
2527
|
"version": "2.1.2",
|
|
2498
2528
|
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
|
2499
2529
|
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
|
2500
|
-
},
|
|
2501
|
-
"progress": {
|
|
2502
|
-
"version": "2.0.3",
|
|
2503
|
-
"resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz",
|
|
2504
|
-
"integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA=="
|
|
2505
2530
|
}
|
|
2506
2531
|
}
|
|
2507
2532
|
},
|
|
@@ -2773,9 +2798,9 @@
|
|
|
2773
2798
|
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
|
|
2774
2799
|
},
|
|
2775
2800
|
"ws": {
|
|
2776
|
-
"version": "8.
|
|
2777
|
-
"resolved": "https://registry.npmjs.org/ws/-/ws-8.
|
|
2778
|
-
"integrity": "sha512-
|
|
2801
|
+
"version": "8.9.0",
|
|
2802
|
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.9.0.tgz",
|
|
2803
|
+
"integrity": "sha512-Ja7nszREasGaYUYCI2k4lCKIRTt+y7XuqVoHR44YpI49TtryyqbqvDMn5eqfW7e6HzTukDRIsXqzVHScqRcafg==",
|
|
2779
2804
|
"requires": {}
|
|
2780
2805
|
},
|
|
2781
2806
|
"xml2js": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "html-snapshots-example",
|
|
9
9
|
"version": "0.1.0",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"html-snapshots": "^1.
|
|
11
|
+
"html-snapshots": "^1.2.0"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"node_modules/@sindresorhus/is": {
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ=="
|
|
40
40
|
},
|
|
41
41
|
"node_modules/@types/node": {
|
|
42
|
-
"version": "18.
|
|
43
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.
|
|
44
|
-
"integrity": "sha512-
|
|
42
|
+
"version": "18.11.0",
|
|
43
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.0.tgz",
|
|
44
|
+
"integrity": "sha512-IOXCvVRToe7e0ny7HpT/X9Rb2RYtElG1a+VshjwT00HxrM2dWBApHQoqsI6WiY7Q03vdf2bCrIGzVrkF/5t10w==",
|
|
45
45
|
"optional": true
|
|
46
46
|
},
|
|
47
47
|
"node_modules/@types/yauzl": {
|
|
@@ -501,9 +501,9 @@
|
|
|
501
501
|
}
|
|
502
502
|
},
|
|
503
503
|
"node_modules/form-data-encoder": {
|
|
504
|
-
"version": "2.1.
|
|
505
|
-
"resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.
|
|
506
|
-
"integrity": "sha512-
|
|
504
|
+
"version": "2.1.3",
|
|
505
|
+
"resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.3.tgz",
|
|
506
|
+
"integrity": "sha512-KqU0nnPMgIJcCOFTNJFEA8epcseEaoox4XZffTgy8jlI6pL/5EFyR54NRG7CnCJN0biY7q52DO3MH6/sJ/TKlQ==",
|
|
507
507
|
"engines": {
|
|
508
508
|
"node": ">= 14.17"
|
|
509
509
|
}
|
|
@@ -567,9 +567,9 @@
|
|
|
567
567
|
}
|
|
568
568
|
},
|
|
569
569
|
"node_modules/got": {
|
|
570
|
-
"version": "12.5.
|
|
571
|
-
"resolved": "https://registry.npmjs.org/got/-/got-12.5.
|
|
572
|
-
"integrity": "sha512-
|
|
570
|
+
"version": "12.5.2",
|
|
571
|
+
"resolved": "https://registry.npmjs.org/got/-/got-12.5.2.tgz",
|
|
572
|
+
"integrity": "sha512-guHGMSEcsA5m1oPRweXUJnug0vuvlkX9wx5hzOka+ZBrBUOJHU0Z1JcNu3QE5IPGnA5aXUsQHdWOD4eJg9/v3A==",
|
|
573
573
|
"dependencies": {
|
|
574
574
|
"@sindresorhus/is": "^5.2.0",
|
|
575
575
|
"@szmarczak/http-timer": "^5.0.1",
|
|
@@ -629,18 +629,18 @@
|
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
"node_modules/html-snapshots": {
|
|
632
|
-
"version": "1.
|
|
633
|
-
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.
|
|
634
|
-
"integrity": "sha512
|
|
632
|
+
"version": "1.2.0",
|
|
633
|
+
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.2.0.tgz",
|
|
634
|
+
"integrity": "sha512-/erOUW66PXzxzmq9daIt9F/sOGtLCKIjT7VuFUutNeZCtjiK6eM6bBiF9CFq9SOsyJ1sWqFasBUsq7F9GSnWpA==",
|
|
635
635
|
"dependencies": {
|
|
636
636
|
"async": "3.2.4",
|
|
637
637
|
"async-lock": "1.3.2",
|
|
638
638
|
"combine-errors": "3.0.3",
|
|
639
|
-
"got": "12.5.
|
|
639
|
+
"got": "12.5.2",
|
|
640
640
|
"lodash": "4.17.21",
|
|
641
641
|
"mkdirp": "1.0.4",
|
|
642
642
|
"phantomjs-prebuilt": "2.1.16",
|
|
643
|
-
"puppeteer": "^
|
|
643
|
+
"puppeteer": "^19.0.0",
|
|
644
644
|
"rimraf": "3.0.2",
|
|
645
645
|
"xml2js": "0.4.23"
|
|
646
646
|
},
|
|
@@ -1126,24 +1126,24 @@
|
|
|
1126
1126
|
}
|
|
1127
1127
|
},
|
|
1128
1128
|
"node_modules/puppeteer": {
|
|
1129
|
-
"version": "
|
|
1130
|
-
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-
|
|
1131
|
-
"integrity": "sha512-
|
|
1129
|
+
"version": "19.0.0",
|
|
1130
|
+
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.0.0.tgz",
|
|
1131
|
+
"integrity": "sha512-3Ga5IVerQQ2hKU9q7T28RmcUsd8F2kL6cYuPcPCzeclSjmHhGydPBZL/KJKC02sG6J6Wfry85uiWpbkjQ5qBiw==",
|
|
1132
1132
|
"hasInstallScript": true,
|
|
1133
1133
|
"dependencies": {
|
|
1134
1134
|
"https-proxy-agent": "5.0.1",
|
|
1135
1135
|
"progress": "2.0.3",
|
|
1136
1136
|
"proxy-from-env": "1.1.0",
|
|
1137
|
-
"puppeteer-core": "
|
|
1137
|
+
"puppeteer-core": "19.0.0"
|
|
1138
1138
|
},
|
|
1139
1139
|
"engines": {
|
|
1140
1140
|
"node": ">=14.1.0"
|
|
1141
1141
|
}
|
|
1142
1142
|
},
|
|
1143
1143
|
"node_modules/puppeteer-core": {
|
|
1144
|
-
"version": "
|
|
1145
|
-
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-
|
|
1146
|
-
"integrity": "sha512-
|
|
1144
|
+
"version": "19.0.0",
|
|
1145
|
+
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.0.0.tgz",
|
|
1146
|
+
"integrity": "sha512-OljQ9W5M4cBX68vnOAGbcRkVENDHn6lfj6QYoGsnLQsxPAh6ExTQAhHauwdFdQkhYdDExZFWlKArnBONzeHY+g==",
|
|
1147
1147
|
"dependencies": {
|
|
1148
1148
|
"cross-fetch": "3.1.5",
|
|
1149
1149
|
"debug": "4.3.4",
|
|
@@ -1610,9 +1610,9 @@
|
|
|
1610
1610
|
"integrity": "sha512-SZs7ekbP8CN0txVG2xVRH6EgKmEm31BOxA07vkFaETzZz1xh+cbt8BcI0slpymvwhx5dlFnQG2rTlPVQn+iRPQ=="
|
|
1611
1611
|
},
|
|
1612
1612
|
"@types/node": {
|
|
1613
|
-
"version": "18.
|
|
1614
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.
|
|
1615
|
-
"integrity": "sha512-
|
|
1613
|
+
"version": "18.11.0",
|
|
1614
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.0.tgz",
|
|
1615
|
+
"integrity": "sha512-IOXCvVRToe7e0ny7HpT/X9Rb2RYtElG1a+VshjwT00HxrM2dWBApHQoqsI6WiY7Q03vdf2bCrIGzVrkF/5t10w==",
|
|
1616
1616
|
"optional": true
|
|
1617
1617
|
},
|
|
1618
1618
|
"@types/yauzl": {
|
|
@@ -1977,9 +1977,9 @@
|
|
|
1977
1977
|
}
|
|
1978
1978
|
},
|
|
1979
1979
|
"form-data-encoder": {
|
|
1980
|
-
"version": "2.1.
|
|
1981
|
-
"resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.
|
|
1982
|
-
"integrity": "sha512-
|
|
1980
|
+
"version": "2.1.3",
|
|
1981
|
+
"resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-2.1.3.tgz",
|
|
1982
|
+
"integrity": "sha512-KqU0nnPMgIJcCOFTNJFEA8epcseEaoox4XZffTgy8jlI6pL/5EFyR54NRG7CnCJN0biY7q52DO3MH6/sJ/TKlQ=="
|
|
1983
1983
|
},
|
|
1984
1984
|
"fs-constants": {
|
|
1985
1985
|
"version": "1.0.0",
|
|
@@ -2028,9 +2028,9 @@
|
|
|
2028
2028
|
}
|
|
2029
2029
|
},
|
|
2030
2030
|
"got": {
|
|
2031
|
-
"version": "12.5.
|
|
2032
|
-
"resolved": "https://registry.npmjs.org/got/-/got-12.5.
|
|
2033
|
-
"integrity": "sha512-
|
|
2031
|
+
"version": "12.5.2",
|
|
2032
|
+
"resolved": "https://registry.npmjs.org/got/-/got-12.5.2.tgz",
|
|
2033
|
+
"integrity": "sha512-guHGMSEcsA5m1oPRweXUJnug0vuvlkX9wx5hzOka+ZBrBUOJHU0Z1JcNu3QE5IPGnA5aXUsQHdWOD4eJg9/v3A==",
|
|
2034
2034
|
"requires": {
|
|
2035
2035
|
"@sindresorhus/is": "^5.2.0",
|
|
2036
2036
|
"@szmarczak/http-timer": "^5.0.1",
|
|
@@ -2074,18 +2074,18 @@
|
|
|
2074
2074
|
}
|
|
2075
2075
|
},
|
|
2076
2076
|
"html-snapshots": {
|
|
2077
|
-
"version": "1.
|
|
2078
|
-
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.
|
|
2079
|
-
"integrity": "sha512
|
|
2077
|
+
"version": "1.2.0",
|
|
2078
|
+
"resolved": "https://registry.npmjs.org/html-snapshots/-/html-snapshots-1.2.0.tgz",
|
|
2079
|
+
"integrity": "sha512-/erOUW66PXzxzmq9daIt9F/sOGtLCKIjT7VuFUutNeZCtjiK6eM6bBiF9CFq9SOsyJ1sWqFasBUsq7F9GSnWpA==",
|
|
2080
2080
|
"requires": {
|
|
2081
2081
|
"async": "3.2.4",
|
|
2082
2082
|
"async-lock": "1.3.2",
|
|
2083
2083
|
"combine-errors": "3.0.3",
|
|
2084
|
-
"got": "12.5.
|
|
2084
|
+
"got": "12.5.2",
|
|
2085
2085
|
"lodash": "4.17.21",
|
|
2086
2086
|
"mkdirp": "1.0.4",
|
|
2087
2087
|
"phantomjs-prebuilt": "2.1.16",
|
|
2088
|
-
"puppeteer": "^
|
|
2088
|
+
"puppeteer": "^19.0.0",
|
|
2089
2089
|
"rimraf": "3.0.2",
|
|
2090
2090
|
"xml2js": "0.4.23"
|
|
2091
2091
|
}
|
|
@@ -2462,14 +2462,14 @@
|
|
|
2462
2462
|
"integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A=="
|
|
2463
2463
|
},
|
|
2464
2464
|
"puppeteer": {
|
|
2465
|
-
"version": "
|
|
2466
|
-
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-
|
|
2467
|
-
"integrity": "sha512-
|
|
2465
|
+
"version": "19.0.0",
|
|
2466
|
+
"resolved": "https://registry.npmjs.org/puppeteer/-/puppeteer-19.0.0.tgz",
|
|
2467
|
+
"integrity": "sha512-3Ga5IVerQQ2hKU9q7T28RmcUsd8F2kL6cYuPcPCzeclSjmHhGydPBZL/KJKC02sG6J6Wfry85uiWpbkjQ5qBiw==",
|
|
2468
2468
|
"requires": {
|
|
2469
2469
|
"https-proxy-agent": "5.0.1",
|
|
2470
2470
|
"progress": "2.0.3",
|
|
2471
2471
|
"proxy-from-env": "1.1.0",
|
|
2472
|
-
"puppeteer-core": "
|
|
2472
|
+
"puppeteer-core": "19.0.0"
|
|
2473
2473
|
},
|
|
2474
2474
|
"dependencies": {
|
|
2475
2475
|
"progress": {
|
|
@@ -2480,9 +2480,9 @@
|
|
|
2480
2480
|
}
|
|
2481
2481
|
},
|
|
2482
2482
|
"puppeteer-core": {
|
|
2483
|
-
"version": "
|
|
2484
|
-
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-
|
|
2485
|
-
"integrity": "sha512-
|
|
2483
|
+
"version": "19.0.0",
|
|
2484
|
+
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-19.0.0.tgz",
|
|
2485
|
+
"integrity": "sha512-OljQ9W5M4cBX68vnOAGbcRkVENDHn6lfj6QYoGsnLQsxPAh6ExTQAhHauwdFdQkhYdDExZFWlKArnBONzeHY+g==",
|
|
2486
2486
|
"requires": {
|
|
2487
2487
|
"cross-fetch": "3.1.5",
|
|
2488
2488
|
"debug": "4.3.4",
|
package/lib/html-snapshots.js
CHANGED
|
@@ -154,7 +154,8 @@ function phantomjsWorker (input, options, notifier, qcb) {
|
|
|
154
154
|
* @param {String} input.url - The url to get the html from.
|
|
155
155
|
* @param {String} input.selector - The selector to wait for.
|
|
156
156
|
* @param {String} input.timeout - The entire process timeout.
|
|
157
|
-
* @param {
|
|
157
|
+
* @param {Object} input.debug - The debug object.
|
|
158
|
+
* @param {Object} input.puppeteerLaunchOptions - overriding puppeteer launch options.
|
|
158
159
|
* @param {Object} options - Input options.
|
|
159
160
|
* @param {Object} options.snapshotScript - Snapshot script options.
|
|
160
161
|
* @param {String} options.snapshotScript.script - Snapshot script name.
|
|
@@ -192,7 +193,8 @@ function puppeteerWorker (input, options, notifier, qcb) {
|
|
|
192
193
|
input.timeout,
|
|
193
194
|
filter,
|
|
194
195
|
input.debug.flag,
|
|
195
|
-
input.debug.slowMo
|
|
196
|
+
input.debug.slowMo,
|
|
197
|
+
JSON.stringify(input.puppeteerLaunchOptions)
|
|
196
198
|
], { cwd: process.cwd(), stdio: "inherit", detached: true }
|
|
197
199
|
);
|
|
198
200
|
|