diff --git a/packages/relay/package.json b/packages/relay/package.json index 34c440b..1513c3f 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -24,7 +24,7 @@ "dependencies": { "@fakl/i18n": "workspace:*", "@fakl/remote": "workspace:*", - "web-push": "^3.6.7", + "web-push": "^4.0.0", "ws": "^8.22.2" }, "devDependencies": { diff --git a/packages/relay/src/main.ts b/packages/relay/src/main.ts index 4a12d9d..e593449 100644 --- a/packages/relay/src/main.ts +++ b/packages/relay/src/main.ts @@ -10,7 +10,7 @@ import { mkdir, readFile, writeFile } from 'node:fs/promises'; import { createServer } from 'node:http'; import { join, resolve } from 'node:path'; -import webpush from 'web-push'; +import * as webpush from 'web-push'; import { l10n, localeFromEnv, useLocale } from '@fakl/i18n'; import { createRelay } from './relay.js'; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c0ec755..8a980c8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -314,8 +314,8 @@ importers: specifier: workspace:* version: link:../remote web-push: - specifier: ^3.6.7 - version: 3.6.7 + specifier: ^4.0.0 + version: 4.0.0 ws: specifier: ^8.22.2 version: 8.22.2 @@ -1629,6 +1629,10 @@ packages: resolution: {integrity: sha512-MnA+YT8fwfJPgBx3m60MNqakm30XOkyIoH1y6huTQvC0PwZG7ki8NacLBcrPbNoo8vEZy7Jpuk7+jMO+CUovTQ==} engines: {node: '>= 14'} + agent-base@9.0.0: + resolution: {integrity: sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==} + engines: {node: '>= 20'} + ajv@6.15.0: resolution: {integrity: sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==} @@ -2365,14 +2369,18 @@ packages: resolution: {integrity: sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==} engines: {node: '>= 14'} - http_ece@1.2.0: - resolution: {integrity: sha512-JrF8SSLVmcvc5NducxgyOrKXe3EsyHMgBFgSaIUGmArKe+rwr0uphRkRXvwiom3I+fpIfoItveHrfudL8/rxuA==} + http_ece@1.2.1: + resolution: {integrity: sha512-+tzLoMYgXvicu60sVFoswTiu6BiQ6EX3DORRJQ3W2dNpNWCyZ3tcmRFZZ3jgVyw8ziWUCeUARKCkYDY6JgFx+w==} engines: {node: '>=16'} https-proxy-agent@7.0.6: resolution: {integrity: sha512-vK9P5/iUfdl95AI+JVyUuIcVtd4ofvtrOr3HNtM2yxC9bnMbEdp3x01OhQNnjb8IJYi38VlTE3mBXwcfvywuSw==} engines: {node: '>= 14'} + https-proxy-agent@9.1.0: + resolution: {integrity: sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==} + engines: {node: '>= 20'} + iconv-lite@0.6.3: resolution: {integrity: sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==} engines: {node: '>=0.10.0'} @@ -2750,9 +2758,6 @@ packages: resolution: {integrity: sha512-/UJ1dEoVQTjPNDh6SGlUo+ueLMmoHTas4q+8yaAR/5t6nLAIiBDJtoYUh20IYleix7ehiQkgczb84PE3uzHkxg==} engines: {node: 20 || >=22} - minimist@1.2.8: - resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} - minipass@7.1.3: resolution: {integrity: sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==} engines: {node: '>=16 || 14 >=14.17'} @@ -2953,6 +2958,15 @@ packages: property-information@7.2.0: resolution: {integrity: sha512-IAtzIB6sUiWaJYrX9smp3V46pBGbBeLFRGdh25kg1334VcBlD8HzhPeNIWQH9zhGmo2itIe25EHt9dQP7G5hmg==} + proxy-agent-negotiate@1.1.0: + resolution: {integrity: sha512-N8IBcM3UgCVzz2L2Lqv8DVntDnnC8/hiV4nEDUPkqq72TPUgYWjQc+bdZlBPZK9LzPAvOY//gAt0S0DApoOXWQ==} + engines: {node: '>= 20'} + peerDependencies: + kerberos: ^2.0.0 + peerDependenciesMeta: + kerberos: + optional: true + pseudo-localization@2.4.0: resolution: {integrity: sha512-ISYMOKY8+f+PmiXMFw2y6KLY74LBrv/8ml/VjjoVEV2k+MS+OJZz7ydciK5ntJwxPrKQPTU1+oXq9Mx2b0zEzg==} hasBin: true @@ -3439,8 +3453,8 @@ packages: jsdom: optional: true - web-push@3.6.7: - resolution: {integrity: sha512-OpiIUe8cuGjrj3mMBFWY+e4MMIkW3SVT+7vEIjvD9kejGUypv8GPDf84JdPWskK8zMRIJ6xYGm+Kxr8YkPyA0A==} + web-push@4.0.0: + resolution: {integrity: sha512-iKzGK/q3k+kjoPK+fkbs8ymYvEqu5RJNAypEskW+UAYsC44upqb0f+T8QSYW4naowl9bzjlHRe8CI0NFCBzZeQ==} engines: {node: '>= 16'} hasBin: true @@ -4743,6 +4757,8 @@ snapshots: agent-base@7.1.4: {} + agent-base@9.0.0: {} + ajv@6.15.0: dependencies: fast-deep-equal: 3.1.3 @@ -5594,7 +5610,7 @@ snapshots: transitivePeerDependencies: - supports-color - http_ece@1.2.0: {} + http_ece@1.2.1: {} https-proxy-agent@7.0.6: dependencies: @@ -5603,6 +5619,15 @@ snapshots: transitivePeerDependencies: - supports-color + https-proxy-agent@9.1.0: + dependencies: + agent-base: 9.0.0 + debug: 4.4.3 + proxy-agent-negotiate: 1.1.0 + transitivePeerDependencies: + - kerberos + - supports-color + iconv-lite@0.6.3: dependencies: safer-buffer: 2.1.2 @@ -5948,8 +5973,6 @@ snapshots: '@isaacs/nonrecursive-glob-match': 1.0.3 brace-expansion: 5.0.12 - minimist@1.2.8: {} - minipass@7.1.3: {} mrmime@2.0.1: {} @@ -6131,6 +6154,8 @@ snapshots: property-information@7.2.0: {} + proxy-agent-negotiate@1.1.0: {} + pseudo-localization@2.4.0: dependencies: flat: 5.0.2 @@ -6548,14 +6573,14 @@ snapshots: transitivePeerDependencies: - msw - web-push@3.6.7: + web-push@4.0.0: dependencies: asn1.js: 5.4.1 - http_ece: 1.2.0 - https-proxy-agent: 7.0.6 + http_ece: 1.2.1 + https-proxy-agent: 9.1.0 jws: 4.0.1 - minimist: 1.2.8 transitivePeerDependencies: + - kerberos - supports-color web-tree-sitter@0.20.8: {}