diff --git a/package-lock.json b/package-lock.json index bee71f5f..8ee2b673 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3298,14 +3298,6 @@ "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz", "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" }, - "@types/nanoid": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@types/nanoid/-/nanoid-2.1.0.tgz", - "integrity": "sha512-xdkn/oRTA0GSNPLIKZgHWqDTWZsVrieKomxJBOQUK9YDD+zfSgmwD5t4WJYra5S7XyhTw7tfvwznW+pFexaepQ==", - "requires": { - "@types/node": "*" - } - }, "@types/node": { "version": "13.5.1", "resolved": "https://registry.npmjs.org/@types/node/-/node-13.5.1.tgz", @@ -15263,9 +15255,9 @@ "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==" }, "nanoid": { - "version": "2.1.11", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-2.1.11.tgz", - "integrity": "sha512-s/snB+WGm6uwi0WjsZdaVcuf3KJXlfGl2LcxgwkEwJF0D/BWzVWAZW/XY4bFaiR7s0Jk3FPvlnepg1H1b1UwlA==" + "version": "3.1.20", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", + "integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==" }, "nanomatch": { "version": "1.2.13", diff --git a/package.json b/package.json index 4c5771e7..540fae37 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,6 @@ "@testing-library/jest-dom": "5.11.8", "@testing-library/react": "11.2.3", "@types/jest": "26.0.20", - "@types/nanoid": "2.1.0", "@types/react": "17.0.0", "@types/react-dom": "17.0.0", "@types/socket.io-client": "1.4.34", @@ -33,7 +32,7 @@ "firebase": "8.2.2", "i18next-browser-languagedetector": "6.0.1", "lodash.throttle": "4.1.1", - "nanoid": "2.1.11", + "nanoid": "3.1.20", "node-sass": "4.14.1", "open-color": "1.8.0", "pako": "1.0.11", diff --git a/src/random.ts b/src/random.ts index b0c8b7a0..3335f729 100644 --- a/src/random.ts +++ b/src/random.ts @@ -1,5 +1,5 @@ import { Random } from "roughjs/bin/math"; -import nanoid from "nanoid"; +import { nanoid } from "nanoid"; let random = new Random(Date.now()); let testIdBase = 0;