@dvina/sdk 4.0.292 → 4.0.294

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkCTE5P2EZ_cjs = require('../../chunk-CTE5P2EZ.cjs');
3
+ var chunkK7BABE6E_cjs = require('../../chunk-K7BABE6E.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: chunkCTE5P2EZ_cjs.DvinaSdk,
150
+ provide: chunkK7BABE6E_cjs.DvinaSdk,
151
151
  useFactory: () => {
152
152
  const options = typeof optionsOrFactory === "function" ? optionsOrFactory() : optionsOrFactory;
153
- return new chunkCTE5P2EZ_cjs.DvinaSdk(options);
153
+ return new chunkK7BABE6E_cjs.DvinaSdk(options);
154
154
  }
155
155
  }
156
156
  ]);
@@ -1,4 +1,4 @@
1
- import { DvinaSdk } from '../../chunk-YNXLLHTI.js';
1
+ import { DvinaSdk } from '../../chunk-UNCG3BQZ.js';
2
2
  import '../../chunk-KEM6SUTS.js';
3
3
  import '../../chunk-PDM2KR7T.js';
4
4
  import '../../chunk-RVXRT5EI.js';
@@ -9470,12 +9470,17 @@ var QueryExecutor = class {
9470
9470
  const data = await this._http.request(document2, merged);
9471
9471
  const rootField = getRootField(data);
9472
9472
  if (rootField) {
9473
- const { entities, connection } = normalize(data, rootField);
9473
+ const { entities, connection, nestedConnections } = normalize(data, rootField);
9474
9474
  await this.writeEntities(entities);
9475
9475
  if (connection) {
9476
9476
  const queryKey = buildQueryKey(operationName, variables, document2);
9477
9477
  await this._cache.appendQueryResult(queryKey, connection);
9478
9478
  }
9479
+ if (nestedConnections) {
9480
+ for (const [connKey, connInfo] of nestedConnections) {
9481
+ await this._cache.writeQueryResult(connKey, connInfo);
9482
+ }
9483
+ }
9479
9484
  }
9480
9485
  }
9481
9486
  );
@@ -23802,5 +23807,5 @@ exports.getOrCreateDatabase = getOrCreateDatabase;
23802
23807
  exports.reconstructConnectionNodes = reconstructConnectionNodes;
23803
23808
  exports.reconstructEntity = reconstructEntity;
23804
23809
  exports.uploadFile = uploadFile;
23805
- //# sourceMappingURL=chunk-CTE5P2EZ.cjs.map
23806
- //# sourceMappingURL=chunk-CTE5P2EZ.cjs.map
23810
+ //# sourceMappingURL=chunk-K7BABE6E.cjs.map
23811
+ //# sourceMappingURL=chunk-K7BABE6E.cjs.map