@cedarjs/web 1.0.0-canary.12749 → 1.0.0-rc.26
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/bins/storybook.js +5 -2
- 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 +11 -11
|
@@ -31,8 +31,11 @@ const pkgJsonPath = require.resolve("storybook/package.json");
|
|
|
31
31
|
const storybookPackageJsonFileUrl = (0, import_node_url.pathToFileURL)(pkgJsonPath);
|
|
32
32
|
try {
|
|
33
33
|
const requireFromStorybook = (0, import_node_module.createRequire)(storybookPackageJsonFileUrl);
|
|
34
|
-
const
|
|
35
|
-
const sbEntryPointUrl = new URL(
|
|
34
|
+
const bins = requireFromStorybook("./package.json")["bin"];
|
|
35
|
+
const sbEntryPointUrl = new URL(
|
|
36
|
+
bins["storybook"],
|
|
37
|
+
storybookPackageJsonFileUrl
|
|
38
|
+
);
|
|
36
39
|
if (process.env.PROJECT_CWD) {
|
|
37
40
|
process.chdir(process.env.PROJECT_CWD);
|
|
38
41
|
}
|
|
@@ -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 import_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
|
+
import_cookie.default.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
|
+
import_cookie.default.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
|
+
viteDevServer?: 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,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,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
|
+
viteDevServer?: 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,aAAa,CAAC,EAAE,aAAa,CAAA;CAC9B,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": "1.0.0-
|
|
3
|
+
"version": "1.0.0-rc.26",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -145,12 +145,12 @@
|
|
|
145
145
|
"dependencies": {
|
|
146
146
|
"@apollo/client": "3.13.9",
|
|
147
147
|
"@babel/runtime-corejs3": "7.27.6",
|
|
148
|
-
"@cedarjs/auth": "1.0.0-
|
|
149
|
-
"@cedarjs/server-store": "1.0.0-
|
|
148
|
+
"@cedarjs/auth": "1.0.0-rc.26",
|
|
149
|
+
"@cedarjs/server-store": "1.0.0-rc.26",
|
|
150
150
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
151
151
|
"@whatwg-node/fetch": "0.9.21",
|
|
152
152
|
"apollo-upload-client": "18.0.1",
|
|
153
|
-
"cookie": "
|
|
153
|
+
"cookie": "0.7.2",
|
|
154
154
|
"core-js": "3.42.0",
|
|
155
155
|
"graphql": "16.9.0",
|
|
156
156
|
"graphql-sse": "2.5.4",
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
"@babel/core": "^7.26.10",
|
|
167
167
|
"@babel/plugin-transform-runtime": "7.27.4",
|
|
168
168
|
"@babel/runtime": "7.27.6",
|
|
169
|
-
"@cedarjs/framework-tools": "1.0.0-
|
|
170
|
-
"@cedarjs/internal": "1.0.0-
|
|
169
|
+
"@cedarjs/framework-tools": "1.0.0-rc.26",
|
|
170
|
+
"@cedarjs/internal": "1.0.0-rc.26",
|
|
171
171
|
"@rollup/plugin-babel": "6.0.4",
|
|
172
172
|
"@testing-library/jest-dom": "6.5.0",
|
|
173
173
|
"@testing-library/react": "14.3.1",
|
|
@@ -177,19 +177,19 @@
|
|
|
177
177
|
"concurrently": "8.2.2",
|
|
178
178
|
"nodemon": "3.1.10",
|
|
179
179
|
"publint": "0.3.12",
|
|
180
|
-
"react": "
|
|
181
|
-
"react-dom": "
|
|
180
|
+
"react": "18.3.1",
|
|
181
|
+
"react-dom": "18.3.1",
|
|
182
182
|
"tstyche": "3.0.0",
|
|
183
183
|
"tsx": "4.20.5",
|
|
184
184
|
"typescript": "5.9.2",
|
|
185
185
|
"vitest": "3.2.4"
|
|
186
186
|
},
|
|
187
187
|
"peerDependencies": {
|
|
188
|
-
"react": "
|
|
189
|
-
"react-dom": "
|
|
188
|
+
"react": "18.3.1",
|
|
189
|
+
"react-dom": "18.3.1"
|
|
190
190
|
},
|
|
191
191
|
"publishConfig": {
|
|
192
192
|
"access": "public"
|
|
193
193
|
},
|
|
194
|
-
"gitHead": "
|
|
194
|
+
"gitHead": "2ea84a564123f5d986dd88efcb6dddc55cbef367"
|
|
195
195
|
}
|