@tachybase/plugin-adapter-remix 1.3.17 → 1.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/express v2.15.2
2
+ * @remix-run/express v2.16.8
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -66,9 +66,11 @@ function createRemixRequest(req, res) {
66
66
  var _req$get, _req$get2;
67
67
  // req.hostname doesn't include port information so grab that from
68
68
  // `X-Forwarded-Host` or `Host`
69
- let [, hostnamePort] = ((_req$get = req.get("X-Forwarded-Host")) === null || _req$get === void 0 ? void 0 : _req$get.split(":")) ?? [];
70
- let [, hostPort] = ((_req$get2 = req.get("host")) === null || _req$get2 === void 0 ? void 0 : _req$get2.split(":")) ?? [];
71
- let port = hostnamePort || hostPort;
69
+ let [, hostnamePortStr] = ((_req$get = req.get("X-Forwarded-Host")) === null || _req$get === void 0 ? void 0 : _req$get.split(":")) ?? [];
70
+ let [, hostPortStr] = ((_req$get2 = req.get("host")) === null || _req$get2 === void 0 ? void 0 : _req$get2.split(":")) ?? [];
71
+ let hostnamePort = Number.parseInt(hostnamePortStr, 10);
72
+ let hostPort = Number.parseInt(hostPortStr, 10);
73
+ let port = Number.isSafeInteger(hostnamePort) ? hostnamePort : Number.isSafeInteger(hostPort) ? hostPort : "";
72
74
  // Use req.hostname here as it respects the "trust proxy" setting
73
75
  let resolvedHost = `${req.hostname}${port ? `:${port}` : ""}`;
74
76
  // Use `req.originalUrl` so Remix is aware of the full path
@@ -1 +1 @@
1
- {"name":"@remix-run/express","version":"2.15.2","description":"Express server request handler for Remix","bugs":{"url":"https://github.com/remix-run/remix/issues"},"repository":{"type":"git","url":"https://github.com/remix-run/remix","directory":"packages/remix-express"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","dependencies":{"@remix-run/node":"2.15.2"},"devDependencies":{"@types/express":"^4.17.9","@types/node":"^18.17.1","@types/supertest":"^2.0.10","express":"^4.20.0","node-mocks-http":"^1.10.1","supertest":"^6.3.3","typescript":"^5.1.6"},"peerDependencies":{"express":"^4.20.0","typescript":"^5.1.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"engines":{"node":">=18.0.0"},"files":["dist/","CHANGELOG.md","LICENSE.md","README.md"],"scripts":{"tsc":"tsc"},"_lastModified":"2025-07-04T03:59:29.081Z"}
1
+ {"name":"@remix-run/express","version":"2.16.8","description":"Express server request handler for Remix","bugs":{"url":"https://github.com/remix-run/remix/issues"},"repository":{"type":"git","url":"https://github.com/remix-run/remix","directory":"packages/remix-express"},"license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","dependencies":{"@remix-run/node":"2.16.8"},"devDependencies":{"@types/express":"^4.17.9","@types/node":"^18.17.1","@types/supertest":"^2.0.10","express":"^4.20.0","node-mocks-http":"^1.10.1","supertest":"^6.3.3","typescript":"^5.1.6"},"peerDependencies":{"express":"^4.20.0","typescript":"^5.1.0"},"peerDependenciesMeta":{"typescript":{"optional":true}},"engines":{"node":">=18.0.0"},"files":["dist/","CHANGELOG.md","LICENSE.md","README.md"],"scripts":{"tsc":"tsc"},"_lastModified":"2025-07-17T07:48:19.667Z"}
@@ -1 +1 @@
1
- {"name":"express","description":"Fast, unopinionated, minimalist web framework","version":"4.21.2","author":"TJ Holowaychuk <tj@vision-media.ca>","contributors":["Aaron Heckmann <aaron.heckmann+github@gmail.com>","Ciaran Jessup <ciaranj@gmail.com>","Douglas Christopher Wilson <doug@somethingdoug.com>","Guillermo Rauch <rauchg@gmail.com>","Jonathan Ong <me@jongleberry.com>","Roman Shtylman <shtylman+expressjs@gmail.com>","Young Jae Sim <hanul@hanul.me>"],"license":"MIT","repository":"expressjs/express","homepage":"http://expressjs.com/","funding":{"type":"opencollective","url":"https://opencollective.com/express"},"keywords":["express","framework","sinatra","web","http","rest","restful","router","app","api"],"dependencies":{"accepts":"~1.3.8","array-flatten":"1.1.1","body-parser":"1.20.3","content-disposition":"0.5.4","content-type":"~1.0.4","cookie":"0.7.1","cookie-signature":"1.0.6","debug":"2.6.9","depd":"2.0.0","encodeurl":"~2.0.0","escape-html":"~1.0.3","etag":"~1.8.1","finalhandler":"1.3.1","fresh":"0.5.2","http-errors":"2.0.0","merge-descriptors":"1.0.3","methods":"~1.1.2","on-finished":"2.4.1","parseurl":"~1.3.3","path-to-regexp":"0.1.12","proxy-addr":"~2.0.7","qs":"6.13.0","range-parser":"~1.2.1","safe-buffer":"5.2.1","send":"0.19.0","serve-static":"1.16.2","setprototypeof":"1.2.0","statuses":"2.0.1","type-is":"~1.6.18","utils-merge":"1.0.1","vary":"~1.1.2"},"devDependencies":{"after":"0.8.2","connect-redis":"3.4.2","cookie-parser":"1.4.6","cookie-session":"2.0.0","ejs":"3.1.9","eslint":"8.47.0","express-session":"1.17.2","hbs":"4.2.0","marked":"0.7.0","method-override":"3.0.0","mocha":"10.2.0","morgan":"1.10.0","nyc":"15.1.0","pbkdf2-password":"1.2.1","supertest":"6.3.0","vhost":"~3.0.2"},"engines":{"node":">= 0.10.0"},"files":["LICENSE","History.md","Readme.md","index.js","lib/"],"scripts":{"lint":"eslint .","test":"mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/","test-ci":"nyc --exclude examples --exclude test --exclude benchmarks --reporter=lcovonly --reporter=text npm test","test-cov":"nyc --exclude examples --exclude test --exclude benchmarks --reporter=html --reporter=text npm test","test-tap":"mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"},"_lastModified":"2025-07-04T03:59:29.848Z"}
1
+ {"name":"express","description":"Fast, unopinionated, minimalist web framework","version":"4.21.2","author":"TJ Holowaychuk <tj@vision-media.ca>","contributors":["Aaron Heckmann <aaron.heckmann+github@gmail.com>","Ciaran Jessup <ciaranj@gmail.com>","Douglas Christopher Wilson <doug@somethingdoug.com>","Guillermo Rauch <rauchg@gmail.com>","Jonathan Ong <me@jongleberry.com>","Roman Shtylman <shtylman+expressjs@gmail.com>","Young Jae Sim <hanul@hanul.me>"],"license":"MIT","repository":"expressjs/express","homepage":"http://expressjs.com/","funding":{"type":"opencollective","url":"https://opencollective.com/express"},"keywords":["express","framework","sinatra","web","http","rest","restful","router","app","api"],"dependencies":{"accepts":"~1.3.8","array-flatten":"1.1.1","body-parser":"1.20.3","content-disposition":"0.5.4","content-type":"~1.0.4","cookie":"0.7.1","cookie-signature":"1.0.6","debug":"2.6.9","depd":"2.0.0","encodeurl":"~2.0.0","escape-html":"~1.0.3","etag":"~1.8.1","finalhandler":"1.3.1","fresh":"0.5.2","http-errors":"2.0.0","merge-descriptors":"1.0.3","methods":"~1.1.2","on-finished":"2.4.1","parseurl":"~1.3.3","path-to-regexp":"0.1.12","proxy-addr":"~2.0.7","qs":"6.13.0","range-parser":"~1.2.1","safe-buffer":"5.2.1","send":"0.19.0","serve-static":"1.16.2","setprototypeof":"1.2.0","statuses":"2.0.1","type-is":"~1.6.18","utils-merge":"1.0.1","vary":"~1.1.2"},"devDependencies":{"after":"0.8.2","connect-redis":"3.4.2","cookie-parser":"1.4.6","cookie-session":"2.0.0","ejs":"3.1.9","eslint":"8.47.0","express-session":"1.17.2","hbs":"4.2.0","marked":"0.7.0","method-override":"3.0.0","mocha":"10.2.0","morgan":"1.10.0","nyc":"15.1.0","pbkdf2-password":"1.2.1","supertest":"6.3.0","vhost":"~3.0.2"},"engines":{"node":">= 0.10.0"},"files":["LICENSE","History.md","Readme.md","index.js","lib/"],"scripts":{"lint":"eslint .","test":"mocha --require test/support/env --reporter spec --bail --check-leaks test/ test/acceptance/","test-ci":"nyc --exclude examples --exclude test --exclude benchmarks --reporter=lcovonly --reporter=text npm test","test-cov":"nyc --exclude examples --exclude test --exclude benchmarks --reporter=html --reporter=text npm test","test-tap":"mocha --require test/support/env --reporter tap --check-leaks test/ test/acceptance/"},"_lastModified":"2025-07-17T07:48:20.402Z"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-adapter-remix",
3
3
  "displayName": "Adapter remix",
4
- "version": "1.3.17",
4
+ "version": "1.3.18",
5
5
  "description": "integrate and manage remix server.",
6
6
  "keywords": [
7
7
  "System management"
@@ -9,7 +9,7 @@
9
9
  "main": "dist/server/index.js",
10
10
  "dependencies": {},
11
11
  "devDependencies": {
12
- "@remix-run/express": "^2.15.2",
12
+ "@remix-run/express": "^2.16.8",
13
13
  "@remix-run/react": "^2.15.2",
14
14
  "cross-env": "^7.0.3",
15
15
  "express": "^4.21.2",
@@ -20,9 +20,9 @@
20
20
  "tiny-invariant": "^1.3.3"
21
21
  },
22
22
  "peerDependencies": {
23
- "@tachybase/server": "1.3.17",
24
- "@tachybase/client": "1.3.17",
25
- "@tachybase/test": "1.3.17"
23
+ "@tachybase/server": "1.3.18",
24
+ "@tachybase/client": "1.3.18",
25
+ "@tachybase/test": "1.3.18"
26
26
  },
27
27
  "description.zh-CN": "集成和管理 Remix 服务器",
28
28
  "displayName.zh-CN": "Remix管理",