@salesforce/lds-runtime-webruntime 1.429.0 → 1.431.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.
- package/dist/ldsWebruntimeOneStoreInit.js +61 -13
- package/package.json +28 -28
|
@@ -1352,6 +1352,7 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
1352
1352
|
constructor(services) {
|
|
1353
1353
|
super(services);
|
|
1354
1354
|
this.services = services;
|
|
1355
|
+
this.additionalNullResponses = [];
|
|
1355
1356
|
}
|
|
1356
1357
|
requestFromNetwork() {
|
|
1357
1358
|
return this.fetch();
|
|
@@ -1363,6 +1364,15 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
1363
1364
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1364
1365
|
}
|
|
1365
1366
|
}
|
|
1367
|
+
isSemanticNullResponse(response) {
|
|
1368
|
+
return this.additionalNullResponses.includes(response.status);
|
|
1369
|
+
}
|
|
1370
|
+
isProtocolNoBodyStatus(status) {
|
|
1371
|
+
return status === 204 || status === 205;
|
|
1372
|
+
}
|
|
1373
|
+
isUndeclaredNoBodyResponse(response) {
|
|
1374
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
1375
|
+
}
|
|
1366
1376
|
async coerceError(errorResponse) {
|
|
1367
1377
|
return toError(errorResponse.statusText);
|
|
1368
1378
|
}
|
|
@@ -1373,12 +1383,26 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
1373
1383
|
return response.then(
|
|
1374
1384
|
(response2) => {
|
|
1375
1385
|
if (response2.ok) {
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1386
|
+
let resultPromise;
|
|
1387
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
1388
|
+
resultPromise = Promise.resolve(ok$2(null));
|
|
1389
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
1390
|
+
resultPromise = Promise.resolve(
|
|
1391
|
+
err$1(
|
|
1392
|
+
toError(
|
|
1393
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
1394
|
+
)
|
|
1395
|
+
)
|
|
1396
|
+
);
|
|
1397
|
+
} else {
|
|
1398
|
+
resultPromise = response2.json().then(
|
|
1399
|
+
(json) => {
|
|
1400
|
+
return this.processFetchReturnValue(json);
|
|
1401
|
+
},
|
|
1402
|
+
(reason) => err$1(toError(reason))
|
|
1403
|
+
);
|
|
1404
|
+
}
|
|
1405
|
+
return resultPromise.finally(() => {
|
|
1382
1406
|
try {
|
|
1383
1407
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1384
1408
|
} catch {
|
|
@@ -1562,6 +1586,7 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1562
1586
|
constructor(services) {
|
|
1563
1587
|
super(services);
|
|
1564
1588
|
this.services = services;
|
|
1589
|
+
this.additionalNullResponses = [];
|
|
1565
1590
|
}
|
|
1566
1591
|
fetch() {
|
|
1567
1592
|
try {
|
|
@@ -1570,6 +1595,15 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1570
1595
|
return resolvedPromiseLike$2(err$1(toError(reason)));
|
|
1571
1596
|
}
|
|
1572
1597
|
}
|
|
1598
|
+
isSemanticNullResponse(response) {
|
|
1599
|
+
return this.additionalNullResponses.includes(response.status);
|
|
1600
|
+
}
|
|
1601
|
+
isProtocolNoBodyStatus(status) {
|
|
1602
|
+
return status === 204 || status === 205;
|
|
1603
|
+
}
|
|
1604
|
+
isUndeclaredNoBodyResponse(response) {
|
|
1605
|
+
return this.isProtocolNoBodyStatus(response.status) && !this.isSemanticNullResponse(response);
|
|
1606
|
+
}
|
|
1573
1607
|
async coerceError(errorResponse) {
|
|
1574
1608
|
return toError(errorResponse.statusText);
|
|
1575
1609
|
}
|
|
@@ -1577,10 +1611,24 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1577
1611
|
return response.then(
|
|
1578
1612
|
(response2) => {
|
|
1579
1613
|
if (response2.ok) {
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1614
|
+
let resultPromise;
|
|
1615
|
+
if (this.isSemanticNullResponse(response2)) {
|
|
1616
|
+
resultPromise = Promise.resolve(ok$2(null));
|
|
1617
|
+
} else if (this.isUndeclaredNoBodyResponse(response2)) {
|
|
1618
|
+
resultPromise = Promise.resolve(
|
|
1619
|
+
err$1(
|
|
1620
|
+
toError(
|
|
1621
|
+
`Unexpected ${response2.status} response: no-content status was not declared in the API specification. Declare this response in your OAS without a content property.`
|
|
1622
|
+
)
|
|
1623
|
+
)
|
|
1624
|
+
);
|
|
1625
|
+
} else {
|
|
1626
|
+
resultPromise = response2.json().then(
|
|
1627
|
+
(json) => ok$2(json),
|
|
1628
|
+
(reason) => err$1(toError(reason))
|
|
1629
|
+
);
|
|
1630
|
+
}
|
|
1631
|
+
return resultPromise.finally(() => {
|
|
1584
1632
|
try {
|
|
1585
1633
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1586
1634
|
} catch {
|
|
@@ -3331,7 +3379,7 @@ function buildServiceDescriptor$9(luvio) {
|
|
|
3331
3379
|
},
|
|
3332
3380
|
};
|
|
3333
3381
|
}
|
|
3334
|
-
// version: 1.
|
|
3382
|
+
// version: 1.431.0-51a9c51ed3
|
|
3335
3383
|
|
|
3336
3384
|
/**
|
|
3337
3385
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3357,7 +3405,7 @@ function buildServiceDescriptor$8(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3357
3405
|
},
|
|
3358
3406
|
};
|
|
3359
3407
|
}
|
|
3360
|
-
// version: 1.
|
|
3408
|
+
// version: 1.431.0-51a9c51ed3
|
|
3361
3409
|
|
|
3362
3410
|
/*!
|
|
3363
3411
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5213,4 +5261,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5213
5261
|
];
|
|
5214
5262
|
setServices(services);
|
|
5215
5263
|
});
|
|
5216
|
-
// version: 1.
|
|
5264
|
+
// version: 1.431.0-0cb7677555
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-webruntime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.431.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Webruntime runtime",
|
|
6
6
|
"main": "dist/ldsWebruntimeOneStoreInit.js",
|
|
@@ -35,44 +35,44 @@
|
|
|
35
35
|
"ready": "yarn build && jest --collectCoverage && yarn test:size && yarn release:corejar"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@conduit-client/service-provisioner": "3.19.
|
|
39
|
-
"@conduit-client/tools-core": "3.19.
|
|
38
|
+
"@conduit-client/service-provisioner": "3.19.2",
|
|
39
|
+
"@conduit-client/tools-core": "3.19.2",
|
|
40
40
|
"jwt-encode": "1.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@conduit-client/command-aura-network": "3.19.
|
|
44
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.19.
|
|
45
|
-
"@conduit-client/command-aura-resource-cache-control": "3.19.
|
|
46
|
-
"@conduit-client/command-fetch-network": "3.19.
|
|
47
|
-
"@conduit-client/command-http-normalized-cache-control": "3.19.
|
|
48
|
-
"@conduit-client/command-ndjson": "3.19.
|
|
49
|
-
"@conduit-client/command-network": "3.19.
|
|
50
|
-
"@conduit-client/command-sse": "3.19.
|
|
51
|
-
"@conduit-client/command-streaming": "3.19.
|
|
52
|
-
"@conduit-client/jwt-manager": "3.19.
|
|
53
|
-
"@conduit-client/service-aura-network": "3.19.
|
|
54
|
-
"@conduit-client/service-bindings-imperative": "3.19.
|
|
55
|
-
"@conduit-client/service-bindings-lwc": "3.19.
|
|
56
|
-
"@conduit-client/service-cache": "3.19.
|
|
57
|
-
"@conduit-client/service-cache-control": "3.19.
|
|
58
|
-
"@conduit-client/service-cache-inclusion-policy": "3.19.
|
|
59
|
-
"@conduit-client/service-fetch-network": "3.19.
|
|
60
|
-
"@conduit-client/service-instrument-command": "3.19.
|
|
61
|
-
"@conduit-client/service-pubsub": "3.19.
|
|
62
|
-
"@conduit-client/service-store": "3.19.
|
|
63
|
-
"@conduit-client/utils": "3.19.
|
|
43
|
+
"@conduit-client/command-aura-network": "3.19.2",
|
|
44
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.19.2",
|
|
45
|
+
"@conduit-client/command-aura-resource-cache-control": "3.19.2",
|
|
46
|
+
"@conduit-client/command-fetch-network": "3.19.2",
|
|
47
|
+
"@conduit-client/command-http-normalized-cache-control": "3.19.2",
|
|
48
|
+
"@conduit-client/command-ndjson": "3.19.2",
|
|
49
|
+
"@conduit-client/command-network": "3.19.2",
|
|
50
|
+
"@conduit-client/command-sse": "3.19.2",
|
|
51
|
+
"@conduit-client/command-streaming": "3.19.2",
|
|
52
|
+
"@conduit-client/jwt-manager": "3.19.2",
|
|
53
|
+
"@conduit-client/service-aura-network": "3.19.2",
|
|
54
|
+
"@conduit-client/service-bindings-imperative": "3.19.2",
|
|
55
|
+
"@conduit-client/service-bindings-lwc": "3.19.2",
|
|
56
|
+
"@conduit-client/service-cache": "3.19.2",
|
|
57
|
+
"@conduit-client/service-cache-control": "3.19.2",
|
|
58
|
+
"@conduit-client/service-cache-inclusion-policy": "3.19.2",
|
|
59
|
+
"@conduit-client/service-fetch-network": "3.19.2",
|
|
60
|
+
"@conduit-client/service-instrument-command": "3.19.2",
|
|
61
|
+
"@conduit-client/service-pubsub": "3.19.2",
|
|
62
|
+
"@conduit-client/service-store": "3.19.2",
|
|
63
|
+
"@conduit-client/utils": "3.19.2",
|
|
64
64
|
"@luvio/network-adapter-composable": "0.160.4",
|
|
65
65
|
"@luvio/network-adapter-fetch": "0.160.4",
|
|
66
66
|
"@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
|
|
67
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
68
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
69
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
67
|
+
"@salesforce/lds-default-luvio": "^1.431.0",
|
|
68
|
+
"@salesforce/lds-luvio-service": "^1.431.0",
|
|
69
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.431.0"
|
|
70
70
|
},
|
|
71
71
|
"luvioBundlesize": [
|
|
72
72
|
{
|
|
73
73
|
"path": "./dist/ldsWebruntimeOneStoreInit.js",
|
|
74
74
|
"maxSize": {
|
|
75
|
-
"none": "
|
|
75
|
+
"none": "161 kB",
|
|
76
76
|
"min": "85 kB",
|
|
77
77
|
"compressed": "25 kB"
|
|
78
78
|
}
|