diff options
-rw-r--r-- | index.js | 4 | ||||
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | pnpm-lock.yaml | 25 |
3 files changed, 20 insertions, 11 deletions
diff --git a/index.js b/index.js index 6c17622..400cec5 100644 --- a/index.js +++ b/index.js @@ -3,9 +3,11 @@ import { getRandomInt } from "./lib.js"; import { profanity } from "@2toad/profanity"; import { commands } from "./commands.js"; import * as accounts from "./accounts.js"; -import cuid from "cuid"; +import cuid2 from "@paralleldrive/cuid2"; import fs from "fs"; +const cuid = cuid2.init() + const server = { config: JSON.parse(String(fs.readFileSync("config.json"))), channels: ["home", "off-topic", "randomness"], diff --git a/package.json b/package.json index 06f596a..c908579 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@2toad/profanity": "^2.2.0", - "cuid": "^3.0.0", + "@paralleldrive/cuid2": "^2.2.2", "ini": "^5.0.0", "ws": "^8.17.1" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3a57313..1a8fb47 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,9 +11,9 @@ importers: '@2toad/profanity': specifier: ^2.2.0 version: 2.5.0 - cuid: - specifier: ^3.0.0 - version: 3.0.0 + '@paralleldrive/cuid2': + specifier: ^2.2.2 + version: 2.2.2 ini: specifier: ^5.0.0 version: 5.0.0 @@ -34,6 +34,13 @@ packages: resolution: {integrity: sha512-d3kAz00+scjh3r1m8h3AHt49mBPWiyPhzOwX1sw8dwt15OrG/SCYw3ne/hFnxb4sEOuaMTBCFnHjVck5VVTipQ==} engines: {node: '>=12'} + '@noble/[email protected]': + resolution: {integrity: sha512-pq5D8h10hHBjyqX+cfBm0i8JUXJ0UhczFc4r74zbuT9XgewFo2E3J1cOaGtdZynILNmQ685YWGzGE1Zv6io50w==} + engines: {node: ^14.21.3 || >=16} + + '@paralleldrive/[email protected]': + resolution: {integrity: sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==} + '@types/[email protected]': resolution: {integrity: sha512-KmQxSBgVWCl6RSuerlLGZlIWfdxkKqat0nxN61+qu4y1KDn0Ll3j7v1Pl8GnaL3a/U6GGWVTJh75ap62kR1E8Q==} @@ -46,10 +53,6 @@ packages: [email protected]: resolution: {integrity: sha512-br5QygTEL/TwB4uQOb96Ky22j4Gq2WxWH/8Oqv20fk5HagwKXo/akB+LiYgSfzexCt6kkcUaVm+bKiPl71xPvw==} - [email protected]: - resolution: {integrity: sha512-WZYYkHdIDnaxdeP8Misq3Lah5vFjJwGuItJuV+tvMafosMzw0nF297T7mrm8IOWiPJkV6gc7sa8pzx27+w25Zg==} - deprecated: Cuid and other k-sortable and non-cryptographic ids (Ulid, ObjectId, KSUID, all UUIDs) are all insecure. Use @paralleldrive/cuid2 instead. - [email protected]: resolution: {integrity: sha512-+N0ngpO3e7cRUWOJAS7qw0IZIVc6XPrW4MlFBdD066F2L4k1L6ker3hLqSq7iXxU5tgS4WGkIUElWn5vogAEnw==} engines: {node: ^18.17.0 || >=20.5.0} @@ -78,6 +81,12 @@ snapshots: '@2toad/[email protected]': {} + '@noble/[email protected]': {} + + '@paralleldrive/[email protected]': + dependencies: + '@noble/hashes': 1.6.1 + '@types/[email protected]': dependencies: bun-types: 1.1.34 @@ -95,8 +104,6 @@ snapshots: '@types/node': 20.12.14 '@types/ws': 8.5.13 - [email protected]: {} - [email protected]: {} [email protected]: {} |