@salesforce/lds-worker-api 1.398.0 → 1.400.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.
|
@@ -1371,4 +1371,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
1373
1373
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1374
|
-
// version: 1.
|
|
1374
|
+
// version: 1.400.0-8bade3324c
|
|
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
callbacks.push(callback);
|
|
4276
4276
|
}
|
|
4277
|
-
// version: 1.
|
|
4277
|
+
// version: 1.400.0-8bade3324c
|
|
4278
4278
|
|
|
4279
4279
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4280
4280
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5318
5318
|
const { apiFamily, name } = metadata;
|
|
5319
5319
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5320
5320
|
}
|
|
5321
|
-
// version: 1.
|
|
5321
|
+
// version: 1.400.0-8bade3324c
|
|
5322
5322
|
|
|
5323
5323
|
/**
|
|
5324
5324
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -34154,7 +34154,7 @@ withDefaultLuvio((luvio) => {
|
|
|
34154
34154
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
34155
34155
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
34156
34156
|
});
|
|
34157
|
-
// version: 1.
|
|
34157
|
+
// version: 1.400.0-3c7514a502
|
|
34158
34158
|
|
|
34159
34159
|
function requestIdleDetectedCallback(_callback) { }
|
|
34160
34160
|
function declareNotifierTaskSingle(_name) {
|
|
@@ -95728,6 +95728,7 @@ function buildInstrumentCommand(services) {
|
|
|
95728
95728
|
return function instrumentCommand(commandClass, commandName) {
|
|
95729
95729
|
const invocationCounter = meter.createCounter(`${commandName}.command.invocation.count`);
|
|
95730
95730
|
const errorCounter = meter.createCounter(`${commandName}.command.error.count`);
|
|
95731
|
+
const abortCounter = meter.createCounter(`${commandName}.command.abort.count`);
|
|
95731
95732
|
const durationHistogram = meter.createHistogram(`${commandName}.command.duration`);
|
|
95732
95733
|
return class extends commandClass {
|
|
95733
95734
|
execute(...args) {
|
|
@@ -95741,7 +95742,11 @@ function buildInstrumentCommand(services) {
|
|
|
95741
95742
|
try {
|
|
95742
95743
|
result = super.execute(...args);
|
|
95743
95744
|
} catch (e) {
|
|
95744
|
-
|
|
95745
|
+
if ((e == null ? void 0 : e.name) === "AbortError") {
|
|
95746
|
+
abortCounter.add(1);
|
|
95747
|
+
} else {
|
|
95748
|
+
errorCounter.add(1);
|
|
95749
|
+
}
|
|
95745
95750
|
throw e;
|
|
95746
95751
|
}
|
|
95747
95752
|
if (typeof result === "object" && result !== null && "then" in result) {
|
|
@@ -96210,7 +96215,7 @@ function buildServiceDescriptor$5(luvio) {
|
|
|
96210
96215
|
},
|
|
96211
96216
|
};
|
|
96212
96217
|
}
|
|
96213
|
-
// version: 1.
|
|
96218
|
+
// version: 1.400.0-3c7514a502
|
|
96214
96219
|
|
|
96215
96220
|
/**
|
|
96216
96221
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96236,7 +96241,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
96236
96241
|
},
|
|
96237
96242
|
};
|
|
96238
96243
|
}
|
|
96239
|
-
// version: 1.
|
|
96244
|
+
// version: 1.400.0-3c7514a502
|
|
96240
96245
|
|
|
96241
96246
|
/*!
|
|
96242
96247
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -98167,9 +98172,9 @@ class NimbusSqliteOneStoreCache {
|
|
|
98167
98172
|
|
|
98168
98173
|
const PURGE_CACHE_DAYS = 30;
|
|
98169
98174
|
// TODO[@W-18753648]: These services depend on WebApis that aren't available in the worker.
|
|
98170
|
-
// import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@
|
|
98171
|
-
// import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@
|
|
98172
|
-
// import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@
|
|
98175
|
+
// import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@conduit-client/command-ndjson/v1';
|
|
98176
|
+
// import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@conduit-client/command-streaming/v1';
|
|
98177
|
+
// import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@conduit-client/command-sse/v1';
|
|
98173
98178
|
function initializeOneStore(sqliteStore) {
|
|
98174
98179
|
if (!useOneStore.isOpen({ fallback: true })) {
|
|
98175
98180
|
return;
|
|
@@ -98460,7 +98465,7 @@ register$1({
|
|
|
98460
98465
|
id: '@salesforce/lds-network-adapter',
|
|
98461
98466
|
instrument: instrument$2,
|
|
98462
98467
|
});
|
|
98463
|
-
// version: 1.
|
|
98468
|
+
// version: 1.400.0-8bade3324c
|
|
98464
98469
|
|
|
98465
98470
|
const { create: create$3, keys: keys$3 } = Object;
|
|
98466
98471
|
const { stringify: stringify$1, parse } = JSON;
|
|
@@ -101454,7 +101459,7 @@ function handleEmit(res, callback) {
|
|
|
101454
101459
|
}
|
|
101455
101460
|
callback(consumerEmittedData);
|
|
101456
101461
|
}
|
|
101457
|
-
// version: 1.
|
|
101462
|
+
// version: 1.400.0-3c7514a502
|
|
101458
101463
|
|
|
101459
101464
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
101460
101465
|
constructor(services, typeRegistry) {
|
|
@@ -105974,7 +105979,7 @@ function buildCommandClass(baseClass) {
|
|
|
105974
105979
|
const augmentedResponse = mergeResponseWithExtensions(data);
|
|
105975
105980
|
const extensionResult = buildGraphQLInputExtension({
|
|
105976
105981
|
...this.config,
|
|
105977
|
-
query: this.buildRequestQuery(),
|
|
105982
|
+
query: this.buildRequestQuery(), //TODO: Align Luvio and Conduit on a graphql-js version
|
|
105978
105983
|
});
|
|
105979
105984
|
if (extensionResult.isErr()) {
|
|
105980
105985
|
throw new InternalError(extensionResult.error);
|
|
@@ -113140,7 +113145,7 @@ function registerCallback(cb) {
|
|
|
113140
113145
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
113141
113146
|
}
|
|
113142
113147
|
}
|
|
113143
|
-
// version: 1.
|
|
113148
|
+
// version: 1.400.0-3c7514a502
|
|
113144
113149
|
|
|
113145
113150
|
function createFragmentMap(documentNode) {
|
|
113146
113151
|
const fragments = {};
|
|
@@ -139854,7 +139859,7 @@ register$1({
|
|
|
139854
139859
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
139855
139860
|
instrument: instrument$1,
|
|
139856
139861
|
});
|
|
139857
|
-
// version: 1.
|
|
139862
|
+
// version: 1.400.0-3c7514a502
|
|
139858
139863
|
|
|
139859
139864
|
// On core the unstable adapters are re-exported with different names,
|
|
139860
139865
|
// we want to match them here.
|
|
@@ -140006,7 +140011,7 @@ withDefaultLuvio((luvio) => {
|
|
|
140006
140011
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
140007
140012
|
graphQLImperative = ldsAdapter;
|
|
140008
140013
|
});
|
|
140009
|
-
// version: 1.
|
|
140014
|
+
// version: 1.400.0-3c7514a502
|
|
140010
140015
|
|
|
140011
140016
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
140012
140017
|
__proto__: null,
|
|
@@ -140805,7 +140810,7 @@ const callbacks$1 = [];
|
|
|
140805
140810
|
function register(r) {
|
|
140806
140811
|
callbacks$1.forEach((callback) => callback(r));
|
|
140807
140812
|
}
|
|
140808
|
-
// version: 1.
|
|
140813
|
+
// version: 1.400.0-8bade3324c
|
|
140809
140814
|
|
|
140810
140815
|
/**
|
|
140811
140816
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -142121,4 +142126,4 @@ const { luvio } = getRuntime();
|
|
|
142121
142126
|
setDefaultLuvio({ luvio });
|
|
142122
142127
|
|
|
142123
142128
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
142124
|
-
// version: 1.
|
|
142129
|
+
// version: 1.400.0-8bade3324c
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.
|
|
4283
|
+
// version: 1.400.0-8bade3324c
|
|
4284
4284
|
|
|
4285
4285
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4286
4286
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
const { apiFamily, name } = metadata;
|
|
5325
5325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5326
5326
|
}
|
|
5327
|
-
// version: 1.
|
|
5327
|
+
// version: 1.400.0-8bade3324c
|
|
5328
5328
|
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -34160,7 +34160,7 @@
|
|
|
34160
34160
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
34161
34161
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
34162
34162
|
});
|
|
34163
|
-
// version: 1.
|
|
34163
|
+
// version: 1.400.0-3c7514a502
|
|
34164
34164
|
|
|
34165
34165
|
function requestIdleDetectedCallback(_callback) { }
|
|
34166
34166
|
function declareNotifierTaskSingle(_name) {
|
|
@@ -95734,6 +95734,7 @@
|
|
|
95734
95734
|
return function instrumentCommand(commandClass, commandName) {
|
|
95735
95735
|
const invocationCounter = meter.createCounter(`${commandName}.command.invocation.count`);
|
|
95736
95736
|
const errorCounter = meter.createCounter(`${commandName}.command.error.count`);
|
|
95737
|
+
const abortCounter = meter.createCounter(`${commandName}.command.abort.count`);
|
|
95737
95738
|
const durationHistogram = meter.createHistogram(`${commandName}.command.duration`);
|
|
95738
95739
|
return class extends commandClass {
|
|
95739
95740
|
execute(...args) {
|
|
@@ -95747,7 +95748,11 @@
|
|
|
95747
95748
|
try {
|
|
95748
95749
|
result = super.execute(...args);
|
|
95749
95750
|
} catch (e) {
|
|
95750
|
-
|
|
95751
|
+
if ((e == null ? void 0 : e.name) === "AbortError") {
|
|
95752
|
+
abortCounter.add(1);
|
|
95753
|
+
} else {
|
|
95754
|
+
errorCounter.add(1);
|
|
95755
|
+
}
|
|
95751
95756
|
throw e;
|
|
95752
95757
|
}
|
|
95753
95758
|
if (typeof result === "object" && result !== null && "then" in result) {
|
|
@@ -96216,7 +96221,7 @@
|
|
|
96216
96221
|
},
|
|
96217
96222
|
};
|
|
96218
96223
|
}
|
|
96219
|
-
// version: 1.
|
|
96224
|
+
// version: 1.400.0-3c7514a502
|
|
96220
96225
|
|
|
96221
96226
|
/**
|
|
96222
96227
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96242,7 +96247,7 @@
|
|
|
96242
96247
|
},
|
|
96243
96248
|
};
|
|
96244
96249
|
}
|
|
96245
|
-
// version: 1.
|
|
96250
|
+
// version: 1.400.0-3c7514a502
|
|
96246
96251
|
|
|
96247
96252
|
/*!
|
|
96248
96253
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -98173,9 +98178,9 @@
|
|
|
98173
98178
|
|
|
98174
98179
|
const PURGE_CACHE_DAYS = 30;
|
|
98175
98180
|
// TODO[@W-18753648]: These services depend on WebApis that aren't available in the worker.
|
|
98176
|
-
// import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@
|
|
98177
|
-
// import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@
|
|
98178
|
-
// import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@
|
|
98181
|
+
// import { buildServiceDescriptor as buildNdJsonServiceDescriptor } from '@conduit-client/command-ndjson/v1';
|
|
98182
|
+
// import { buildServiceDescriptor as buildStreamingCommandServiceDescriptor } from '@conduit-client/command-streaming/v1';
|
|
98183
|
+
// import { buildServiceDescriptor as buildSseCommandServiceDescriptor } from '@conduit-client/command-sse/v1';
|
|
98179
98184
|
function initializeOneStore(sqliteStore) {
|
|
98180
98185
|
if (!useOneStore.isOpen({ fallback: true })) {
|
|
98181
98186
|
return;
|
|
@@ -98466,7 +98471,7 @@
|
|
|
98466
98471
|
id: '@salesforce/lds-network-adapter',
|
|
98467
98472
|
instrument: instrument$2,
|
|
98468
98473
|
});
|
|
98469
|
-
// version: 1.
|
|
98474
|
+
// version: 1.400.0-8bade3324c
|
|
98470
98475
|
|
|
98471
98476
|
const { create: create$3, keys: keys$3 } = Object;
|
|
98472
98477
|
const { stringify: stringify$1, parse } = JSON;
|
|
@@ -101460,7 +101465,7 @@
|
|
|
101460
101465
|
}
|
|
101461
101466
|
callback(consumerEmittedData);
|
|
101462
101467
|
}
|
|
101463
|
-
// version: 1.
|
|
101468
|
+
// version: 1.400.0-3c7514a502
|
|
101464
101469
|
|
|
101465
101470
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
101466
101471
|
constructor(services, typeRegistry) {
|
|
@@ -105980,7 +105985,7 @@
|
|
|
105980
105985
|
const augmentedResponse = mergeResponseWithExtensions(data);
|
|
105981
105986
|
const extensionResult = buildGraphQLInputExtension({
|
|
105982
105987
|
...this.config,
|
|
105983
|
-
query: this.buildRequestQuery(),
|
|
105988
|
+
query: this.buildRequestQuery(), //TODO: Align Luvio and Conduit on a graphql-js version
|
|
105984
105989
|
});
|
|
105985
105990
|
if (extensionResult.isErr()) {
|
|
105986
105991
|
throw new InternalError(extensionResult.error);
|
|
@@ -113146,7 +113151,7 @@ keys: keys$2,
|
|
|
113146
113151
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
113147
113152
|
}
|
|
113148
113153
|
}
|
|
113149
|
-
// version: 1.
|
|
113154
|
+
// version: 1.400.0-3c7514a502
|
|
113150
113155
|
|
|
113151
113156
|
function createFragmentMap(documentNode) {
|
|
113152
113157
|
const fragments = {};
|
|
@@ -139860,7 +139865,7 @@ keys: keys$2,
|
|
|
139860
139865
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
139861
139866
|
instrument: instrument$1,
|
|
139862
139867
|
});
|
|
139863
|
-
// version: 1.
|
|
139868
|
+
// version: 1.400.0-3c7514a502
|
|
139864
139869
|
|
|
139865
139870
|
// On core the unstable adapters are re-exported with different names,
|
|
139866
139871
|
// we want to match them here.
|
|
@@ -140012,7 +140017,7 @@ keys: keys$2,
|
|
|
140012
140017
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
140013
140018
|
graphQLImperative = ldsAdapter;
|
|
140014
140019
|
});
|
|
140015
|
-
// version: 1.
|
|
140020
|
+
// version: 1.400.0-3c7514a502
|
|
140016
140021
|
|
|
140017
140022
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
140018
140023
|
__proto__: null,
|
|
@@ -140811,7 +140816,7 @@ keys: keys$2,
|
|
|
140811
140816
|
function register(r) {
|
|
140812
140817
|
callbacks$1.forEach((callback) => callback(r));
|
|
140813
140818
|
}
|
|
140814
|
-
// version: 1.
|
|
140819
|
+
// version: 1.400.0-8bade3324c
|
|
140815
140820
|
|
|
140816
140821
|
/**
|
|
140817
140822
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -142148,4 +142153,4 @@ keys: keys$2,
|
|
|
142148
142153
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
142149
142154
|
|
|
142150
142155
|
}));
|
|
142151
|
-
// version: 1.
|
|
142156
|
+
// version: 1.400.0-8bade3324c
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.400.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.400.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.400.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.400.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.400.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.400.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.400.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.400.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.400.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|