veryfront 0.1.904 → 0.1.905

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.904",
3
+ "version": "0.1.905",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -117,7 +117,7 @@ export class VeryfrontAPIOperations {
117
117
  return getProjectSchema().parse(raw);
118
118
  }
119
119
  async listBranchFiles(projectRef, branchRef = "main", options = {}) {
120
- const params = buildListParams(options);
120
+ const params = addRuntimeServerFunctionAccess(buildListParams(options));
121
121
  params.set("branch", branchRef);
122
122
  const url = `/projects/${encodeURIComponent(projectRef)}/files?${params}`;
123
123
  logger.debug("listBranchFiles", { projectRef, branchRef, pattern: options.pattern });
@@ -143,7 +143,7 @@ export class VeryfrontAPIOperations {
143
143
  }
144
144
  getBranchFile(projectRef, branchRef, pathOrId) {
145
145
  return withSpan(SpanNames.API_GET_FILE, async () => {
146
- const params = new URLSearchParams({ branch: branchRef });
146
+ const params = addRuntimeServerFunctionAccess(new URLSearchParams({ branch: branchRef }));
147
147
  const url = `/projects/${encodeURIComponent(projectRef)}/files/${encodeURIComponent(pathOrId)}?${params}`;
148
148
  logger.debug("getBranchFile", { projectRef, branchRef, pathOrId });
149
149
  const raw = await this.request(url);
@@ -1 +1 @@
1
- {"version":3,"file":"api-handler-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/handlers/request/api/api-handler-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAEf,aAAa,EACd,MAAM,gBAAgB,CAAC;AAqBxB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAiE;IAChF,OAAO,CAAC,WAAW,CAA8B;IAEjD,QAAQ,EAAE,eAAe,CAGvB;gBAGA,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,OAAO,uCAAuC,EAAE,cAAc;IAOnE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAW3B,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAiDvE,OAAO,CAAC,iBAAiB;CA4D1B"}
1
+ {"version":3,"file":"api-handler-wrapper.d.ts","sourceRoot":"","sources":["../../../../../../src/src/server/handlers/request/api/api-handler-wrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EAEf,aAAa,EACd,MAAM,gBAAgB,CAAC;AAsBxB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,OAAO,CAAiE;IAChF,OAAO,CAAC,WAAW,CAA8B;IAEjD,QAAQ,EAAE,eAAe,CAGvB;gBAGA,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,OAAO,uCAAuC,EAAE,cAAc;IAOnE,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAW3B,MAAM,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAmDvE,OAAO,CAAC,iBAAiB;CA4D1B"}
@@ -49,6 +49,8 @@ export class ApiHandlerWrapper extends BaseHandler {
49
49
  return fsWrapper.runWithContext(ctx.projectSlug, ctx.proxyToken ?? "", () => this.handleWithContext(req, ctx, pathname), ctx.projectId, {
50
50
  productionMode: isProduction,
51
51
  releaseId: ctx.releaseId,
52
+ branch: isProduction ? null : ctx.requestContext?.branch ?? ctx.parsedDomain?.branch ??
53
+ null,
52
54
  environmentName: ctx.environmentName,
53
55
  });
54
56
  }
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.904";
2
+ export declare const VERSION = "0.1.905";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.904";
4
+ export const VERSION = "0.1.905";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.904",
3
+ "version": "0.1.905",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",