@salesforce/core-bundle 8.5.1 → 8.5.2
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/lib/index.js +195 -160
- package/lib/transformStream.js +3 -3
- package/package.json +2 -2
package/lib/index.js
CHANGED
@@ -38,27 +38,36 @@ var require_is = __commonJS({
|
|
38
38
|
"node_modules/@salesforce/ts-types/lib/narrowing/is.js"(exports2) {
|
39
39
|
"use strict";
|
40
40
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
41
|
-
exports2.
|
41
|
+
exports2.isString = isString;
|
42
|
+
exports2.isNumber = isNumber;
|
43
|
+
exports2.isBoolean = isBoolean;
|
44
|
+
exports2.isObject = isObject;
|
45
|
+
exports2.isFunction = isFunction;
|
46
|
+
exports2.isPlainObject = isPlainObject;
|
47
|
+
exports2.isDictionary = isDictionary;
|
48
|
+
exports2.isInstance = isInstance;
|
49
|
+
exports2.isClassAssignableTo = isClassAssignableTo;
|
50
|
+
exports2.isArray = isArray;
|
51
|
+
exports2.isArrayLike = isArrayLike;
|
52
|
+
exports2.isAnyJson = isAnyJson;
|
53
|
+
exports2.isJsonMap = isJsonMap;
|
54
|
+
exports2.isJsonArray = isJsonArray;
|
55
|
+
exports2.isKeyOf = isKeyOf;
|
42
56
|
function isString(value) {
|
43
57
|
return typeof value === "string";
|
44
58
|
}
|
45
|
-
exports2.isString = isString;
|
46
59
|
function isNumber(value) {
|
47
60
|
return typeof value === "number";
|
48
61
|
}
|
49
|
-
exports2.isNumber = isNumber;
|
50
62
|
function isBoolean(value) {
|
51
63
|
return typeof value === "boolean";
|
52
64
|
}
|
53
|
-
exports2.isBoolean = isBoolean;
|
54
65
|
function isObject(value) {
|
55
66
|
return value != null && (typeof value === "object" || typeof value === "function");
|
56
67
|
}
|
57
|
-
exports2.isObject = isObject;
|
58
68
|
function isFunction(value) {
|
59
69
|
return typeof value === "function";
|
60
70
|
}
|
61
|
-
exports2.isFunction = isFunction;
|
62
71
|
function isPlainObject(value) {
|
63
72
|
const isObjectObject = (o) => isObject(o) && Object.prototype.toString.call(o) === "[object Object]";
|
64
73
|
if (!isObjectObject(value))
|
@@ -72,45 +81,35 @@ var require_is = __commonJS({
|
|
72
81
|
return false;
|
73
82
|
return true;
|
74
83
|
}
|
75
|
-
exports2.isPlainObject = isPlainObject;
|
76
84
|
function isDictionary(value) {
|
77
85
|
return isPlainObject(value);
|
78
86
|
}
|
79
|
-
exports2.isDictionary = isDictionary;
|
80
87
|
function isInstance(value, ctor) {
|
81
88
|
return value instanceof ctor;
|
82
89
|
}
|
83
|
-
exports2.isInstance = isInstance;
|
84
90
|
function isClassAssignableTo(value, cls) {
|
85
91
|
const has = (v, k) => isObject(v) && k in v;
|
86
92
|
return value === cls || has(value, "prototype") && value.prototype instanceof cls;
|
87
93
|
}
|
88
|
-
exports2.isClassAssignableTo = isClassAssignableTo;
|
89
94
|
function isArray(value) {
|
90
95
|
return Array.isArray(value);
|
91
96
|
}
|
92
|
-
exports2.isArray = isArray;
|
93
97
|
function isArrayLike(value) {
|
94
98
|
const hasLength = (v) => isObject(v) && "length" in v;
|
95
99
|
return !isFunction(value) && (isString(value) || hasLength(value));
|
96
100
|
}
|
97
|
-
exports2.isArrayLike = isArrayLike;
|
98
101
|
function isAnyJson(value) {
|
99
102
|
return value === null || isString(value) || isNumber(value) || isBoolean(value) || isPlainObject(value) || isArray(value);
|
100
103
|
}
|
101
|
-
exports2.isAnyJson = isAnyJson;
|
102
104
|
function isJsonMap(value) {
|
103
105
|
return isPlainObject(value);
|
104
106
|
}
|
105
|
-
exports2.isJsonMap = isJsonMap;
|
106
107
|
function isJsonArray(value) {
|
107
108
|
return isArray(value);
|
108
109
|
}
|
109
|
-
exports2.isJsonArray = isJsonArray;
|
110
110
|
function isKeyOf(obj, key) {
|
111
111
|
return Object.keys(obj).includes(key);
|
112
112
|
}
|
113
|
-
exports2.isKeyOf = isKeyOf;
|
114
113
|
}
|
115
114
|
});
|
116
115
|
|
@@ -119,52 +118,51 @@ var require_as = __commonJS({
|
|
119
118
|
"node_modules/@salesforce/ts-types/lib/narrowing/as.js"(exports2) {
|
120
119
|
"use strict";
|
121
120
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
122
|
-
exports2.
|
121
|
+
exports2.asString = asString;
|
122
|
+
exports2.asNumber = asNumber;
|
123
|
+
exports2.asBoolean = asBoolean;
|
124
|
+
exports2.asObject = asObject;
|
125
|
+
exports2.asPlainObject = asPlainObject;
|
126
|
+
exports2.asDictionary = asDictionary;
|
127
|
+
exports2.asInstance = asInstance;
|
128
|
+
exports2.asArray = asArray;
|
129
|
+
exports2.asFunction = asFunction;
|
130
|
+
exports2.asJsonMap = asJsonMap;
|
131
|
+
exports2.asJsonArray = asJsonArray;
|
123
132
|
var is_1 = require_is();
|
124
133
|
function asString(value, defaultValue) {
|
125
134
|
return (0, is_1.isString)(value) ? value : defaultValue;
|
126
135
|
}
|
127
|
-
exports2.asString = asString;
|
128
136
|
function asNumber(value, defaultValue) {
|
129
137
|
return (0, is_1.isNumber)(value) ? value : defaultValue;
|
130
138
|
}
|
131
|
-
exports2.asNumber = asNumber;
|
132
139
|
function asBoolean(value, defaultValue) {
|
133
140
|
return (0, is_1.isBoolean)(value) ? value : defaultValue;
|
134
141
|
}
|
135
|
-
exports2.asBoolean = asBoolean;
|
136
142
|
function asObject(value, defaultValue) {
|
137
143
|
return (0, is_1.isObject)(value) ? value : defaultValue;
|
138
144
|
}
|
139
|
-
exports2.asObject = asObject;
|
140
145
|
function asPlainObject(value, defaultValue) {
|
141
146
|
return (0, is_1.isPlainObject)(value) ? value : defaultValue;
|
142
147
|
}
|
143
|
-
exports2.asPlainObject = asPlainObject;
|
144
148
|
function asDictionary(value, defaultValue) {
|
145
149
|
return (0, is_1.isDictionary)(value) ? value : defaultValue;
|
146
150
|
}
|
147
|
-
exports2.asDictionary = asDictionary;
|
148
151
|
function asInstance(value, ctor, defaultValue) {
|
149
152
|
return (0, is_1.isInstance)(value, ctor) ? value : defaultValue;
|
150
153
|
}
|
151
|
-
exports2.asInstance = asInstance;
|
152
154
|
function asArray(value, defaultValue) {
|
153
155
|
return (0, is_1.isArray)(value) ? value : defaultValue;
|
154
156
|
}
|
155
|
-
exports2.asArray = asArray;
|
156
157
|
function asFunction(value, defaultValue) {
|
157
158
|
return (0, is_1.isFunction)(value) ? value : defaultValue;
|
158
159
|
}
|
159
|
-
exports2.asFunction = asFunction;
|
160
160
|
function asJsonMap(value, defaultValue) {
|
161
161
|
return (0, is_1.isJsonMap)(value) ? value : defaultValue;
|
162
162
|
}
|
163
|
-
exports2.asJsonMap = asJsonMap;
|
164
163
|
function asJsonArray(value, defaultValue) {
|
165
164
|
return (0, is_1.isJsonArray)(value) ? value : defaultValue;
|
166
165
|
}
|
167
|
-
exports2.asJsonArray = asJsonArray;
|
168
166
|
}
|
169
167
|
});
|
170
168
|
|
@@ -175,6 +173,7 @@ var require_errors = __commonJS({
|
|
175
173
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
176
174
|
exports2.JsonCloneError = exports2.UnexpectedValueTypeError = exports2.AssertionFailedError = exports2.NamedError = void 0;
|
177
175
|
var NamedError = class extends Error {
|
176
|
+
name;
|
178
177
|
constructor(name, message) {
|
179
178
|
super(message);
|
180
179
|
this.name = name;
|
@@ -207,7 +206,9 @@ var require_to = __commonJS({
|
|
207
206
|
"node_modules/@salesforce/ts-types/lib/narrowing/to.js"(exports2) {
|
208
207
|
"use strict";
|
209
208
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
210
|
-
exports2.
|
209
|
+
exports2.toAnyJson = toAnyJson;
|
210
|
+
exports2.toJsonMap = toJsonMap;
|
211
|
+
exports2.toJsonArray = toJsonArray;
|
211
212
|
var errors_1 = require_errors();
|
212
213
|
var as_1 = require_as();
|
213
214
|
function toAnyJson(value, defaultValue) {
|
@@ -217,15 +218,12 @@ var require_to = __commonJS({
|
|
217
218
|
throw new errors_1.JsonCloneError(err);
|
218
219
|
}
|
219
220
|
}
|
220
|
-
exports2.toAnyJson = toAnyJson;
|
221
221
|
function toJsonMap(value, defaultValue) {
|
222
222
|
return (0, as_1.asJsonMap)(toAnyJson(value)) ?? defaultValue;
|
223
223
|
}
|
224
|
-
exports2.toJsonMap = toJsonMap;
|
225
224
|
function toJsonArray(value, defaultValue) {
|
226
225
|
return (0, as_1.asJsonArray)(toAnyJson(value)) ?? defaultValue;
|
227
226
|
}
|
228
|
-
exports2.toJsonArray = toJsonArray;
|
229
227
|
}
|
230
228
|
});
|
231
229
|
|
@@ -234,7 +232,20 @@ var require_assert = __commonJS({
|
|
234
232
|
"node_modules/@salesforce/ts-types/lib/narrowing/assert.js"(exports2) {
|
235
233
|
"use strict";
|
236
234
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
237
|
-
exports2.
|
235
|
+
exports2.assert = assert;
|
236
|
+
exports2.assertNonNull = assertNonNull;
|
237
|
+
exports2.assertString = assertString;
|
238
|
+
exports2.assertNumber = assertNumber;
|
239
|
+
exports2.assertBoolean = assertBoolean;
|
240
|
+
exports2.assertObject = assertObject;
|
241
|
+
exports2.assertPlainObject = assertPlainObject;
|
242
|
+
exports2.assertDictionary = assertDictionary;
|
243
|
+
exports2.assertInstance = assertInstance;
|
244
|
+
exports2.assertArray = assertArray;
|
245
|
+
exports2.assertFunction = assertFunction;
|
246
|
+
exports2.assertAnyJson = assertAnyJson;
|
247
|
+
exports2.assertJsonMap = assertJsonMap;
|
248
|
+
exports2.assertJsonArray = assertJsonArray;
|
238
249
|
var errors_1 = require_errors();
|
239
250
|
var as_1 = require_as();
|
240
251
|
var to_1 = require_to();
|
@@ -243,59 +254,45 @@ var require_assert = __commonJS({
|
|
243
254
|
throw new errors_1.AssertionFailedError(message ?? "Assertion condition was false");
|
244
255
|
}
|
245
256
|
}
|
246
|
-
exports2.assert = assert;
|
247
257
|
function assertNonNull(value, message) {
|
248
258
|
assert(value != null, message ?? "Value is not defined");
|
249
259
|
}
|
250
|
-
exports2.assertNonNull = assertNonNull;
|
251
260
|
function assertString(value, message) {
|
252
261
|
assertNonNull((0, as_1.asString)(value), message ?? "Value is not a string");
|
253
262
|
}
|
254
|
-
exports2.assertString = assertString;
|
255
263
|
function assertNumber(value, message) {
|
256
264
|
assertNonNull((0, as_1.asNumber)(value), message ?? "Value is not a number");
|
257
265
|
}
|
258
|
-
exports2.assertNumber = assertNumber;
|
259
266
|
function assertBoolean(value, message) {
|
260
267
|
assertNonNull((0, as_1.asBoolean)(value), message ?? "Value is not a boolean");
|
261
268
|
}
|
262
|
-
exports2.assertBoolean = assertBoolean;
|
263
269
|
function assertObject(value, message) {
|
264
270
|
assertNonNull((0, as_1.asObject)(value), message ?? "Value is not an object");
|
265
271
|
}
|
266
|
-
exports2.assertObject = assertObject;
|
267
272
|
function assertPlainObject(value, message) {
|
268
273
|
assertNonNull((0, as_1.asPlainObject)(value), message ?? "Value is not a plain object");
|
269
274
|
}
|
270
|
-
exports2.assertPlainObject = assertPlainObject;
|
271
275
|
function assertDictionary(value, message) {
|
272
276
|
assertNonNull((0, as_1.asDictionary)(value), message ?? "Value is not a dictionary object");
|
273
277
|
}
|
274
|
-
exports2.assertDictionary = assertDictionary;
|
275
278
|
function assertInstance(value, ctor, message) {
|
276
279
|
assertNonNull((0, as_1.asInstance)(value, ctor), message ?? `Value is not an instance of ${ctor.name}`);
|
277
280
|
}
|
278
|
-
exports2.assertInstance = assertInstance;
|
279
281
|
function assertArray(value, message) {
|
280
282
|
assertNonNull((0, as_1.asArray)(value), message ?? "Value is not an array");
|
281
283
|
}
|
282
|
-
exports2.assertArray = assertArray;
|
283
284
|
function assertFunction(value, message) {
|
284
285
|
assertNonNull((0, as_1.asFunction)(value), message ?? "Value is not a function");
|
285
286
|
}
|
286
|
-
exports2.assertFunction = assertFunction;
|
287
287
|
function assertAnyJson(value, message) {
|
288
288
|
assertNonNull((0, to_1.toAnyJson)(value), message ?? "Value is not a JSON-compatible value type");
|
289
289
|
}
|
290
|
-
exports2.assertAnyJson = assertAnyJson;
|
291
290
|
function assertJsonMap(value, message) {
|
292
291
|
assertNonNull((0, as_1.asJsonMap)(value), message ?? "Value is not a JsonMap");
|
293
292
|
}
|
294
|
-
exports2.assertJsonMap = assertJsonMap;
|
295
293
|
function assertJsonArray(value, message) {
|
296
294
|
assertNonNull((0, as_1.asJsonArray)(value), message ?? "Value is not a JsonArray");
|
297
295
|
}
|
298
|
-
exports2.assertJsonArray = assertJsonArray;
|
299
296
|
}
|
300
297
|
});
|
301
298
|
|
@@ -304,21 +301,20 @@ var require_coerce = __commonJS({
|
|
304
301
|
"node_modules/@salesforce/ts-types/lib/narrowing/coerce.js"(exports2) {
|
305
302
|
"use strict";
|
306
303
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
307
|
-
exports2.
|
304
|
+
exports2.coerceAnyJson = coerceAnyJson;
|
305
|
+
exports2.coerceJsonMap = coerceJsonMap;
|
306
|
+
exports2.coerceJsonArray = coerceJsonArray;
|
308
307
|
var as_1 = require_as();
|
309
308
|
var is_1 = require_is();
|
310
309
|
function coerceAnyJson(value, defaultValue) {
|
311
310
|
return (0, is_1.isAnyJson)(value) ? value : defaultValue;
|
312
311
|
}
|
313
|
-
exports2.coerceAnyJson = coerceAnyJson;
|
314
312
|
function coerceJsonMap(value, defaultValue) {
|
315
313
|
return (0, as_1.asJsonMap)(coerceAnyJson(value)) ?? defaultValue;
|
316
314
|
}
|
317
|
-
exports2.coerceJsonMap = coerceJsonMap;
|
318
315
|
function coerceJsonArray(value, defaultValue) {
|
319
316
|
return (0, as_1.asJsonArray)(coerceAnyJson(value)) ?? defaultValue;
|
320
317
|
}
|
321
|
-
exports2.coerceJsonArray = coerceJsonArray;
|
322
318
|
}
|
323
319
|
});
|
324
320
|
|
@@ -327,7 +323,19 @@ var require_ensure = __commonJS({
|
|
327
323
|
"node_modules/@salesforce/ts-types/lib/narrowing/ensure.js"(exports2) {
|
328
324
|
"use strict";
|
329
325
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
330
|
-
exports2.
|
326
|
+
exports2.ensure = ensure;
|
327
|
+
exports2.ensureString = ensureString;
|
328
|
+
exports2.ensureNumber = ensureNumber;
|
329
|
+
exports2.ensureBoolean = ensureBoolean;
|
330
|
+
exports2.ensureObject = ensureObject;
|
331
|
+
exports2.ensurePlainObject = ensurePlainObject;
|
332
|
+
exports2.ensureDictionary = ensureDictionary;
|
333
|
+
exports2.ensureInstance = ensureInstance;
|
334
|
+
exports2.ensureArray = ensureArray;
|
335
|
+
exports2.ensureFunction = ensureFunction;
|
336
|
+
exports2.ensureAnyJson = ensureAnyJson;
|
337
|
+
exports2.ensureJsonMap = ensureJsonMap;
|
338
|
+
exports2.ensureJsonArray = ensureJsonArray;
|
331
339
|
var errors_1 = require_errors();
|
332
340
|
var as_1 = require_as();
|
333
341
|
var to_1 = require_to();
|
@@ -337,55 +345,42 @@ var require_ensure = __commonJS({
|
|
337
345
|
}
|
338
346
|
return value;
|
339
347
|
}
|
340
|
-
exports2.ensure = ensure;
|
341
348
|
function ensureString(value, message) {
|
342
349
|
return ensure((0, as_1.asString)(value), message ?? "Value is not a string");
|
343
350
|
}
|
344
|
-
exports2.ensureString = ensureString;
|
345
351
|
function ensureNumber(value, message) {
|
346
352
|
return ensure((0, as_1.asNumber)(value), message ?? "Value is not a number");
|
347
353
|
}
|
348
|
-
exports2.ensureNumber = ensureNumber;
|
349
354
|
function ensureBoolean(value, message) {
|
350
355
|
return ensure((0, as_1.asBoolean)(value), message ?? "Value is not a boolean");
|
351
356
|
}
|
352
|
-
exports2.ensureBoolean = ensureBoolean;
|
353
357
|
function ensureObject(value, message) {
|
354
358
|
return ensure((0, as_1.asObject)(value), message ?? "Value is not an object");
|
355
359
|
}
|
356
|
-
exports2.ensureObject = ensureObject;
|
357
360
|
function ensurePlainObject(value, message) {
|
358
361
|
return ensure((0, as_1.asPlainObject)(value), message ?? "Value is not a plain object");
|
359
362
|
}
|
360
|
-
exports2.ensurePlainObject = ensurePlainObject;
|
361
363
|
function ensureDictionary(value, message) {
|
362
364
|
return ensure((0, as_1.asDictionary)(value), message ?? "Value is not a dictionary object");
|
363
365
|
}
|
364
|
-
exports2.ensureDictionary = ensureDictionary;
|
365
366
|
function ensureInstance(value, ctor, message) {
|
366
367
|
return ensure((0, as_1.asInstance)(value, ctor), message ?? `Value is not an instance of ${ctor.name}`);
|
367
368
|
}
|
368
|
-
exports2.ensureInstance = ensureInstance;
|
369
369
|
function ensureArray(value, message) {
|
370
370
|
return ensure((0, as_1.asArray)(value), message ?? "Value is not an array");
|
371
371
|
}
|
372
|
-
exports2.ensureArray = ensureArray;
|
373
372
|
function ensureFunction(value, message) {
|
374
373
|
return ensure((0, as_1.asFunction)(value), message ?? "Value is not a function");
|
375
374
|
}
|
376
|
-
exports2.ensureFunction = ensureFunction;
|
377
375
|
function ensureAnyJson(value, message) {
|
378
376
|
return ensure((0, to_1.toAnyJson)(value), message ?? "Value is not a JSON-compatible value type");
|
379
377
|
}
|
380
|
-
exports2.ensureAnyJson = ensureAnyJson;
|
381
378
|
function ensureJsonMap(value, message) {
|
382
379
|
return ensure((0, as_1.asJsonMap)(value), message ?? "Value is not a JsonMap");
|
383
380
|
}
|
384
|
-
exports2.ensureJsonMap = ensureJsonMap;
|
385
381
|
function ensureJsonArray(value, message) {
|
386
382
|
return ensure((0, as_1.asJsonArray)(value), message ?? "Value is not a JsonArray");
|
387
383
|
}
|
388
|
-
exports2.ensureJsonArray = ensureJsonArray;
|
389
384
|
}
|
390
385
|
});
|
391
386
|
|
@@ -394,60 +389,59 @@ var require_has = __commonJS({
|
|
394
389
|
"node_modules/@salesforce/ts-types/lib/narrowing/has.js"(exports2) {
|
395
390
|
"use strict";
|
396
391
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
397
|
-
exports2.
|
392
|
+
exports2.has = has;
|
393
|
+
exports2.hasString = hasString;
|
394
|
+
exports2.hasNumber = hasNumber;
|
395
|
+
exports2.hasBoolean = hasBoolean;
|
396
|
+
exports2.hasObject = hasObject;
|
397
|
+
exports2.hasPlainObject = hasPlainObject;
|
398
|
+
exports2.hasDictionary = hasDictionary;
|
399
|
+
exports2.hasInstance = hasInstance;
|
400
|
+
exports2.hasArray = hasArray;
|
401
|
+
exports2.hasFunction = hasFunction;
|
402
|
+
exports2.hasAnyJson = hasAnyJson;
|
403
|
+
exports2.hasJsonMap = hasJsonMap;
|
404
|
+
exports2.hasJsonArray = hasJsonArray;
|
398
405
|
var is_1 = require_is();
|
399
406
|
function has(value, keys2) {
|
400
407
|
return (0, is_1.isObject)(value) && ((0, is_1.isArray)(keys2) ? keys2.every((k) => k in value) : keys2 in value);
|
401
408
|
}
|
402
|
-
exports2.has = has;
|
403
409
|
function hasString(value, key) {
|
404
410
|
return has(value, key) && (0, is_1.isString)(value[key]);
|
405
411
|
}
|
406
|
-
exports2.hasString = hasString;
|
407
412
|
function hasNumber(value, key) {
|
408
413
|
return has(value, key) && (0, is_1.isNumber)(value[key]);
|
409
414
|
}
|
410
|
-
exports2.hasNumber = hasNumber;
|
411
415
|
function hasBoolean(value, key) {
|
412
416
|
return has(value, key) && (0, is_1.isBoolean)(value[key]);
|
413
417
|
}
|
414
|
-
exports2.hasBoolean = hasBoolean;
|
415
418
|
function hasObject(value, key) {
|
416
419
|
return has(value, key) && (0, is_1.isObject)(value[key]);
|
417
420
|
}
|
418
|
-
exports2.hasObject = hasObject;
|
419
421
|
function hasPlainObject(value, key) {
|
420
422
|
return has(value, key) && (0, is_1.isPlainObject)(value[key]);
|
421
423
|
}
|
422
|
-
exports2.hasPlainObject = hasPlainObject;
|
423
424
|
function hasDictionary(value, key) {
|
424
425
|
return has(value, key) && (0, is_1.isDictionary)(value[key]);
|
425
426
|
}
|
426
|
-
exports2.hasDictionary = hasDictionary;
|
427
427
|
function hasInstance(value, key, ctor) {
|
428
428
|
return has(value, key) && value[key] instanceof ctor;
|
429
429
|
}
|
430
|
-
exports2.hasInstance = hasInstance;
|
431
430
|
function hasArray(value, key) {
|
432
431
|
return has(value, key) && (0, is_1.isArray)(value[key]);
|
433
432
|
}
|
434
|
-
exports2.hasArray = hasArray;
|
435
433
|
function hasFunction(value, key) {
|
436
434
|
return has(value, key) && (0, is_1.isFunction)(value[key]);
|
437
435
|
}
|
438
|
-
exports2.hasFunction = hasFunction;
|
439
436
|
function hasAnyJson(value, key) {
|
440
437
|
return has(value, key) && (0, is_1.isAnyJson)(value[key]);
|
441
438
|
}
|
442
|
-
exports2.hasAnyJson = hasAnyJson;
|
443
439
|
function hasJsonMap(value, key) {
|
444
440
|
return hasAnyJson(value, key) && (0, is_1.isJsonMap)(value[key]);
|
445
441
|
}
|
446
|
-
exports2.hasJsonMap = hasJsonMap;
|
447
442
|
function hasJsonArray(value, key) {
|
448
443
|
return hasAnyJson(value, key) && (0, is_1.isJsonArray)(value[key]);
|
449
444
|
}
|
450
|
-
exports2.hasJsonArray = hasJsonArray;
|
451
445
|
}
|
452
446
|
});
|
453
447
|
|
@@ -456,11 +450,10 @@ var require_internal = __commonJS({
|
|
456
450
|
"node_modules/@salesforce/ts-types/lib/narrowing/internal.js"(exports2) {
|
457
451
|
"use strict";
|
458
452
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
459
|
-
exports2.valueOrDefault =
|
453
|
+
exports2.valueOrDefault = valueOrDefault;
|
460
454
|
function valueOrDefault(value, defaultValue) {
|
461
455
|
return value != null || defaultValue === void 0 ? value : defaultValue;
|
462
456
|
}
|
463
|
-
exports2.valueOrDefault = valueOrDefault;
|
464
457
|
}
|
465
458
|
});
|
466
459
|
|
@@ -469,7 +462,19 @@ var require_get = __commonJS({
|
|
469
462
|
"node_modules/@salesforce/ts-types/lib/narrowing/get.js"(exports2) {
|
470
463
|
"use strict";
|
471
464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
472
|
-
exports2.
|
465
|
+
exports2.get = get;
|
466
|
+
exports2.getString = getString;
|
467
|
+
exports2.getNumber = getNumber;
|
468
|
+
exports2.getBoolean = getBoolean;
|
469
|
+
exports2.getObject = getObject;
|
470
|
+
exports2.getPlainObject = getPlainObject;
|
471
|
+
exports2.getDictionary = getDictionary;
|
472
|
+
exports2.getInstance = getInstance;
|
473
|
+
exports2.getArray = getArray;
|
474
|
+
exports2.getFunction = getFunction;
|
475
|
+
exports2.getAnyJson = getAnyJson;
|
476
|
+
exports2.getJsonMap = getJsonMap;
|
477
|
+
exports2.getJsonArray = getJsonArray;
|
473
478
|
var as_1 = require_as();
|
474
479
|
var coerce_1 = require_coerce();
|
475
480
|
var has_1 = require_has();
|
@@ -477,55 +482,42 @@ var require_get = __commonJS({
|
|
477
482
|
function get(from, path, defaultValue) {
|
478
483
|
return (0, internal_1.valueOrDefault)(path.split(/['"]/).reduce((r, p, index) => index % 2 === 1 ? [...r, p] : [...r, ...p.split(/[.[\]]/)], []).filter((p) => !!p).reduce((r, p) => (0, has_1.has)(r, p) ? r[p] : void 0, from), defaultValue);
|
479
484
|
}
|
480
|
-
exports2.get = get;
|
481
485
|
function getString(from, path, defaultValue) {
|
482
486
|
return (0, internal_1.valueOrDefault)((0, as_1.asString)(get(from, path)), defaultValue);
|
483
487
|
}
|
484
|
-
exports2.getString = getString;
|
485
488
|
function getNumber(from, path, defaultValue) {
|
486
489
|
return (0, internal_1.valueOrDefault)((0, as_1.asNumber)(get(from, path)), defaultValue);
|
487
490
|
}
|
488
|
-
exports2.getNumber = getNumber;
|
489
491
|
function getBoolean(from, path, defaultValue) {
|
490
492
|
return (0, internal_1.valueOrDefault)((0, as_1.asBoolean)(get(from, path)), defaultValue);
|
491
493
|
}
|
492
|
-
exports2.getBoolean = getBoolean;
|
493
494
|
function getObject(from, path, defaultValue) {
|
494
495
|
return (0, internal_1.valueOrDefault)((0, as_1.asObject)(get(from, path)), defaultValue);
|
495
496
|
}
|
496
|
-
exports2.getObject = getObject;
|
497
497
|
function getPlainObject(from, path, defaultValue) {
|
498
498
|
return (0, internal_1.valueOrDefault)((0, as_1.asPlainObject)(get(from, path)), defaultValue);
|
499
499
|
}
|
500
|
-
exports2.getPlainObject = getPlainObject;
|
501
500
|
function getDictionary(from, path, defaultValue) {
|
502
501
|
return (0, internal_1.valueOrDefault)((0, as_1.asDictionary)(get(from, path)), defaultValue);
|
503
502
|
}
|
504
|
-
exports2.getDictionary = getDictionary;
|
505
503
|
function getInstance(from, path, ctor, defaultValue) {
|
506
504
|
return (0, internal_1.valueOrDefault)((0, as_1.asInstance)(get(from, path), ctor), defaultValue);
|
507
505
|
}
|
508
|
-
exports2.getInstance = getInstance;
|
509
506
|
function getArray(from, path, defaultValue) {
|
510
507
|
return (0, internal_1.valueOrDefault)((0, as_1.asArray)(get(from, path)), defaultValue);
|
511
508
|
}
|
512
|
-
exports2.getArray = getArray;
|
513
509
|
function getFunction(from, path, defaultValue) {
|
514
510
|
return (0, internal_1.valueOrDefault)((0, as_1.asFunction)(get(from, path)), defaultValue);
|
515
511
|
}
|
516
|
-
exports2.getFunction = getFunction;
|
517
512
|
function getAnyJson(from, path, defaultValue) {
|
518
513
|
return (0, internal_1.valueOrDefault)((0, coerce_1.coerceAnyJson)(get(from, path)), defaultValue);
|
519
514
|
}
|
520
|
-
exports2.getAnyJson = getAnyJson;
|
521
515
|
function getJsonMap(from, path, defaultValue) {
|
522
516
|
return (0, internal_1.valueOrDefault)((0, as_1.asJsonMap)(getAnyJson(from, path)), defaultValue);
|
523
517
|
}
|
524
|
-
exports2.getJsonMap = getJsonMap;
|
525
518
|
function getJsonArray(from, path, defaultValue) {
|
526
519
|
return (0, internal_1.valueOrDefault)((0, as_1.asJsonArray)(getAnyJson(from, path)), defaultValue);
|
527
520
|
}
|
528
|
-
exports2.getJsonArray = getJsonArray;
|
529
521
|
}
|
530
522
|
});
|
531
523
|
|
@@ -534,31 +526,30 @@ var require_object = __commonJS({
|
|
534
526
|
"node_modules/@salesforce/ts-types/lib/narrowing/object.js"(exports2) {
|
535
527
|
"use strict";
|
536
528
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
537
|
-
exports2.
|
529
|
+
exports2.keysOf = keysOf;
|
530
|
+
exports2.entriesOf = entriesOf;
|
531
|
+
exports2.valuesOf = valuesOf;
|
532
|
+
exports2.definiteEntriesOf = definiteEntriesOf;
|
533
|
+
exports2.definiteKeysOf = definiteKeysOf;
|
534
|
+
exports2.definiteValuesOf = definiteValuesOf;
|
538
535
|
function keysOf(obj) {
|
539
536
|
return Object.keys(obj ?? {});
|
540
537
|
}
|
541
|
-
exports2.keysOf = keysOf;
|
542
538
|
function entriesOf(obj) {
|
543
539
|
return Object.entries(obj ?? {});
|
544
540
|
}
|
545
|
-
exports2.entriesOf = entriesOf;
|
546
541
|
function valuesOf(obj) {
|
547
542
|
return Object.values(obj ?? {});
|
548
543
|
}
|
549
|
-
exports2.valuesOf = valuesOf;
|
550
544
|
function definiteEntriesOf(obj) {
|
551
545
|
return entriesOf(obj).filter((entry) => entry[1] != null);
|
552
546
|
}
|
553
|
-
exports2.definiteEntriesOf = definiteEntriesOf;
|
554
547
|
function definiteKeysOf(obj) {
|
555
548
|
return definiteEntriesOf(obj).map((entry) => entry[0]);
|
556
549
|
}
|
557
|
-
exports2.definiteKeysOf = definiteKeysOf;
|
558
550
|
function definiteValuesOf(obj) {
|
559
551
|
return definiteEntriesOf(obj).map((entry) => entry[1]);
|
560
552
|
}
|
561
|
-
exports2.definiteValuesOf = definiteValuesOf;
|
562
553
|
}
|
563
554
|
});
|
564
555
|
|
@@ -778,8 +769,31 @@ var require_duration = __commonJS({
|
|
778
769
|
"node_modules/@salesforce/kit/lib/duration.js"(exports2) {
|
779
770
|
"use strict";
|
780
771
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
781
|
-
exports2.
|
772
|
+
exports2.Duration = void 0;
|
773
|
+
exports2.sleep = sleep;
|
782
774
|
var Duration = class _Duration {
|
775
|
+
/**
|
776
|
+
* The number of milliseconds in one second.
|
777
|
+
*/
|
778
|
+
static MILLIS_IN_SECONDS = 1e3;
|
779
|
+
/**
|
780
|
+
* The number of seconds in one minute.
|
781
|
+
*/
|
782
|
+
static SECONDS_IN_MINUTE = 60;
|
783
|
+
/**
|
784
|
+
* The number of minutes in one hour.
|
785
|
+
*/
|
786
|
+
static MINUTES_IN_HOUR = 60;
|
787
|
+
/**
|
788
|
+
* The number of hours in one day.
|
789
|
+
*/
|
790
|
+
static HOURS_IN_DAY = 24;
|
791
|
+
/**
|
792
|
+
* The number of days in one week.
|
793
|
+
*/
|
794
|
+
static DAYS_IN_WEEK = 7;
|
795
|
+
quantity;
|
796
|
+
unit;
|
783
797
|
constructor(quantity, unit = _Duration.Unit.MINUTES) {
|
784
798
|
this.quantity = quantity;
|
785
799
|
this.unit = unit;
|
@@ -956,11 +970,6 @@ var require_duration = __commonJS({
|
|
956
970
|
}
|
957
971
|
};
|
958
972
|
exports2.Duration = Duration;
|
959
|
-
Duration.MILLIS_IN_SECONDS = 1e3;
|
960
|
-
Duration.SECONDS_IN_MINUTE = 60;
|
961
|
-
Duration.MINUTES_IN_HOUR = 60;
|
962
|
-
Duration.HOURS_IN_DAY = 24;
|
963
|
-
Duration.DAYS_IN_WEEK = 7;
|
964
973
|
(function(Duration2) {
|
965
974
|
let Unit;
|
966
975
|
(function(Unit2) {
|
@@ -989,7 +998,6 @@ var require_duration = __commonJS({
|
|
989
998
|
});
|
990
999
|
return Object.assign(promise, { interrupt: wake });
|
991
1000
|
}
|
992
|
-
exports2.sleep = sleep;
|
993
1001
|
var pluralize = (num, unit) => {
|
994
1002
|
const name = Duration.Unit[unit].toLowerCase();
|
995
1003
|
return `${num} ${num === 1 ? name.slice(0, name.length - 1) : name}`;
|
@@ -1003,7 +1011,10 @@ var require_errors2 = __commonJS({
|
|
1003
1011
|
"use strict";
|
1004
1012
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
1005
1013
|
exports2.InvalidDefaultEnvValueError = exports2.JsonDataFormatError = exports2.JsonStringifyError = exports2.JsonParseError = exports2.NamedError = void 0;
|
1014
|
+
var node_util_1 = require("node:util");
|
1006
1015
|
var NamedError = class extends Error {
|
1016
|
+
name;
|
1017
|
+
cause;
|
1007
1018
|
constructor(name, messageOrCause, cause) {
|
1008
1019
|
if (typeof messageOrCause === "string") {
|
1009
1020
|
super(messageOrCause);
|
@@ -1015,16 +1026,14 @@ var require_errors2 = __commonJS({
|
|
1015
1026
|
this.name = name;
|
1016
1027
|
}
|
1017
1028
|
get fullStack() {
|
1018
|
-
|
1019
|
-
const causedStack = this.cause?.fullStack ?? this.cause?.stack;
|
1020
|
-
if (causedStack) {
|
1021
|
-
stack = `${stack ? stack + "\n" : ""}Caused by: ${causedStack}`;
|
1022
|
-
}
|
1023
|
-
return stack;
|
1029
|
+
return (0, node_util_1.inspect)(this);
|
1024
1030
|
}
|
1025
1031
|
};
|
1026
1032
|
exports2.NamedError = NamedError;
|
1027
1033
|
var JsonParseError = class _JsonParseError extends NamedError {
|
1034
|
+
path;
|
1035
|
+
line;
|
1036
|
+
errorPortion;
|
1028
1037
|
constructor(cause, path, line, errorPortion) {
|
1029
1038
|
super("JsonParseError", _JsonParseError.format(cause, path, line, errorPortion), cause);
|
1030
1039
|
this.path = path;
|
@@ -2206,61 +2215,92 @@ var require_lodash = __commonJS({
|
|
2206
2215
|
var require_external = __commonJS({
|
2207
2216
|
"node_modules/@salesforce/kit/lib/nodash/external.js"(exports2) {
|
2208
2217
|
"use strict";
|
2218
|
+
var __createBinding3 = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
2219
|
+
if (k2 === void 0)
|
2220
|
+
k2 = k;
|
2221
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
2222
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
2223
|
+
desc = { enumerable: true, get: function() {
|
2224
|
+
return m[k];
|
2225
|
+
} };
|
2226
|
+
}
|
2227
|
+
Object.defineProperty(o, k2, desc);
|
2228
|
+
} : function(o, m, k, k2) {
|
2229
|
+
if (k2 === void 0)
|
2230
|
+
k2 = k;
|
2231
|
+
o[k2] = m[k];
|
2232
|
+
});
|
2233
|
+
var __setModuleDefault2 = exports2 && exports2.__setModuleDefault || (Object.create ? function(o, v) {
|
2234
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
2235
|
+
} : function(o, v) {
|
2236
|
+
o["default"] = v;
|
2237
|
+
});
|
2238
|
+
var __importStar2 = exports2 && exports2.__importStar || function(mod) {
|
2239
|
+
if (mod && mod.__esModule)
|
2240
|
+
return mod;
|
2241
|
+
var result = {};
|
2242
|
+
if (mod != null) {
|
2243
|
+
for (var k in mod)
|
2244
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
2245
|
+
__createBinding3(result, mod, k);
|
2246
|
+
}
|
2247
|
+
__setModuleDefault2(result, mod);
|
2248
|
+
return result;
|
2249
|
+
};
|
2209
2250
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
2210
|
-
exports2.
|
2211
|
-
|
2251
|
+
exports2.defaults = defaults;
|
2252
|
+
exports2.findKey = findKey;
|
2253
|
+
exports2.includes = includes;
|
2254
|
+
exports2.keyBy = keyBy;
|
2255
|
+
exports2.mapKeys = mapKeys;
|
2256
|
+
exports2.minBy = minBy;
|
2257
|
+
exports2.maxBy = maxBy;
|
2258
|
+
exports2.merge = merge;
|
2259
|
+
exports2.omit = omit;
|
2260
|
+
exports2.once = once;
|
2261
|
+
exports2.set = set;
|
2262
|
+
exports2.sortBy = sortBy;
|
2263
|
+
exports2.toNumber = toNumber;
|
2264
|
+
var _ = __importStar2(require_lodash());
|
2212
2265
|
function defaults(obj, ...otherArgs) {
|
2213
2266
|
return _.defaults(obj, ...otherArgs);
|
2214
2267
|
}
|
2215
|
-
exports2.defaults = defaults;
|
2216
2268
|
function findKey(obj, predicate) {
|
2217
2269
|
return _.findKey(obj, predicate);
|
2218
2270
|
}
|
2219
|
-
exports2.findKey = findKey;
|
2220
2271
|
function includes(collection, target, fromIndex) {
|
2221
2272
|
return _.includes(collection, target, fromIndex);
|
2222
2273
|
}
|
2223
|
-
exports2.includes = includes;
|
2224
2274
|
function keyBy(collection, iteratee) {
|
2225
2275
|
return _.keyBy(collection, iteratee);
|
2226
2276
|
}
|
2227
|
-
exports2.keyBy = keyBy;
|
2228
2277
|
function mapKeys(obj, iteratee) {
|
2229
2278
|
return _.mapKeys(obj, iteratee);
|
2230
2279
|
}
|
2231
|
-
exports2.mapKeys = mapKeys;
|
2232
2280
|
function minBy(collection, iteratee) {
|
2233
2281
|
return _.minBy(collection, iteratee);
|
2234
2282
|
}
|
2235
|
-
exports2.minBy = minBy;
|
2236
2283
|
function maxBy(collection, iteratee) {
|
2237
2284
|
return _.maxBy(collection, iteratee);
|
2238
2285
|
}
|
2239
|
-
exports2.maxBy = maxBy;
|
2240
2286
|
function merge(obj, ...otherArgs) {
|
2241
2287
|
return _.merge(obj, ...otherArgs);
|
2242
2288
|
}
|
2243
|
-
exports2.merge = merge;
|
2244
2289
|
function omit(obj, ...paths) {
|
2245
2290
|
return _.omit(obj, ...paths);
|
2246
2291
|
}
|
2247
|
-
exports2.omit = omit;
|
2248
2292
|
function once(func) {
|
2249
2293
|
return _.once(func);
|
2250
2294
|
}
|
2251
|
-
exports2.once = once;
|
2252
2295
|
function set(obj, path, value) {
|
2253
2296
|
return _.set(obj, path, value);
|
2254
2297
|
}
|
2255
|
-
exports2.set = set;
|
2256
2298
|
function sortBy(collection, ...iteratees) {
|
2257
2299
|
return _.sortBy(collection, ...iteratees);
|
2258
2300
|
}
|
2259
|
-
exports2.sortBy = sortBy;
|
2260
2301
|
function toNumber(value) {
|
2261
2302
|
return _.toNumber(value);
|
2262
2303
|
}
|
2263
|
-
exports2.toNumber = toNumber;
|
2264
2304
|
}
|
2265
2305
|
});
|
2266
2306
|
|
@@ -2269,7 +2309,12 @@ var require_internal2 = __commonJS({
|
|
2269
2309
|
"node_modules/@salesforce/kit/lib/nodash/internal.js"(exports2) {
|
2270
2310
|
"use strict";
|
2271
2311
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
2272
|
-
exports2.
|
2312
|
+
exports2.isEmpty = isEmpty;
|
2313
|
+
exports2.lowerFirst = lowerFirst;
|
2314
|
+
exports2.camelCaseToTitleCase = camelCaseToTitleCase;
|
2315
|
+
exports2.snakeCase = snakeCase;
|
2316
|
+
exports2.upperFirst = upperFirst;
|
2317
|
+
exports2.toBoolean = toBoolean;
|
2273
2318
|
var ts_types_1 = require_lib();
|
2274
2319
|
function isEmpty(value) {
|
2275
2320
|
if (value == null)
|
@@ -2286,23 +2331,18 @@ var require_internal2 = __commonJS({
|
|
2286
2331
|
return false;
|
2287
2332
|
return true;
|
2288
2333
|
}
|
2289
|
-
exports2.isEmpty = isEmpty;
|
2290
2334
|
function lowerFirst(value) {
|
2291
2335
|
return value && value.charAt(0).toLowerCase() + value.slice(1);
|
2292
2336
|
}
|
2293
|
-
exports2.lowerFirst = lowerFirst;
|
2294
2337
|
function camelCaseToTitleCase(text) {
|
2295
2338
|
return text.replace(/(^\w|\s\w)/g, (m) => m.toUpperCase()).replace(/([A-Z][a-z]+)/g, " $1").replace(/\s{2,}/g, " ").trim();
|
2296
2339
|
}
|
2297
|
-
exports2.camelCaseToTitleCase = camelCaseToTitleCase;
|
2298
2340
|
function snakeCase(str) {
|
2299
2341
|
return str?.replace(/([a-z])([A-Z])/g, "$1_$2").toLowerCase().replace(/\W/g, "_").replace(/^_+|_+$/g, "");
|
2300
2342
|
}
|
2301
|
-
exports2.snakeCase = snakeCase;
|
2302
2343
|
function upperFirst(value) {
|
2303
2344
|
return value && value.charAt(0).toUpperCase() + value.slice(1);
|
2304
2345
|
}
|
2305
|
-
exports2.upperFirst = upperFirst;
|
2306
2346
|
function toBoolean(value) {
|
2307
2347
|
switch (typeof value) {
|
2308
2348
|
case "boolean":
|
@@ -2313,7 +2353,6 @@ var require_internal2 = __commonJS({
|
|
2313
2353
|
return false;
|
2314
2354
|
}
|
2315
2355
|
}
|
2316
|
-
exports2.toBoolean = toBoolean;
|
2317
2356
|
}
|
2318
2357
|
});
|
2319
2358
|
|
@@ -2357,6 +2396,7 @@ var require_env = __commonJS({
|
|
2357
2396
|
var errors_1 = require_errors2();
|
2358
2397
|
var nodash_1 = require_nodash();
|
2359
2398
|
var Env = class {
|
2399
|
+
store;
|
2360
2400
|
constructor(store = process?.env || {}) {
|
2361
2401
|
this.store = store;
|
2362
2402
|
this.store = store;
|
@@ -2501,7 +2541,11 @@ var require_json2 = __commonJS({
|
|
2501
2541
|
"node_modules/@salesforce/kit/lib/json.js"(exports2) {
|
2502
2542
|
"use strict";
|
2503
2543
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
2504
|
-
exports2.
|
2544
|
+
exports2.parseJson = parseJson;
|
2545
|
+
exports2.parseJsonMap = parseJsonMap;
|
2546
|
+
exports2.cloneJson = cloneJson;
|
2547
|
+
exports2.getJsonValuesByName = getJsonValuesByName;
|
2548
|
+
exports2.jsonIncludes = jsonIncludes;
|
2505
2549
|
var ts_types_1 = require_lib();
|
2506
2550
|
var errors_1 = require_errors2();
|
2507
2551
|
function parseJson(data, jsonPath, throwOnEmpty = true) {
|
@@ -2514,7 +2558,6 @@ var require_json2 = __commonJS({
|
|
2514
2558
|
throw errors_1.JsonParseError.create(error, data, jsonPath);
|
2515
2559
|
}
|
2516
2560
|
}
|
2517
|
-
exports2.parseJson = parseJson;
|
2518
2561
|
function parseJsonMap(data, jsonPath, throwOnEmpty) {
|
2519
2562
|
const json = parseJson(data, jsonPath, throwOnEmpty);
|
2520
2563
|
if (json === null || (0, ts_types_1.isJsonArray)(json) || typeof json !== "object") {
|
@@ -2522,7 +2565,6 @@ var require_json2 = __commonJS({
|
|
2522
2565
|
}
|
2523
2566
|
return json;
|
2524
2567
|
}
|
2525
|
-
exports2.parseJsonMap = parseJsonMap;
|
2526
2568
|
function cloneJson(obj) {
|
2527
2569
|
try {
|
2528
2570
|
return JSON.parse(JSON.stringify(obj));
|
@@ -2533,7 +2575,6 @@ var require_json2 = __commonJS({
|
|
2533
2575
|
throw err;
|
2534
2576
|
}
|
2535
2577
|
}
|
2536
|
-
exports2.cloneJson = cloneJson;
|
2537
2578
|
function getJsonValuesByName(json, name) {
|
2538
2579
|
let matches = [];
|
2539
2580
|
if (Object.prototype.hasOwnProperty.call(json, name)) {
|
@@ -2547,7 +2588,6 @@ var require_json2 = __commonJS({
|
|
2547
2588
|
Object.values(json).forEach((value) => (0, ts_types_1.isJsonArray)(value) ? value.forEach(maybeRecurse) : maybeRecurse(value));
|
2548
2589
|
return matches;
|
2549
2590
|
}
|
2550
|
-
exports2.getJsonValuesByName = getJsonValuesByName;
|
2551
2591
|
function jsonIncludes(json, value) {
|
2552
2592
|
if (json == null || value === void 0 || (0, ts_types_1.isNumber)(json) || (0, ts_types_1.isBoolean)(json))
|
2553
2593
|
return false;
|
@@ -2559,7 +2599,6 @@ var require_json2 = __commonJS({
|
|
2559
2599
|
return json.includes(value);
|
2560
2600
|
return false;
|
2561
2601
|
}
|
2562
|
-
exports2.jsonIncludes = jsonIncludes;
|
2563
2602
|
}
|
2564
2603
|
});
|
2565
2604
|
|
@@ -2583,27 +2622,24 @@ var require_collections = __commonJS({
|
|
2583
2622
|
var require_throttledPromiseAll = __commonJS({
|
2584
2623
|
"node_modules/@salesforce/kit/lib/throttledPromiseAll.js"(exports2) {
|
2585
2624
|
"use strict";
|
2586
|
-
var __classPrivateFieldGet2 = exports2 && exports2.__classPrivateFieldGet || function(receiver, state, kind, f) {
|
2587
|
-
if (kind === "a" && !f)
|
2588
|
-
throw new TypeError("Private accessor was defined without a getter");
|
2589
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
2590
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
2591
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
2592
|
-
};
|
2593
|
-
var _ThrottledPromiseAll_results;
|
2594
2625
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
2595
2626
|
exports2.ThrottledPromiseAll = void 0;
|
2596
2627
|
var collections_1 = require_collections();
|
2597
2628
|
var duration_1 = require_duration();
|
2598
2629
|
var noCancel = () => false;
|
2599
2630
|
var ThrottledPromiseAll = class {
|
2631
|
+
queue;
|
2632
|
+
concurrency;
|
2633
|
+
wait;
|
2634
|
+
timeout;
|
2635
|
+
cancel;
|
2636
|
+
#results = [];
|
2600
2637
|
/**
|
2601
2638
|
* Construct a new ThrottledPromiseAll.
|
2602
2639
|
*
|
2603
2640
|
* @param options {@link PromiseOptions}
|
2604
2641
|
*/
|
2605
2642
|
constructor(options = { concurrency: 1 }) {
|
2606
|
-
_ThrottledPromiseAll_results.set(this, []);
|
2607
2643
|
this.queue = [];
|
2608
2644
|
this.concurrency = options.concurrency;
|
2609
2645
|
this.wait = options.timeout ?? duration_1.Duration.milliseconds(0);
|
@@ -2613,7 +2649,7 @@ var require_throttledPromiseAll = __commonJS({
|
|
2613
2649
|
* Returns the results of the promises that have been resolved.
|
2614
2650
|
*/
|
2615
2651
|
get results() {
|
2616
|
-
return
|
2652
|
+
return this.#results.sort((a, b) => (a?.index ?? 0) - (b?.index ?? 0)).map((r) => r?.result);
|
2617
2653
|
}
|
2618
2654
|
/**
|
2619
2655
|
* Add source items to the queue of promises to be resolved.
|
@@ -2692,15 +2728,14 @@ var require_throttledPromiseAll = __commonJS({
|
|
2692
2728
|
const r = await Promise.race(concurrencyPool.values());
|
2693
2729
|
const rIndex = r?.index ?? -1;
|
2694
2730
|
if (!concurrencyPool.has(rIndex)) {
|
2695
|
-
throw new Error(`PromiseQueue: Could not find index ${r?.index} in pool`);
|
2731
|
+
throw new Error(`PromiseQueue: Could not find index ${r?.index ?? "<undefined>"} in pool`);
|
2696
2732
|
}
|
2697
2733
|
concurrencyPool.delete(rIndex);
|
2698
|
-
|
2734
|
+
this.#results.push(r);
|
2699
2735
|
}
|
2700
2736
|
}
|
2701
2737
|
};
|
2702
2738
|
exports2.ThrottledPromiseAll = ThrottledPromiseAll;
|
2703
|
-
_ThrottledPromiseAll_results = /* @__PURE__ */ new WeakMap();
|
2704
2739
|
}
|
2705
2740
|
});
|
2706
2741
|
|
@@ -2709,7 +2744,8 @@ var require_settleAll = __commonJS({
|
|
2709
2744
|
"node_modules/@salesforce/kit/lib/settleAll.js"(exports2) {
|
2710
2745
|
"use strict";
|
2711
2746
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
2712
|
-
exports2.
|
2747
|
+
exports2.isRejected = exports2.isFulfilled = void 0;
|
2748
|
+
exports2.settleAll = settleAll;
|
2713
2749
|
var isFulfilled = (s) => s.status === "fulfilled";
|
2714
2750
|
exports2.isFulfilled = isFulfilled;
|
2715
2751
|
var isRejected = (s) => s.status === "rejected";
|
@@ -2721,7 +2757,6 @@ var require_settleAll = __commonJS({
|
|
2721
2757
|
rejected: allSettled.filter(exports2.isRejected).map((s) => s.reason)
|
2722
2758
|
};
|
2723
2759
|
}
|
2724
|
-
exports2.settleAll = settleAll;
|
2725
2760
|
}
|
2726
2761
|
});
|
2727
2762
|
|
@@ -4629,7 +4664,7 @@ var require_package = __commonJS({
|
|
4629
4664
|
"package.json"(exports2, module2) {
|
4630
4665
|
module2.exports = {
|
4631
4666
|
name: "@salesforce/core-bundle",
|
4632
|
-
version: "8.5.
|
4667
|
+
version: "8.5.2",
|
4633
4668
|
description: "Core libraries to interact with SFDX projects, orgs, and APIs.",
|
4634
4669
|
main: "lib/index",
|
4635
4670
|
types: "lib/index.d.ts",
|
@@ -4667,7 +4702,7 @@ var require_package = __commonJS({
|
|
4667
4702
|
],
|
4668
4703
|
dependencies: {
|
4669
4704
|
"@jsforce/jsforce-node": "^3.4.0",
|
4670
|
-
"@salesforce/kit": "^3.
|
4705
|
+
"@salesforce/kit": "^3.2.2",
|
4671
4706
|
"@salesforce/schemas": "^1.9.0",
|
4672
4707
|
"@salesforce/ts-types": "^2.0.10",
|
4673
4708
|
ajv: "^8.17.1",
|