storybook 10.0.0-beta.3 → 10.0.0-beta.5
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/_browser-chunks/Color-KPLIACXP.js +1569 -0
- package/dist/_browser-chunks/{chunk-YY5GICNT.js → chunk-6E2SHJSL.js} +175 -32
- package/dist/_browser-chunks/{chunk-MZNYTCNT.js → chunk-AM4PZYVQ.js} +10 -63
- package/dist/_browser-chunks/{chunk-YWDKX534.js → chunk-FA42P6MO.js} +49 -4
- package/dist/_browser-chunks/chunk-G33S6YM3.js +521 -0
- package/dist/_browser-chunks/chunk-GJ67EE65.js +67 -0
- package/dist/_browser-chunks/{chunk-4QPX7WIQ.js → chunk-JJZMHC3A.js} +57 -166
- package/dist/_browser-chunks/{chunk-MD2FTHCZ.js → chunk-JVSKG4YS.js} +3 -16
- package/dist/_browser-chunks/{chunk-E7VLET3C.js → chunk-KSCAWCCE.js} +3947 -4291
- package/dist/_browser-chunks/chunk-QK3L5AXO.js +372 -0
- package/dist/_browser-chunks/chunk-VUAFL5XK.js +20 -0
- package/dist/_browser-chunks/{chunk-T7RCAJIX.js → chunk-Y3M7TW6K.js} +43 -47
- package/dist/_browser-chunks/{chunk-PYK5ZTFK.js → chunk-YQV3EGQ5.js} +5 -5
- package/dist/_browser-chunks/{syntaxhighlighter-YYAA4CS4.js → syntaxhighlighter-RJW7FE3A.js} +3 -2
- package/dist/_node-chunks/{builder-manager-DXAEQZJB.js → builder-manager-ZTS4EIKQ.js} +18 -13
- package/dist/_node-chunks/camelcase-K3BM7RII.js +18 -0
- package/dist/_node-chunks/{chunk-XRAB2RZN.js → chunk-2VMDKLSW.js} +6 -6
- package/dist/_node-chunks/{chunk-EI44VA3U.js → chunk-3VVGIILJ.js} +8 -8
- package/dist/_node-chunks/{chunk-KQXC7XVZ.js → chunk-4KRR46V2.js} +50 -89
- package/dist/_node-chunks/{chunk-EVY6P65U.js → chunk-4VDRH7SM.js} +7 -7
- package/dist/_node-chunks/chunk-7LG5CLCT.js +18 -0
- package/dist/_node-chunks/{chunk-DNOOZ2LS.js → chunk-ACUNHBEO.js} +552 -717
- package/dist/_node-chunks/{camelcase-CMMT6PHY.js → chunk-AK5PHLUA.js} +9 -8
- package/dist/_node-chunks/{chunk-RUCPXDO3.js → chunk-D7SDB4XE.js} +223 -243
- package/dist/_node-chunks/chunk-DWJ7TV2O.js +62 -0
- package/dist/_node-chunks/chunk-DZJNLBBL.js +79 -0
- package/dist/_node-chunks/{chunk-5XVEWBRA.js → chunk-EIHJ5J3O.js} +8 -8
- package/dist/_node-chunks/{chunk-3SUJKLRV.js → chunk-F3WE3456.js} +7 -7
- package/dist/_node-chunks/{chunk-QI3AVWUV.js → chunk-F7YW5W6B.js} +12 -12
- package/dist/_node-chunks/{chunk-6Z44ODDR.js → chunk-H52PBBSK.js} +7 -7
- package/dist/_node-chunks/{chunk-WRSYICUI.js → chunk-J3DQMIO4.js} +7 -7
- package/dist/_node-chunks/{chunk-PA26PSV2.js → chunk-K4YETNYJ.js} +30 -21
- package/dist/_node-chunks/{chunk-LRQFELIZ.js → chunk-KU3JBNPY.js} +8 -8
- package/dist/_node-chunks/{chunk-4TGAX5W7.js → chunk-KZB7ELL6.js} +162 -103
- package/dist/_node-chunks/{chunk-PAZJQ2GH.js → chunk-OC3TVLYU.js} +7 -7
- package/dist/_node-chunks/{chunk-7EGB7ALG.js → chunk-P3TWEOO5.js} +7 -7
- package/dist/_node-chunks/{chunk-BV4J7FF6.js → chunk-P7YMEOXF.js} +7 -7
- package/dist/_node-chunks/{chunk-CNKVQCQJ.js → chunk-PIKDGR3O.js} +7 -7
- package/dist/_node-chunks/{chunk-R6TLLF24.js → chunk-QHIU5I7C.js} +6 -6
- package/dist/_node-chunks/{chunk-AKW5OJ2T.js → chunk-SW3VZAH7.js} +9 -9
- package/dist/_node-chunks/chunk-TBWOUVTA.js +4967 -0
- package/dist/_node-chunks/{chunk-TL5RNPZW.js → chunk-TKN5TEZV.js} +583 -180
- package/dist/_node-chunks/{chunk-SHXAIHPO.js → chunk-TVKUJ3SE.js} +623 -750
- package/dist/_node-chunks/{chunk-MVPVYHBT.js → chunk-UTCFHTQH.js} +8 -8
- package/dist/_node-chunks/{chunk-PK6SVDYW.js → chunk-VQN4WAIA.js} +7 -7
- package/dist/_node-chunks/{chunk-IA7M33LK.js → chunk-VWSUFVUF.js} +7 -7
- package/dist/_node-chunks/{chunk-ICETGZAR.js → chunk-VX5P3IYA.js} +7 -7
- package/dist/_node-chunks/{chunk-ICFGNVW7.js → chunk-WCSHG2QT.js} +7 -7
- package/dist/_node-chunks/{default-browser-id-2X5XLPPS.js → default-browser-id-4RZZMHJE.js} +7 -7
- package/dist/_node-chunks/{dist-JSBOOVQK.js → dist-OGRBL76N.js} +9 -9
- package/dist/_node-chunks/{globby-YYTLHNUO.js → globby-65LOULA6.js} +9 -9
- package/dist/_node-chunks/{lib-DJHADRPZ.js → lib-TF7JCT3A.js} +36 -12
- package/dist/_node-chunks/{mdx-N42X6CFJ-WT6XCDU6.js → mdx-N42X6CFJ-6ZJEUZMZ.js} +8 -8
- package/dist/_node-chunks/{p-limit-HTXI4SGX.js → p-limit-PF7JSPDT.js} +76 -10
- package/dist/_node-chunks/{plugin-NNRMQ2YK.js → plugin-A6XAWMXN.js} +10 -10
- package/dist/_node-chunks/{plugin-W22F3FQV.js → plugin-LGHGAC6J.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-VFNVWMAM.js → webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js} +1307 -847
- package/dist/_node-chunks/{webpack-mock-plugin-Q4ED2M25.js → webpack-mock-plugin-ZJJVMJUS.js} +9 -9
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +638 -187
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.d.ts +62 -75
- package/dist/cli/index.js +60 -54
- package/dist/common/index.d.ts +3 -1
- package/dist/common/index.js +23 -22
- package/dist/components/index.js +24 -20
- package/dist/core-server/index.js +3544 -3220
- package/dist/core-server/presets/common-manager.js +440 -720
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf/index.js +6 -6
- package/dist/csf-tools/index.js +9 -9
- package/dist/docs-tools/index.js +4 -4
- package/dist/instrumenter/index.js +1 -1
- package/dist/manager/globals-runtime.js +8910 -18107
- package/dist/manager/runtime.js +3256 -2945
- package/dist/manager-api/index.js +23 -20
- package/dist/node-logger/index.d.ts +1 -1
- package/dist/node-logger/index.js +1136 -662
- package/dist/preview/runtime.js +12061 -21584
- package/dist/preview-api/index.js +6 -6
- package/dist/router/index.js +2 -2
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +24 -25
- package/dist/test/index.js +1872 -4023
- package/dist/theming/index.d.ts +2 -2
- package/dist/theming/index.js +6 -6
- package/package.json +4 -8
- package/dist/_browser-chunks/Color-SFYJJKWL.js +0 -605
- package/dist/_browser-chunks/chunk-DHO2SA6L.js +0 -12
- package/dist/_browser-chunks/chunk-WPHPDNUA.js +0 -974
- package/dist/_node-chunks/chunk-ALWVSNSK.js +0 -62
- package/dist/_node-chunks/chunk-MHNUEOON.js +0 -87
- package/dist/_node-chunks/chunk-VDFQYNPZ.js +0 -266
- package/dist/_node-chunks/chunk-WELIADWR.js +0 -2377
- package/dist/_node-chunks/chunk-YRXKNGPR.js +0 -18
|
@@ -2,12 +2,6 @@ import {
|
|
|
2
2
|
__name
|
|
3
3
|
} from "./chunk-MM7DTO55.js";
|
|
4
4
|
|
|
5
|
-
// ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
6
|
-
function isPrimitive(value) {
|
|
7
|
-
return value == null || typeof value !== "object" && typeof value !== "function";
|
|
8
|
-
}
|
|
9
|
-
__name(isPrimitive, "isPrimitive");
|
|
10
|
-
|
|
11
5
|
// ../node_modules/es-toolkit/dist/predicate/isPlainObject.mjs
|
|
12
6
|
function isPlainObject(value) {
|
|
13
7
|
if (!value || typeof value !== "object") {
|
|
@@ -22,26 +16,6 @@ function isPlainObject(value) {
|
|
|
22
16
|
}
|
|
23
17
|
__name(isPlainObject, "isPlainObject");
|
|
24
18
|
|
|
25
|
-
// ../node_modules/es-toolkit/dist/function/noop.mjs
|
|
26
|
-
function noop() {
|
|
27
|
-
}
|
|
28
|
-
__name(noop, "noop");
|
|
29
|
-
|
|
30
|
-
// ../node_modules/es-toolkit/dist/predicate/isBlob.mjs
|
|
31
|
-
function isBlob(x) {
|
|
32
|
-
if (typeof Blob === "undefined") {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
return x instanceof Blob;
|
|
36
|
-
}
|
|
37
|
-
__name(isBlob, "isBlob");
|
|
38
|
-
|
|
39
|
-
// ../node_modules/es-toolkit/dist/predicate/isBrowser.mjs
|
|
40
|
-
function isBrowser() {
|
|
41
|
-
return typeof window !== "undefined" && window?.document != null;
|
|
42
|
-
}
|
|
43
|
-
__name(isBrowser, "isBrowser");
|
|
44
|
-
|
|
45
19
|
// ../node_modules/es-toolkit/dist/compat/util/eq.mjs
|
|
46
20
|
function eq(value, other) {
|
|
47
21
|
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
@@ -271,119 +245,22 @@ function areObjectsEqual(a, b, stack, areValuesEqual) {
|
|
|
271
245
|
}
|
|
272
246
|
__name(areObjectsEqual, "areObjectsEqual");
|
|
273
247
|
|
|
248
|
+
// ../node_modules/es-toolkit/dist/function/noop.mjs
|
|
249
|
+
function noop() {
|
|
250
|
+
}
|
|
251
|
+
__name(noop, "noop");
|
|
252
|
+
|
|
274
253
|
// ../node_modules/es-toolkit/dist/predicate/isEqual.mjs
|
|
275
254
|
function isEqual(a, b) {
|
|
276
255
|
return isEqualWith(a, b, noop);
|
|
277
256
|
}
|
|
278
257
|
__name(isEqual, "isEqual");
|
|
279
258
|
|
|
280
|
-
// ../node_modules/es-toolkit/dist/predicate/
|
|
281
|
-
function
|
|
282
|
-
|
|
283
|
-
return false;
|
|
284
|
-
}
|
|
285
|
-
return isBlob(x) && x instanceof File;
|
|
286
|
-
}
|
|
287
|
-
__name(isFile, "isFile");
|
|
288
|
-
|
|
289
|
-
// ../node_modules/es-toolkit/dist/predicate/isFunction.mjs
|
|
290
|
-
function isFunction(value) {
|
|
291
|
-
return typeof value === "function";
|
|
292
|
-
}
|
|
293
|
-
__name(isFunction, "isFunction");
|
|
294
|
-
|
|
295
|
-
// ../node_modules/es-toolkit/dist/predicate/isJSON.mjs
|
|
296
|
-
function isJSON(value) {
|
|
297
|
-
if (typeof value !== "string") {
|
|
298
|
-
return false;
|
|
299
|
-
}
|
|
300
|
-
try {
|
|
301
|
-
JSON.parse(value);
|
|
302
|
-
return true;
|
|
303
|
-
} catch {
|
|
304
|
-
return false;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
__name(isJSON, "isJSON");
|
|
308
|
-
|
|
309
|
-
// ../node_modules/es-toolkit/dist/predicate/isJSONValue.mjs
|
|
310
|
-
function isJSONValue(value) {
|
|
311
|
-
switch (typeof value) {
|
|
312
|
-
case "object": {
|
|
313
|
-
return value === null || isJSONArray(value) || isJSONObject(value);
|
|
314
|
-
}
|
|
315
|
-
case "string":
|
|
316
|
-
case "number":
|
|
317
|
-
case "boolean": {
|
|
318
|
-
return true;
|
|
319
|
-
}
|
|
320
|
-
default: {
|
|
321
|
-
return false;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
__name(isJSONValue, "isJSONValue");
|
|
326
|
-
function isJSONArray(value) {
|
|
327
|
-
if (!Array.isArray(value)) {
|
|
328
|
-
return false;
|
|
329
|
-
}
|
|
330
|
-
return value.every((item) => isJSONValue(item));
|
|
331
|
-
}
|
|
332
|
-
__name(isJSONArray, "isJSONArray");
|
|
333
|
-
function isJSONObject(obj) {
|
|
334
|
-
if (!isPlainObject(obj)) {
|
|
335
|
-
return false;
|
|
336
|
-
}
|
|
337
|
-
const keys = Reflect.ownKeys(obj);
|
|
338
|
-
for (let i = 0; i < keys.length; i++) {
|
|
339
|
-
const key = keys[i];
|
|
340
|
-
const value = obj[key];
|
|
341
|
-
if (typeof key !== "string") {
|
|
342
|
-
return false;
|
|
343
|
-
}
|
|
344
|
-
if (!isJSONValue(value)) {
|
|
345
|
-
return false;
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
return true;
|
|
349
|
-
}
|
|
350
|
-
__name(isJSONObject, "isJSONObject");
|
|
351
|
-
|
|
352
|
-
// ../node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
353
|
-
function isLength(value) {
|
|
354
|
-
return Number.isSafeInteger(value) && value >= 0;
|
|
355
|
-
}
|
|
356
|
-
__name(isLength, "isLength");
|
|
357
|
-
|
|
358
|
-
// ../node_modules/es-toolkit/dist/predicate/isNode.mjs
|
|
359
|
-
function isNode() {
|
|
360
|
-
return typeof process !== "undefined" && process?.versions?.node != null;
|
|
361
|
-
}
|
|
362
|
-
__name(isNode, "isNode");
|
|
363
|
-
|
|
364
|
-
// ../node_modules/es-toolkit/dist/predicate/isNotNil.mjs
|
|
365
|
-
function isNotNil(x) {
|
|
366
|
-
return x != null;
|
|
367
|
-
}
|
|
368
|
-
__name(isNotNil, "isNotNil");
|
|
369
|
-
|
|
370
|
-
// ../node_modules/es-toolkit/dist/predicate/isNull.mjs
|
|
371
|
-
function isNull(x) {
|
|
372
|
-
return x === null;
|
|
373
|
-
}
|
|
374
|
-
__name(isNull, "isNull");
|
|
375
|
-
|
|
376
|
-
// ../node_modules/es-toolkit/dist/predicate/isPromise.mjs
|
|
377
|
-
function isPromise(value) {
|
|
378
|
-
return value instanceof Promise;
|
|
379
|
-
}
|
|
380
|
-
__name(isPromise, "isPromise");
|
|
381
|
-
|
|
382
|
-
// ../node_modules/es-toolkit/dist/predicate/isUndefined.mjs
|
|
383
|
-
function isUndefined(x) {
|
|
384
|
-
return x === void 0;
|
|
259
|
+
// ../node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
|
|
260
|
+
function isPrimitive(value) {
|
|
261
|
+
return value == null || typeof value !== "object" && typeof value !== "function";
|
|
385
262
|
}
|
|
386
|
-
__name(
|
|
263
|
+
__name(isPrimitive, "isPrimitive");
|
|
387
264
|
|
|
388
265
|
// ../node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
|
|
389
266
|
function isTypedArray(x) {
|
|
@@ -391,17 +268,11 @@ function isTypedArray(x) {
|
|
|
391
268
|
}
|
|
392
269
|
__name(isTypedArray, "isTypedArray");
|
|
393
270
|
|
|
394
|
-
// ../node_modules/es-toolkit/dist/predicate/
|
|
395
|
-
function
|
|
396
|
-
return
|
|
397
|
-
}
|
|
398
|
-
__name(isNil, "isNil");
|
|
399
|
-
|
|
400
|
-
// ../node_modules/es-toolkit/dist/predicate/isSymbol.mjs
|
|
401
|
-
function isSymbol(value) {
|
|
402
|
-
return typeof value === "symbol";
|
|
271
|
+
// ../node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs
|
|
272
|
+
function isArrayBuffer(value) {
|
|
273
|
+
return value instanceof ArrayBuffer;
|
|
403
274
|
}
|
|
404
|
-
__name(
|
|
275
|
+
__name(isArrayBuffer, "isArrayBuffer");
|
|
405
276
|
|
|
406
277
|
// ../node_modules/es-toolkit/dist/predicate/isBuffer.mjs
|
|
407
278
|
function isBuffer(x) {
|
|
@@ -409,24 +280,42 @@ function isBuffer(x) {
|
|
|
409
280
|
}
|
|
410
281
|
__name(isBuffer, "isBuffer");
|
|
411
282
|
|
|
412
|
-
// ../node_modules/es-toolkit/dist/predicate/isArrayBuffer.mjs
|
|
413
|
-
function isArrayBuffer(value) {
|
|
414
|
-
return value instanceof ArrayBuffer;
|
|
415
|
-
}
|
|
416
|
-
__name(isArrayBuffer, "isArrayBuffer");
|
|
417
|
-
|
|
418
283
|
// ../node_modules/es-toolkit/dist/predicate/isDate.mjs
|
|
419
284
|
function isDate(value) {
|
|
420
285
|
return value instanceof Date;
|
|
421
286
|
}
|
|
422
287
|
__name(isDate, "isDate");
|
|
423
288
|
|
|
289
|
+
// ../node_modules/es-toolkit/dist/predicate/isFunction.mjs
|
|
290
|
+
function isFunction(value) {
|
|
291
|
+
return typeof value === "function";
|
|
292
|
+
}
|
|
293
|
+
__name(isFunction, "isFunction");
|
|
294
|
+
|
|
295
|
+
// ../node_modules/es-toolkit/dist/predicate/isLength.mjs
|
|
296
|
+
function isLength(value) {
|
|
297
|
+
return Number.isSafeInteger(value) && value >= 0;
|
|
298
|
+
}
|
|
299
|
+
__name(isLength, "isLength");
|
|
300
|
+
|
|
424
301
|
// ../node_modules/es-toolkit/dist/predicate/isMap.mjs
|
|
425
302
|
function isMap(value) {
|
|
426
303
|
return value instanceof Map;
|
|
427
304
|
}
|
|
428
305
|
__name(isMap, "isMap");
|
|
429
306
|
|
|
307
|
+
// ../node_modules/es-toolkit/dist/predicate/isNil.mjs
|
|
308
|
+
function isNil(x) {
|
|
309
|
+
return x == null;
|
|
310
|
+
}
|
|
311
|
+
__name(isNil, "isNil");
|
|
312
|
+
|
|
313
|
+
// ../node_modules/es-toolkit/dist/predicate/isNull.mjs
|
|
314
|
+
function isNull(x) {
|
|
315
|
+
return x === null;
|
|
316
|
+
}
|
|
317
|
+
__name(isNull, "isNull");
|
|
318
|
+
|
|
430
319
|
// ../node_modules/es-toolkit/dist/predicate/isRegExp.mjs
|
|
431
320
|
function isRegExp(value) {
|
|
432
321
|
return value instanceof RegExp;
|
|
@@ -439,6 +328,18 @@ function isSet(value) {
|
|
|
439
328
|
}
|
|
440
329
|
__name(isSet, "isSet");
|
|
441
330
|
|
|
331
|
+
// ../node_modules/es-toolkit/dist/predicate/isSymbol.mjs
|
|
332
|
+
function isSymbol(value) {
|
|
333
|
+
return typeof value === "symbol";
|
|
334
|
+
}
|
|
335
|
+
__name(isSymbol, "isSymbol");
|
|
336
|
+
|
|
337
|
+
// ../node_modules/es-toolkit/dist/predicate/isUndefined.mjs
|
|
338
|
+
function isUndefined(x) {
|
|
339
|
+
return x === void 0;
|
|
340
|
+
}
|
|
341
|
+
__name(isUndefined, "isUndefined");
|
|
342
|
+
|
|
442
343
|
// ../node_modules/es-toolkit/dist/predicate/isWeakMap.mjs
|
|
443
344
|
function isWeakMap(value) {
|
|
444
345
|
return value instanceof WeakMap;
|
|
@@ -479,32 +380,22 @@ export {
|
|
|
479
380
|
float32ArrayTag,
|
|
480
381
|
float64ArrayTag,
|
|
481
382
|
isPlainObject,
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
383
|
+
isArrayBuffer,
|
|
384
|
+
isBuffer,
|
|
385
|
+
isDate,
|
|
485
386
|
eq,
|
|
486
387
|
isEqualWith,
|
|
388
|
+
noop,
|
|
487
389
|
isEqual,
|
|
488
|
-
isFile,
|
|
489
390
|
isFunction,
|
|
490
|
-
isJSON,
|
|
491
|
-
isJSONValue,
|
|
492
|
-
isJSONArray,
|
|
493
|
-
isJSONObject,
|
|
494
391
|
isLength,
|
|
495
|
-
isNode,
|
|
496
|
-
isNotNil,
|
|
497
|
-
isNull,
|
|
498
|
-
isPromise,
|
|
499
|
-
isUndefined,
|
|
500
|
-
isNil,
|
|
501
|
-
isSymbol,
|
|
502
|
-
isBuffer,
|
|
503
|
-
isArrayBuffer,
|
|
504
|
-
isDate,
|
|
505
392
|
isMap,
|
|
393
|
+
isNil,
|
|
394
|
+
isNull,
|
|
506
395
|
isRegExp,
|
|
507
396
|
isSet,
|
|
397
|
+
isSymbol,
|
|
398
|
+
isUndefined,
|
|
508
399
|
isWeakMap,
|
|
509
400
|
isWeakSet
|
|
510
401
|
};
|
|
@@ -1753,19 +1753,6 @@ __name(inspectSymbol, "inspectSymbol");
|
|
|
1753
1753
|
|
|
1754
1754
|
// ../node_modules/loupe/lib/promise.js
|
|
1755
1755
|
var getPromiseValue = /* @__PURE__ */ __name(() => "Promise{\u2026}", "getPromiseValue");
|
|
1756
|
-
try {
|
|
1757
|
-
const { getPromiseDetails, kPending, kRejected } = process.binding("util");
|
|
1758
|
-
if (Array.isArray(getPromiseDetails(Promise.resolve()))) {
|
|
1759
|
-
getPromiseValue = /* @__PURE__ */ __name((value, options) => {
|
|
1760
|
-
const [state, innerValue] = getPromiseDetails(value);
|
|
1761
|
-
if (state === kPending) {
|
|
1762
|
-
return "Promise{<pending>}";
|
|
1763
|
-
}
|
|
1764
|
-
return `Promise${state === kRejected ? "!" : ""}{${options.inspect(innerValue, options)}}`;
|
|
1765
|
-
}, "getPromiseValue");
|
|
1766
|
-
}
|
|
1767
|
-
} catch (notNode) {
|
|
1768
|
-
}
|
|
1769
1756
|
var promise_default = getPromiseValue;
|
|
1770
1757
|
|
|
1771
1758
|
// ../node_modules/loupe/lib/object.js
|
|
@@ -1947,12 +1934,12 @@ var baseTypesMap = {
|
|
|
1947
1934
|
HTMLCollection: inspectNodeCollection,
|
|
1948
1935
|
NodeList: inspectNodeCollection
|
|
1949
1936
|
};
|
|
1950
|
-
var inspectCustom = /* @__PURE__ */ __name((value, options, type) => {
|
|
1937
|
+
var inspectCustom = /* @__PURE__ */ __name((value, options, type, inspectFn) => {
|
|
1951
1938
|
if (chaiInspect in value && typeof value[chaiInspect] === "function") {
|
|
1952
1939
|
return value[chaiInspect](options);
|
|
1953
1940
|
}
|
|
1954
1941
|
if (nodeInspect in value && typeof value[nodeInspect] === "function") {
|
|
1955
|
-
return value[nodeInspect](options.depth, options);
|
|
1942
|
+
return value[nodeInspect](options.depth, options, inspectFn);
|
|
1956
1943
|
}
|
|
1957
1944
|
if ("inspect" in value && typeof value.inspect === "function") {
|
|
1958
1945
|
return value.inspect(options.depth, options);
|
|
@@ -1977,7 +1964,7 @@ function inspect(value, opts = {}) {
|
|
|
1977
1964
|
return baseTypesMap[type](value, options);
|
|
1978
1965
|
}
|
|
1979
1966
|
if (customInspect && value) {
|
|
1980
|
-
const output = inspectCustom(value, options, type);
|
|
1967
|
+
const output = inspectCustom(value, options, type, inspect);
|
|
1981
1968
|
if (output) {
|
|
1982
1969
|
if (typeof output === "string")
|
|
1983
1970
|
return output;
|