@supacloud/cli 0.31.0 → 0.32.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12100,6 +12100,7 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
12100
12100
  managed_upstream: optional(stringEnum(["edge-functions"]), "[upsert_route/update_route] 托管上游(同步 Edge Function)"),
12101
12101
  upstream_tls_insecure_skip_verify: optional(Type.Boolean(), "[upsert_route/update_route] 上游 TLS 跳过校验"),
12102
12102
  static_root: optional(Type.String(), "[upsert_route/update_route] 静态站点根目录"),
12103
+ spa: optional(Type.Boolean(), "[upsert_route/update_route] 是否启用 SPA 单页回退"),
12103
12104
  protocol: optional(stringEnum(["http", "https"]), "[upsert_route/update_route] 可选请求协议匹配"),
12104
12105
  redirect_to: optional(Type.String(), "[upsert_route/update_route] 带固定 host 的绝对 http(s) 目标,可在末尾使用 {http.request.uri}"),
12105
12106
  redirect_status: withDescription(redirectStatus, "[upsert_route/update_route] 重定向状态码,默认 308"),
@@ -12146,6 +12147,7 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
12146
12147
  managed_upstream,
12147
12148
  upstream_tls_insecure_skip_verify,
12148
12149
  static_root,
12150
+ spa,
12149
12151
  protocol,
12150
12152
  redirect_to,
12151
12153
  redirect_status,
@@ -12195,6 +12197,8 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
12195
12197
  body.upstream_tls_insecure_skip_verify = upstream_tls_insecure_skip_verify;
12196
12198
  if (static_root !== undefined)
12197
12199
  body.static_root = static_root;
12200
+ if (spa !== undefined)
12201
+ body.spa = spa;
12198
12202
  if (protocol !== undefined)
12199
12203
  body.protocol = protocol;
12200
12204
  if (redirect_to !== undefined)
@@ -12232,6 +12236,8 @@ Actions: routes, upsert_route, update_route, delete_route, config, get_certifica
12232
12236
  body.upstream_tls_insecure_skip_verify = upstream_tls_insecure_skip_verify;
12233
12237
  if (static_root !== undefined)
12234
12238
  body.static_root = static_root;
12239
+ if (spa !== undefined)
12240
+ body.spa = spa;
12235
12241
  if (protocol !== undefined)
12236
12242
  body.protocol = protocol;
12237
12243
  if (redirect_to !== undefined)
@@ -14115,7 +14121,7 @@ function registerReleaseTools(server, http, options = {}) {
14115
14121
  // package.json
14116
14122
  var package_default = {
14117
14123
  name: "@supacloud/cli",
14118
- version: "0.31.0",
14124
+ version: "0.32.0",
14119
14125
  description: "Project-scoped CLI for SupaCloud users",
14120
14126
  type: "module",
14121
14127
  main: "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/cli",
3
- "version": "0.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "Project-scoped CLI for SupaCloud users",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",