@salesforce/lds-runtime-mobile 1.440.0 → 1.441.0

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.
Files changed (3) hide show
  1. package/dist/main.js +25 -13
  2. package/package.json +34 -34
  3. package/sfdc/main.js +25 -13
package/dist/main.js CHANGED
@@ -57824,9 +57824,12 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
57824
57824
  this.services = services;
57825
57825
  this.additionalNullResponses = [];
57826
57826
  }
57827
- fetch() {
57827
+ fetch(contextSeed) {
57828
57828
  try {
57829
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57829
+ const [input, init] = this.fetchParams;
57830
+ const initWithSeed = contextSeed === void 0 ? init : { ...init, __contextSeed: contextSeed };
57831
+ const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
57832
+ return this.convertFetchResponseToData(fetchCall);
57830
57833
  } catch (reason) {
57831
57834
  return resolvedPromiseLike$2(err$1(toError(reason)));
57832
57835
  }
@@ -58899,7 +58902,7 @@ function buildServiceDescriptor$b(luvio) {
58899
58902
  },
58900
58903
  };
58901
58904
  }
58902
- // version: 1.440.0-267427df73
58905
+ // version: 1.441.0-5e7d04c146
58903
58906
 
58904
58907
  /**
58905
58908
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58925,7 +58928,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58925
58928
  },
58926
58929
  };
58927
58930
  }
58928
- // version: 1.440.0-267427df73
58931
+ // version: 1.441.0-5e7d04c146
58929
58932
 
58930
58933
  function findExecutableOperation(input) {
58931
58934
  const operations = input.query.definitions.filter(
@@ -60560,8 +60563,17 @@ function buildServiceDescriptor$1(interceptors = {
60560
60563
  return {
60561
60564
  type: "fetch",
60562
60565
  version: "1.0",
60563
- service: function(...args) {
60564
- const context = interceptors.createContext?.();
60566
+ service: function(input, init) {
60567
+ let contextSeed;
60568
+ let cleanInit = init;
60569
+ if (init !== void 0 && "__contextSeed" in init) {
60570
+ const { __contextSeed, ...initWithoutSeed } = init;
60571
+ contextSeed = __contextSeed;
60572
+ cleanInit = Object.keys(initWithoutSeed).length === 0 ? void 0 : initWithoutSeed;
60573
+ }
60574
+ const fetchArgs = cleanInit === void 0 ? [input] : [input, cleanInit];
60575
+ const baseContext = interceptors.createContext?.();
60576
+ const context = contextSeed === void 0 ? baseContext : { ...baseContext, ...contextSeed };
60565
60577
  const {
60566
60578
  request: requestInterceptors = [],
60567
60579
  retry: retryInterceptor = void 0,
@@ -60569,17 +60581,17 @@ function buildServiceDescriptor$1(interceptors = {
60569
60581
  finally: finallyInterceptors = []
60570
60582
  } = interceptors;
60571
60583
  const pending = requestInterceptors.reduce(
60572
- (previousPromise, interceptor) => previousPromise.then((args2) => interceptor(args2, context)),
60573
- resolvedPromiseLike$2(args)
60584
+ (previousPromise, interceptor) => previousPromise.then((args) => interceptor(args, context)),
60585
+ resolvedPromiseLike$2(fetchArgs)
60574
60586
  );
60575
- return Promise.resolve(pending).then((args2) => {
60587
+ return Promise.resolve(pending).then((args) => {
60576
60588
  if (retryInterceptor) {
60577
- return retryInterceptor(args2, retryService, context);
60589
+ return retryInterceptor(args, retryService, context);
60578
60590
  } else {
60579
60591
  if (retryService) {
60580
- return retryService.applyRetry(() => fetch(...args2));
60592
+ return retryService.applyRetry(() => fetch(...args));
60581
60593
  }
60582
- return fetch(...args2);
60594
+ return fetch(...args);
60583
60595
  }
60584
60596
  }).then((response) => {
60585
60597
  return responseInterceptors.reduce(
@@ -61596,4 +61608,4 @@ register({
61596
61608
  });
61597
61609
 
61598
61610
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61599
- // version: 1.440.0-267427df73
61611
+ // version: 1.441.0-5e7d04c146
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.440.0",
3
+ "version": "1.441.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
@@ -32,44 +32,44 @@
32
32
  "release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
33
33
  },
34
34
  "dependencies": {
35
- "@conduit-client/service-bindings-imperative": "3.20.5",
36
- "@conduit-client/service-bindings-lwc": "3.20.5",
37
- "@conduit-client/service-provisioner": "3.20.5",
38
- "@salesforce/lds-adapters-uiapi": "^1.440.0",
39
- "@salesforce/lds-bindings": "^1.440.0",
40
- "@salesforce/lds-instrumentation": "^1.440.0",
41
- "@salesforce/lds-luvio-service": "^1.440.0",
42
- "@salesforce/lds-luvio-uiapi-records-service": "^1.440.0",
35
+ "@conduit-client/service-bindings-imperative": "3.21.0",
36
+ "@conduit-client/service-bindings-lwc": "3.21.0",
37
+ "@conduit-client/service-provisioner": "3.21.0",
38
+ "@salesforce/lds-adapters-uiapi": "^1.441.0",
39
+ "@salesforce/lds-bindings": "^1.441.0",
40
+ "@salesforce/lds-instrumentation": "^1.441.0",
41
+ "@salesforce/lds-luvio-service": "^1.441.0",
42
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.441.0",
43
43
  "@salesforce/user": "0.0.21",
44
44
  "o11y": "250.7.0",
45
45
  "o11y_schema": "256.126.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@conduit-client/command-aura-network": "3.20.5",
49
- "@conduit-client/command-aura-normalized-cache-control": "3.20.5",
50
- "@conduit-client/command-aura-resource-cache-control": "3.20.5",
51
- "@conduit-client/command-fetch-network": "3.20.5",
52
- "@conduit-client/command-http-normalized-cache-control": "3.20.5",
53
- "@conduit-client/command-network": "3.20.5",
54
- "@conduit-client/service-cache": "3.20.5",
55
- "@conduit-client/service-cache-control": "3.20.5",
56
- "@conduit-client/service-cache-inclusion-policy": "3.20.5",
57
- "@conduit-client/service-fetch-network": "3.20.5",
58
- "@conduit-client/service-instrument-command": "3.20.5",
59
- "@conduit-client/service-instrumentation": "3.20.5",
60
- "@conduit-client/service-pubsub": "3.20.5",
61
- "@conduit-client/service-store": "3.20.5",
62
- "@conduit-client/utils": "3.20.5",
63
- "@salesforce/lds-adapters-graphql": "^1.440.0",
64
- "@salesforce/lds-drafts": "^1.440.0",
65
- "@salesforce/lds-durable-records": "^1.440.0",
66
- "@salesforce/lds-network-adapter": "^1.440.0",
67
- "@salesforce/lds-network-nimbus": "^1.440.0",
68
- "@salesforce/lds-store-binary": "^1.440.0",
69
- "@salesforce/lds-store-nimbus": "^1.440.0",
70
- "@salesforce/lds-store-sql": "^1.440.0",
71
- "@salesforce/lds-utils-adapters": "^1.440.0",
72
- "@salesforce/nimbus-plugin-lds": "^1.440.0",
48
+ "@conduit-client/command-aura-network": "3.21.0",
49
+ "@conduit-client/command-aura-normalized-cache-control": "3.21.0",
50
+ "@conduit-client/command-aura-resource-cache-control": "3.21.0",
51
+ "@conduit-client/command-fetch-network": "3.21.0",
52
+ "@conduit-client/command-http-normalized-cache-control": "3.21.0",
53
+ "@conduit-client/command-network": "3.21.0",
54
+ "@conduit-client/service-cache": "3.21.0",
55
+ "@conduit-client/service-cache-control": "3.21.0",
56
+ "@conduit-client/service-cache-inclusion-policy": "3.21.0",
57
+ "@conduit-client/service-fetch-network": "3.21.0",
58
+ "@conduit-client/service-instrument-command": "3.21.0",
59
+ "@conduit-client/service-instrumentation": "3.21.0",
60
+ "@conduit-client/service-pubsub": "3.21.0",
61
+ "@conduit-client/service-store": "3.21.0",
62
+ "@conduit-client/utils": "3.21.0",
63
+ "@salesforce/lds-adapters-graphql": "^1.441.0",
64
+ "@salesforce/lds-drafts": "^1.441.0",
65
+ "@salesforce/lds-durable-records": "^1.441.0",
66
+ "@salesforce/lds-network-adapter": "^1.441.0",
67
+ "@salesforce/lds-network-nimbus": "^1.441.0",
68
+ "@salesforce/lds-store-binary": "^1.441.0",
69
+ "@salesforce/lds-store-nimbus": "^1.441.0",
70
+ "@salesforce/lds-store-sql": "^1.441.0",
71
+ "@salesforce/lds-utils-adapters": "^1.441.0",
72
+ "@salesforce/nimbus-plugin-lds": "^1.441.0",
73
73
  "babel-plugin-dynamic-import-node": "^2.3.3",
74
74
  "wait-for-expect": "^3.0.2"
75
75
  },
package/sfdc/main.js CHANGED
@@ -57824,9 +57824,12 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
57824
57824
  this.services = services;
57825
57825
  this.additionalNullResponses = [];
57826
57826
  }
57827
- fetch() {
57827
+ fetch(contextSeed) {
57828
57828
  try {
57829
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
57829
+ const [input, init] = this.fetchParams;
57830
+ const initWithSeed = contextSeed === void 0 ? init : { ...init, __contextSeed: contextSeed };
57831
+ const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
57832
+ return this.convertFetchResponseToData(fetchCall);
57830
57833
  } catch (reason) {
57831
57834
  return resolvedPromiseLike$2(err$1(toError(reason)));
57832
57835
  }
@@ -58899,7 +58902,7 @@ function buildServiceDescriptor$b(luvio) {
58899
58902
  },
58900
58903
  };
58901
58904
  }
58902
- // version: 1.440.0-267427df73
58905
+ // version: 1.441.0-5e7d04c146
58903
58906
 
58904
58907
  /**
58905
58908
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -58925,7 +58928,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
58925
58928
  },
58926
58929
  };
58927
58930
  }
58928
- // version: 1.440.0-267427df73
58931
+ // version: 1.441.0-5e7d04c146
58929
58932
 
58930
58933
  function findExecutableOperation(input) {
58931
58934
  const operations = input.query.definitions.filter(
@@ -60560,8 +60563,17 @@ function buildServiceDescriptor$1(interceptors = {
60560
60563
  return {
60561
60564
  type: "fetch",
60562
60565
  version: "1.0",
60563
- service: function(...args) {
60564
- const context = interceptors.createContext?.();
60566
+ service: function(input, init) {
60567
+ let contextSeed;
60568
+ let cleanInit = init;
60569
+ if (init !== void 0 && "__contextSeed" in init) {
60570
+ const { __contextSeed, ...initWithoutSeed } = init;
60571
+ contextSeed = __contextSeed;
60572
+ cleanInit = Object.keys(initWithoutSeed).length === 0 ? void 0 : initWithoutSeed;
60573
+ }
60574
+ const fetchArgs = cleanInit === void 0 ? [input] : [input, cleanInit];
60575
+ const baseContext = interceptors.createContext?.();
60576
+ const context = contextSeed === void 0 ? baseContext : { ...baseContext, ...contextSeed };
60565
60577
  const {
60566
60578
  request: requestInterceptors = [],
60567
60579
  retry: retryInterceptor = void 0,
@@ -60569,17 +60581,17 @@ function buildServiceDescriptor$1(interceptors = {
60569
60581
  finally: finallyInterceptors = []
60570
60582
  } = interceptors;
60571
60583
  const pending = requestInterceptors.reduce(
60572
- (previousPromise, interceptor) => previousPromise.then((args2) => interceptor(args2, context)),
60573
- resolvedPromiseLike$2(args)
60584
+ (previousPromise, interceptor) => previousPromise.then((args) => interceptor(args, context)),
60585
+ resolvedPromiseLike$2(fetchArgs)
60574
60586
  );
60575
- return Promise.resolve(pending).then((args2) => {
60587
+ return Promise.resolve(pending).then((args) => {
60576
60588
  if (retryInterceptor) {
60577
- return retryInterceptor(args2, retryService, context);
60589
+ return retryInterceptor(args, retryService, context);
60578
60590
  } else {
60579
60591
  if (retryService) {
60580
- return retryService.applyRetry(() => fetch(...args2));
60592
+ return retryService.applyRetry(() => fetch(...args));
60581
60593
  }
60582
- return fetch(...args2);
60594
+ return fetch(...args);
60583
60595
  }
60584
60596
  }).then((response) => {
60585
60597
  return responseInterceptors.reduce(
@@ -61596,4 +61608,4 @@ register({
61596
61608
  });
61597
61609
 
61598
61610
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61599
- // version: 1.440.0-267427df73
61611
+ // version: 1.441.0-5e7d04c146