diff --git a/lib/cln.js b/lib/cln.js index b11b2f1d..6b06ae99 100644 --- a/lib/cln.js +++ b/lib/cln.js @@ -1,4 +1,4 @@ -import fetch from 'node-fetch' +import fetch from 'cross-fetch' import https from 'https' import crypto from 'crypto' diff --git a/package-lock.json b/package-lock.json index 30bbaf6c..2a1a4d09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -51,7 +51,6 @@ "next-auth": "^4.23.2", "next-plausible": "^3.11.1", "next-seo": "^6.1.0", - "node-fetch": "^2.6.7", "node-s3-url-encode": "^0.0.4", "nodemailer": "^6.9.6", "nostr": "^0.2.8", @@ -14737,25 +14736,6 @@ "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-2.0.2.tgz", "integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA==" }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/node-gyp-build": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.0.tgz", diff --git a/package.json b/package.json index 6ae66569..c3771721 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "next-auth": "^4.23.2", "next-plausible": "^3.11.1", "next-seo": "^6.1.0", - "node-fetch": "^2.6.7", "node-s3-url-encode": "^0.0.4", "nodemailer": "^6.9.6", "nostr": "^0.2.8", @@ -121,4 +120,4 @@ "jest": "^29.7.0", "standard": "^17.1.0" } -} \ No newline at end of file +}