@salesforce/lds-runtime-aura 1.319.0 → 1.320.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/ldsEngineCreator.js +43 -33
- package/package.json +23 -23
package/dist/ldsEngineCreator.js
CHANGED
|
@@ -130,9 +130,40 @@ let ConsoleLogger$1 = class ConsoleLogger {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
+
class Ok {
|
|
134
|
+
constructor(value) {
|
|
135
|
+
this.value = value;
|
|
136
|
+
}
|
|
137
|
+
isOk() {
|
|
138
|
+
return true;
|
|
139
|
+
}
|
|
140
|
+
isErr() {
|
|
141
|
+
return !this.isOk();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
class Err {
|
|
145
|
+
constructor(error) {
|
|
146
|
+
this.error = error;
|
|
147
|
+
}
|
|
148
|
+
isOk() {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
isErr() {
|
|
152
|
+
return !this.isOk();
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
const ok = (value) => new Ok(value);
|
|
156
|
+
const err = (err) => new Err(err);
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Returns a PromiseLike object that resolves with the specified result.
|
|
160
|
+
*
|
|
161
|
+
* @param result resolved result
|
|
162
|
+
* @returns
|
|
163
|
+
*/
|
|
133
164
|
function resolvedPromiseLike(result) {
|
|
134
165
|
// Don't nest anything promise like
|
|
135
|
-
if (
|
|
166
|
+
if (isPromiseLike(result)) {
|
|
136
167
|
return result.then((nextResult) => nextResult);
|
|
137
168
|
}
|
|
138
169
|
return {
|
|
@@ -157,7 +188,7 @@ function resolvedPromiseLike(result) {
|
|
|
157
188
|
* @returns PromiseLike that rejects with reason
|
|
158
189
|
*/
|
|
159
190
|
function rejectedPromiseLike(reason) {
|
|
160
|
-
if (
|
|
191
|
+
if (isPromiseLike(reason)) {
|
|
161
192
|
return reason.then((nextResult) => nextResult);
|
|
162
193
|
}
|
|
163
194
|
return {
|
|
@@ -175,11 +206,15 @@ function rejectedPromiseLike(reason) {
|
|
|
175
206
|
},
|
|
176
207
|
};
|
|
177
208
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
209
|
+
/**
|
|
210
|
+
* Indicates if an object is PromiseLike.
|
|
211
|
+
*
|
|
212
|
+
* @param x anything
|
|
213
|
+
* @returns true if x is PromiseLike; false if not
|
|
214
|
+
*/
|
|
215
|
+
function isPromiseLike(x) {
|
|
216
|
+
return typeof x === 'object' && typeof (x === null || x === void 0 ? void 0 : x.then) === 'function';
|
|
181
217
|
}
|
|
182
|
-
|
|
183
218
|
/**
|
|
184
219
|
* Converts an arbitrary value to an Error.
|
|
185
220
|
*
|
|
@@ -193,31 +228,6 @@ function toError(x) {
|
|
|
193
228
|
return new Error(typeof x === 'string' ? x : JSON.stringify(x));
|
|
194
229
|
}
|
|
195
230
|
|
|
196
|
-
class Ok {
|
|
197
|
-
constructor(value) {
|
|
198
|
-
this.value = value;
|
|
199
|
-
}
|
|
200
|
-
isOk() {
|
|
201
|
-
return true;
|
|
202
|
-
}
|
|
203
|
-
isErr() {
|
|
204
|
-
return !this.isOk();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
class Err {
|
|
208
|
-
constructor(error) {
|
|
209
|
-
this.error = error;
|
|
210
|
-
}
|
|
211
|
-
isOk() {
|
|
212
|
-
return false;
|
|
213
|
-
}
|
|
214
|
-
isErr() {
|
|
215
|
-
return !this.isOk();
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
const ok = (value) => new Ok(value);
|
|
219
|
-
const err = (err) => new Err(err);
|
|
220
|
-
|
|
221
231
|
/**
|
|
222
232
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
223
233
|
* All rights reserved.
|
|
@@ -4038,7 +4048,7 @@ function getEnvironmentSetting(name) {
|
|
|
4038
4048
|
}
|
|
4039
4049
|
return undefined;
|
|
4040
4050
|
}
|
|
4041
|
-
// version: 1.
|
|
4051
|
+
// version: 1.320.0-e3e5f3d984
|
|
4042
4052
|
|
|
4043
4053
|
const forceRecordTransactionsDisabled = getEnvironmentSetting(EnvironmentSettings.ForceRecordTransactionsDisabled);
|
|
4044
4054
|
//TODO: Some duplication here that can be most likely moved to a util class
|
|
@@ -4733,4 +4743,4 @@ function ldsEngineCreator() {
|
|
|
4733
4743
|
}
|
|
4734
4744
|
|
|
4735
4745
|
export { LexRequestStrategy, buildPredictorForContext, ldsEngineCreator as default, initializeLDS, initializeOneStore, registerRequestStrategy, saveRequestAsPrediction, unregisterRequestStrategy, whenPredictionsReady };
|
|
4736
|
-
// version: 1.
|
|
4746
|
+
// version: 1.320.0-85be789480
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-aura",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.320.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for Aura runtime",
|
|
6
6
|
"main": "dist/ldsEngineCreator.js",
|
|
@@ -34,33 +34,33 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-aura"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@luvio/service-broker": "5.
|
|
38
|
-
"@salesforce/lds-adapters-apex": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
37
|
+
"@luvio/service-broker": "5.11.0",
|
|
38
|
+
"@salesforce/lds-adapters-apex": "^1.320.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.320.0",
|
|
40
40
|
"@salesforce/lds-adapters-uiapi-lex": "^1.302.0",
|
|
41
|
-
"@salesforce/lds-ads-bridge": "^1.
|
|
42
|
-
"@salesforce/lds-aura-storage": "^1.
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
45
|
-
"@salesforce/lds-network-aura": "^1.
|
|
46
|
-
"@salesforce/lds-network-fetch-with-jwt": "^1.
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.320.0",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.320.0",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.320.0",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.320.0",
|
|
45
|
+
"@salesforce/lds-network-aura": "^1.320.0",
|
|
46
|
+
"@salesforce/lds-network-fetch-with-jwt": "^1.320.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@luvio/command-aura-network": "5.
|
|
50
|
-
"@luvio/command-fetch-network": "5.
|
|
51
|
-
"@luvio/command-network": "5.
|
|
52
|
-
"@luvio/command-sse": "5.
|
|
53
|
-
"@luvio/command-streaming": "5.
|
|
49
|
+
"@luvio/command-aura-network": "5.11.0",
|
|
50
|
+
"@luvio/command-fetch-network": "5.11.0",
|
|
51
|
+
"@luvio/command-network": "5.11.0",
|
|
52
|
+
"@luvio/command-sse": "5.11.0",
|
|
53
|
+
"@luvio/command-streaming": "5.11.0",
|
|
54
54
|
"@luvio/network-adapter-composable": "0.156.4",
|
|
55
55
|
"@luvio/network-adapter-fetch": "0.156.4",
|
|
56
|
-
"@luvio/service-aura-network": "5.
|
|
57
|
-
"@luvio/service-cache": "5.
|
|
58
|
-
"@luvio/service-cache-control": "5.
|
|
59
|
-
"@luvio/service-fetch-network": "5.
|
|
60
|
-
"@luvio/service-instrument-command": "5.
|
|
61
|
-
"@luvio/service-store": "5.
|
|
62
|
-
"@luvio/utils": "5.
|
|
63
|
-
"@salesforce/lds-adapters-uiapi-lex": "^1.
|
|
56
|
+
"@luvio/service-aura-network": "5.11.0",
|
|
57
|
+
"@luvio/service-cache": "5.11.0",
|
|
58
|
+
"@luvio/service-cache-control": "5.11.0",
|
|
59
|
+
"@luvio/service-fetch-network": "5.11.0",
|
|
60
|
+
"@luvio/service-instrument-command": "5.11.0",
|
|
61
|
+
"@luvio/service-store": "5.11.0",
|
|
62
|
+
"@luvio/utils": "5.11.0",
|
|
63
|
+
"@salesforce/lds-adapters-uiapi-lex": "^1.320.0"
|
|
64
64
|
},
|
|
65
65
|
"luvioBundlesize": [
|
|
66
66
|
{
|