]> git.localhorst.tv Git - alttp.git/commitdiff
update yup
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 6 Sep 2023 09:07:43 +0000 (11:07 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 6 Sep 2023 09:07:43 +0000 (11:07 +0200)
package-lock.json
package.json
resources/js/components/results/ReportForm.js

index 0c73f5e40853d427ee262e027859e4e2ab91601a..91b3685940d95c8c63d506abe6e54a74822fbad3 100644 (file)
@@ -33,7 +33,7 @@
                 "react-router-dom": "^6.2.2",
                 "recharts": "^2.1.9",
                 "toastr": "^2.1.4",
-                "yup": "^0.32.11"
+                "yup": "^1.2.0"
             },
             "devDependencies": {
                 "@babel/eslint-parser": "^7.22.11",
             "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
             "dev": true
         },
-        "node_modules/@types/lodash": {
-            "version": "4.14.198",
-            "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.198.tgz",
-            "integrity": "sha512-trNJ/vtMZYMLhfN45uLq4ShQSw0/S7xCTLLVM+WM1rmFpba/VS42jVUgaO3w/NOLiWR/09lnYk0yMaA/atdIsg=="
-        },
         "node_modules/@types/mime": {
             "version": "3.0.1",
             "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz",
                 "thenify-all": "^1.0.0"
             }
         },
-        "node_modules/nanoclone": {
-            "version": "0.2.1",
-            "resolved": "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz",
-            "integrity": "sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA=="
-        },
         "node_modules/nanoid": {
             "version": "3.3.6",
             "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
                 "node": ">=0.6.0"
             }
         },
+        "node_modules/tiny-case": {
+            "version": "1.0.3",
+            "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
+            "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q=="
+        },
         "node_modules/tiny-warning": {
             "version": "1.0.3",
             "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
             }
         },
         "node_modules/yup": {
-            "version": "0.32.11",
-            "resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz",
-            "integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==",
+            "version": "1.2.0",
+            "resolved": "https://registry.npmjs.org/yup/-/yup-1.2.0.tgz",
+            "integrity": "sha512-PPqYKSAXjpRCgLgLKVGPA33v5c/WgEx3wi6NFjIiegz90zSwyMpvTFp/uGcVnnbx6to28pgnzp/q8ih3QRjLMQ==",
             "dependencies": {
-                "@babel/runtime": "^7.15.4",
-                "@types/lodash": "^4.14.175",
-                "lodash": "^4.17.21",
-                "lodash-es": "^4.17.21",
-                "nanoclone": "^0.2.1",
-                "property-expr": "^2.0.4",
-                "toposort": "^2.0.2"
-            },
+                "property-expr": "^2.0.5",
+                "tiny-case": "^1.0.3",
+                "toposort": "^2.0.2",
+                "type-fest": "^2.19.0"
+            }
+        },
+        "node_modules/yup/node_modules/type-fest": {
+            "version": "2.19.0",
+            "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",
+            "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",
             "engines": {
-                "node": ">=10"
+                "node": ">=12.20"
+            },
+            "funding": {
+                "url": "https://github.com/sponsors/sindresorhus"
             }
         }
     },
             "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==",
             "dev": true
         },
-        "@types/lodash": {
-            "version": "4.14.198",
-            "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.198.tgz",
-            "integrity": "sha512-trNJ/vtMZYMLhfN45uLq4ShQSw0/S7xCTLLVM+WM1rmFpba/VS42jVUgaO3w/NOLiWR/09lnYk0yMaA/atdIsg=="
-        },
         "@types/mime": {
             "version": "3.0.1",
             "resolved": "https://registry.npmjs.org/@types/mime/-/mime-3.0.1.tgz",
                 "thenify-all": "^1.0.0"
             }
         },
-        "nanoclone": {
-            "version": "0.2.1",
-            "resolved": "https://registry.npmjs.org/nanoclone/-/nanoclone-0.2.1.tgz",
-            "integrity": "sha512-wynEP02LmIbLpcYw8uBKpcfF6dmg2vcpKqxeH5UcoKEYdExslsdUA4ugFauuaeYdTB76ez6gJW8XAZ6CgkXYxA=="
-        },
         "nanoid": {
             "version": "3.3.6",
             "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
                 "setimmediate": "^1.0.4"
             }
         },
+        "tiny-case": {
+            "version": "1.0.3",
+            "resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
+            "integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q=="
+        },
         "tiny-warning": {
             "version": "1.0.3",
             "resolved": "https://registry.npmjs.org/tiny-warning/-/tiny-warning-1.0.3.tgz",
             "dev": true
         },
         "yup": {
-            "version": "0.32.11",
-            "resolved": "https://registry.npmjs.org/yup/-/yup-0.32.11.tgz",
-            "integrity": "sha512-Z2Fe1bn+eLstG8DRR6FTavGD+MeAwyfmouhHsIUgaADz8jvFKbO/fXc2trJKZg+5EBjh4gGm3iU/t3onKlXHIg==",
+            "version": "1.2.0",
+            "resolved": "https://registry.npmjs.org/yup/-/yup-1.2.0.tgz",
+            "integrity": "sha512-PPqYKSAXjpRCgLgLKVGPA33v5c/WgEx3wi6NFjIiegz90zSwyMpvTFp/uGcVnnbx6to28pgnzp/q8ih3QRjLMQ==",
             "requires": {
-                "@babel/runtime": "^7.15.4",
-                "@types/lodash": "^4.14.175",
-                "lodash": "^4.17.21",
-                "lodash-es": "^4.17.21",
-                "nanoclone": "^0.2.1",
-                "property-expr": "^2.0.4",
-                "toposort": "^2.0.2"
+                "property-expr": "^2.0.5",
+                "tiny-case": "^1.0.3",
+                "toposort": "^2.0.2",
+                "type-fest": "^2.19.0"
+            },
+            "dependencies": {
+                "type-fest": {
+                    "version": "2.19.0",
+                    "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",
+                    "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA=="
+                }
             }
         }
     }
index e0344c073b2bdae7011aa327e7bfbbb9950b4717..cd765cc9092e8a6a19000268b04ab28109beeb36 100644 (file)
         "react-router-dom": "^6.2.2",
         "recharts": "^2.1.9",
         "toastr": "^2.1.4",
-        "yup": "^0.32.11"
+        "yup": "^1.2.0"
     }
 }
index 35b7e0fddab94a55d5773c1c15b5cbc0371f4d8d..2e85f4a4c3abfb9c334b3cd18253bf91727001f3 100644 (file)
@@ -183,7 +183,7 @@ export default withFormik({
                forfeit: yup.boolean().required(),
                time: yup.string().time().when('forfeit', {
                        is: false,
-                       then: yup.string().required().time(),
+                       then: () => yup.string().required().time(),
                }),
                vod: yup.string().url(),
        }),