@universal-middleware/express 0.4.17 → 0.4.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.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -2
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IncomingMessage, ServerResponse, OutgoingHttpHeaders } from 'node:http';
|
|
2
2
|
import { Socket } from 'node:net';
|
|
3
|
-
import { Get, UniversalHandler, UniversalFn, Awaitable, UniversalMiddleware, RuntimeAdapterTarget, UniversalRouter, UniversalRouterInterface, EnhancedMiddleware } from '@universal-middleware/core';
|
|
3
|
+
import { Get, UniversalHandler, UniversalFn, contextSymbol, Awaitable, UniversalMiddleware, RuntimeAdapterTarget, UniversalRouter, UniversalRouterInterface, EnhancedMiddleware } from '@universal-middleware/core';
|
|
4
4
|
import { Readable } from 'node:stream';
|
|
5
5
|
import { Express as Express$2 } from 'express';
|
|
6
6
|
import { Express as Express$1 } from 'express4';
|
|
@@ -31,7 +31,6 @@ interface NodeRequestAdapterOptions {
|
|
|
31
31
|
/** Create a function that converts a Node HTTP request into a fetch API `Request` object */
|
|
32
32
|
declare function createRequestAdapter(options?: NodeRequestAdapterOptions): (req: DecoratedRequest) => Request;
|
|
33
33
|
|
|
34
|
-
declare const contextSymbol: unique symbol;
|
|
35
34
|
declare const requestSymbol: unique symbol;
|
|
36
35
|
declare const pendingMiddlewaresSymbol: unique symbol;
|
|
37
36
|
declare const wrappedResponseSymbol: unique symbol;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/common.ts
|
|
2
|
-
import { bindUniversal, getAdapterRuntime, universalSymbol } from "@universal-middleware/core";
|
|
2
|
+
import { bindUniversal, contextSymbol, getAdapterRuntime, universalSymbol } from "@universal-middleware/core";
|
|
3
3
|
|
|
4
4
|
// src/request.ts
|
|
5
5
|
var deno = typeof Deno !== "undefined";
|
|
@@ -281,7 +281,6 @@ function setHeaders(fetchResponse, nodeResponse, mirror = false) {
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
// src/common.ts
|
|
284
|
-
var contextSymbol = Symbol.for("unContext");
|
|
285
284
|
var requestSymbol = Symbol.for("unRequest");
|
|
286
285
|
var pendingMiddlewaresSymbol = Symbol.for("unPendingMiddlewares");
|
|
287
286
|
var wrappedResponseSymbol = Symbol.for("unWrappedResponse");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@universal-middleware/express",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Express adapter for universal middlewares",
|
|
6
6
|
"files": [
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"repository": "https://github.com/magne4000/universal-middleware",
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@universal-middleware/core": "^0.4.
|
|
16
|
+
"@universal-middleware/core": "^0.4.9"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@swc/core": "^1.
|
|
19
|
+
"@swc/core": "^1.13.1",
|
|
20
20
|
"@types/express": "^5.0.3",
|
|
21
21
|
"@types/express4": "npm:@types/express@^4.17.23",
|
|
22
22
|
"@types/node": "^20.19.0",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"helmet": "^8.1.0",
|
|
26
26
|
"rimraf": "^6.0.1",
|
|
27
27
|
"tsup": "^8.5.0",
|
|
28
|
-
"tsx": "^4.
|
|
28
|
+
"tsx": "^4.20.3",
|
|
29
29
|
"typescript": "^5.8.3",
|
|
30
|
-
"vite": "^
|
|
31
|
-
"vitest": "^3.2.
|
|
30
|
+
"vite": "^7.0.5",
|
|
31
|
+
"vitest": "^3.2.4",
|
|
32
32
|
"@universal-middleware/tests": "0.0.0"
|
|
33
33
|
},
|
|
34
34
|
"sideEffects": false,
|