@cedarjs/web 0.0.5 → 1.0.0-canary.12246
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/cjs/server/MiddlewareResponse.js +3 -3
- package/dist/cjs/server/middleware.d.ts +1 -1
- package/dist/cjs/server/middleware.d.ts.map +1 -1
- package/dist/server/MiddlewareResponse.js +1 -1
- package/dist/server/middleware.d.ts +1 -1
- package/dist/server/middleware.d.ts.map +1 -1
- package/package.json +12 -15
|
@@ -33,7 +33,7 @@ __export(MiddlewareResponse_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(MiddlewareResponse_exports);
|
|
35
35
|
var import_fetch = require("@whatwg-node/fetch");
|
|
36
|
-
var
|
|
36
|
+
var cookie = __toESM(require("cookie"), 1);
|
|
37
37
|
var import_cookie_jar = require("@cedarjs/cookie-jar");
|
|
38
38
|
class MiddlewareShortCircuit extends Error {
|
|
39
39
|
mwResponse;
|
|
@@ -73,7 +73,7 @@ class MiddlewareResponse {
|
|
|
73
73
|
for (const [ckName, ckParams] of this.cookies) {
|
|
74
74
|
this.headers.append(
|
|
75
75
|
"Set-Cookie",
|
|
76
|
-
|
|
76
|
+
cookie.serialize(ckName, ckParams.value, ckParams.options)
|
|
77
77
|
);
|
|
78
78
|
}
|
|
79
79
|
throw new MiddlewareShortCircuit(
|
|
@@ -113,7 +113,7 @@ class MiddlewareResponse {
|
|
|
113
113
|
for (const [ckName, ckParams] of this.cookies) {
|
|
114
114
|
this.headers.append(
|
|
115
115
|
"Set-Cookie",
|
|
116
|
-
|
|
116
|
+
cookie.serialize(ckName, ckParams.value, ckParams.options)
|
|
117
117
|
);
|
|
118
118
|
}
|
|
119
119
|
return new import_fetch.Response(this.body, {
|
|
@@ -8,7 +8,7 @@ export type MiddlewareInvokeOptions = {
|
|
|
8
8
|
route?: RWRouteManifestItem;
|
|
9
9
|
cssPaths?: string[];
|
|
10
10
|
params?: Record<string, unknown>;
|
|
11
|
-
|
|
11
|
+
viteSsrDevServer?: ViteDevServer;
|
|
12
12
|
};
|
|
13
13
|
export type Middleware = (req: MiddlewareRequest, res: MiddlewareResponse, options?: MiddlewareInvokeOptions) => Promise<MiddlewareResponse> | MiddlewareResponse | void;
|
|
14
14
|
export interface MiddlewareClass {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/server/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAIzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AAEvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../src/server/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAIzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AAEvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,gBAAgB,CAAC,EAAE,aAAa,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,CACvB,GAAG,EAAE,iBAAiB,EACtB,GAAG,EAAE,kBAAkB,EACvB,OAAO,CAAC,EAAE,uBAAuB,KAC9B,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,GAAG,IAAI,CAAA;AAE5D,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,UAAU,CAAA;CACnB"}
|
|
@@ -8,7 +8,7 @@ export type MiddlewareInvokeOptions = {
|
|
|
8
8
|
route?: RWRouteManifestItem;
|
|
9
9
|
cssPaths?: string[];
|
|
10
10
|
params?: Record<string, unknown>;
|
|
11
|
-
|
|
11
|
+
viteSsrDevServer?: ViteDevServer;
|
|
12
12
|
};
|
|
13
13
|
export type Middleware = (req: MiddlewareRequest, res: MiddlewareResponse, options?: MiddlewareInvokeOptions) => Promise<MiddlewareResponse> | MiddlewareResponse | void;
|
|
14
14
|
export interface MiddlewareClass {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/server/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAIzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AAEvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/server/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAA;AAIzC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAE3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAEjE,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AAEvC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,gBAAgB,CAAC,EAAE,aAAa,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,CACvB,GAAG,EAAE,iBAAiB,EACtB,GAAG,EAAE,kBAAkB,EACvB,OAAO,CAAC,EAAE,uBAAuB,KAC9B,OAAO,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,GAAG,IAAI,CAAA;AAE5D,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,UAAU,CAAA;CACnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/web",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "1.0.0-canary.12246+0f1d1e1f9",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
],
|
|
131
131
|
"scripts": {
|
|
132
132
|
"build": "tsx ./build.ts && yarn build:types",
|
|
133
|
-
"build:pack": "yarn pack -o
|
|
133
|
+
"build:pack": "yarn pack -o cedarjs-web.tgz",
|
|
134
134
|
"build:types": "tsc --build --verbose ./tsconfig.build.json ./tsconfig.cjs.json",
|
|
135
135
|
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
|
|
136
136
|
"check:attw": "tsx ./attw.ts",
|
|
@@ -143,11 +143,11 @@
|
|
|
143
143
|
"dependencies": {
|
|
144
144
|
"@apollo/client": "3.11.1",
|
|
145
145
|
"@babel/runtime-corejs3": "7.26.10",
|
|
146
|
-
"@cedarjs/auth": "0.0.
|
|
147
|
-
"@cedarjs/server-store": "0.0.
|
|
146
|
+
"@cedarjs/auth": "1.0.0-canary.12246",
|
|
147
|
+
"@cedarjs/server-store": "1.0.0-canary.12246",
|
|
148
148
|
"@whatwg-node/fetch": "0.9.21",
|
|
149
149
|
"apollo-upload-client": "18.0.1",
|
|
150
|
-
"cookie": "0.
|
|
150
|
+
"cookie": "1.0.2",
|
|
151
151
|
"core-js": "3.42.0",
|
|
152
152
|
"graphql": "16.9.0",
|
|
153
153
|
"graphql-sse": "2.5.3",
|
|
@@ -164,8 +164,8 @@
|
|
|
164
164
|
"@babel/core": "^7.26.10",
|
|
165
165
|
"@babel/plugin-transform-runtime": "7.26.10",
|
|
166
166
|
"@babel/runtime": "7.25.7",
|
|
167
|
-
"@cedarjs/framework-tools": "0.0.
|
|
168
|
-
"@cedarjs/internal": "0.0.
|
|
167
|
+
"@cedarjs/framework-tools": "1.0.0-canary.12246",
|
|
168
|
+
"@cedarjs/internal": "1.0.0-canary.12246",
|
|
169
169
|
"@rollup/plugin-babel": "6.0.4",
|
|
170
170
|
"@testing-library/jest-dom": "6.5.0",
|
|
171
171
|
"@testing-library/react": "14.3.1",
|
|
@@ -175,19 +175,16 @@
|
|
|
175
175
|
"concurrently": "8.2.2",
|
|
176
176
|
"nodemon": "3.1.9",
|
|
177
177
|
"publint": "0.3.11",
|
|
178
|
-
"react": "
|
|
179
|
-
"react-dom": "
|
|
178
|
+
"react": "19.0.0-rc-f2df5694-20240916",
|
|
179
|
+
"react-dom": "19.0.0-rc-f2df5694-20240916",
|
|
180
180
|
"tstyche": "3.0.0",
|
|
181
181
|
"tsx": "4.19.3",
|
|
182
182
|
"typescript": "5.6.2",
|
|
183
183
|
"vitest": "2.1.9"
|
|
184
184
|
},
|
|
185
185
|
"peerDependencies": {
|
|
186
|
-
"react": "
|
|
187
|
-
"react-dom": "
|
|
186
|
+
"react": "19.0.0-rc-f2df5694-20240916",
|
|
187
|
+
"react-dom": "19.0.0-rc-f2df5694-20240916"
|
|
188
188
|
},
|
|
189
|
-
"
|
|
190
|
-
"access": "public"
|
|
191
|
-
},
|
|
192
|
-
"gitHead": "f30c8374515a740c7fc7a09530f28abfd777035c"
|
|
189
|
+
"gitHead": "0f1d1e1f96a616945f54222de4147d9f99b0f883"
|
|
193
190
|
}
|