@dvina/sdk 4.1.9 → 4.1.13
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/adapters/angular/index.cjs +3 -3
- package/dist/adapters/angular/index.js +1 -1
- package/dist/{chunk-S5WB3T2S.cjs → chunk-3NVTNOPC.cjs} +13 -2
- package/dist/chunk-3NVTNOPC.cjs.map +1 -0
- package/dist/{chunk-5N6SZN2U.js → chunk-5WZGNZOT.js} +13 -2
- package/dist/chunk-5WZGNZOT.js.map +1 -0
- package/dist/index.cjs +402 -402
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-5N6SZN2U.js.map +0 -1
- package/dist/chunk-S5WB3T2S.cjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3NVTNOPC_cjs = require('../../chunk-3NVTNOPC.cjs');
|
|
4
4
|
require('../../chunk-342BFYZZ.cjs');
|
|
5
5
|
require('../../chunk-UELAE75E.cjs');
|
|
6
6
|
require('../../chunk-4Y42KQCH.cjs');
|
|
@@ -147,10 +147,10 @@ function hasDispose(value) {
|
|
|
147
147
|
function provideDvina(optionsOrFactory) {
|
|
148
148
|
return core.makeEnvironmentProviders([
|
|
149
149
|
{
|
|
150
|
-
provide:
|
|
150
|
+
provide: chunk3NVTNOPC_cjs.DvinaSdk,
|
|
151
151
|
useFactory: () => {
|
|
152
152
|
const options = typeof optionsOrFactory === "function" ? optionsOrFactory() : optionsOrFactory;
|
|
153
|
-
return new
|
|
153
|
+
return new chunk3NVTNOPC_cjs.DvinaSdk(options);
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
]);
|
|
@@ -9361,6 +9361,9 @@ var DvinaCacheMissError = class extends Error {
|
|
|
9361
9361
|
function isDvinaCacheMissError(error) {
|
|
9362
9362
|
return error instanceof DvinaCacheMissError;
|
|
9363
9363
|
}
|
|
9364
|
+
function hasLocalRootResult(result) {
|
|
9365
|
+
return typeof result === "object" && result !== null && Object.values(result).some((value) => value !== null && value !== void 0);
|
|
9366
|
+
}
|
|
9364
9367
|
var QueryExecutor = class {
|
|
9365
9368
|
constructor(_db, _http, _cache) {
|
|
9366
9369
|
this._db = _db;
|
|
@@ -9518,6 +9521,14 @@ var QueryExecutor = class {
|
|
|
9518
9521
|
}
|
|
9519
9522
|
}
|
|
9520
9523
|
}
|
|
9524
|
+
try {
|
|
9525
|
+
const localResult = await buildResult(this._db);
|
|
9526
|
+
if (hasLocalRootResult(localResult)) {
|
|
9527
|
+
ref._markInitialized(localResult);
|
|
9528
|
+
return;
|
|
9529
|
+
}
|
|
9530
|
+
} catch {
|
|
9531
|
+
}
|
|
9521
9532
|
const querySyncId = await this._db.getLastSyncId();
|
|
9522
9533
|
const networkResult = await this.query(document2, variables, operationName);
|
|
9523
9534
|
if (querySyncId !== "0") {
|
|
@@ -23822,5 +23833,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
|
|
|
23822
23833
|
exports.reconstructConnectionNodes = reconstructConnectionNodes;
|
|
23823
23834
|
exports.reconstructEntity = reconstructEntity;
|
|
23824
23835
|
exports.uploadFile = uploadFile;
|
|
23825
|
-
//# sourceMappingURL=chunk-
|
|
23826
|
-
//# sourceMappingURL=chunk-
|
|
23836
|
+
//# sourceMappingURL=chunk-3NVTNOPC.cjs.map
|
|
23837
|
+
//# sourceMappingURL=chunk-3NVTNOPC.cjs.map
|