@tinycloud/node-sdk 3.8.0-beta.0 → 3.8.0-beta.1
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/dist/{TinyCloudNode-BtKzLDJX.d.ts → TinyCloudNode-Ckqu_fqH.d.ts} +1 -1
- package/dist/{TinyCloudNode-ggmlnSfI.d.cts → TinyCloudNode-DDfx8Fx5.d.cts} +1 -1
- package/dist/{authority-_SYAE-uV.d.cts → authority-BwM_s3Ya.d.cts} +2 -2
- package/dist/{authority-sJ6buHMj.d.ts → authority-DcyJpajL.d.ts} +2 -2
- package/dist/core.cjs +7 -4
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +2 -2
- package/dist/core.d.ts +2 -2
- package/dist/core.js +7 -4
- package/dist/core.js.map +1 -1
- package/dist/encryption-keys.d.cts +1 -1
- package/dist/encryption-keys.d.ts +1 -1
- package/dist/index.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/replication/authority.cjs +4 -1
- package/dist/replication/authority.cjs.map +1 -1
- package/dist/replication/authority.d.cts +2 -2
- package/dist/replication/authority.d.ts +2 -2
- package/dist/replication/authority.js +4 -1
- package/dist/replication/authority.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NamedKeyClient } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
2
2
|
export { DecryptManyResult, KeyCallOptions, KeyDescriptor, KeyEncryptOptions, NamedKeyClient, NamedKeyEnvelope, NamedKeyError, NamedKeyErrorCode, PublicKeyDescriptor, buildKeyAdminFacts, buildKeyDescribeFacts } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
3
|
-
import { T as TinyCloudNode } from './TinyCloudNode-
|
|
3
|
+
import { T as TinyCloudNode } from './TinyCloudNode-DDfx8Fx5.cjs';
|
|
4
4
|
import '@tinycloud/sdk-core';
|
|
5
5
|
import '@tinycloud/sdk-services/kv/replication';
|
|
6
6
|
import '@tinycloud/sdk-services';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NamedKeyClient } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
2
2
|
export { DecryptManyResult, KeyCallOptions, KeyDescriptor, KeyEncryptOptions, NamedKeyClient, NamedKeyEnvelope, NamedKeyError, NamedKeyErrorCode, PublicKeyDescriptor, buildKeyAdminFacts, buildKeyDescribeFacts } from '@tinycloud/sdk-services/encryption/named-keys';
|
|
3
|
-
import { T as TinyCloudNode } from './TinyCloudNode-
|
|
3
|
+
import { T as TinyCloudNode } from './TinyCloudNode-Ckqu_fqH.js';
|
|
4
4
|
import '@tinycloud/sdk-core';
|
|
5
5
|
import '@tinycloud/sdk-services/kv/replication';
|
|
6
6
|
import '@tinycloud/sdk-services';
|
package/dist/index.cjs
CHANGED
|
@@ -17053,7 +17053,7 @@ function augmentSignInEntriesWithReplication(input) {
|
|
|
17053
17053
|
}
|
|
17054
17054
|
eligiblePaths.push(path);
|
|
17055
17055
|
}
|
|
17056
|
-
if (eligiblePaths.length === replication.prefixes.length && eligiblePaths.length > 0 && hasUnrestrictedGetCoverage(input.entries, input.primarySpaceId, "")) {
|
|
17056
|
+
if (replication.syncScope !== "prefixes" && eligiblePaths.length === replication.prefixes.length && eligiblePaths.length > 0 && hasUnrestrictedGetCoverage(input.entries, input.primarySpaceId, "")) {
|
|
17057
17057
|
return [{
|
|
17058
17058
|
service: KV_SERVICE,
|
|
17059
17059
|
space: input.primarySpaceId,
|
|
@@ -17086,6 +17086,9 @@ var init_authority_sign_in = __esm({
|
|
|
17086
17086
|
|
|
17087
17087
|
// src/replication/config.ts
|
|
17088
17088
|
function assertValidReplicationConfig(replication) {
|
|
17089
|
+
if (replication?.syncScope !== void 0 && replication.syncScope !== "prefixes") {
|
|
17090
|
+
throw new TypeError('replication.syncScope must be "prefixes"');
|
|
17091
|
+
}
|
|
17089
17092
|
if (replication === void 0 || !replication.enabled) return;
|
|
17090
17093
|
if (replication.storage === void 0 || replication.storage === null) {
|
|
17091
17094
|
throw new TypeError("replication.enabled requires replication.storage");
|
|
@@ -22087,7 +22090,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
22087
22090
|
replication: config.replication?.enabled === true ? {
|
|
22088
22091
|
enabled: true,
|
|
22089
22092
|
prefixes: config.replication.prefixes,
|
|
22090
|
-
allowSecrets: config.replication.allowSecrets === true
|
|
22093
|
+
allowSecrets: config.replication.allowSecrets === true,
|
|
22094
|
+
syncScope: config.replication.syncScope
|
|
22091
22095
|
} : void 0
|
|
22092
22096
|
});
|
|
22093
22097
|
this.tc = new import_sdk_core10.TinyCloud(this.auth, {
|
|
@@ -24509,7 +24513,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
24509
24513
|
replication: this.config.replication?.enabled === true ? {
|
|
24510
24514
|
enabled: true,
|
|
24511
24515
|
prefixes: this.config.replication.prefixes,
|
|
24512
|
-
allowSecrets: this.config.replication.allowSecrets === true
|
|
24516
|
+
allowSecrets: this.config.replication.allowSecrets === true,
|
|
24517
|
+
syncScope: this.config.replication.syncScope
|
|
24513
24518
|
} : void 0
|
|
24514
24519
|
});
|
|
24515
24520
|
this.tc = new import_sdk_core10.TinyCloud(this.auth, {
|
|
@@ -24571,7 +24576,8 @@ var _TinyCloudNode = class _TinyCloudNode {
|
|
|
24571
24576
|
replication: this.config.replication?.enabled === true ? {
|
|
24572
24577
|
enabled: true,
|
|
24573
24578
|
prefixes: this.config.replication.prefixes,
|
|
24574
|
-
allowSecrets: this.config.replication.allowSecrets === true
|
|
24579
|
+
allowSecrets: this.config.replication.allowSecrets === true,
|
|
24580
|
+
syncScope: this.config.replication.syncScope
|
|
24575
24581
|
} : void 0
|
|
24576
24582
|
});
|
|
24577
24583
|
this.tc = new import_sdk_core10.TinyCloud(this.auth, {
|