html-snapshots 0.17.2 → 0.18.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/.github/workflows/verify.yml +32 -0
- package/{LICENSE → LICENSE.md} +1 -1
- package/README.md +5 -6
- package/examples/custom/myFilter.js +1 -1
- package/examples/custom/package-lock.json +781 -0
- package/examples/custom/package.json +2 -2
- package/examples/custom/snapshot.js +1 -1
- package/examples/debug-phantomjs/package-lock.json +781 -0
- package/examples/debug-phantomjs/package.json +2 -2
- package/examples/debug-phantomjs/snapshot.js +1 -1
- package/examples/html5rocks/package-lock.json +781 -0
- package/examples/html5rocks/package.json +2 -2
- package/examples/html5rocks/snapshot.js +1 -1
- package/examples/process-limit/package-lock.json +781 -0
- package/examples/process-limit/package.json +2 -2
- package/examples/process-limit/snapshot.js +1 -1
- package/examples/simple-promise/package-lock.json +781 -0
- package/examples/simple-promise/package.json +2 -2
- package/examples/simple-promise/snapshot.js +1 -1
- package/examples/sitemap-index/package-lock.json +781 -0
- package/examples/sitemap-index/package.json +2 -2
- package/examples/sitemap-index/snapshot.js +1 -1
- package/examples/utils/index.js +1 -1
- package/examples/verbose/package-lock.json +781 -0
- package/examples/verbose/package.json +2 -2
- package/examples/verbose/snapshot.js +1 -1
- package/lib/async/exists.js +6 -19
- 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 -18
- 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 +8 -8
- 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 +5 -7
- package/test/mocha/html-snapshots/myFilter.js +1 -1
- package/test/mocha/html-snapshots/phantomjs-options.js +33 -10
- 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 +9 -4
- 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
- package/.travis.yml +0 -9
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Verify
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches: [ master ]
|
|
5
|
+
pull_request:
|
|
6
|
+
branches: [ master ]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
verify:
|
|
10
|
+
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
strategy:
|
|
14
|
+
matrix:
|
|
15
|
+
node-version: [14.x, 16.x]
|
|
16
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v3
|
|
20
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
21
|
+
uses: actions/setup-node@v3.0.0
|
|
22
|
+
with:
|
|
23
|
+
node-version: ${{ matrix.node-version }}
|
|
24
|
+
- run: npm ci
|
|
25
|
+
- name: Lint, Test, And Coverage
|
|
26
|
+
run: npm run lint && npm run test && npm run test:cover
|
|
27
|
+
- name: Coverage Upload
|
|
28
|
+
if: ${{ success() }}
|
|
29
|
+
uses: coverallsapp/github-action@master
|
|
30
|
+
with:
|
|
31
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
32
|
+
path-to-lcov: ./coverage/lcov.info
|
package/{LICENSE → LICENSE.md}
RENAMED
package/README.md
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
# [html-snapshots](http://github.com/localnerve/html-snapshots)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
3
|
[](http://badge.fury.io/js/html-snapshots)
|
|
6
|
-
|
|
4
|
+

|
|
7
5
|
[](https://coveralls.io/r/localnerve/html-snapshots?branch=master)
|
|
8
|
-
[](https://david-dm.org/localnerve/html-snapshots)
|
|
9
|
-
[](https://david-dm.org/localnerve/html-snapshots#info=devDependencies)
|
|
10
|
-
[](https://www.codacy.com/public/alex/html-snapshots)
|
|
11
6
|
|
|
12
7
|
> Takes html snapshots of your site's crawlable pages when an element you select is rendered.
|
|
13
8
|
|
|
@@ -71,9 +66,13 @@ html-snapshots takes snapshots in parallel, each page getting its own PhantomJS
|
|
|
71
66
|
`v0.15.x ` Node 6+
|
|
72
67
|
`v0.16.x ` Node 8+
|
|
73
68
|
`v0.17.x ` Node 10+
|
|
69
|
+
`v0.18.x ` Node 14+
|
|
74
70
|
|
|
75
71
|
### Breaking Changes
|
|
76
72
|
|
|
73
|
+
#### Introduced in v0.18.x
|
|
74
|
+
##### Dropped support for Node 10 & 12.
|
|
75
|
+
|
|
77
76
|
#### Introduced in v0.17.x
|
|
78
77
|
##### Dropped support for Node 8.
|
|
79
78
|
|