Skip to content

Commit

Permalink
Bump cheerio dependency to latest v1 RC avoid vulnerable dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
neocotic committed Apr 29, 2022
1 parent c9e48d2 commit 4131de8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/convert-svg-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Alternatively, if you know what you're doing, you can install using [npm](https:
$ npm install --save convert-svg-core
```

You'll need to have at least [Node.js](https://nodejs.org) 8 or newer.
You'll need to have at least [Node.js](https://nodejs.org) 12.20.0 or newer.

If you're looking to create a converter for a new format, we'd urge you to consider contributing to this framework so
that it can be easily integrated and maintained. Read the [Contributors](#contributors) section for information on how
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"dependencies": {
"chalk": "^4.1.2",
"cheerio": "^0.22.0",
"cheerio": "^1.0.0-rc.10",
"commander": "^9.2.0",
"file-url": "^3.0.0",
"get-stdin": "^8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/src/Converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class Converter {
input = Buffer.isBuffer(input) ? input.toString('utf8') : input;

const { provider } = this;
const svg = cheerio.html(cheerio.load(input, null, false)('svg'));
const svg = cheerio.default.html(cheerio.load(input, null, false)('svg'));

let html = '';
if (svg) {
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-test-helper/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Install using [npm](https://www.npmjs.com):
$ npm install --save-dev convert-svg-test-helper
```

You'll need to have at least [Node.js](https://nodejs.org) 8 or newer.
You'll need to have at least [Node.js](https://nodejs.org) 12.20.0 or newer.

If you're looking to create a converter for a new format, we'd urge you to consider contributing to this framework so
that it can be easily integrated and maintained. Read the [Contributors](#contributors) section for information on how
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-to-jpeg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Install using [npm](https://www.npmjs.com):
$ npm install --save convert-svg-to-jpeg
```

You'll need to have at least [Node.js](https://nodejs.org) 8 or newer.
You'll need to have at least [Node.js](https://nodejs.org) 12.20.0 or newer.

If you want to use the command line interface you'll most likely want to install it globally so that you can run
`convert-svg-to-jpeg` from anywhere:
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-to-png/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Install using [npm](https://www.npmjs.com):
$ npm install --save convert-svg-to-png
```

You'll need to have at least [Node.js](https://nodejs.org) 8 or newer.
You'll need to have at least [Node.js](https://nodejs.org) 12.20.0 or newer.

If you want to use the command line interface you'll most likely want to install it globally so that you can run
`convert-svg-to-png` from anywhere:
Expand Down

0 comments on commit 4131de8

Please sign in to comment.