@salesforce/lds-runtime-webruntime 1.416.1 → 1.418.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 +35 -29
- package/package.json +29 -29
|
@@ -98,7 +98,7 @@ let Err$1 = class Err {
|
|
|
98
98
|
const ok$2 = (value) => new Ok$2(value);
|
|
99
99
|
const err$1 = (err2) => new Err$1(err2);
|
|
100
100
|
function isResult(value) {
|
|
101
|
-
return value
|
|
101
|
+
return value !== null && value !== void 0 && typeof value === "object" && "isOk" in value && "isErr" in value && typeof value.isOk === "function" && typeof value.isErr === "function" && (value.isOk() === true && value.isErr() === false && "value" in value || value.isOk() === false && value.isErr() === true && "error" in value);
|
|
102
102
|
}
|
|
103
103
|
function isSubscribable(obj) {
|
|
104
104
|
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
@@ -420,7 +420,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
420
420
|
const auraReturnValue = response.getReturnValue();
|
|
421
421
|
try {
|
|
422
422
|
this.afterRequestHooks({ statusCode: 200 });
|
|
423
|
-
} catch
|
|
423
|
+
} catch {
|
|
424
424
|
}
|
|
425
425
|
return ok$2(auraReturnValue);
|
|
426
426
|
}).catch((error) => {
|
|
@@ -446,7 +446,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
446
446
|
).finally(() => {
|
|
447
447
|
try {
|
|
448
448
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
449
|
-
} catch
|
|
449
|
+
} catch {
|
|
450
450
|
}
|
|
451
451
|
});
|
|
452
452
|
} else {
|
|
@@ -455,7 +455,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
|
|
|
455
455
|
}).finally(() => {
|
|
456
456
|
try {
|
|
457
457
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
458
|
-
} catch
|
|
458
|
+
} catch {
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
461
|
}
|
|
@@ -1017,7 +1017,7 @@ class CacheControlCommand extends BaseCommand {
|
|
|
1017
1017
|
this.subscriptions.forEach((cb) => {
|
|
1018
1018
|
try {
|
|
1019
1019
|
cb(data);
|
|
1020
|
-
} catch
|
|
1020
|
+
} catch {
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
@@ -1106,7 +1106,7 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
1106
1106
|
}).finally(() => {
|
|
1107
1107
|
try {
|
|
1108
1108
|
this.afterRequestHooks({ statusCode: 200 });
|
|
1109
|
-
} catch
|
|
1109
|
+
} catch {
|
|
1110
1110
|
}
|
|
1111
1111
|
}).catch((error) => {
|
|
1112
1112
|
if (!error || !error.getError) {
|
|
@@ -1133,7 +1133,7 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
1133
1133
|
).finally(() => {
|
|
1134
1134
|
try {
|
|
1135
1135
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1136
|
-
} catch
|
|
1136
|
+
} catch {
|
|
1137
1137
|
}
|
|
1138
1138
|
});
|
|
1139
1139
|
} else {
|
|
@@ -1142,7 +1142,7 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
|
|
|
1142
1142
|
}).finally(() => {
|
|
1143
1143
|
try {
|
|
1144
1144
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1145
|
-
} catch
|
|
1145
|
+
} catch {
|
|
1146
1146
|
}
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
@@ -1254,7 +1254,7 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
1254
1254
|
}).finally(() => {
|
|
1255
1255
|
try {
|
|
1256
1256
|
this.afterRequestHooks({ statusCode: 200 });
|
|
1257
|
-
} catch
|
|
1257
|
+
} catch {
|
|
1258
1258
|
}
|
|
1259
1259
|
}).catch((error) => {
|
|
1260
1260
|
if (!error || !error.getError) {
|
|
@@ -1281,7 +1281,7 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
1281
1281
|
).finally(() => {
|
|
1282
1282
|
try {
|
|
1283
1283
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1284
|
-
} catch
|
|
1284
|
+
} catch {
|
|
1285
1285
|
}
|
|
1286
1286
|
});
|
|
1287
1287
|
} else {
|
|
@@ -1290,7 +1290,7 @@ class AuraCacheControlCommand extends CacheControlCommand {
|
|
|
1290
1290
|
}).finally(() => {
|
|
1291
1291
|
try {
|
|
1292
1292
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1293
|
-
} catch
|
|
1293
|
+
} catch {
|
|
1294
1294
|
}
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
@@ -1374,7 +1374,7 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
1374
1374
|
).finally(() => {
|
|
1375
1375
|
try {
|
|
1376
1376
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1377
|
-
} catch
|
|
1377
|
+
} catch {
|
|
1378
1378
|
}
|
|
1379
1379
|
});
|
|
1380
1380
|
} else {
|
|
@@ -1383,7 +1383,7 @@ class HttpCacheControlCommand extends CacheControlCommand {
|
|
|
1383
1383
|
}).finally(() => {
|
|
1384
1384
|
try {
|
|
1385
1385
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1386
|
-
} catch
|
|
1386
|
+
} catch {
|
|
1387
1387
|
}
|
|
1388
1388
|
});
|
|
1389
1389
|
}
|
|
@@ -1576,7 +1576,7 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1576
1576
|
).finally(() => {
|
|
1577
1577
|
try {
|
|
1578
1578
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1579
|
-
} catch
|
|
1579
|
+
} catch {
|
|
1580
1580
|
}
|
|
1581
1581
|
});
|
|
1582
1582
|
} else {
|
|
@@ -1585,7 +1585,7 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
|
|
|
1585
1585
|
}).finally(() => {
|
|
1586
1586
|
try {
|
|
1587
1587
|
this.afterRequestHooks({ statusCode: response2.status });
|
|
1588
|
-
} catch
|
|
1588
|
+
} catch {
|
|
1589
1589
|
}
|
|
1590
1590
|
});
|
|
1591
1591
|
}
|
|
@@ -2697,11 +2697,12 @@ function matchesKey(keyQuery, key) {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
function buildUpdate(update, existing) {
|
|
2699
2699
|
switch (update.type) {
|
|
2700
|
-
case "invalidate":
|
|
2700
|
+
case "invalidate": {
|
|
2701
2701
|
const updatedCacheControl = buildInvalidatedCacheControl(
|
|
2702
2702
|
existing.metadata.cacheControl
|
|
2703
2703
|
);
|
|
2704
2704
|
return updatedCacheControl !== void 0 ? { type: "metadata", metadata: updatedCacheControl } : { type: "no-op" };
|
|
2705
|
+
}
|
|
2705
2706
|
default:
|
|
2706
2707
|
throw new Error(`Invalid update operation: ${update.type}`);
|
|
2707
2708
|
}
|
|
@@ -2716,6 +2717,7 @@ function buildInvalidatedCacheControl(existingCacheControl) {
|
|
|
2716
2717
|
maxAge: 0
|
|
2717
2718
|
};
|
|
2718
2719
|
}
|
|
2720
|
+
break;
|
|
2719
2721
|
}
|
|
2720
2722
|
return void 0;
|
|
2721
2723
|
}
|
|
@@ -2942,7 +2944,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
2942
2944
|
};
|
|
2943
2945
|
}
|
|
2944
2946
|
responseHasErrors(data) {
|
|
2945
|
-
return data.
|
|
2947
|
+
return data.errors && data.errors.length > 0;
|
|
2946
2948
|
}
|
|
2947
2949
|
processAuraReturnValue(auraReturnValue) {
|
|
2948
2950
|
if (this.responseHasErrors(auraReturnValue)) {
|
|
@@ -3170,7 +3172,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
3170
3172
|
return { data: data.data, ...extensionResult.value };
|
|
3171
3173
|
}
|
|
3172
3174
|
processFetchReturnValue(json) {
|
|
3173
|
-
if (json.
|
|
3175
|
+
if (json.errors && json.errors.length > 0) {
|
|
3174
3176
|
return err$1(new UserVisibleError(json));
|
|
3175
3177
|
}
|
|
3176
3178
|
return ok$2(json);
|
|
@@ -3243,7 +3245,7 @@ class NDJSONParsingStream extends TransformStream {
|
|
|
3243
3245
|
try {
|
|
3244
3246
|
const parsed = JSON.parse(trimmed);
|
|
3245
3247
|
controller.enqueue(parsed);
|
|
3246
|
-
} catch
|
|
3248
|
+
} catch {
|
|
3247
3249
|
throw new Error(`Invalid NDJSON line: ${line}`);
|
|
3248
3250
|
}
|
|
3249
3251
|
}
|
|
@@ -3254,7 +3256,7 @@ class NDJSONParsingStream extends TransformStream {
|
|
|
3254
3256
|
try {
|
|
3255
3257
|
const parsed = JSON.parse(trimmed);
|
|
3256
3258
|
controller.enqueue(parsed);
|
|
3257
|
-
} catch
|
|
3259
|
+
} catch {
|
|
3258
3260
|
throw new Error(`Invalid NDJSON final line: ${partialLine}`);
|
|
3259
3261
|
}
|
|
3260
3262
|
}
|
|
@@ -3312,7 +3314,7 @@ function buildServiceDescriptor$9(luvio) {
|
|
|
3312
3314
|
},
|
|
3313
3315
|
};
|
|
3314
3316
|
}
|
|
3315
|
-
// version: 1.
|
|
3317
|
+
// version: 1.418.0-68f5961c99
|
|
3316
3318
|
|
|
3317
3319
|
/**
|
|
3318
3320
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3338,7 +3340,7 @@ function buildServiceDescriptor$8(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
3338
3340
|
},
|
|
3339
3341
|
};
|
|
3340
3342
|
}
|
|
3341
|
-
// version: 1.
|
|
3343
|
+
// version: 1.418.0-68f5961c99
|
|
3342
3344
|
|
|
3343
3345
|
/*!
|
|
3344
3346
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4446,13 +4448,17 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
|
|
|
4446
4448
|
this.refresh().then((res) => {
|
|
4447
4449
|
if (res.isOk()) {
|
|
4448
4450
|
resolve();
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
);
|
|
4451
|
+
return;
|
|
4452
|
+
}
|
|
4453
|
+
if (isUserVisibleError$1(res.error)) {
|
|
4454
|
+
resolve();
|
|
4455
|
+
return;
|
|
4455
4456
|
}
|
|
4457
|
+
reject(
|
|
4458
|
+
new Error(
|
|
4459
|
+
"Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
|
|
4460
|
+
)
|
|
4461
|
+
);
|
|
4456
4462
|
});
|
|
4457
4463
|
});
|
|
4458
4464
|
};
|
|
@@ -5190,4 +5196,4 @@ withDefaultLuvio((luvio) => {
|
|
|
5190
5196
|
];
|
|
5191
5197
|
setServices(services);
|
|
5192
5198
|
});
|
|
5193
|
-
// version: 1.
|
|
5199
|
+
// version: 1.418.0-b4def2b6ce
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-webruntime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.418.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Webruntime runtime",
|
|
6
6
|
"main": "dist/ldsWebruntimeOneStoreInit.js",
|
|
@@ -35,38 +35,38 @@
|
|
|
35
35
|
"ready": "yarn build && jest --collectCoverage && yarn test:size && yarn release:corejar"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@conduit-client/service-provisioner": "3.
|
|
39
|
-
"@conduit-client/tools-core": "3.
|
|
38
|
+
"@conduit-client/service-provisioner": "3.14.0",
|
|
39
|
+
"@conduit-client/tools-core": "3.14.0",
|
|
40
40
|
"jwt-encode": "1.0.1"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@conduit-client/command-aura-network": "3.
|
|
44
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.
|
|
45
|
-
"@conduit-client/command-aura-resource-cache-control": "3.
|
|
46
|
-
"@conduit-client/command-fetch-network": "3.
|
|
47
|
-
"@conduit-client/command-http-normalized-cache-control": "3.
|
|
48
|
-
"@conduit-client/command-ndjson": "3.
|
|
49
|
-
"@conduit-client/command-network": "3.
|
|
50
|
-
"@conduit-client/command-sse": "3.
|
|
51
|
-
"@conduit-client/command-streaming": "3.
|
|
52
|
-
"@conduit-client/jwt-manager": "3.
|
|
53
|
-
"@conduit-client/service-aura-network": "3.
|
|
54
|
-
"@conduit-client/service-bindings-imperative": "3.
|
|
55
|
-
"@conduit-client/service-bindings-lwc": "3.
|
|
56
|
-
"@conduit-client/service-cache": "3.
|
|
57
|
-
"@conduit-client/service-cache-control": "3.
|
|
58
|
-
"@conduit-client/service-cache-inclusion-policy": "3.
|
|
59
|
-
"@conduit-client/service-fetch-network": "3.
|
|
60
|
-
"@conduit-client/service-instrument-command": "3.
|
|
61
|
-
"@conduit-client/service-pubsub": "3.
|
|
62
|
-
"@conduit-client/service-store": "3.
|
|
63
|
-
"@conduit-client/utils": "3.
|
|
64
|
-
"@luvio/network-adapter-composable": "0.
|
|
65
|
-
"@luvio/network-adapter-fetch": "0.
|
|
43
|
+
"@conduit-client/command-aura-network": "3.14.0",
|
|
44
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.14.0",
|
|
45
|
+
"@conduit-client/command-aura-resource-cache-control": "3.14.0",
|
|
46
|
+
"@conduit-client/command-fetch-network": "3.14.0",
|
|
47
|
+
"@conduit-client/command-http-normalized-cache-control": "3.14.0",
|
|
48
|
+
"@conduit-client/command-ndjson": "3.14.0",
|
|
49
|
+
"@conduit-client/command-network": "3.14.0",
|
|
50
|
+
"@conduit-client/command-sse": "3.14.0",
|
|
51
|
+
"@conduit-client/command-streaming": "3.14.0",
|
|
52
|
+
"@conduit-client/jwt-manager": "3.14.0",
|
|
53
|
+
"@conduit-client/service-aura-network": "3.14.0",
|
|
54
|
+
"@conduit-client/service-bindings-imperative": "3.14.0",
|
|
55
|
+
"@conduit-client/service-bindings-lwc": "3.14.0",
|
|
56
|
+
"@conduit-client/service-cache": "3.14.0",
|
|
57
|
+
"@conduit-client/service-cache-control": "3.14.0",
|
|
58
|
+
"@conduit-client/service-cache-inclusion-policy": "3.14.0",
|
|
59
|
+
"@conduit-client/service-fetch-network": "3.14.0",
|
|
60
|
+
"@conduit-client/service-instrument-command": "3.14.0",
|
|
61
|
+
"@conduit-client/service-pubsub": "3.14.0",
|
|
62
|
+
"@conduit-client/service-store": "3.14.0",
|
|
63
|
+
"@conduit-client/utils": "3.14.0",
|
|
64
|
+
"@luvio/network-adapter-composable": "0.160.1",
|
|
65
|
+
"@luvio/network-adapter-fetch": "0.160.1",
|
|
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.418.0",
|
|
68
|
+
"@salesforce/lds-luvio-service": "^1.418.0",
|
|
69
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.418.0"
|
|
70
70
|
},
|
|
71
71
|
"luvioBundlesize": [
|
|
72
72
|
{
|