Skip to content

Commit e91598a

Browse files
Luis Felipe ZaguiniLuis Felipe Zaguini
authored andcommitted
fixed vulnerabilities and bumped version
1 parent 5c75b13 commit e91598a

File tree

4 files changed

+1306
-521
lines changed

4 files changed

+1306
-521
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
*.log
22
.DS_Store
33
node_modules
4-
.rts2_cache_cjs
5-
.rts2_cache_es
6-
.rts2_cache_umd
4+
.rts*
75
dist

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "formik-wizard",
3-
"version": "3.0.3",
3+
"version": "3.1.0",
44
"main": "dist/index.js",
55
"description": "A multi-step form component powered by formik and react-albus",
66
"umd:main": "dist/formik-wizard.umd.production.js",
@@ -20,27 +20,27 @@
2020
"prepublish": "yarn build"
2121
},
2222
"peerDependencies": {
23-
"formik": "^2.0.1-alpha.2",
24-
"react": "^16.8.3",
23+
"formik": "^2.0.1-rc.12",
24+
"react": "^16.8.6",
2525
"react-albus": "^2.0.0",
2626
"yup": "^0.27.0"
2727
},
2828
"devDependencies": {
29-
"@types/jest": "^24.0.12",
30-
"@types/react": "^16.8.15",
29+
"@types/jest": "^24.0.15",
30+
"@types/react": "^16.8.23",
3131
"@types/react-albus": "^2.0.5",
32-
"@types/react-dom": "^16.8.4",
33-
"@types/yup": "^0.26.13",
34-
"formik": "^2.0.1-alpha.2",
35-
"prettier": "^1.17.0",
36-
"react": "^16.8.3",
32+
"@types/react-dom": "^16.8.5",
33+
"@types/yup": "^0.26.22",
34+
"formik": "^2.0.1-rc.12",
35+
"prettier": "^1.18.2",
36+
"react": "^16.8.6",
3737
"react-albus": "^2.0.0",
3838
"rimraf": "^2.6.3",
39-
"tsdx": "^0.5.5",
40-
"typescript": "^3.4.5",
39+
"tsdx": "^0.7.2",
40+
"typescript": "^3.5.3",
4141
"yup": "^0.27.0"
4242
},
4343
"dependencies": {
44-
"immer": "^2.1.3"
44+
"immer": "^3.1.3"
4545
}
4646
}

src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function FormikWizardStep({
6262

6363
try {
6464
if (info.isLastStep) {
65-
const newValues = produce(values, (draft) => {
65+
const newValues = produce(values, (draft: any) => {
6666
draft[info.currentStep] = sectionValues
6767
})
6868

@@ -74,7 +74,7 @@ function FormikWizardStep({
7474
: undefined
7575

7676
setValues((values: any) => {
77-
return produce(values, (draft) => {
77+
return produce(values, (draft: any) => {
7878
draft[info.currentStep] = sectionValues
7979
})
8080
})
@@ -120,7 +120,7 @@ function FormikWizardStep({
120120

121121
if (step.keepValuesOnPrevious) {
122122
setValues((values: any) =>
123-
produce(values, (draft) => {
123+
produce(values, (draft: any) => {
124124
draft[step.id] = props.values
125125
})
126126
)

0 commit comments

Comments
 (0)