From c06cfedec73fd848b07b2c0e8cc07c941c85f813 Mon Sep 17 00:00:00 2001 From: leonardssh Date: Sun, 18 Dec 2022 15:02:08 +0100 Subject: [PATCH] downgrade nanoid to support cjs require --- package-lock.json | 22 +++++++++++----------- package.json | 18 +++++++++--------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/package-lock.json b/package-lock.json index efbf9e5..b86a36c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@libertymp/orpc", - "version": "0.0.1", + "version": "0.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@libertymp/orpc", - "version": "0.0.1", + "version": "0.0.2", "license": "MIT", "dependencies": { - "nanoid": "^4.0.0", + "nanoid": "^3.3.4", "socket.io": "^4.5.4", "socket.io-client": "^4.5.4" }, @@ -1081,14 +1081,14 @@ } }, "node_modules/nanoid": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz", - "integrity": "sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg==", + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==", "bin": { - "nanoid": "bin/nanoid.js" + "nanoid": "bin/nanoid.cjs" }, "engines": { - "node": "^14 || ^16 || >=18" + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, "node_modules/negotiator": { @@ -2358,9 +2358,9 @@ } }, "nanoid": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-4.0.0.tgz", - "integrity": "sha512-IgBP8piMxe/gf73RTQx7hmnhwz0aaEXYakvqZyE302IXW3HyVNhdNGC+O2MwMAVhLEnvXlvKtGbtJf6wvHihCg==" + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz", + "integrity": "sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw==" }, "negotiator": { "version": "0.6.3", diff --git a/package.json b/package.json index 7b54736..e00e2d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@libertymp/orpc", - "version": "0.0.2", + "version": "0.0.3", "publishConfig": { "access": "public" }, @@ -25,20 +25,20 @@ "type-check": "tsc -p src --noEmit" }, "main": "dist/index.js", - "module": "dist/index.mjs", - "types": "dist/index.d.ts", - "exports": { - "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" - }, + "module": "dist/index.mjs", + "types": "dist/index.d.ts", + "exports": { + "import": "./dist/index.mjs", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" + }, "devDependencies": { "prettier": "^2.8.1", "tsup": "^6.5.0", "typescript": "^4.9.4" }, "dependencies": { - "nanoid": "^4.0.0", + "nanoid": "^3.3.4", "socket.io": "^4.5.4", "socket.io-client": "^4.5.4" }