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 +8 -3
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/pikg_protocol.ts +6 -2
- package/cli/version.ts +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.mjs +2 -2
- package/dist/bucket_client.d.ts +49 -0
- package/dist/bucket_client.d.ts.map +1 -1
- package/dist/{executor_client-06dad8a8.mjs → executor_client-84d7a70d.mjs} +63 -4
- package/dist/executor_client-84d7a70d.mjs.map +1 -0
- package/dist/executor_client-900330a4.js +13 -0
- package/dist/executor_client-900330a4.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/ndm_client.d.ts +2 -0
- package/dist/ndm_client.d.ts.map +1 -1
- package/dist/nfsp.cjs.map +1 -1
- package/dist/nfsp.d.ts +5 -3
- package/dist/nfsp.d.ts.map +1 -1
- package/dist/nfsp.mjs.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.mjs +2 -2
- package/package.json +1 -1
- package/dist/executor_client-06dad8a8.mjs.map +0 -1
- package/dist/executor_client-d7fc4a8b.js +0 -13
- package/dist/executor_client-d7fc4a8b.js.map +0 -1
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
|
-
|
|
4316
|
+
const lifecycle = bucket.lifecycle;
|
|
4317
|
+
if (!Array.isArray(lifecycle))
|
|
4315
4318
|
throw invalid("schema", `${at}.lifecycle must be an array`);
|
|
4316
|
-
|
|
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.
|
|
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";
|