@salesforce/lds-runtime-mobile 1.437.0 → 1.438.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 +40 -211
  2. package/package.json +34 -34
  3. package/sfdc/main.js +40 -211
package/dist/main.js CHANGED
@@ -56439,11 +56439,6 @@ function createSfsSideEffectHooks(durableRecordStore) {
56439
56439
  return [];
56440
56440
  }
56441
56441
 
56442
- /*!
56443
- * Copyright (c) 2022, Salesforce, Inc.,
56444
- * All rights reserved.
56445
- * For full license text, see the LICENSE.txt file
56446
- */
56447
56442
  const { create, freeze, keys, entries } = Object;
56448
56443
  const { isArray: isArray$1 } = Array;
56449
56444
  const { stringify: stringify$2, parse: parse$2 } = JSON;
@@ -56562,7 +56557,7 @@ function rejectedPromiseLike$2(reason) {
56562
56557
  };
56563
56558
  }
56564
56559
  function isPromiseLike$2(x) {
56565
- return typeof (x == null ? void 0 : x.then) === "function";
56560
+ return typeof x?.then === "function";
56566
56561
  }
56567
56562
  function deepEquals$1(x, y) {
56568
56563
  if (x === void 0) {
@@ -56732,19 +56727,9 @@ function logError$1(error) {
56732
56727
  console.error("OneStore Command threw an error that we did not expect", error);
56733
56728
  }
56734
56729
 
56735
- /*!
56736
- * Copyright (c) 2022, Salesforce, Inc.,
56737
- * All rights reserved.
56738
- * For full license text, see the LICENSE.txt file
56739
- */
56740
56730
  class BaseCommand {
56741
56731
  }
56742
56732
 
56743
- /*!
56744
- * Copyright (c) 2022, Salesforce, Inc.,
56745
- * All rights reserved.
56746
- * For full license text, see the LICENSE.txt file
56747
- */
56748
56733
  let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
56749
56734
  constructor(services) {
56750
56735
  super();
@@ -56795,11 +56780,6 @@ function buildServiceDescriptor$n() {
56795
56780
  };
56796
56781
  }
56797
56782
 
56798
- /*!
56799
- * Copyright (c) 2022, Salesforce, Inc.,
56800
- * All rights reserved.
56801
- * For full license text, see the LICENSE.txt file
56802
- */
56803
56783
  class AuraNetworkCommand extends NetworkCommand$1 {
56804
56784
  constructor(services) {
56805
56785
  super(services);
@@ -56906,16 +56886,6 @@ function buildServiceDescriptor$m() {
56906
56886
  };
56907
56887
  }
56908
56888
 
56909
- /*!
56910
- * Copyright (c) 2022, Salesforce, Inc.,
56911
- * All rights reserved.
56912
- * For full license text, see the LICENSE.txt file
56913
- */
56914
- /*!
56915
- * Copyright (c) 2022, Salesforce, Inc.,
56916
- * All rights reserved.
56917
- * For full license text, see the LICENSE.txt file
56918
- */
56919
56889
  const { isArray } = Array;
56920
56890
  class Ok {
56921
56891
  constructor(value) {
@@ -56983,7 +56953,7 @@ function rejectedPromiseLike$1(reason) {
56983
56953
  };
56984
56954
  }
56985
56955
  function isPromiseLike$1(x) {
56986
- return typeof (x == null ? void 0 : x.then) === "function";
56956
+ return typeof x?.then === "function";
56987
56957
  }
56988
56958
  function deepEquals(x, y) {
56989
56959
  if (x === void 0) {
@@ -57274,7 +57244,7 @@ class CacheControlCommand extends BaseCommand {
57274
57244
  unsubscribe() {
57275
57245
  while (this.unsubscribers.length > 0) {
57276
57246
  const unsubscriber = this.unsubscribers.pop();
57277
- unsubscriber == null ? void 0 : unsubscriber();
57247
+ unsubscriber?.();
57278
57248
  }
57279
57249
  }
57280
57250
  /**
@@ -57458,16 +57428,6 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
57458
57428
  };
57459
57429
  }
57460
57430
 
57461
- /*!
57462
- * Copyright (c) 2022, Salesforce, Inc.,
57463
- * All rights reserved.
57464
- * For full license text, see the LICENSE.txt file
57465
- */
57466
- /*!
57467
- * Copyright (c) 2022, Salesforce, Inc.,
57468
- * All rights reserved.
57469
- * For full license text, see the LICENSE.txt file
57470
- */
57471
57431
  let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
57472
57432
  constructor(services) {
57473
57433
  super(services);
@@ -57603,16 +57563,6 @@ function buildServiceDescriptor$l() {
57603
57563
  };
57604
57564
  }
57605
57565
 
57606
- /*!
57607
- * Copyright (c) 2022, Salesforce, Inc.,
57608
- * All rights reserved.
57609
- * For full license text, see the LICENSE.txt file
57610
- */
57611
- /*!
57612
- * Copyright (c) 2022, Salesforce, Inc.,
57613
- * All rights reserved.
57614
- * For full license text, see the LICENSE.txt file
57615
- */
57616
57566
  class AuraCacheControlCommand extends CacheControlCommand {
57617
57567
  constructor(services) {
57618
57568
  super(services);
@@ -57722,8 +57672,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
57722
57672
  this.services = services;
57723
57673
  }
57724
57674
  readFromCache(cache) {
57725
- var _a;
57726
- const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
57675
+ const data = cache.get(this.buildKey())?.value;
57727
57676
  if (data === void 0) {
57728
57677
  return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
57729
57678
  }
@@ -57752,16 +57701,6 @@ function buildServiceDescriptor$k() {
57752
57701
  };
57753
57702
  }
57754
57703
 
57755
- /*!
57756
- * Copyright (c) 2022, Salesforce, Inc.,
57757
- * All rights reserved.
57758
- * For full license text, see the LICENSE.txt file
57759
- */
57760
- /*!
57761
- * Copyright (c) 2022, Salesforce, Inc.,
57762
- * All rights reserved.
57763
- * For full license text, see the LICENSE.txt file
57764
- */
57765
57704
  class NetworkCommand extends BaseCommand {
57766
57705
  constructor(services) {
57767
57706
  super();
@@ -57811,7 +57750,7 @@ function hasFetchParams(command) {
57811
57750
  return command && typeof command === "object" && "fetchParams" in command;
57812
57751
  }
57813
57752
  function createAbortableDecorator(command, options) {
57814
- if (!(options == null ? void 0 : options.signal) || !((options == null ? void 0 : options.signal) instanceof AbortSignal)) {
57753
+ if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
57815
57754
  return command;
57816
57755
  }
57817
57756
  const { signal } = options;
@@ -57958,16 +57897,6 @@ function buildServiceDescriptor$j() {
57958
57897
  };
57959
57898
  }
57960
57899
 
57961
- /*!
57962
- * Copyright (c) 2022, Salesforce, Inc.,
57963
- * All rights reserved.
57964
- * For full license text, see the LICENSE.txt file
57965
- */
57966
- /*!
57967
- * Copyright (c) 2022, Salesforce, Inc.,
57968
- * All rights reserved.
57969
- * For full license text, see the LICENSE.txt file
57970
- */
57971
57900
  class HttpCacheControlCommand extends CacheControlCommand {
57972
57901
  constructor(services) {
57973
57902
  super(services);
@@ -58075,16 +58004,6 @@ function buildServiceDescriptor$i() {
58075
58004
  };
58076
58005
  }
58077
58006
 
58078
- /*!
58079
- * Copyright (c) 2022, Salesforce, Inc.,
58080
- * All rights reserved.
58081
- * For full license text, see the LICENSE.txt file
58082
- */
58083
- /*!
58084
- * Copyright (c) 2022, Salesforce, Inc.,
58085
- * All rights reserved.
58086
- * For full license text, see the LICENSE.txt file
58087
- */
58088
58007
  const { stringify: stringify$1, parse: parse$1 } = JSON;
58089
58008
  function deepCopy$1(x) {
58090
58009
  const stringified = stringify$1(x);
@@ -58108,7 +58027,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
58108
58027
  if (value === void 0) {
58109
58028
  this.missingKeysRead.add(key);
58110
58029
  }
58111
- if (options == null ? void 0 : options.copy) {
58030
+ if (options?.copy) {
58112
58031
  return deepCopy$1(value);
58113
58032
  }
58114
58033
  return value;
@@ -58152,7 +58071,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
58152
58071
  get(key, options) {
58153
58072
  const result = this.baseCache.get(key);
58154
58073
  if (result && this.predicate(key, result)) {
58155
- if (options == null ? void 0 : options.copy) {
58074
+ if (options?.copy) {
58156
58075
  return deepCopy$1(result);
58157
58076
  }
58158
58077
  return result;
@@ -58248,7 +58167,7 @@ let DefaultCache$1 = class DefaultCache {
58248
58167
  this.data = {};
58249
58168
  }
58250
58169
  get(key, options) {
58251
- if (options == null ? void 0 : options.copy) {
58170
+ if (options?.copy) {
58252
58171
  return deepCopy$1(this.data[key]);
58253
58172
  }
58254
58173
  return this.data[key];
@@ -58328,11 +58247,6 @@ function buildServiceDescriptor$h() {
58328
58247
  };
58329
58248
  }
58330
58249
 
58331
- /*!
58332
- * Copyright (c) 2022, Salesforce, Inc.,
58333
- * All rights reserved.
58334
- * For full license text, see the LICENSE.txt file
58335
- */
58336
58250
  class CacheControlStrategy {
58337
58251
  constructor(services, config, requestRunner) {
58338
58252
  this.services = services;
@@ -58393,11 +58307,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
58393
58307
  if (value.isOk()) {
58394
58308
  this.collectCacheHitInstrumentation(
58395
58309
  startTime,
58396
- options == null ? void 0 : options.instrumentationAttributes
58310
+ options?.instrumentationAttributes
58397
58311
  );
58398
58312
  return ok$1(void 0);
58399
58313
  }
58400
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58314
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58401
58315
  const tempCache = this.filteredCache;
58402
58316
  return new Promise(async (resolve, reject) => {
58403
58317
  try {
@@ -58467,11 +58381,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
58467
58381
  if (result.isOk()) {
58468
58382
  this.collectCacheHitInstrumentation(
58469
58383
  startTime,
58470
- options == null ? void 0 : options.instrumentationAttributes
58384
+ options?.instrumentationAttributes
58471
58385
  );
58472
58386
  return ok$1(void 0);
58473
58387
  }
58474
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58388
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58475
58389
  const error = new UserVisibleError(
58476
58390
  new FetchResponse(HttpStatusCode.GatewayTimeout, {
58477
58391
  error: "Cache miss for only-if-cached request"
@@ -58555,11 +58469,6 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
58555
58469
  };
58556
58470
  }
58557
58471
 
58558
- /*!
58559
- * Copyright (c) 2022, Salesforce, Inc.,
58560
- * All rights reserved.
58561
- * For full license text, see the LICENSE.txt file
58562
- */
58563
58472
  function buildInstrumentCommand(services) {
58564
58473
  const meter = services.instrumentation.metrics.getMeter("onestore");
58565
58474
  return function instrumentCommand(commandClass, commandName) {
@@ -58579,7 +58488,7 @@ function buildInstrumentCommand(services) {
58579
58488
  try {
58580
58489
  result = super.execute(...args);
58581
58490
  } catch (e) {
58582
- if ((e == null ? void 0 : e.name) === "AbortError") {
58491
+ if (e?.name === "AbortError") {
58583
58492
  abortCounter.add(1);
58584
58493
  } else {
58585
58494
  errorCounter.add(1);
@@ -58606,16 +58515,6 @@ function buildServiceDescriptor$f(instrumentation) {
58606
58515
  };
58607
58516
  }
58608
58517
 
58609
- /*!
58610
- * Copyright (c) 2022, Salesforce, Inc.,
58611
- * All rights reserved.
58612
- * For full license text, see the LICENSE.txt file
58613
- */
58614
- /*!
58615
- * Copyright (c) 2022, Salesforce, Inc.,
58616
- * All rights reserved.
58617
- * For full license text, see the LICENSE.txt file
58618
- */
58619
58518
  class O11yOTelTraceAPI {
58620
58519
  constructor(services) {
58621
58520
  this.services = services;
@@ -58631,9 +58530,9 @@ class O11yTracer {
58631
58530
  this.logger = logger;
58632
58531
  }
58633
58532
  startSpan(name, _options, context) {
58634
- const traceId = context == null ? void 0 : context.getValue(Symbol.for("traceId"));
58635
- const spanId = context == null ? void 0 : context.getValue(Symbol.for("spanId"));
58636
- const traceFlags = context == null ? void 0 : context.getValue(Symbol.for("traceFlags"));
58533
+ const traceId = context?.getValue(/* @__PURE__ */ Symbol.for("traceId"));
58534
+ const spanId = context?.getValue(/* @__PURE__ */ Symbol.for("spanId"));
58535
+ const traceFlags = context?.getValue(/* @__PURE__ */ Symbol.for("traceFlags"));
58637
58536
  let spanContext = void 0;
58638
58537
  if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
58639
58538
  spanContext = {
@@ -58876,12 +58775,7 @@ function buildServiceDescriptor$e(logger) {
58876
58775
  };
58877
58776
  }
58878
58777
 
58879
- /*!
58880
- * Copyright (c) 2022, Salesforce, Inc.,
58881
- * All rights reserved.
58882
- * For full license text, see the LICENSE.txt file
58883
- */
58884
- const EventTypeWildcard = Symbol("EventTypeWildcard");
58778
+ const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
58885
58779
  class DefaultPubSubService {
58886
58780
  constructor() {
58887
58781
  this.subscriptions = /* @__PURE__ */ new Map();
@@ -58944,11 +58838,6 @@ function buildServiceDescriptor$d() {
58944
58838
  };
58945
58839
  }
58946
58840
 
58947
- /*!
58948
- * Copyright (c) 2022, Salesforce, Inc.,
58949
- * All rights reserved.
58950
- * For full license text, see the LICENSE.txt file
58951
- */
58952
58841
  class FeatureFlagsService {
58953
58842
  constructor() {
58954
58843
  this.flags = /* @__PURE__ */ new Map();
@@ -59010,7 +58899,7 @@ function buildServiceDescriptor$b(luvio) {
59010
58899
  },
59011
58900
  };
59012
58901
  }
59013
- // version: 1.437.0-90398d3223
58902
+ // version: 1.438.0-0ec0a89235
59014
58903
 
59015
58904
  /**
59016
58905
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -59036,13 +58925,8 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
59036
58925
  },
59037
58926
  };
59038
58927
  }
59039
- // version: 1.437.0-90398d3223
58928
+ // version: 1.438.0-0ec0a89235
59040
58929
 
59041
- /*!
59042
- * Copyright (c) 2022, Salesforce, Inc.,
59043
- * All rights reserved.
59044
- * For full license text, see the LICENSE.txt file
59045
- */
59046
58930
  function findExecutableOperation(input) {
59047
58931
  const operations = input.query.definitions.filter(
59048
58932
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
@@ -59054,10 +58938,7 @@ function findExecutableOperation(input) {
59054
58938
  return ok$1(operations[0]);
59055
58939
  }
59056
58940
  if (input.operationName) {
59057
- const specifiedOperation = operations.find((op) => {
59058
- var _a;
59059
- return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
59060
- });
58941
+ const specifiedOperation = operations.find((op) => op.name?.value === input.operationName);
59061
58942
  if (specifiedOperation) {
59062
58943
  return ok$1(specifiedOperation);
59063
58944
  }
@@ -59073,14 +58954,13 @@ function buildGraphQLInputExtension(input) {
59073
58954
  const operation = operationResult.value;
59074
58955
  const selections = operation.selectionSet.selections;
59075
58956
  const variableDefinitions = operation.variableDefinitions;
59076
- const variables = (variableDefinitions == null ? void 0 : variableDefinitions.reduce((prev, def) => {
59077
- var _a;
58957
+ const variables = variableDefinitions?.reduce((prev, def) => {
59078
58958
  prev[def.variable.name.value] = {
59079
58959
  definition: def,
59080
- value: (_a = input.variables) == null ? void 0 : _a[def.variable.name.value]
58960
+ value: input.variables?.[def.variable.name.value]
59081
58961
  };
59082
58962
  return prev;
59083
- }, {})) || {};
58963
+ }, {}) || {};
59084
58964
  const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
59085
58965
  prev[fragment.name.value] = fragment;
59086
58966
  return prev;
@@ -59133,11 +59013,6 @@ function isFragmentDefinition(node) {
59133
59013
  return node.kind === Kind$2.FRAGMENT_DEFINITION;
59134
59014
  }
59135
59015
 
59136
- /*!
59137
- * Copyright (c) 2022, Salesforce, Inc.,
59138
- * All rights reserved.
59139
- * For full license text, see the LICENSE.txt file
59140
- */
59141
59016
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
59142
59017
  constructor(config, documentRootType, services) {
59143
59018
  super(services);
@@ -59318,11 +59193,6 @@ function buildServiceDescriptor$9() {
59318
59193
  };
59319
59194
  }
59320
59195
 
59321
- /*!
59322
- * Copyright (c) 2022, Salesforce, Inc.,
59323
- * All rights reserved.
59324
- * For full license text, see the LICENSE.txt file
59325
- */
59326
59196
  class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
59327
59197
  constructor(config, documentRootType, services) {
59328
59198
  super(services);
@@ -59436,11 +59306,6 @@ function buildServiceDescriptor$8() {
59436
59306
  };
59437
59307
  }
59438
59308
 
59439
- /*!
59440
- * Copyright (c) 2022, Salesforce, Inc.,
59441
- * All rights reserved.
59442
- * For full license text, see the LICENSE.txt file
59443
- */
59444
59309
  class JsonSchemaViolationError extends Error {
59445
59310
  constructor(message, validationErrors) {
59446
59311
  super(message);
@@ -59870,11 +59735,6 @@ function findSchemaAtPath(document, ref) {
59870
59735
  return current;
59871
59736
  }
59872
59737
 
59873
- /*!
59874
- * Copyright (c) 2022, Salesforce, Inc.,
59875
- * All rights reserved.
59876
- * For full license text, see the LICENSE.txt file
59877
- */
59878
59738
  function isUserVisibleError(error) {
59879
59739
  return error instanceof Error && "type" in error && error.type === "user-visible";
59880
59740
  }
@@ -59899,11 +59759,6 @@ function logError(error) {
59899
59759
  console.error("OneStore Command threw an error that we did not expect", error);
59900
59760
  }
59901
59761
 
59902
- /*!
59903
- * Copyright (c) 2022, Salesforce, Inc.,
59904
- * All rights reserved.
59905
- * For full license text, see the LICENSE.txt file
59906
- */
59907
59762
  function buildBaseImperativeInvoker(getCommand, transformResult) {
59908
59763
  return async (...params) => {
59909
59764
  const command = getCommand({ params, assertIsValid });
@@ -60008,7 +59863,7 @@ class SubscribableImperativeBindingsService {
60008
59863
  const api = {
60009
59864
  data: result.value.data,
60010
59865
  subscribe: (cb) => {
60011
- result.value.subscribe((result2) => {
59866
+ return result.value.subscribe((result2) => {
60012
59867
  if (result2.isErr()) {
60013
59868
  return cb({ data: void 0, error: toError(result2.error) });
60014
59869
  }
@@ -60111,10 +59966,10 @@ class GraphQLImperativeBindingsService {
60111
59966
  acceptedOperations: ["query"]
60112
59967
  };
60113
59968
  const result = resolveAndValidateGraphQLConfig(params[0], options);
60114
- if (result == null ? void 0 : result.isErr()) {
59969
+ if (result?.isErr()) {
60115
59970
  return result.error;
60116
59971
  }
60117
- if (result == null ? void 0 : result.isOk()) {
59972
+ if (result?.isOk()) {
60118
59973
  params[0] = result.value;
60119
59974
  }
60120
59975
  }
@@ -60133,7 +59988,7 @@ class GraphQLImperativeBindingsService {
60133
59988
  deepFreeze(result.value);
60134
59989
  consumerEmittedData.data = result.value.data.data;
60135
59990
  consumerEmittedData.subscribe = (cb) => {
60136
- result.value.subscribe((res) => {
59991
+ return result.value.subscribe((res) => {
60137
59992
  const consumerEmittedData2 = {
60138
59993
  data: void 0,
60139
59994
  errors: void 0
@@ -60206,11 +60061,11 @@ class GraphQLLegacyImperativeBindingsService {
60206
60061
  acceptedOperations: ["query"]
60207
60062
  };
60208
60063
  const result = resolveAndValidateGraphQLConfig(config, options);
60209
- if (result == null ? void 0 : result.isErr()) {
60064
+ if (result?.isErr()) {
60210
60065
  callback(result.error);
60211
60066
  return;
60212
60067
  }
60213
- if (result == null ? void 0 : result.isOk()) {
60068
+ if (result?.isOk()) {
60214
60069
  config = result.value;
60215
60070
  }
60216
60071
  }
@@ -60241,12 +60096,12 @@ class GraphQLLegacyImperativeBindingsService {
60241
60096
  acceptedOperations: ["query"]
60242
60097
  };
60243
60098
  const result = resolveAndValidateGraphQLConfig(config, options);
60244
- if (result == null ? void 0 : result.isErr()) {
60099
+ if (result?.isErr()) {
60245
60100
  callback(result.error);
60246
60101
  return () => {
60247
60102
  };
60248
60103
  }
60249
- if (result == null ? void 0 : result.isOk()) {
60104
+ if (result?.isOk()) {
60250
60105
  config = result.value;
60251
60106
  }
60252
60107
  }
@@ -60308,13 +60163,13 @@ class GraphQLMutationBindingsService {
60308
60163
  acceptedOperations: ["mutation"]
60309
60164
  };
60310
60165
  const result2 = resolveAndValidateGraphQLConfig(params[0], options);
60311
- if (result2 == null ? void 0 : result2.isErr()) {
60166
+ if (result2?.isErr()) {
60312
60167
  return {
60313
60168
  data: void 0,
60314
60169
  errors: result2.error.errors
60315
60170
  };
60316
60171
  }
60317
- if (result2 == null ? void 0 : result2.isOk()) {
60172
+ if (result2?.isOk()) {
60318
60173
  params[0] = result2.value;
60319
60174
  }
60320
60175
  }
@@ -60340,11 +60195,6 @@ function buildServiceDescriptor$7() {
60340
60195
  };
60341
60196
  }
60342
60197
 
60343
- /*!
60344
- * Copyright (c) 2022, Salesforce, Inc.,
60345
- * All rights reserved.
60346
- * For full license text, see the LICENSE.txt file
60347
- */
60348
60198
  class Sanitizer {
60349
60199
  constructor(obj) {
60350
60200
  this.obj = obj;
@@ -60404,7 +60254,7 @@ class CommandWireAdapterConstructor {
60404
60254
  this.callback = callback;
60405
60255
  this.connected = false;
60406
60256
  this.exposeRefresh = false;
60407
- if (!(options == null ? void 0 : options.skipEmptyEmit)) {
60257
+ if (!options?.skipEmptyEmit) {
60408
60258
  this.emit();
60409
60259
  }
60410
60260
  }
@@ -60701,11 +60551,6 @@ function buildServiceDescriptor$2() {
60701
60551
  };
60702
60552
  }
60703
60553
 
60704
- /*!
60705
- * Copyright (c) 2022, Salesforce, Inc.,
60706
- * All rights reserved.
60707
- * For full license text, see the LICENSE.txt file
60708
- */
60709
60554
  function buildServiceDescriptor$1(interceptors = {
60710
60555
  request: [],
60711
60556
  retry: void 0,
@@ -60716,8 +60561,7 @@ function buildServiceDescriptor$1(interceptors = {
60716
60561
  type: "fetch",
60717
60562
  version: "1.0",
60718
60563
  service: function(...args) {
60719
- var _a;
60720
- const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
60564
+ const context = interceptors.createContext?.();
60721
60565
  const {
60722
60566
  request: requestInterceptors = [],
60723
60567
  retry: retryInterceptor = void 0,
@@ -60911,11 +60755,6 @@ function extractQueryParams(urlString) {
60911
60755
  return queryParams;
60912
60756
  }
60913
60757
 
60914
- /*!
60915
- * Copyright (c) 2022, Salesforce, Inc.,
60916
- * All rights reserved.
60917
- * For full license text, see the LICENSE.txt file
60918
- */
60919
60758
  class CacheInclusionPolicyService {
60920
60759
  }
60921
60760
  function setDifference(setA, setB) {
@@ -60967,18 +60806,8 @@ function rejectedPromiseLike(reason) {
60967
60806
  };
60968
60807
  }
60969
60808
  function isPromiseLike(x) {
60970
- return typeof (x == null ? void 0 : x.then) === "function";
60809
+ return typeof x?.then === "function";
60971
60810
  }
60972
- /*!
60973
- * Copyright (c) 2022, Salesforce, Inc.,
60974
- * All rights reserved.
60975
- * For full license text, see the LICENSE.txt file
60976
- */
60977
- /*!
60978
- * Copyright (c) 2022, Salesforce, Inc.,
60979
- * All rights reserved.
60980
- * For full license text, see the LICENSE.txt file
60981
- */
60982
60811
  const { stringify, parse } = JSON;
60983
60812
  function deepCopy(x) {
60984
60813
  const stringified = stringify(x);
@@ -61002,7 +60831,7 @@ class DefaultRecordableCache {
61002
60831
  if (value === void 0) {
61003
60832
  this.missingKeysRead.add(key);
61004
60833
  }
61005
- if (options == null ? void 0 : options.copy) {
60834
+ if (options?.copy) {
61006
60835
  return deepCopy(value);
61007
60836
  }
61008
60837
  return value;
@@ -61046,7 +60875,7 @@ class DefaultFilteredCache {
61046
60875
  get(key, options) {
61047
60876
  const result = this.baseCache.get(key);
61048
60877
  if (result && this.predicate(key, result)) {
61049
- if (options == null ? void 0 : options.copy) {
60878
+ if (options?.copy) {
61050
60879
  return deepCopy(result);
61051
60880
  }
61052
60881
  return result;
@@ -61142,7 +60971,7 @@ class DefaultCache {
61142
60971
  this.data = {};
61143
60972
  }
61144
60973
  get(key, options) {
61145
- if (options == null ? void 0 : options.copy) {
60974
+ if (options?.copy) {
61146
60975
  return deepCopy(this.data[key]);
61147
60976
  }
61148
60977
  return this.data[key];
@@ -61767,4 +61596,4 @@ register({
61767
61596
  });
61768
61597
 
61769
61598
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61770
- // version: 1.437.0-90398d3223
61599
+ // version: 1.438.0-0ec0a89235
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.437.0",
3
+ "version": "1.438.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.19.5",
36
- "@conduit-client/service-bindings-lwc": "3.19.5",
37
- "@conduit-client/service-provisioner": "3.19.5",
38
- "@salesforce/lds-adapters-uiapi": "^1.437.0",
39
- "@salesforce/lds-bindings": "^1.437.0",
40
- "@salesforce/lds-instrumentation": "^1.437.0",
41
- "@salesforce/lds-luvio-service": "^1.437.0",
42
- "@salesforce/lds-luvio-uiapi-records-service": "^1.437.0",
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.438.0",
39
+ "@salesforce/lds-bindings": "^1.438.0",
40
+ "@salesforce/lds-instrumentation": "^1.438.0",
41
+ "@salesforce/lds-luvio-service": "^1.438.0",
42
+ "@salesforce/lds-luvio-uiapi-records-service": "^1.438.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.19.5",
49
- "@conduit-client/command-aura-normalized-cache-control": "3.19.5",
50
- "@conduit-client/command-aura-resource-cache-control": "3.19.5",
51
- "@conduit-client/command-fetch-network": "3.19.5",
52
- "@conduit-client/command-http-normalized-cache-control": "3.19.5",
53
- "@conduit-client/command-network": "3.19.5",
54
- "@conduit-client/service-cache": "3.19.5",
55
- "@conduit-client/service-cache-control": "3.19.5",
56
- "@conduit-client/service-cache-inclusion-policy": "3.19.5",
57
- "@conduit-client/service-fetch-network": "3.19.5",
58
- "@conduit-client/service-instrument-command": "3.19.5",
59
- "@conduit-client/service-instrumentation": "3.19.5",
60
- "@conduit-client/service-pubsub": "3.19.5",
61
- "@conduit-client/service-store": "3.19.5",
62
- "@conduit-client/utils": "3.19.5",
63
- "@salesforce/lds-adapters-graphql": "^1.437.0",
64
- "@salesforce/lds-drafts": "^1.437.0",
65
- "@salesforce/lds-durable-records": "^1.437.0",
66
- "@salesforce/lds-network-adapter": "^1.437.0",
67
- "@salesforce/lds-network-nimbus": "^1.437.0",
68
- "@salesforce/lds-store-binary": "^1.437.0",
69
- "@salesforce/lds-store-nimbus": "^1.437.0",
70
- "@salesforce/lds-store-sql": "^1.437.0",
71
- "@salesforce/lds-utils-adapters": "^1.437.0",
72
- "@salesforce/nimbus-plugin-lds": "^1.437.0",
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.438.0",
64
+ "@salesforce/lds-drafts": "^1.438.0",
65
+ "@salesforce/lds-durable-records": "^1.438.0",
66
+ "@salesforce/lds-network-adapter": "^1.438.0",
67
+ "@salesforce/lds-network-nimbus": "^1.438.0",
68
+ "@salesforce/lds-store-binary": "^1.438.0",
69
+ "@salesforce/lds-store-nimbus": "^1.438.0",
70
+ "@salesforce/lds-store-sql": "^1.438.0",
71
+ "@salesforce/lds-utils-adapters": "^1.438.0",
72
+ "@salesforce/nimbus-plugin-lds": "^1.438.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
@@ -56439,11 +56439,6 @@ function createSfsSideEffectHooks(durableRecordStore) {
56439
56439
  return [];
56440
56440
  }
56441
56441
 
56442
- /*!
56443
- * Copyright (c) 2022, Salesforce, Inc.,
56444
- * All rights reserved.
56445
- * For full license text, see the LICENSE.txt file
56446
- */
56447
56442
  const { create, freeze, keys, entries } = Object;
56448
56443
  const { isArray: isArray$1 } = Array;
56449
56444
  const { stringify: stringify$2, parse: parse$2 } = JSON;
@@ -56562,7 +56557,7 @@ function rejectedPromiseLike$2(reason) {
56562
56557
  };
56563
56558
  }
56564
56559
  function isPromiseLike$2(x) {
56565
- return typeof (x == null ? void 0 : x.then) === "function";
56560
+ return typeof x?.then === "function";
56566
56561
  }
56567
56562
  function deepEquals$1(x, y) {
56568
56563
  if (x === void 0) {
@@ -56732,19 +56727,9 @@ function logError$1(error) {
56732
56727
  console.error("OneStore Command threw an error that we did not expect", error);
56733
56728
  }
56734
56729
 
56735
- /*!
56736
- * Copyright (c) 2022, Salesforce, Inc.,
56737
- * All rights reserved.
56738
- * For full license text, see the LICENSE.txt file
56739
- */
56740
56730
  class BaseCommand {
56741
56731
  }
56742
56732
 
56743
- /*!
56744
- * Copyright (c) 2022, Salesforce, Inc.,
56745
- * All rights reserved.
56746
- * For full license text, see the LICENSE.txt file
56747
- */
56748
56733
  let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
56749
56734
  constructor(services) {
56750
56735
  super();
@@ -56795,11 +56780,6 @@ function buildServiceDescriptor$n() {
56795
56780
  };
56796
56781
  }
56797
56782
 
56798
- /*!
56799
- * Copyright (c) 2022, Salesforce, Inc.,
56800
- * All rights reserved.
56801
- * For full license text, see the LICENSE.txt file
56802
- */
56803
56783
  class AuraNetworkCommand extends NetworkCommand$1 {
56804
56784
  constructor(services) {
56805
56785
  super(services);
@@ -56906,16 +56886,6 @@ function buildServiceDescriptor$m() {
56906
56886
  };
56907
56887
  }
56908
56888
 
56909
- /*!
56910
- * Copyright (c) 2022, Salesforce, Inc.,
56911
- * All rights reserved.
56912
- * For full license text, see the LICENSE.txt file
56913
- */
56914
- /*!
56915
- * Copyright (c) 2022, Salesforce, Inc.,
56916
- * All rights reserved.
56917
- * For full license text, see the LICENSE.txt file
56918
- */
56919
56889
  const { isArray } = Array;
56920
56890
  class Ok {
56921
56891
  constructor(value) {
@@ -56983,7 +56953,7 @@ function rejectedPromiseLike$1(reason) {
56983
56953
  };
56984
56954
  }
56985
56955
  function isPromiseLike$1(x) {
56986
- return typeof (x == null ? void 0 : x.then) === "function";
56956
+ return typeof x?.then === "function";
56987
56957
  }
56988
56958
  function deepEquals(x, y) {
56989
56959
  if (x === void 0) {
@@ -57274,7 +57244,7 @@ class CacheControlCommand extends BaseCommand {
57274
57244
  unsubscribe() {
57275
57245
  while (this.unsubscribers.length > 0) {
57276
57246
  const unsubscriber = this.unsubscribers.pop();
57277
- unsubscriber == null ? void 0 : unsubscriber();
57247
+ unsubscriber?.();
57278
57248
  }
57279
57249
  }
57280
57250
  /**
@@ -57458,16 +57428,6 @@ function mergeCacheControlConfigs(baseConfig, overrides) {
57458
57428
  };
57459
57429
  }
57460
57430
 
57461
- /*!
57462
- * Copyright (c) 2022, Salesforce, Inc.,
57463
- * All rights reserved.
57464
- * For full license text, see the LICENSE.txt file
57465
- */
57466
- /*!
57467
- * Copyright (c) 2022, Salesforce, Inc.,
57468
- * All rights reserved.
57469
- * For full license text, see the LICENSE.txt file
57470
- */
57471
57431
  let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheControlCommand {
57472
57432
  constructor(services) {
57473
57433
  super(services);
@@ -57603,16 +57563,6 @@ function buildServiceDescriptor$l() {
57603
57563
  };
57604
57564
  }
57605
57565
 
57606
- /*!
57607
- * Copyright (c) 2022, Salesforce, Inc.,
57608
- * All rights reserved.
57609
- * For full license text, see the LICENSE.txt file
57610
- */
57611
- /*!
57612
- * Copyright (c) 2022, Salesforce, Inc.,
57613
- * All rights reserved.
57614
- * For full license text, see the LICENSE.txt file
57615
- */
57616
57566
  class AuraCacheControlCommand extends CacheControlCommand {
57617
57567
  constructor(services) {
57618
57568
  super(services);
@@ -57722,8 +57672,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
57722
57672
  this.services = services;
57723
57673
  }
57724
57674
  readFromCache(cache) {
57725
- var _a;
57726
- const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
57675
+ const data = cache.get(this.buildKey())?.value;
57727
57676
  if (data === void 0) {
57728
57677
  return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
57729
57678
  }
@@ -57752,16 +57701,6 @@ function buildServiceDescriptor$k() {
57752
57701
  };
57753
57702
  }
57754
57703
 
57755
- /*!
57756
- * Copyright (c) 2022, Salesforce, Inc.,
57757
- * All rights reserved.
57758
- * For full license text, see the LICENSE.txt file
57759
- */
57760
- /*!
57761
- * Copyright (c) 2022, Salesforce, Inc.,
57762
- * All rights reserved.
57763
- * For full license text, see the LICENSE.txt file
57764
- */
57765
57704
  class NetworkCommand extends BaseCommand {
57766
57705
  constructor(services) {
57767
57706
  super();
@@ -57811,7 +57750,7 @@ function hasFetchParams(command) {
57811
57750
  return command && typeof command === "object" && "fetchParams" in command;
57812
57751
  }
57813
57752
  function createAbortableDecorator(command, options) {
57814
- if (!(options == null ? void 0 : options.signal) || !((options == null ? void 0 : options.signal) instanceof AbortSignal)) {
57753
+ if (!options?.signal || !(options?.signal instanceof AbortSignal)) {
57815
57754
  return command;
57816
57755
  }
57817
57756
  const { signal } = options;
@@ -57958,16 +57897,6 @@ function buildServiceDescriptor$j() {
57958
57897
  };
57959
57898
  }
57960
57899
 
57961
- /*!
57962
- * Copyright (c) 2022, Salesforce, Inc.,
57963
- * All rights reserved.
57964
- * For full license text, see the LICENSE.txt file
57965
- */
57966
- /*!
57967
- * Copyright (c) 2022, Salesforce, Inc.,
57968
- * All rights reserved.
57969
- * For full license text, see the LICENSE.txt file
57970
- */
57971
57900
  class HttpCacheControlCommand extends CacheControlCommand {
57972
57901
  constructor(services) {
57973
57902
  super(services);
@@ -58075,16 +58004,6 @@ function buildServiceDescriptor$i() {
58075
58004
  };
58076
58005
  }
58077
58006
 
58078
- /*!
58079
- * Copyright (c) 2022, Salesforce, Inc.,
58080
- * All rights reserved.
58081
- * For full license text, see the LICENSE.txt file
58082
- */
58083
- /*!
58084
- * Copyright (c) 2022, Salesforce, Inc.,
58085
- * All rights reserved.
58086
- * For full license text, see the LICENSE.txt file
58087
- */
58088
58007
  const { stringify: stringify$1, parse: parse$1 } = JSON;
58089
58008
  function deepCopy$1(x) {
58090
58009
  const stringified = stringify$1(x);
@@ -58108,7 +58027,7 @@ let DefaultRecordableCache$1 = class DefaultRecordableCache {
58108
58027
  if (value === void 0) {
58109
58028
  this.missingKeysRead.add(key);
58110
58029
  }
58111
- if (options == null ? void 0 : options.copy) {
58030
+ if (options?.copy) {
58112
58031
  return deepCopy$1(value);
58113
58032
  }
58114
58033
  return value;
@@ -58152,7 +58071,7 @@ let DefaultFilteredCache$1 = class DefaultFilteredCache {
58152
58071
  get(key, options) {
58153
58072
  const result = this.baseCache.get(key);
58154
58073
  if (result && this.predicate(key, result)) {
58155
- if (options == null ? void 0 : options.copy) {
58074
+ if (options?.copy) {
58156
58075
  return deepCopy$1(result);
58157
58076
  }
58158
58077
  return result;
@@ -58248,7 +58167,7 @@ let DefaultCache$1 = class DefaultCache {
58248
58167
  this.data = {};
58249
58168
  }
58250
58169
  get(key, options) {
58251
- if (options == null ? void 0 : options.copy) {
58170
+ if (options?.copy) {
58252
58171
  return deepCopy$1(this.data[key]);
58253
58172
  }
58254
58173
  return this.data[key];
@@ -58328,11 +58247,6 @@ function buildServiceDescriptor$h() {
58328
58247
  };
58329
58248
  }
58330
58249
 
58331
- /*!
58332
- * Copyright (c) 2022, Salesforce, Inc.,
58333
- * All rights reserved.
58334
- * For full license text, see the LICENSE.txt file
58335
- */
58336
58250
  class CacheControlStrategy {
58337
58251
  constructor(services, config, requestRunner) {
58338
58252
  this.services = services;
@@ -58393,11 +58307,11 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
58393
58307
  if (value.isOk()) {
58394
58308
  this.collectCacheHitInstrumentation(
58395
58309
  startTime,
58396
- options == null ? void 0 : options.instrumentationAttributes
58310
+ options?.instrumentationAttributes
58397
58311
  );
58398
58312
  return ok$1(void 0);
58399
58313
  }
58400
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58314
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58401
58315
  const tempCache = this.filteredCache;
58402
58316
  return new Promise(async (resolve, reject) => {
58403
58317
  try {
@@ -58467,11 +58381,11 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
58467
58381
  if (result.isOk()) {
58468
58382
  this.collectCacheHitInstrumentation(
58469
58383
  startTime,
58470
- options == null ? void 0 : options.instrumentationAttributes
58384
+ options?.instrumentationAttributes
58471
58385
  );
58472
58386
  return ok$1(void 0);
58473
58387
  }
58474
- this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
58388
+ this.collectCacheMissInstrumentation(startTime, options?.instrumentationAttributes);
58475
58389
  const error = new UserVisibleError(
58476
58390
  new FetchResponse(HttpStatusCode.GatewayTimeout, {
58477
58391
  error: "Cache miss for only-if-cached request"
@@ -58555,11 +58469,6 @@ function buildServiceDescriptor$g(cache, cacheInclusionPolicy, instrumentation)
58555
58469
  };
58556
58470
  }
58557
58471
 
58558
- /*!
58559
- * Copyright (c) 2022, Salesforce, Inc.,
58560
- * All rights reserved.
58561
- * For full license text, see the LICENSE.txt file
58562
- */
58563
58472
  function buildInstrumentCommand(services) {
58564
58473
  const meter = services.instrumentation.metrics.getMeter("onestore");
58565
58474
  return function instrumentCommand(commandClass, commandName) {
@@ -58579,7 +58488,7 @@ function buildInstrumentCommand(services) {
58579
58488
  try {
58580
58489
  result = super.execute(...args);
58581
58490
  } catch (e) {
58582
- if ((e == null ? void 0 : e.name) === "AbortError") {
58491
+ if (e?.name === "AbortError") {
58583
58492
  abortCounter.add(1);
58584
58493
  } else {
58585
58494
  errorCounter.add(1);
@@ -58606,16 +58515,6 @@ function buildServiceDescriptor$f(instrumentation) {
58606
58515
  };
58607
58516
  }
58608
58517
 
58609
- /*!
58610
- * Copyright (c) 2022, Salesforce, Inc.,
58611
- * All rights reserved.
58612
- * For full license text, see the LICENSE.txt file
58613
- */
58614
- /*!
58615
- * Copyright (c) 2022, Salesforce, Inc.,
58616
- * All rights reserved.
58617
- * For full license text, see the LICENSE.txt file
58618
- */
58619
58518
  class O11yOTelTraceAPI {
58620
58519
  constructor(services) {
58621
58520
  this.services = services;
@@ -58631,9 +58530,9 @@ class O11yTracer {
58631
58530
  this.logger = logger;
58632
58531
  }
58633
58532
  startSpan(name, _options, context) {
58634
- const traceId = context == null ? void 0 : context.getValue(Symbol.for("traceId"));
58635
- const spanId = context == null ? void 0 : context.getValue(Symbol.for("spanId"));
58636
- const traceFlags = context == null ? void 0 : context.getValue(Symbol.for("traceFlags"));
58533
+ const traceId = context?.getValue(/* @__PURE__ */ Symbol.for("traceId"));
58534
+ const spanId = context?.getValue(/* @__PURE__ */ Symbol.for("spanId"));
58535
+ const traceFlags = context?.getValue(/* @__PURE__ */ Symbol.for("traceFlags"));
58637
58536
  let spanContext = void 0;
58638
58537
  if (traceId !== void 0 && spanId !== void 0 && traceFlags !== void 0) {
58639
58538
  spanContext = {
@@ -58876,12 +58775,7 @@ function buildServiceDescriptor$e(logger) {
58876
58775
  };
58877
58776
  }
58878
58777
 
58879
- /*!
58880
- * Copyright (c) 2022, Salesforce, Inc.,
58881
- * All rights reserved.
58882
- * For full license text, see the LICENSE.txt file
58883
- */
58884
- const EventTypeWildcard = Symbol("EventTypeWildcard");
58778
+ const EventTypeWildcard = /* @__PURE__ */ Symbol("EventTypeWildcard");
58885
58779
  class DefaultPubSubService {
58886
58780
  constructor() {
58887
58781
  this.subscriptions = /* @__PURE__ */ new Map();
@@ -58944,11 +58838,6 @@ function buildServiceDescriptor$d() {
58944
58838
  };
58945
58839
  }
58946
58840
 
58947
- /*!
58948
- * Copyright (c) 2022, Salesforce, Inc.,
58949
- * All rights reserved.
58950
- * For full license text, see the LICENSE.txt file
58951
- */
58952
58841
  class FeatureFlagsService {
58953
58842
  constructor() {
58954
58843
  this.flags = /* @__PURE__ */ new Map();
@@ -59010,7 +58899,7 @@ function buildServiceDescriptor$b(luvio) {
59010
58899
  },
59011
58900
  };
59012
58901
  }
59013
- // version: 1.437.0-90398d3223
58902
+ // version: 1.438.0-0ec0a89235
59014
58903
 
59015
58904
  /**
59016
58905
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -59036,13 +58925,8 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
59036
58925
  },
59037
58926
  };
59038
58927
  }
59039
- // version: 1.437.0-90398d3223
58928
+ // version: 1.438.0-0ec0a89235
59040
58929
 
59041
- /*!
59042
- * Copyright (c) 2022, Salesforce, Inc.,
59043
- * All rights reserved.
59044
- * For full license text, see the LICENSE.txt file
59045
- */
59046
58930
  function findExecutableOperation(input) {
59047
58931
  const operations = input.query.definitions.filter(
59048
58932
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
@@ -59054,10 +58938,7 @@ function findExecutableOperation(input) {
59054
58938
  return ok$1(operations[0]);
59055
58939
  }
59056
58940
  if (input.operationName) {
59057
- const specifiedOperation = operations.find((op) => {
59058
- var _a;
59059
- return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
59060
- });
58941
+ const specifiedOperation = operations.find((op) => op.name?.value === input.operationName);
59061
58942
  if (specifiedOperation) {
59062
58943
  return ok$1(specifiedOperation);
59063
58944
  }
@@ -59073,14 +58954,13 @@ function buildGraphQLInputExtension(input) {
59073
58954
  const operation = operationResult.value;
59074
58955
  const selections = operation.selectionSet.selections;
59075
58956
  const variableDefinitions = operation.variableDefinitions;
59076
- const variables = (variableDefinitions == null ? void 0 : variableDefinitions.reduce((prev, def) => {
59077
- var _a;
58957
+ const variables = variableDefinitions?.reduce((prev, def) => {
59078
58958
  prev[def.variable.name.value] = {
59079
58959
  definition: def,
59080
- value: (_a = input.variables) == null ? void 0 : _a[def.variable.name.value]
58960
+ value: input.variables?.[def.variable.name.value]
59081
58961
  };
59082
58962
  return prev;
59083
- }, {})) || {};
58963
+ }, {}) || {};
59084
58964
  const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
59085
58965
  prev[fragment.name.value] = fragment;
59086
58966
  return prev;
@@ -59133,11 +59013,6 @@ function isFragmentDefinition(node) {
59133
59013
  return node.kind === Kind$2.FRAGMENT_DEFINITION;
59134
59014
  }
59135
59015
 
59136
- /*!
59137
- * Copyright (c) 2022, Salesforce, Inc.,
59138
- * All rights reserved.
59139
- * For full license text, see the LICENSE.txt file
59140
- */
59141
59016
  class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
59142
59017
  constructor(config, documentRootType, services) {
59143
59018
  super(services);
@@ -59318,11 +59193,6 @@ function buildServiceDescriptor$9() {
59318
59193
  };
59319
59194
  }
59320
59195
 
59321
- /*!
59322
- * Copyright (c) 2022, Salesforce, Inc.,
59323
- * All rights reserved.
59324
- * For full license text, see the LICENSE.txt file
59325
- */
59326
59196
  class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheControlCommand {
59327
59197
  constructor(config, documentRootType, services) {
59328
59198
  super(services);
@@ -59436,11 +59306,6 @@ function buildServiceDescriptor$8() {
59436
59306
  };
59437
59307
  }
59438
59308
 
59439
- /*!
59440
- * Copyright (c) 2022, Salesforce, Inc.,
59441
- * All rights reserved.
59442
- * For full license text, see the LICENSE.txt file
59443
- */
59444
59309
  class JsonSchemaViolationError extends Error {
59445
59310
  constructor(message, validationErrors) {
59446
59311
  super(message);
@@ -59870,11 +59735,6 @@ function findSchemaAtPath(document, ref) {
59870
59735
  return current;
59871
59736
  }
59872
59737
 
59873
- /*!
59874
- * Copyright (c) 2022, Salesforce, Inc.,
59875
- * All rights reserved.
59876
- * For full license text, see the LICENSE.txt file
59877
- */
59878
59738
  function isUserVisibleError(error) {
59879
59739
  return error instanceof Error && "type" in error && error.type === "user-visible";
59880
59740
  }
@@ -59899,11 +59759,6 @@ function logError(error) {
59899
59759
  console.error("OneStore Command threw an error that we did not expect", error);
59900
59760
  }
59901
59761
 
59902
- /*!
59903
- * Copyright (c) 2022, Salesforce, Inc.,
59904
- * All rights reserved.
59905
- * For full license text, see the LICENSE.txt file
59906
- */
59907
59762
  function buildBaseImperativeInvoker(getCommand, transformResult) {
59908
59763
  return async (...params) => {
59909
59764
  const command = getCommand({ params, assertIsValid });
@@ -60008,7 +59863,7 @@ class SubscribableImperativeBindingsService {
60008
59863
  const api = {
60009
59864
  data: result.value.data,
60010
59865
  subscribe: (cb) => {
60011
- result.value.subscribe((result2) => {
59866
+ return result.value.subscribe((result2) => {
60012
59867
  if (result2.isErr()) {
60013
59868
  return cb({ data: void 0, error: toError(result2.error) });
60014
59869
  }
@@ -60111,10 +59966,10 @@ class GraphQLImperativeBindingsService {
60111
59966
  acceptedOperations: ["query"]
60112
59967
  };
60113
59968
  const result = resolveAndValidateGraphQLConfig(params[0], options);
60114
- if (result == null ? void 0 : result.isErr()) {
59969
+ if (result?.isErr()) {
60115
59970
  return result.error;
60116
59971
  }
60117
- if (result == null ? void 0 : result.isOk()) {
59972
+ if (result?.isOk()) {
60118
59973
  params[0] = result.value;
60119
59974
  }
60120
59975
  }
@@ -60133,7 +59988,7 @@ class GraphQLImperativeBindingsService {
60133
59988
  deepFreeze(result.value);
60134
59989
  consumerEmittedData.data = result.value.data.data;
60135
59990
  consumerEmittedData.subscribe = (cb) => {
60136
- result.value.subscribe((res) => {
59991
+ return result.value.subscribe((res) => {
60137
59992
  const consumerEmittedData2 = {
60138
59993
  data: void 0,
60139
59994
  errors: void 0
@@ -60206,11 +60061,11 @@ class GraphQLLegacyImperativeBindingsService {
60206
60061
  acceptedOperations: ["query"]
60207
60062
  };
60208
60063
  const result = resolveAndValidateGraphQLConfig(config, options);
60209
- if (result == null ? void 0 : result.isErr()) {
60064
+ if (result?.isErr()) {
60210
60065
  callback(result.error);
60211
60066
  return;
60212
60067
  }
60213
- if (result == null ? void 0 : result.isOk()) {
60068
+ if (result?.isOk()) {
60214
60069
  config = result.value;
60215
60070
  }
60216
60071
  }
@@ -60241,12 +60096,12 @@ class GraphQLLegacyImperativeBindingsService {
60241
60096
  acceptedOperations: ["query"]
60242
60097
  };
60243
60098
  const result = resolveAndValidateGraphQLConfig(config, options);
60244
- if (result == null ? void 0 : result.isErr()) {
60099
+ if (result?.isErr()) {
60245
60100
  callback(result.error);
60246
60101
  return () => {
60247
60102
  };
60248
60103
  }
60249
- if (result == null ? void 0 : result.isOk()) {
60104
+ if (result?.isOk()) {
60250
60105
  config = result.value;
60251
60106
  }
60252
60107
  }
@@ -60308,13 +60163,13 @@ class GraphQLMutationBindingsService {
60308
60163
  acceptedOperations: ["mutation"]
60309
60164
  };
60310
60165
  const result2 = resolveAndValidateGraphQLConfig(params[0], options);
60311
- if (result2 == null ? void 0 : result2.isErr()) {
60166
+ if (result2?.isErr()) {
60312
60167
  return {
60313
60168
  data: void 0,
60314
60169
  errors: result2.error.errors
60315
60170
  };
60316
60171
  }
60317
- if (result2 == null ? void 0 : result2.isOk()) {
60172
+ if (result2?.isOk()) {
60318
60173
  params[0] = result2.value;
60319
60174
  }
60320
60175
  }
@@ -60340,11 +60195,6 @@ function buildServiceDescriptor$7() {
60340
60195
  };
60341
60196
  }
60342
60197
 
60343
- /*!
60344
- * Copyright (c) 2022, Salesforce, Inc.,
60345
- * All rights reserved.
60346
- * For full license text, see the LICENSE.txt file
60347
- */
60348
60198
  class Sanitizer {
60349
60199
  constructor(obj) {
60350
60200
  this.obj = obj;
@@ -60404,7 +60254,7 @@ class CommandWireAdapterConstructor {
60404
60254
  this.callback = callback;
60405
60255
  this.connected = false;
60406
60256
  this.exposeRefresh = false;
60407
- if (!(options == null ? void 0 : options.skipEmptyEmit)) {
60257
+ if (!options?.skipEmptyEmit) {
60408
60258
  this.emit();
60409
60259
  }
60410
60260
  }
@@ -60701,11 +60551,6 @@ function buildServiceDescriptor$2() {
60701
60551
  };
60702
60552
  }
60703
60553
 
60704
- /*!
60705
- * Copyright (c) 2022, Salesforce, Inc.,
60706
- * All rights reserved.
60707
- * For full license text, see the LICENSE.txt file
60708
- */
60709
60554
  function buildServiceDescriptor$1(interceptors = {
60710
60555
  request: [],
60711
60556
  retry: void 0,
@@ -60716,8 +60561,7 @@ function buildServiceDescriptor$1(interceptors = {
60716
60561
  type: "fetch",
60717
60562
  version: "1.0",
60718
60563
  service: function(...args) {
60719
- var _a;
60720
- const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
60564
+ const context = interceptors.createContext?.();
60721
60565
  const {
60722
60566
  request: requestInterceptors = [],
60723
60567
  retry: retryInterceptor = void 0,
@@ -60911,11 +60755,6 @@ function extractQueryParams(urlString) {
60911
60755
  return queryParams;
60912
60756
  }
60913
60757
 
60914
- /*!
60915
- * Copyright (c) 2022, Salesforce, Inc.,
60916
- * All rights reserved.
60917
- * For full license text, see the LICENSE.txt file
60918
- */
60919
60758
  class CacheInclusionPolicyService {
60920
60759
  }
60921
60760
  function setDifference(setA, setB) {
@@ -60967,18 +60806,8 @@ function rejectedPromiseLike(reason) {
60967
60806
  };
60968
60807
  }
60969
60808
  function isPromiseLike(x) {
60970
- return typeof (x == null ? void 0 : x.then) === "function";
60809
+ return typeof x?.then === "function";
60971
60810
  }
60972
- /*!
60973
- * Copyright (c) 2022, Salesforce, Inc.,
60974
- * All rights reserved.
60975
- * For full license text, see the LICENSE.txt file
60976
- */
60977
- /*!
60978
- * Copyright (c) 2022, Salesforce, Inc.,
60979
- * All rights reserved.
60980
- * For full license text, see the LICENSE.txt file
60981
- */
60982
60811
  const { stringify, parse } = JSON;
60983
60812
  function deepCopy(x) {
60984
60813
  const stringified = stringify(x);
@@ -61002,7 +60831,7 @@ class DefaultRecordableCache {
61002
60831
  if (value === void 0) {
61003
60832
  this.missingKeysRead.add(key);
61004
60833
  }
61005
- if (options == null ? void 0 : options.copy) {
60834
+ if (options?.copy) {
61006
60835
  return deepCopy(value);
61007
60836
  }
61008
60837
  return value;
@@ -61046,7 +60875,7 @@ class DefaultFilteredCache {
61046
60875
  get(key, options) {
61047
60876
  const result = this.baseCache.get(key);
61048
60877
  if (result && this.predicate(key, result)) {
61049
- if (options == null ? void 0 : options.copy) {
60878
+ if (options?.copy) {
61050
60879
  return deepCopy(result);
61051
60880
  }
61052
60881
  return result;
@@ -61142,7 +60971,7 @@ class DefaultCache {
61142
60971
  this.data = {};
61143
60972
  }
61144
60973
  get(key, options) {
61145
- if (options == null ? void 0 : options.copy) {
60974
+ if (options?.copy) {
61146
60975
  return deepCopy(this.data[key]);
61147
60976
  }
61148
60977
  return this.data[key];
@@ -61767,4 +61596,4 @@ register({
61767
61596
  });
61768
61597
 
61769
61598
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, initializeOneStore, registerReportObserver, reportGraphqlQueryParseError };
61770
- // version: 1.437.0-90398d3223
61599
+ // version: 1.438.0-0ec0a89235