veryfront 0.1.114 → 0.1.115

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/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -1 +1 @@
1
- {"version":3,"file":"dev-file.handler.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/handlers/dev/files/dev-file.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAEf,aAAa,EACd,MAAM,gBAAgB,CAAC;AASxB,qBAAa,cAAe,SAAQ,WAAW;IAC7C,QAAQ,EAAE,eAAe,CAKvB;IAEI,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAuC/E,OAAO,CAAC,iBAAiB;CAM1B"}
1
+ {"version":3,"file":"dev-file.handler.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/handlers/dev/files/dev-file.handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAEf,aAAa,EACd,MAAM,gBAAgB,CAAC;AASxB,qBAAa,cAAe,SAAQ,WAAW;IAC7C,QAAQ,EAAE,eAAe,CAKvB;IAEI,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAwC/E,OAAO,CAAC,iBAAiB;CAM1B"}
@@ -8,11 +8,12 @@ export class DevFileHandler extends BaseHandler {
8
8
  name: "DevFileHandler",
9
9
  priority: PRIORITY_MEDIUM_DEV_FILES,
10
10
  patterns: [{ pattern: "/_veryfront/fs/", prefix: true, method: "GET" }],
11
- enabled: (ctx) => !!ctx.isLocalProject,
11
+ enabled: (ctx) => !!ctx.isLocalProject || ctx.requestContext?.mode === "preview",
12
12
  };
13
13
  async handle(req, ctx) {
14
14
  const { pathname } = new URL(req.url);
15
- if (!ctx.isLocalProject)
15
+ const isPreviewMode = ctx.requestContext?.mode === "preview";
16
+ if (!ctx.isLocalProject && !isPreviewMode)
16
17
  return this.continue();
17
18
  if (req.method !== "GET" || !pathname.startsWith("/_veryfront/fs/")) {
18
19
  return this.continue();
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.114";
1
+ export declare const VERSION = "0.1.115";
2
2
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.114";
3
+ export const VERSION = "0.1.115";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
package/src/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.114",
3
+ "version": "0.1.115",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "exclude": [
@@ -19,13 +19,14 @@ export class DevFileHandler extends BaseHandler {
19
19
  name: "DevFileHandler",
20
20
  priority: PRIORITY_MEDIUM_DEV_FILES as HandlerPriority,
21
21
  patterns: [{ pattern: "/_veryfront/fs/", prefix: true, method: "GET" }],
22
- enabled: (ctx) => !!ctx.isLocalProject,
22
+ enabled: (ctx) => !!ctx.isLocalProject || ctx.requestContext?.mode === "preview",
23
23
  };
24
24
 
25
25
  async handle(req: dntShim.Request, ctx: HandlerContext): Promise<HandlerResult> {
26
26
  const { pathname } = new URL(req.url);
27
27
 
28
- if (!ctx.isLocalProject) return this.continue();
28
+ const isPreviewMode = ctx.requestContext?.mode === "preview";
29
+ if (!ctx.isLocalProject && !isPreviewMode) return this.continue();
29
30
 
30
31
  if (req.method !== "GET" || !pathname.startsWith("/_veryfront/fs/")) {
31
32
  return this.continue();
@@ -1,3 +1,3 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
- export const VERSION = "0.1.114";
3
+ export const VERSION = "0.1.115";