@tinycloud/sdk-services 3.1.0 → 3.2.0-beta.3
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/{BaseService-DWbPbov7.d.cts → BaseService-BDQXjWMx.d.cts} +1 -1
- package/dist/{BaseService-B_UKhVht.d.ts → BaseService-Di_hVfUV.d.ts} +1 -1
- package/dist/encryption/index.cjs +7 -1
- package/dist/encryption/index.cjs.map +1 -1
- package/dist/encryption/index.d.cts +2 -2
- package/dist/encryption/index.d.ts +2 -2
- package/dist/encryption/index.js +7 -1
- package/dist/encryption/index.js.map +1 -1
- package/dist/index.cjs +683 -362
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +81 -29
- package/dist/index.d.ts +81 -29
- package/dist/index.js +674 -362
- package/dist/index.js.map +1 -1
- package/dist/internal/decrypt-transport-response-error.d.cts +1 -1
- package/dist/internal/decrypt-transport-response-error.d.ts +1 -1
- package/dist/kv/index.cjs +532 -336
- package/dist/kv/index.cjs.map +1 -1
- package/dist/kv/index.d.cts +17 -468
- package/dist/kv/index.d.ts +17 -468
- package/dist/kv/index.js +526 -335
- package/dist/kv/index.js.map +1 -1
- package/dist/kv/replication/index.cjs +1375 -0
- package/dist/kv/replication/index.cjs.map +1 -0
- package/dist/kv/replication/index.d.cts +9 -0
- package/dist/kv/replication/index.d.ts +9 -0
- package/dist/kv/replication/index.js +1342 -0
- package/dist/kv/replication/index.js.map +1 -0
- package/dist/scope-BmLxwyl-.d.ts +957 -0
- package/dist/scope-D855kRDx.d.cts +957 -0
- package/dist/sql/index.cjs +12 -6
- package/dist/sql/index.cjs.map +1 -1
- package/dist/sql/index.d.cts +2 -2
- package/dist/sql/index.d.ts +2 -2
- package/dist/sql/index.js +12 -6
- package/dist/sql/index.js.map +1 -1
- package/dist/{types-CVwwxqXF.d.cts → types-7A5rHWRY.d.cts} +10 -1
- package/dist/{types-CVwwxqXF.d.ts → types-7A5rHWRY.d.ts} +10 -1
- package/package.json +18 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-
|
|
1
|
+
import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-7A5rHWRY.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Base Service Types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-
|
|
1
|
+
import { I as IService, a as IServiceContext, S as ServiceSession, b as ServiceError, R as Result } from './types-7A5rHWRY.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Base Service Types
|
|
@@ -126,7 +126,12 @@ var TelemetryEvents = {
|
|
|
126
126
|
SERVICE_ERROR: "service.error",
|
|
127
127
|
SERVICE_RETRY: "service.retry",
|
|
128
128
|
SESSION_CHANGED: "session.changed",
|
|
129
|
-
SESSION_EXPIRED: "session.expired"
|
|
129
|
+
SESSION_EXPIRED: "session.expired",
|
|
130
|
+
REPLICATION_READ: "replication.read",
|
|
131
|
+
REPLICATION_WRITE: "replication.write",
|
|
132
|
+
REPLICATION_SYNC: "replication.sync",
|
|
133
|
+
REPLICATION_STATE: "replication.state",
|
|
134
|
+
REPLICATION_DIVERGENCE: "replication.divergence"
|
|
130
135
|
};
|
|
131
136
|
function err(error) {
|
|
132
137
|
return { ok: false, error };
|
|
@@ -521,6 +526,7 @@ var BaseService = class {
|
|
|
521
526
|
const parents = [
|
|
522
527
|
this.abortController.signal,
|
|
523
528
|
this.context?.abortSignal,
|
|
529
|
+
this.context?.operationAbortSignal,
|
|
524
530
|
signal
|
|
525
531
|
].filter((parent) => parent !== void 0);
|
|
526
532
|
for (const parent of parents) {
|