@salesforce/lds-worker-api 1.428.0-dev21 → 1.428.0-dev23
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.428.0-
|
|
1374
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
callbacks.push(callback);
|
|
4276
4276
|
}
|
|
4277
|
-
// version: 1.428.0-
|
|
4277
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
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.428.0-
|
|
5321
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
5322
5322
|
|
|
5323
5323
|
function isSupportedEntity(_objectApiName) {
|
|
5324
5324
|
return true;
|
|
@@ -32610,7 +32610,7 @@ withDefaultLuvio((luvio) => {
|
|
|
32610
32610
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32611
32611
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32612
32612
|
});
|
|
32613
|
-
// version: 1.428.0-
|
|
32613
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
32614
32614
|
|
|
32615
32615
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32616
32616
|
isOpen: function (e) {
|
|
@@ -94365,6 +94365,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
94365
94365
|
storable: false
|
|
94366
94366
|
};
|
|
94367
94367
|
this.networkPreference = "aura";
|
|
94368
|
+
this.additionalNullResponses = [];
|
|
94368
94369
|
}
|
|
94369
94370
|
get fetchParams() {
|
|
94370
94371
|
throw new Error(
|
|
@@ -94401,14 +94402,37 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
94401
94402
|
}
|
|
94402
94403
|
});
|
|
94403
94404
|
}
|
|
94405
|
+
isSemanticNullResponse(response) {
|
|
94406
|
+
return this.additionalNullResponses.includes(response.status);
|
|
94407
|
+
}
|
|
94408
|
+
isProtocolNoBodyStatus(status) {
|
|
94409
|
+
return status === 204 || status === 205;
|
|
94410
|
+
}
|
|
94411
|
+
isUndeclaredNoBodyResponse(response) {
|
|
94412
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
94413
|
+
}
|
|
94404
94414
|
convertFetchResponseToData(response) {
|
|
94405
94415
|
return response.then(
|
|
94406
94416
|
(response2) => {
|
|
94407
94417
|
if (response2.ok) {
|
|
94408
|
-
|
|
94409
|
-
|
|
94410
|
-
|
|
94411
|
-
|
|
94418
|
+
let resultPromise;
|
|
94419
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
94420
|
+
resultPromise = Promise.resolve(ok$1(null));
|
|
94421
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
94422
|
+
resultPromise = Promise.resolve(
|
|
94423
|
+
err$1(
|
|
94424
|
+
toError(
|
|
94425
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
94426
|
+
)
|
|
94427
|
+
)
|
|
94428
|
+
);
|
|
94429
|
+
} else {
|
|
94430
|
+
resultPromise = response2.json().then(
|
|
94431
|
+
(json) => ok$1(json),
|
|
94432
|
+
(reason) => err$1(toError(reason))
|
|
94433
|
+
);
|
|
94434
|
+
}
|
|
94435
|
+
return resultPromise.finally(() => {
|
|
94412
94436
|
try {
|
|
94413
94437
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
94414
94438
|
} catch {
|
|
@@ -96548,7 +96572,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
96548
96572
|
},
|
|
96549
96573
|
};
|
|
96550
96574
|
}
|
|
96551
|
-
// version: 1.428.0-
|
|
96575
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
96552
96576
|
|
|
96553
96577
|
/**
|
|
96554
96578
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96574,7 +96598,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
96574
96598
|
},
|
|
96575
96599
|
};
|
|
96576
96600
|
}
|
|
96577
|
-
// version: 1.428.0-
|
|
96601
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
96578
96602
|
|
|
96579
96603
|
/*!
|
|
96580
96604
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -99308,7 +99332,7 @@ register$1({
|
|
|
99308
99332
|
id: '@salesforce/lds-network-adapter',
|
|
99309
99333
|
instrument: instrument$2,
|
|
99310
99334
|
});
|
|
99311
|
-
// version: 1.428.0-
|
|
99335
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
99312
99336
|
|
|
99313
99337
|
const { create: create$2, keys: keys$2 } = Object;
|
|
99314
99338
|
const { stringify, parse } = JSON;
|
|
@@ -107378,7 +107402,7 @@ function registerCallback(cb) {
|
|
|
107378
107402
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107379
107403
|
}
|
|
107380
107404
|
}
|
|
107381
|
-
// version: 1.428.0-
|
|
107405
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
107382
107406
|
|
|
107383
107407
|
function createFragmentMap(documentNode) {
|
|
107384
107408
|
const fragments = {};
|
|
@@ -136651,7 +136675,7 @@ register$1({
|
|
|
136651
136675
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136652
136676
|
instrument: instrument$1,
|
|
136653
136677
|
});
|
|
136654
|
-
// version: 1.428.0-
|
|
136678
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
136655
136679
|
|
|
136656
136680
|
// On core the unstable adapters are re-exported with different names,
|
|
136657
136681
|
// we want to match them here.
|
|
@@ -136803,7 +136827,7 @@ withDefaultLuvio((luvio) => {
|
|
|
136803
136827
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
136804
136828
|
graphQLImperative = ldsAdapter;
|
|
136805
136829
|
});
|
|
136806
|
-
// version: 1.428.0-
|
|
136830
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
136807
136831
|
|
|
136808
136832
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
136809
136833
|
__proto__: null,
|
|
@@ -137602,7 +137626,7 @@ const callbacks$1 = [];
|
|
|
137602
137626
|
function register(r) {
|
|
137603
137627
|
callbacks$1.forEach((callback) => callback(r));
|
|
137604
137628
|
}
|
|
137605
|
-
// version: 1.428.0-
|
|
137629
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
137606
137630
|
|
|
137607
137631
|
/**
|
|
137608
137632
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -138918,4 +138942,4 @@ const { luvio } = getRuntime();
|
|
|
138918
138942
|
setDefaultLuvio({ luvio });
|
|
138919
138943
|
|
|
138920
138944
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
138921
|
-
// version: 1.428.0-
|
|
138945
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.428.0-
|
|
4283
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
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.428.0-
|
|
5327
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
5328
5328
|
|
|
5329
5329
|
function isSupportedEntity(_objectApiName) {
|
|
5330
5330
|
return true;
|
|
@@ -32616,7 +32616,7 @@
|
|
|
32616
32616
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32617
32617
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32618
32618
|
});
|
|
32619
|
-
// version: 1.428.0-
|
|
32619
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
32620
32620
|
|
|
32621
32621
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32622
32622
|
isOpen: function (e) {
|
|
@@ -94371,6 +94371,7 @@
|
|
|
94371
94371
|
storable: false
|
|
94372
94372
|
};
|
|
94373
94373
|
this.networkPreference = "aura";
|
|
94374
|
+
this.additionalNullResponses = [];
|
|
94374
94375
|
}
|
|
94375
94376
|
get fetchParams() {
|
|
94376
94377
|
throw new Error(
|
|
@@ -94407,14 +94408,37 @@
|
|
|
94407
94408
|
}
|
|
94408
94409
|
});
|
|
94409
94410
|
}
|
|
94411
|
+
isSemanticNullResponse(response) {
|
|
94412
|
+
return this.additionalNullResponses.includes(response.status);
|
|
94413
|
+
}
|
|
94414
|
+
isProtocolNoBodyStatus(status) {
|
|
94415
|
+
return status === 204 || status === 205;
|
|
94416
|
+
}
|
|
94417
|
+
isUndeclaredNoBodyResponse(response) {
|
|
94418
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
94419
|
+
}
|
|
94410
94420
|
convertFetchResponseToData(response) {
|
|
94411
94421
|
return response.then(
|
|
94412
94422
|
(response2) => {
|
|
94413
94423
|
if (response2.ok) {
|
|
94414
|
-
|
|
94415
|
-
|
|
94416
|
-
|
|
94417
|
-
|
|
94424
|
+
let resultPromise;
|
|
94425
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
94426
|
+
resultPromise = Promise.resolve(ok$1(null));
|
|
94427
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
94428
|
+
resultPromise = Promise.resolve(
|
|
94429
|
+
err$1(
|
|
94430
|
+
toError(
|
|
94431
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
94432
|
+
)
|
|
94433
|
+
)
|
|
94434
|
+
);
|
|
94435
|
+
} else {
|
|
94436
|
+
resultPromise = response2.json().then(
|
|
94437
|
+
(json) => ok$1(json),
|
|
94438
|
+
(reason) => err$1(toError(reason))
|
|
94439
|
+
);
|
|
94440
|
+
}
|
|
94441
|
+
return resultPromise.finally(() => {
|
|
94418
94442
|
try {
|
|
94419
94443
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
94420
94444
|
} catch {
|
|
@@ -96554,7 +96578,7 @@
|
|
|
96554
96578
|
},
|
|
96555
96579
|
};
|
|
96556
96580
|
}
|
|
96557
|
-
// version: 1.428.0-
|
|
96581
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
96558
96582
|
|
|
96559
96583
|
/**
|
|
96560
96584
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96580,7 +96604,7 @@
|
|
|
96580
96604
|
},
|
|
96581
96605
|
};
|
|
96582
96606
|
}
|
|
96583
|
-
// version: 1.428.0-
|
|
96607
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
96584
96608
|
|
|
96585
96609
|
/*!
|
|
96586
96610
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -99314,7 +99338,7 @@
|
|
|
99314
99338
|
id: '@salesforce/lds-network-adapter',
|
|
99315
99339
|
instrument: instrument$2,
|
|
99316
99340
|
});
|
|
99317
|
-
// version: 1.428.0-
|
|
99341
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
99318
99342
|
|
|
99319
99343
|
const { create: create$2, keys: keys$2 } = Object;
|
|
99320
99344
|
const { stringify, parse } = JSON;
|
|
@@ -107384,7 +107408,7 @@
|
|
|
107384
107408
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107385
107409
|
}
|
|
107386
107410
|
}
|
|
107387
|
-
// version: 1.428.0-
|
|
107411
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
107388
107412
|
|
|
107389
107413
|
function createFragmentMap(documentNode) {
|
|
107390
107414
|
const fragments = {};
|
|
@@ -136657,7 +136681,7 @@
|
|
|
136657
136681
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136658
136682
|
instrument: instrument$1,
|
|
136659
136683
|
});
|
|
136660
|
-
// version: 1.428.0-
|
|
136684
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
136661
136685
|
|
|
136662
136686
|
// On core the unstable adapters are re-exported with different names,
|
|
136663
136687
|
// we want to match them here.
|
|
@@ -136809,7 +136833,7 @@
|
|
|
136809
136833
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
136810
136834
|
graphQLImperative = ldsAdapter;
|
|
136811
136835
|
});
|
|
136812
|
-
// version: 1.428.0-
|
|
136836
|
+
// version: 1.428.0-dev23-5c08206b9b
|
|
136813
136837
|
|
|
136814
136838
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
136815
136839
|
__proto__: null,
|
|
@@ -137608,7 +137632,7 @@
|
|
|
137608
137632
|
function register(r) {
|
|
137609
137633
|
callbacks$1.forEach((callback) => callback(r));
|
|
137610
137634
|
}
|
|
137611
|
-
// version: 1.428.0-
|
|
137635
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
|
137612
137636
|
|
|
137613
137637
|
/**
|
|
137614
137638
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -138945,4 +138969,4 @@
|
|
|
138945
138969
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
138946
138970
|
|
|
138947
138971
|
}));
|
|
138948
|
-
// version: 1.428.0-
|
|
138972
|
+
// version: 1.428.0-dev23-be9c43ba7c
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.428.0-
|
|
3
|
+
"version": "1.428.0-dev23",
|
|
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.428.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.428.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.428.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.428.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.428.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.428.0-
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.428.0-
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.428.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.428.0-dev23",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.428.0-dev23",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.428.0-dev23",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.428.0-dev23",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.428.0-dev23",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.428.0-dev23",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.428.0-dev23",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.428.0-dev23",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|