mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
chore: pockethost server packages update
This commit is contained in:
parent
787afe4f84
commit
0e726a68c9
@ -25,24 +25,24 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@s-libs/micro-dash": "^18.0.0",
|
"@s-libs/micro-dash": "^18.0.0",
|
||||||
"ajv": "^8.12.0",
|
"ajv": "^8.17.1",
|
||||||
"better-sqlite3": "^11.5.0",
|
"better-sqlite3": "^11.7.2",
|
||||||
"bottleneck": "^2.19.5",
|
"bottleneck": "^2.19.5",
|
||||||
"commander": "^12.1.0",
|
"commander": "^13.0.0",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"devcert": "^1.2.2",
|
"devcert": "^1.2.2",
|
||||||
"dockerode": "^4.0.2",
|
"dockerode": "^4.0.3",
|
||||||
"dotenv": "^16.4.5",
|
"dotenv": "^16.4.7",
|
||||||
"env-paths": "^3.0.0",
|
"env-paths": "^3.0.0",
|
||||||
"env-var": "^7.5.0",
|
"env-var": "^7.5.0",
|
||||||
"eventsource": "^2.0.2",
|
"eventsource": "^3.0.2",
|
||||||
"exit-hook": "^4.0.0",
|
"exit-hook": "^4.0.0",
|
||||||
"express": "^4.18.2",
|
"express": "^4.21.2",
|
||||||
"express-async-errors": "^3.1.1",
|
"express-async-errors": "^3.1.1",
|
||||||
"express-sslify": "^1.2.0",
|
"express-sslify": "^1.2.0",
|
||||||
"fs-extra": "^11.2.0",
|
"fs-extra": "^11.2.0",
|
||||||
"ftp-srv": "github:pockethost/ftp-srv#0fc708bae0d5d7a55ce948767f082d6fcfb2af59",
|
"ftp-srv": "github:pockethost/ftp-srv#0fc708bae0d5d7a55ce948767f082d6fcfb2af59",
|
||||||
"glob": "^11.0.0",
|
"glob": "^11.0.1",
|
||||||
"gobot": "1.0.0-alpha.41",
|
"gobot": "1.0.0-alpha.41",
|
||||||
"http-proxy": "^1.18.1",
|
"http-proxy": "^1.18.1",
|
||||||
"http-proxy-middleware": "^3.0.3",
|
"http-proxy-middleware": "^3.0.3",
|
||||||
@ -52,33 +52,33 @@
|
|||||||
"node-fetch": "^3.3.2",
|
"node-fetch": "^3.3.2",
|
||||||
"node-os-utils": "^1.3.7",
|
"node-os-utils": "^1.3.7",
|
||||||
"pocketbase": "^0.21.3",
|
"pocketbase": "^0.21.3",
|
||||||
"semver": "^7.5.4",
|
"semver": "^7.6.3",
|
||||||
"tail": "^2.2.6",
|
"tail": "^2.2.6",
|
||||||
"type-fest": "^4.6.0",
|
"type-fest": "^4.32.0",
|
||||||
"vhost": "^3.0.2",
|
"vhost": "^3.0.2",
|
||||||
"winston": "^3.17.0",
|
"winston": "^3.17.0",
|
||||||
"winston-transport": "^4.9.0"
|
"winston-transport": "^4.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/better-sqlite3": "^7.6.11",
|
"@types/better-sqlite3": "^7.6.12",
|
||||||
"@types/cors": "^2.8.17",
|
"@types/cors": "^2.8.17",
|
||||||
"@types/d3-scale": "^4.0.6",
|
"@types/d3-scale": "^4.0.8",
|
||||||
"@types/d3-scale-chromatic": "^3.0.1",
|
"@types/d3-scale-chromatic": "^3.1.0",
|
||||||
"@types/decompress": "^4.2.6",
|
"@types/decompress": "^4.2.7",
|
||||||
"@types/dockerode": "^3.3.31",
|
"@types/dockerode": "^3.3.34",
|
||||||
"@types/eventsource": "^1.1.14",
|
"@types/eventsource": "^1.1.15",
|
||||||
"@types/express": "^4.17.21",
|
"@types/express": "^5.0.0",
|
||||||
"@types/express-sslify": "^1.2.5",
|
"@types/express-sslify": "^1.2.5",
|
||||||
"@types/fs-extra": "^11.0.4",
|
"@types/fs-extra": "^11.0.4",
|
||||||
"@types/http-proxy": "^1.17.13",
|
"@types/http-proxy": "^1.17.15",
|
||||||
"@types/js-cookie": "^3.0.5",
|
"@types/js-cookie": "^3.0.6",
|
||||||
"@types/json-stringify-safe": "^5.0.2",
|
"@types/json-stringify-safe": "^5.0.3",
|
||||||
"@types/memorystream": "^0.3.3",
|
"@types/memorystream": "^0.3.4",
|
||||||
"@types/node": "^20.8.10",
|
"@types/node": "^22.10.5",
|
||||||
"@types/node-os-utils": "^1.3.4",
|
"@types/node-os-utils": "^1.3.4",
|
||||||
"@types/semver": "^7.5.4",
|
"@types/semver": "^7.5.8",
|
||||||
"@types/tail": "^2.2.3",
|
"@types/tail": "^2.2.3",
|
||||||
"@types/unzipper": "^0.10.8",
|
"@types/unzipper": "^0.10.10",
|
||||||
"@types/vhost": "^3.0.9"
|
"@types/vhost": "^3.0.9"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
import { LogLevelName, gracefulExit, logger } from '@'
|
import { LogLevelName, gracefulExit, logger } from '@'
|
||||||
import { program } from 'commander'
|
import { program } from 'commander'
|
||||||
import EventSource from 'eventsource'
|
import { EventSource } from 'eventsource'
|
||||||
import { version } from '../../package.json'
|
import { version } from '../../package.json'
|
||||||
import { EdgeCommand } from './commands/EdgeCommand'
|
import { EdgeCommand } from './commands/EdgeCommand'
|
||||||
import { FirewallCommand } from './commands/FirewallCommand'
|
import { FirewallCommand } from './commands/FirewallCommand'
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
diff --git a/lib/eventsource.js b/lib/eventsource.js
|
|
||||||
index bd401a106c16ca1f5aa6a965db51d9a38f10a1c6..a271b2d391df5a62ccf5d4e69e81afe1fa36c704 100644
|
|
||||||
--- a/lib/eventsource.js
|
|
||||||
+++ b/lib/eventsource.js
|
|
||||||
@@ -87,7 +87,7 @@ function EventSource (url, eventSourceInitDict) {
|
|
||||||
var reconnectUrl = null
|
|
||||||
|
|
||||||
function connect () {
|
|
||||||
- var options = parse(url)
|
|
||||||
+ var options = new URL(url)
|
|
||||||
var isSecure = options.protocol === 'https:'
|
|
||||||
options.headers = { 'Cache-Control': 'no-cache', 'Accept': 'text/event-stream' }
|
|
||||||
if (lastEventId) options.headers['Last-Event-ID'] = lastEventId
|
|
||||||
@@ -113,7 +113,7 @@ function EventSource (url, eventSourceInitDict) {
|
|
||||||
// and include the original url in path and Host headers
|
|
||||||
var useProxy = eventSourceInitDict && eventSourceInitDict.proxy
|
|
||||||
if (useProxy) {
|
|
||||||
- var proxy = parse(eventSourceInitDict.proxy)
|
|
||||||
+ var proxy = new URL(eventSourceInitDict.proxy)
|
|
||||||
isSecure = proxy.protocol === 'https:'
|
|
||||||
|
|
||||||
options.protocol = isSecure ? 'https:' : 'http:'
|
|
1430
pnpm-lock.yaml
generated
1430
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user