diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-03-06 18:47:08 +1100 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-03-06 10:52:19 +0300 |
commit | 4ede702657b20bb26e05b918dec97a71c3159d71 (patch) | |
tree | 89bf815dcdabda06f8a673da0cc6f7aa5b3ae526 /bundle | |
parent | Tsnode support (#580) (diff) | |
download | server-4ede702657b20bb26e05b918dec97a71c3159d71.tar.xz |
Fixed npm run tsnode throwing error about ES modules for node-fetch. Probably was api package.json still included node-fetch 3, but bundle still had v2
Diffstat (limited to 'bundle')
-rw-r--r-- | bundle/package-lock.json | 23 | ||||
-rw-r--r-- | bundle/package.json | 4 |
2 files changed, 19 insertions, 8 deletions
diff --git a/bundle/package-lock.json b/bundle/package-lock.json index 7fe4317a..f6e46bc1 100644 --- a/bundle/package-lock.json +++ b/bundle/package-lock.json @@ -45,6 +45,7 @@ "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", + "nan": "^2.15.0", "nanocolors": "^0.2.12", "node-fetch": "^2.6.2", "node-os-utils": "^1.3.5", @@ -126,7 +127,7 @@ "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", - "node-fetch": "^3.1.1", + "node-fetch": "^2.6.2", "patch-package": "^6.4.7", "picocolors": "^1.0.0", "proxy-agent": "^5.0.0", @@ -147,7 +148,7 @@ "@types/morgan": "^1.9.3", "@types/multer": "^1.4.5", "@types/node": "^14.17.9", - "@types/node-fetch": "^2.5.7", + "@types/node-fetch": "^2.5.5", "@types/supertest": "^2.0.11", "@zerollup/ts-transform-paths": "^1.7.18", "jest": "^27.2.5", @@ -184,7 +185,7 @@ "missing-native-js-functions": "^1.2.17", "multer": "^1.4.2", "nanocolors": "^0.2.12", - "node-fetch": "^2.6.7", + "node-fetch": "^2.6.2", "supertest": "^6.1.6", "typescript": "^4.1.2" }, @@ -7618,6 +7619,11 @@ "thenify-all": "^1.0.0" } }, + "node_modules/nan": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", + "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==" + }, "node_modules/nanocolors": { "version": "0.2.12", "integrity": "sha512-SFNdALvzW+rVlzqexid6epYdt8H9Zol7xDoQarioEFcFN0JHo4CYNztAxmtfgGTVRCmFlEOqqhBpoFGKqSAMug==" @@ -12977,7 +12983,7 @@ "@types/morgan": "^1.9.3", "@types/multer": "^1.4.5", "@types/node": "^14.17.9", - "@types/node-fetch": "^2.5.7", + "@types/node-fetch": "^2.5.5", "@types/supertest": "^2.0.11", "@zerollup/ts-transform-paths": "^1.7.18", "ajv": "8.6.2", @@ -13002,7 +13008,7 @@ "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", - "node-fetch": "^3.1.1", + "node-fetch": "^2.6.2", "patch-package": "^6.4.7", "picocolors": "^1.0.0", "proxy-agent": "^5.0.0", @@ -13048,7 +13054,7 @@ "missing-native-js-functions": "^1.2.17", "multer": "^1.4.2", "nanocolors": "^0.2.12", - "node-fetch": "^2.6.7", + "node-fetch": "^2.6.2", "supertest": "^6.1.6", "ts-patch": "^1.4.4", "typescript": "^4.1.2" @@ -16731,6 +16737,11 @@ "thenify-all": "^1.0.0" } }, + "nan": { + "version": "2.15.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.15.0.tgz", + "integrity": "sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==" + }, "nanocolors": { "version": "0.2.12", "integrity": "sha512-SFNdALvzW+rVlzqexid6epYdt8H9Zol7xDoQarioEFcFN0JHo4CYNztAxmtfgGTVRCmFlEOqqhBpoFGKqSAMug==" diff --git a/bundle/package.json b/bundle/package.json index c33605e4..3754a3bf 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -93,6 +93,7 @@ "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", + "nan": "^2.15.0", "nanocolors": "^0.2.12", "node-fetch": "^2.6.2", "node-os-utils": "^1.3.5", @@ -108,7 +109,6 @@ "typescript": "^4.1.2", "typescript-cached-transpile": "^0.0.6", "typescript-json-schema": "^0.50.1", - "ws": "^7.4.2", - "nan": "^2.15.0" + "ws": "^7.4.2" } } |