@cedarjs/web 1.0.0-canary.12748 → 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 -12
|
@@ -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",
|
|
@@ -114,7 +114,6 @@
|
|
|
114
114
|
"main": "./dist/index.js",
|
|
115
115
|
"types": "dist/index.d.ts",
|
|
116
116
|
"bin": {
|
|
117
|
-
"cdr": "./dist/cjs/bins/cedar.js",
|
|
118
117
|
"cedar": "./dist/cjs/bins/cedar.js",
|
|
119
118
|
"cedarjs": "./dist/cjs/bins/cedar.js",
|
|
120
119
|
"cross-env": "./dist/cjs/bins/cross-env.js",
|
|
@@ -146,12 +145,12 @@
|
|
|
146
145
|
"dependencies": {
|
|
147
146
|
"@apollo/client": "3.13.9",
|
|
148
147
|
"@babel/runtime-corejs3": "7.27.6",
|
|
149
|
-
"@cedarjs/auth": "1.0.0-
|
|
150
|
-
"@cedarjs/server-store": "1.0.0-
|
|
148
|
+
"@cedarjs/auth": "1.0.0-rc.26",
|
|
149
|
+
"@cedarjs/server-store": "1.0.0-rc.26",
|
|
151
150
|
"@dr.pogodin/react-helmet": "2.0.4",
|
|
152
151
|
"@whatwg-node/fetch": "0.9.21",
|
|
153
152
|
"apollo-upload-client": "18.0.1",
|
|
154
|
-
"cookie": "
|
|
153
|
+
"cookie": "0.7.2",
|
|
155
154
|
"core-js": "3.42.0",
|
|
156
155
|
"graphql": "16.9.0",
|
|
157
156
|
"graphql-sse": "2.5.4",
|
|
@@ -167,8 +166,8 @@
|
|
|
167
166
|
"@babel/core": "^7.26.10",
|
|
168
167
|
"@babel/plugin-transform-runtime": "7.27.4",
|
|
169
168
|
"@babel/runtime": "7.27.6",
|
|
170
|
-
"@cedarjs/framework-tools": "1.0.0-
|
|
171
|
-
"@cedarjs/internal": "1.0.0-
|
|
169
|
+
"@cedarjs/framework-tools": "1.0.0-rc.26",
|
|
170
|
+
"@cedarjs/internal": "1.0.0-rc.26",
|
|
172
171
|
"@rollup/plugin-babel": "6.0.4",
|
|
173
172
|
"@testing-library/jest-dom": "6.5.0",
|
|
174
173
|
"@testing-library/react": "14.3.1",
|
|
@@ -178,19 +177,19 @@
|
|
|
178
177
|
"concurrently": "8.2.2",
|
|
179
178
|
"nodemon": "3.1.10",
|
|
180
179
|
"publint": "0.3.12",
|
|
181
|
-
"react": "
|
|
182
|
-
"react-dom": "
|
|
180
|
+
"react": "18.3.1",
|
|
181
|
+
"react-dom": "18.3.1",
|
|
183
182
|
"tstyche": "3.0.0",
|
|
184
183
|
"tsx": "4.20.5",
|
|
185
184
|
"typescript": "5.9.2",
|
|
186
185
|
"vitest": "3.2.4"
|
|
187
186
|
},
|
|
188
187
|
"peerDependencies": {
|
|
189
|
-
"react": "
|
|
190
|
-
"react-dom": "
|
|
188
|
+
"react": "18.3.1",
|
|
189
|
+
"react-dom": "18.3.1"
|
|
191
190
|
},
|
|
192
191
|
"publishConfig": {
|
|
193
192
|
"access": "public"
|
|
194
193
|
},
|
|
195
|
-
"gitHead": "
|
|
194
|
+
"gitHead": "2ea84a564123f5d986dd88efcb6dddc55cbef367"
|
|
196
195
|
}
|