Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sindresorhus/capture-website-cli
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.1
Choose a base ref
...
head repository: sindresorhus/capture-website-cli
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.0.0
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Nov 6, 2023

  1. Require Node.js 18

    sindresorhus committed Nov 6, 2023
    Copy the full SHA
    b8b08fe View commit details
  2. 4.0.0

    sindresorhus committed Nov 6, 2023
    Copy the full SHA
    8b46e3f View commit details
Showing with 13 additions and 13 deletions.
  1. +3 −3 .github/workflows/main.yml
  2. +8 −8 package.json
  3. +2 −2 test.js
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capture-website-cli",
"version": "3.0.1",
"version": "4.0.0",
"description": "Capture screenshots of websites from the command-line",
"license": "MIT",
"repository": "sindresorhus/capture-website-cli",
@@ -15,7 +15,7 @@
"capture-website": "./cli.js"
},
"engines": {
"node": ">=14.16"
"node": ">=18"
},
"scripts": {
"test": "xo && ava"
@@ -41,16 +41,16 @@
"jpg"
],
"dependencies": {
"capture-website": "^3.2.0",
"capture-website": "^4.0.0",
"get-stdin": "^9.0.0",
"meow": "^11.0.0",
"meow": "^12.1.1",
"split-on-first": "^3.0.0"
},
"devDependencies": {
"ava": "^5.2.0",
"ava": "^5.3.1",
"create-test-server": "^3.0.1",
"execa": "^7.1.1",
"file-type": "^18.2.1",
"xo": "^0.54.1"
"execa": "^8.0.1",
"file-type": "^18.6.0",
"xo": "^0.56.0"
}
}
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
@@ -62,8 +62,8 @@ test('check flags', async t => {
`;

flags = flags.trim()
.replace(/(?<==)"|(?<!\\)"$/gm, '')
.replace(/\\"/g, '"')
.replaceAll(/(?<==)"|(?<!\\)"$/gm, '')
.replaceAll('\\"', '"')
.split('\n');

const {stdout} = await execa('./cli.js', ['noop-file', '--internal-print-flags', ...flags]);