buckyos 0.7.149 → 0.7.150

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/cli/dist/cli.mjs CHANGED
@@ -4286,6 +4286,8 @@ function validateBuckets(config, label) {
4286
4286
  if (bucket.scope !== void 0 && !["user", "zone"].includes(String(bucket.scope))) {
4287
4287
  throw invalid("schema", `${at}.scope is user or zone`);
4288
4288
  }
4289
+ if (bucket.scope === "user")
4290
+ delete bucket.scope;
4289
4291
  optionalBoolean(bucket.versioning, `${at}.versioning`);
4290
4292
  const userOwned = policy2 === "documents" || policy2 === "collected";
4291
4293
  if (bucket.quota_mib !== void 0) {
@@ -4311,9 +4313,12 @@ function validateBuckets(config, label) {
4311
4313
  }
4312
4314
  }
4313
4315
  if (bucket.lifecycle !== void 0) {
4314
- if (!Array.isArray(bucket.lifecycle))
4316
+ const lifecycle = bucket.lifecycle;
4317
+ if (!Array.isArray(lifecycle))
4315
4318
  throw invalid("schema", `${at}.lifecycle must be an array`);
4316
- for (const [index, rule] of bucket.lifecycle.entries()) {
4319
+ if (lifecycle.length === 0)
4320
+ delete bucket.lifecycle;
4321
+ for (const [index, rule] of lifecycle.entries()) {
4317
4322
  const kind = String(expectObject$3(rule, `${at}.lifecycle[${index}]`).rule);
4318
4323
  if (!["expire", "noncurrent_expire", "expired_delete_marker"].includes(kind)) {
4319
4324
  throw invalid("schema", `${at}.lifecycle[${index}].rule is invalid`);
@@ -5174,7 +5179,7 @@ function validateContentHandlers(value, permissions) {
5174
5179
  }
5175
5180
  return value;
5176
5181
  }
5177
- const PACKAGE_VERSION = "0.7.149";
5182
+ const PACKAGE_VERSION = "0.7.150";
5178
5183
  const TOOL_VERSION = PACKAGE_VERSION;
5179
5184
  const SDK_VERSION = PACKAGE_VERSION;
5180
5185
  const PROTOCOL_VERSION = "1";