Skip to content

Commit

Permalink
Merge pull request #317 from coveo/fix/COM-65-snyk
Browse files Browse the repository at this point in the history
[COM-65] bump cross-fetch to fix CVE-2022-0235
  • Loading branch information
dlafreniere committed Jan 24, 2022
2 parents 7a5c50d + 4d18c60 commit e9e5ad6
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 25 deletions.
120 changes: 98 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Expand Up @@ -23,12 +23,13 @@
},
"license": "MIT",
"dependencies": {
"@react-native-async-storage/async-storage": "^1.15.8",
"cross-fetch": "^3.1.4"
"@react-native-async-storage/async-storage": "^1.15.16",
"cross-fetch": "^3.1.5"
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.2",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/fetch-mock": "^7.3.2",
"@types/jest": "^25.1.1",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.js
Expand Up @@ -4,6 +4,7 @@ import serve from 'rollup-plugin-serve';
import commonjs from '@rollup/plugin-commonjs';
import {nodeResolve} from '@rollup/plugin-node-resolve';
import alias from '@rollup/plugin-alias';
import json from '@rollup/plugin-json';
import {resolve} from 'path';

const browserFetch = () =>
Expand Down Expand Up @@ -60,7 +61,7 @@ const nodeCJS = {
file: './dist/library.js',
format: 'cjs',
},
plugins: [nodeResolve({mainFields: ['main']}), commonjs(), tsPlugin()],
plugins: [nodeResolve({mainFields: ['main']}), commonjs(), tsPlugin(), json()],
};

const browserESM = {
Expand Down

0 comments on commit e9e5ad6

Please sign in to comment.