Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade deps #93

Merged
merged 1 commit into from
Nov 2, 2020
Merged

Upgrade deps #93

merged 1 commit into from
Nov 2, 2020

Conversation

poteirard
Copy link
Contributor

@poteirard poteirard commented Nov 1, 2020

I had to upgrade a lot of libraries in order to fix all the vulnerabilities. Sorry if the PR is too big

Fixes #91 #92

@@ -9,7 +9,8 @@
"main": "build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"js-cookie": "^2.2.1"
"js-cookie": "^2.2.1",
"prop-types": "^15.7.2"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this as suggested in the official docs https://www.npmjs.com/package/prop-types#how-to-depend-on-this-package

@@ -1,32 +1,30 @@
var path = require('path');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var path = require("path");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this formating comes from git hooks > prettier.

plugins: [
new CopyWebpackPlugin([{ from: 'src/index.d.ts', to: 'index.d.ts' }])
]
plugins: [new CopyWebpackPlugin({ patterns: [{ from: "src/index.d.ts", to: "index.d.ts" }] })],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the new syntax according to the official docs

@Mastermindzh
Copy link
Owner

Pr looks good. I knew the files weren't up to date with prettier so no worries.
HUGE package-json update as expected 😛

I did not the prop-types thing as a dependency. Never used it like that. Guess I need to revisit a lot of projects 😄

Will merge this together with the other one after some tests etc.

Thanks again for the work!

@Mastermindzh Mastermindzh merged commit 86226df into Mastermindzh:master Nov 2, 2020
@poteirard poteirard deleted the upgrade_deps branch November 2, 2020 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix vulnerabilities
2 participants