eddev 2.0.0-beta.231 → 2.0.0-beta.233
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-app.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAA;AAED,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAA;AAC7D,KAAK,mBAAmB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,QAAQ,CAAA;AACrD,KAAK,iBAAiB,GAAG,MAAM,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"vinxi-app.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-app.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AAGtD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAI/C,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,WAAW,EAAE,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,QAAQ,CAAA;CACjB,CAAA;AAED,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAA;AAC7D,KAAK,mBAAmB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK,QAAQ,CAAA;AACrD,KAAK,iBAAiB,GAAG,MAAM,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAEhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAA;CAC1C,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,uBAiQ3C"}
|
|
@@ -74,6 +74,28 @@ export function createVinxiApp(args) {
|
|
|
74
74
|
varies: ["Authorization", "woocommerce-session"],
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
|
+
"/_data/2query/**": {
|
|
78
|
+
isr: {
|
|
79
|
+
expiration: cacheConfig.queryHooksTTL ?? 0,
|
|
80
|
+
allowQuery: ["params"],
|
|
81
|
+
group: 1,
|
|
82
|
+
passQuery: true,
|
|
83
|
+
},
|
|
84
|
+
cache: {
|
|
85
|
+
varies: ["Authorization", "woocommerce-session"],
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
"/_data/3query/**": {
|
|
89
|
+
isr: {
|
|
90
|
+
expiration: cacheConfig.queryHooksTTL ?? 0,
|
|
91
|
+
allowQuery: ["params"],
|
|
92
|
+
group: 1,
|
|
93
|
+
passQuery: false,
|
|
94
|
+
},
|
|
95
|
+
cache: {
|
|
96
|
+
varies: ["Authorization", "woocommerce-session"],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
77
99
|
"/_data/query/**": {
|
|
78
100
|
isr: {
|
|
79
101
|
expiration: cacheConfig.queryHooksTTL ?? 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"vinxi-codegen.d.ts","sourceRoot":"","sources":["../../../src/node/compiler/vinxi-codegen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAGlD,KAAK,OAAO,GAAG;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,CAAC,UAExE;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,OAAO,iBAIlD;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,aA2uB/C"}
|
|
@@ -289,6 +289,40 @@ export function createVinxiCodegen(opts) {
|
|
|
289
289
|
return await serverContext.fetchRouteData({ pathname: id, newOrigin: url.origin, bypass: serverContext.shouldBypass(event) })
|
|
290
290
|
}),
|
|
291
291
|
)
|
|
292
|
+
.get(
|
|
293
|
+
"/_data/2query/**:name",
|
|
294
|
+
eventHandler(async (event) => {
|
|
295
|
+
const id = "/" + getRouterParam(event, "name")
|
|
296
|
+
const url = getRequestURL(event)
|
|
297
|
+
const paramString = getQuery(event).params
|
|
298
|
+
|
|
299
|
+
const req = getWebRequest(event)
|
|
300
|
+
|
|
301
|
+
let params = {}
|
|
302
|
+
try {
|
|
303
|
+
params = typeof paramString === "string" && paramString.length ? JSON.parse(paramString) : {}
|
|
304
|
+
} catch (e) {
|
|
305
|
+
throw new Error("Invalid query parameters")
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return {
|
|
309
|
+
url,id, params
|
|
310
|
+
}
|
|
311
|
+
}),
|
|
312
|
+
)
|
|
313
|
+
.get(
|
|
314
|
+
"/_data/3query/**:name",
|
|
315
|
+
eventHandler(async (event) => {
|
|
316
|
+
const id = "/" + getRouterParam(event, "name")
|
|
317
|
+
const url = getRequestURL(event)
|
|
318
|
+
const paramString = getQuery(event).params
|
|
319
|
+
|
|
320
|
+
const req = getWebRequest(event)
|
|
321
|
+
return {
|
|
322
|
+
url,id, paramString
|
|
323
|
+
}
|
|
324
|
+
}),
|
|
325
|
+
)
|
|
292
326
|
.get(
|
|
293
327
|
"/_data/query/**:name",
|
|
294
328
|
eventHandler(async (event) => {
|