Skip to content

Commit

Permalink
Updates npm packages to remove vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
gdixon committed Jan 25, 2021
1 parent 6f576eb commit 9584840
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 48 deletions.
98 changes: 66 additions & 32 deletions package-lock.json

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

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gdixon/freo",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"description": "(F)unctional (Re)active (O)bject Programming library",
"main": "./index.js",
Expand Down Expand Up @@ -49,6 +49,7 @@
],
"author": "GDixon",
"devDependencies": {
"acorn": "^7.0.0",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.6",
"@babel/node": "^7.8.7",
Expand All @@ -65,9 +66,9 @@
"mock-raf": "^1.0.1",
"nodemon": "^2.0.4",
"nyc": "^15.0.1",
"rollup": "^2.10.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup": "^2.38.0",
"@rollup/plugin-node-resolve": "^11.1.0",
"@rollup/plugin-babel": "^5.2.2",
"rollup-plugin-terser": "^5.3.0",
"service-worker-mock": "^2.0.5",
"sinon": "^9.0.2"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ npm run build

## License

- This project is licensed under the MIT License - see the [license](https://github.com/gdixon/freo.js/LICENSE.md) file for details
- This project is licensed under the MIT License - see the [license](https://github.com/gdixon/freo.js/LICENSE) file for details

## Acknowledgements

Expand Down
27 changes: 16 additions & 11 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// transpile the builds into es5 compatible versions
import babel from 'rollup-plugin-babel';
import babel from '@rollup/plugin-babel';

// allow for external dependencies to rollup with bundle
import nodeResolve from '@rollup/plugin-node-resolve';

// minify the the builds
import terser from "rollup-plugin-terser";

// allow for external dependencies to rollup with bundle
import resolve from 'rollup-plugin-node-resolve';

// browser bundle to include everything
const iifeBuild = {
// externalise Fre - inorder to load @gdixon/freo/freo.bundle.js we would first need to load @gdixon/fre/fre.bundle.js
Expand All @@ -28,7 +28,8 @@ const iifeBuild = {
},
plugins: [
babel({
exclude: 'node_modules/**'
exclude: 'node_modules/**',
babelHelpers: 'bundled'
}),
terser.terser()
]
Expand All @@ -55,7 +56,8 @@ const iifeBuild2 = {
},
plugins: [
babel({
exclude: 'node_modules/**'
exclude: 'node_modules/**',
babelHelpers: 'bundled'
}),
terser.terser()
]
Expand All @@ -82,7 +84,8 @@ const iifeBuild3 = {
},
plugins: [
babel({
exclude: 'node_modules/**'
exclude: 'node_modules/**',
babelHelpers: 'bundled'
}),
terser.terser()
]
Expand Down Expand Up @@ -110,7 +113,8 @@ const iifeBuild4 = {
},
plugins: [
babel({
exclude: 'node_modules/**'
exclude: 'node_modules/**',
babelHelpers: 'bundled'
}),
terser.terser()
]
Expand All @@ -124,9 +128,10 @@ const workerBuild = {
format: 'iife'
},
plugins: [
resolve(),
babel(),
terser.terser()
nodeResolve(),
babel({
babelHelpers: 'bundled'
})
]
};

Expand Down

0 comments on commit 9584840

Please sign in to comment.