fix: cannot find module http-cookie-agent/http (#2972)

This commit is contained in:
Meier Lukas
2025-04-27 17:12:03 +02:00
committed by GitHub
parent f7ff1e3911
commit bb92f5bb79
4 changed files with 24 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
Dockerfile
.dockerignore
node_modules
**/node_modules
npm-debug.log
README.md
.next

View File

@@ -10,7 +10,7 @@
"main": "./src/main.ts",
"types": "./src/main.ts",
"scripts": {
"build": "esbuild src/main.ts --bundle --platform=node --loader:.scss=text --external:@opentelemetry/api --external:http-cookie-agent --outfile=tasks.cjs",
"build": "esbuild src/main.ts --bundle --platform=node --loader:.scss=text --external:@opentelemetry/api --external:deasync --outfile=tasks.cjs",
"clean": "rm -rf .turbo node_modules",
"dev": "pnpm with-env tsx ./src/main.ts",
"format": "prettier --check . --ignore-path ../../.gitignore",

View File

@@ -7,7 +7,7 @@
"main": "./src/main.ts",
"types": "./src/main.ts",
"scripts": {
"build": "esbuild src/main.ts --bundle --platform=node --outfile=wssServer.cjs --external:bcrypt --external:@opentelemetry/api --external:http-cookie-agent --external:cpu-features --loader:.html=text --loader:.scss=text --loader:.node=text",
"build": "esbuild src/main.ts --bundle --platform=node --outfile=wssServer.cjs --external:bcrypt --external:@opentelemetry/api --external:deasync --external:cpu-features --loader:.html=text --loader:.scss=text --loader:.node=text",
"clean": "rm -rf .turbo node_modules",
"dev": "pnpm with-env tsx ./src/main.ts",
"format": "prettier --check . --ignore-path ../../.gitignore",

25
pnpm-lock.yaml generated
View File

@@ -1314,7 +1314,7 @@ importers:
version: 0.20.1
node-unifi:
specifier: ^2.5.1
version: 2.5.1(undici@7.8.0)
version: 2.5.1(deasync@0.1.30)(undici@7.8.0)
proxmox-api:
specifier: 1.1.1
version: 1.1.1
@@ -5997,6 +5997,10 @@ packages:
dayjs@1.11.13:
resolution: {integrity: sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==}
deasync@0.1.30:
resolution: {integrity: sha512-OaAjvEQuQ9tJsKG4oHO9nV1UHTwb2Qc2+fadB0VeVtD0Z9wiG1XPGLJ4W3aLhAoQSYTaLROFRbd5X20Dkzf7MQ==}
engines: {node: '>=0.11.0'}
debug@3.2.7:
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
peerDependencies:
@@ -8250,6 +8254,9 @@ packages:
node-abort-controller@3.1.1:
resolution: {integrity: sha512-AGK2yQKIjRuqnc6VkX2Xj5d+QW8xZ87pa1UK6yA6ouUyuxfHuMP6umE5QK7UmTeOAymo+Zx1Fxiuw9rVx8taHQ==}
node-addon-api@1.7.2:
resolution: {integrity: sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==}
node-addon-api@3.2.1:
resolution: {integrity: sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A==}
@@ -14881,6 +14888,12 @@ snapshots:
dayjs@1.11.13: {}
deasync@0.1.30:
dependencies:
bindings: 1.5.0
node-addon-api: 1.7.2
optional: true
debug@3.2.7:
dependencies:
ms: 2.1.3
@@ -16259,11 +16272,12 @@ snapshots:
html-url-attributes@3.0.1: {}
http-cookie-agent@5.0.4(tough-cookie@4.1.4)(undici@7.8.0):
http-cookie-agent@5.0.4(deasync@0.1.30)(tough-cookie@4.1.4)(undici@7.8.0):
dependencies:
agent-base: 7.1.3
tough-cookie: 4.1.4
optionalDependencies:
deasync: 0.1.30
undici: 7.8.0
http-errors@2.0.0:
@@ -17526,6 +17540,9 @@ snapshots:
node-abort-controller@3.1.1: {}
node-addon-api@1.7.2:
optional: true
node-addon-api@3.2.1:
optional: true
@@ -17603,11 +17620,11 @@ snapshots:
node-releases@2.0.19: {}
node-unifi@2.5.1(undici@7.8.0):
node-unifi@2.5.1(deasync@0.1.30)(undici@7.8.0):
dependencies:
axios: 1.6.2
eventemitter2: 6.4.9
http-cookie-agent: 5.0.4(tough-cookie@4.1.4)(undici@7.8.0)
http-cookie-agent: 5.0.4(deasync@0.1.30)(tough-cookie@4.1.4)(undici@7.8.0)
tough-cookie: 4.1.4
url: 0.11.4
ws: 8.18.1