Skip to content

Commit

Permalink
fixed vulnerabilities and bumped version
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Felipe Zaguini authored and Luis Felipe Zaguini committed Jul 28, 2019
1 parent 5c75b13 commit e91598a
Show file tree
Hide file tree
Showing 4 changed files with 1,306 additions and 521 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
*.log
.DS_Store
node_modules
.rts2_cache_cjs
.rts2_cache_es
.rts2_cache_umd
.rts*
dist
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "formik-wizard",
"version": "3.0.3",
"version": "3.1.0",
"main": "dist/index.js",
"description": "A multi-step form component powered by formik and react-albus",
"umd:main": "dist/formik-wizard.umd.production.js",
Expand All @@ -20,27 +20,27 @@
"prepublish": "yarn build"
},
"peerDependencies": {
"formik": "^2.0.1-alpha.2",
"react": "^16.8.3",
"formik": "^2.0.1-rc.12",
"react": "^16.8.6",
"react-albus": "^2.0.0",
"yup": "^0.27.0"
},
"devDependencies": {
"@types/jest": "^24.0.12",
"@types/react": "^16.8.15",
"@types/jest": "^24.0.15",
"@types/react": "^16.8.23",
"@types/react-albus": "^2.0.5",
"@types/react-dom": "^16.8.4",
"@types/yup": "^0.26.13",
"formik": "^2.0.1-alpha.2",
"prettier": "^1.17.0",
"react": "^16.8.3",
"@types/react-dom": "^16.8.5",
"@types/yup": "^0.26.22",
"formik": "^2.0.1-rc.12",
"prettier": "^1.18.2",
"react": "^16.8.6",
"react-albus": "^2.0.0",
"rimraf": "^2.6.3",
"tsdx": "^0.5.5",
"typescript": "^3.4.5",
"tsdx": "^0.7.2",
"typescript": "^3.5.3",
"yup": "^0.27.0"
},
"dependencies": {
"immer": "^2.1.3"
"immer": "^3.1.3"
}
}
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function FormikWizardStep({

try {
if (info.isLastStep) {
const newValues = produce(values, (draft) => {
const newValues = produce(values, (draft: any) => {
draft[info.currentStep] = sectionValues
})

Expand All @@ -74,7 +74,7 @@ function FormikWizardStep({
: undefined

setValues((values: any) => {
return produce(values, (draft) => {
return produce(values, (draft: any) => {
draft[info.currentStep] = sectionValues
})
})
Expand Down Expand Up @@ -120,7 +120,7 @@ function FormikWizardStep({

if (step.keepValuesOnPrevious) {
setValues((values: any) =>
produce(values, (draft) => {
produce(values, (draft: any) => {
draft[step.id] = props.values
})
)
Expand Down
Loading

0 comments on commit e91598a

Please sign in to comment.