diff --git a/crypto.js b/crypto.js index a2de468..eb1a3f9 100644 --- a/crypto.js +++ b/crypto.js @@ -1,3 +1,3 @@ -import crypto from "node:crypto"; +import crypto from "crypto"; export default crypto; \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7b01336..4491499 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,10 +1,11 @@ { - "name": "onekey", + "name": "unibutton", "lockfileVersion": 3, "requires": true, "packages": { "": { "dependencies": { + "crypto": "^1.0.1", "express": "^4.21.0", "express-ws": "^5.0.2" } @@ -107,6 +108,12 @@ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==" }, + "node_modules/crypto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/crypto/-/crypto-1.0.1.tgz", + "integrity": "sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==", + "deprecated": "This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in." + }, "node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", diff --git a/package.json b/package.json index 654ef92..7e2b215 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "crypto": "^1.0.1", "express": "^4.21.0", "express-ws": "^5.0.2" },