effect-errors 1.7.16 → 1.7.18
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/README.md +71 -1
- package/cjs/capture-errors.js.map +1 -1
- package/cjs/logic/pretty-printing/format-failures-title.js +6 -1
- package/cjs/logic/pretty-printing/format-failures-title.js.map +1 -1
- package/cjs/logic/pretty-printing/format-span-attributes.js +11 -1
- package/cjs/logic/pretty-printing/format-span-attributes.js.map +1 -1
- package/cjs/source-maps/get-error-related-sources.js +1 -0
- package/cjs/source-maps/get-error-related-sources.js.map +1 -1
- package/cjs/source-maps/get-sources-from-map-file.js +8 -6
- package/cjs/source-maps/get-sources-from-map-file.js.map +1 -1
- package/cjs/source-maps/get-sources-from-span.js +52 -0
- package/cjs/source-maps/get-sources-from-span.js.map +1 -0
- package/cjs/source-maps/get-sources-from-stack.js +25 -0
- package/cjs/source-maps/get-sources-from-stack.js.map +1 -0
- package/cjs/source-maps/maybe-map-sourcemaps.js +8 -10
- package/cjs/source-maps/maybe-map-sourcemaps.js.map +1 -1
- package/cjs/source-maps/transform-raw-error.js +21 -36
- package/cjs/source-maps/transform-raw-error.js.map +1 -1
- package/dts/capture-errors.d.ts +5 -3
- package/dts/capture-errors.d.ts.map +1 -1
- package/dts/logic/errors/capture-errors-from-cause.d.ts +1 -1
- package/dts/logic/errors/capture-errors-from-cause.d.ts.map +1 -1
- package/dts/logic/pretty-printing/format-failures-title.d.ts.map +1 -1
- package/dts/logic/pretty-printing/format-span-attributes.d.ts +2 -2
- package/dts/logic/pretty-printing/format-span-attributes.d.ts.map +1 -1
- package/dts/logic/pretty-printing/maybe-print-node-stacktrace.d.ts +2 -2
- package/dts/logic/pretty-printing/maybe-print-node-stacktrace.d.ts.map +1 -1
- package/dts/logic/pretty-printing/maybe-print-span-attributes.d.ts +2 -2
- package/dts/logic/pretty-printing/maybe-print-span-attributes.d.ts.map +1 -1
- package/dts/logic/pretty-printing/print-effect-stacktrace.d.ts +2 -2
- package/dts/logic/pretty-printing/print-effect-stacktrace.d.ts.map +1 -1
- package/dts/logic/spans/get-span-duration.d.ts +1 -1
- package/dts/logic/spans/get-span-duration.d.ts.map +1 -1
- package/dts/source-maps/get-error-related-sources.d.ts +3 -3
- package/dts/source-maps/get-error-related-sources.d.ts.map +1 -1
- package/dts/source-maps/get-source-code.d.ts +2 -2
- package/dts/source-maps/get-source-code.d.ts.map +1 -1
- package/dts/source-maps/get-sources-from-map-file.d.ts +8 -4
- package/dts/source-maps/get-sources-from-map-file.d.ts.map +1 -1
- package/dts/source-maps/get-sources-from-span.d.ts +19 -0
- package/dts/source-maps/get-sources-from-span.d.ts.map +1 -0
- package/dts/source-maps/get-sources-from-stack.d.ts +6 -0
- package/dts/source-maps/get-sources-from-stack.d.ts.map +1 -0
- package/dts/source-maps/maybe-map-sourcemaps.d.ts +8 -3
- package/dts/source-maps/maybe-map-sourcemaps.d.ts.map +1 -1
- package/dts/source-maps/transform-raw-error.d.ts +12 -4
- package/dts/source-maps/transform-raw-error.d.ts.map +1 -1
- package/dts/types/pretty-error.type.d.ts +1 -1
- package/dts/types/pretty-error.type.d.ts.map +1 -1
- package/esm/capture-errors.js.map +1 -1
- package/esm/logic/pretty-printing/format-failures-title.js +6 -1
- package/esm/logic/pretty-printing/format-failures-title.js.map +1 -1
- package/esm/logic/pretty-printing/format-span-attributes.js +11 -1
- package/esm/logic/pretty-printing/format-span-attributes.js.map +1 -1
- package/esm/source-maps/get-error-related-sources.js +1 -0
- package/esm/source-maps/get-error-related-sources.js.map +1 -1
- package/esm/source-maps/get-sources-from-map-file.js +7 -5
- package/esm/source-maps/get-sources-from-map-file.js.map +1 -1
- package/esm/source-maps/get-sources-from-span.js +45 -0
- package/esm/source-maps/get-sources-from-span.js.map +1 -0
- package/esm/source-maps/get-sources-from-stack.js +18 -0
- package/esm/source-maps/get-sources-from-stack.js.map +1 -0
- package/esm/source-maps/maybe-map-sourcemaps.js +8 -10
- package/esm/source-maps/maybe-map-sourcemaps.js.map +1 -1
- package/esm/source-maps/transform-raw-error.js +22 -37
- package/esm/source-maps/transform-raw-error.js.map +1 -1
- package/esm/tsconfig-prod.tsbuildinfo +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -156,7 +156,8 @@ export interface ErrorData {
|
|
|
156
156
|
errorType: unknown;
|
|
157
157
|
message: unknown;
|
|
158
158
|
stack: string[] | undefined;
|
|
159
|
-
sources: ErrorRelatedSources[] | undefined;
|
|
159
|
+
sources: Omit<ErrorRelatedSources, '_tag'>[] | undefined;
|
|
160
|
+
location: Omit<ErrorLocation, '_tag'>[] | undefined;
|
|
160
161
|
spans: ErrorSpan[] | undefined;
|
|
161
162
|
isPlainString: boolean;
|
|
162
163
|
}
|
|
@@ -351,6 +352,75 @@ Capturing errors from the [`from-promise` bundle](./src/tests/bundle/from-promis
|
|
|
351
352
|
}
|
|
352
353
|
```
|
|
353
354
|
|
|
355
|
+
If no map file is found, a `location` array will be returned instead of `sources`:
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
```json
|
|
360
|
+
{
|
|
361
|
+
"interrupted": false,
|
|
362
|
+
"errors": [
|
|
363
|
+
{
|
|
364
|
+
"errorType": "FetchError",
|
|
365
|
+
"message": "request to https://yolo-bro-oh-no.org/users/1 failed, reason: getaddrinfo ENOTFOUND yolo-bro-oh-no.org",
|
|
366
|
+
"stack": [
|
|
367
|
+
"at catcher (file:///Users/jpb06/repos/remix-effect-errors/build/server/nodejs-eyJydW50aW1lIjoibm9kZWpzIn0/index.js?t=1729013117205.3699:2:14550)",
|
|
368
|
+
"at EffectPrimitive.effect_instruction_i0 (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/internal/core-effect.ts:1694:56)",
|
|
369
|
+
"at body (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/internal/fiberRuntime.ts:1113:41)",
|
|
370
|
+
"at Object.effect_internal_function (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/Utils.ts:780:14)",
|
|
371
|
+
"at internalCall (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/Utils.ts:784:22)",
|
|
372
|
+
"at FiberRuntime.Sync (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/internal/fiberRuntime.ts:1113:19)",
|
|
373
|
+
"at f (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/internal/fiberRuntime.ts:1347:53)",
|
|
374
|
+
"at Object.context (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/internal/tracer.ts:93:19)",
|
|
375
|
+
"at FiberRuntime.runLoop (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/internal/fiberRuntime.ts:1337:34)",
|
|
376
|
+
"at FiberRuntime.evaluateEffect (file:///Users/jpb06/repos/remix-effect-errors/node_modules/effect/src/internal/fiberRuntime.ts:900:27)"
|
|
377
|
+
],
|
|
378
|
+
"location": [
|
|
379
|
+
{
|
|
380
|
+
"filePath": "/build/server/nodejs-eyJydW50aW1lIjoibm9kZWpzIn0/index.js",
|
|
381
|
+
"line": 2,
|
|
382
|
+
"column": 14414
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"filePath": "/build/server/nodejs-eyJydW50aW1lIjoibm9kZWpzIn0/index.js",
|
|
386
|
+
"line": 2,
|
|
387
|
+
"column": 14703
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"filePath": "/build/server/nodejs-eyJydW50aW1lIjoibm9kZWpzIn0/index.js",
|
|
391
|
+
"line": 2,
|
|
392
|
+
"column": 17636
|
|
393
|
+
}
|
|
394
|
+
],
|
|
395
|
+
"spans": [
|
|
396
|
+
{
|
|
397
|
+
"name": "fetch-user",
|
|
398
|
+
"attributes": {
|
|
399
|
+
"userId": 1
|
|
400
|
+
},
|
|
401
|
+
"durationInMilliseconds": 52
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"name": "from-promise-task",
|
|
405
|
+
"attributes": {},
|
|
406
|
+
"durationInMilliseconds": 54
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"name": "promise-example-loader",
|
|
410
|
+
"attributes": {
|
|
411
|
+
"url": "http://localhost:3000/promise",
|
|
412
|
+
"method": "GET",
|
|
413
|
+
"body": null
|
|
414
|
+
},
|
|
415
|
+
"durationInMilliseconds": 55
|
|
416
|
+
}
|
|
417
|
+
],
|
|
418
|
+
"isPlainString": false
|
|
419
|
+
}
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
```
|
|
423
|
+
|
|
354
424
|
## ⚡ examples
|
|
355
425
|
|
|
356
426
|
### 🔶 error logging - `runPromise` / `runSync`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-errors.js","names":["_effect","require","_Cause","_captureErrorsFromCause","_transformRawError","captureErrors","cause","options","reverseSpans","stripCwd","Effect","gen","isInterruptedOnly","interrupted","errors","rawErrors","captureErrorsFrom","forEach","transformRawError","exports"],"sources":["../../src/capture-errors.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AACA,IAAAC,MAAA,gBAAAD,OAAA;AAGA,IAAAE,uBAAA,gBAAAF,OAAA;
|
|
1
|
+
{"version":3,"file":"capture-errors.js","names":["_effect","require","_Cause","_captureErrorsFromCause","_transformRawError","captureErrors","cause","options","reverseSpans","stripCwd","Effect","gen","isInterruptedOnly","interrupted","errors","rawErrors","captureErrorsFrom","forEach","transformRawError","exports"],"sources":["../../src/capture-errors.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AACA,IAAAC,MAAA,gBAAAD,OAAA;AAGA,IAAAE,uBAAA,gBAAAF,OAAA;AAGA,IAAAG,kBAAA,gBAAAH,OAAA;AA4BO,MAAMI,aAAa,GAAGA,CAC3BC,KAAe,EACfC,OAAA,GAAgC;EAC9BC,YAAY,EAAE,IAAI;EAClBC,QAAQ,EAAE;CACX,KAEDT,OAAA,CAAAU,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,IAAI,IAAAT,MAAA,CAAAU,iBAAiB,EAACN,KAAK,CAAC,EAAE;IAC5B,OAAO;MACLO,WAAW,EAAE,IAAI;MACjBC,MAAM,EAAE;KACT;EACH;EAEA,MAAMC,SAAS,GAAG,IAAAZ,uBAAA,CAAAa,iBAAiB,EAAIV,KAAK,CAAC;EAC7C,MAAMQ,MAAM,GAAG,OAAOd,OAAA,CAAAU,MAAM,CAACO,OAAO,CAACF,SAAS,EAAE,IAAAX,kBAAA,CAAAc,iBAAiB,EAACX,OAAO,CAAC,CAAC;EAE3E,OAAO;IACLM,WAAW,EAAE,KAAK;IAClBC;GACD;AACH,CAAC,CAAC;AAACK,OAAA,CAAAd,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -10,6 +10,11 @@ function _interopRequireDefault(e) {
|
|
|
10
10
|
default: e
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
const formatFailuresTitle = (errorType, message, failuresLength, failureIndex) =>
|
|
13
|
+
const formatFailuresTitle = (errorType, message, failuresLength, failureIndex) => {
|
|
14
|
+
const failuresCount = failuresLength > 1 ? _picocolors.default.bgRed(_picocolors.default.white(` #${failureIndex + 1} -`)) : '';
|
|
15
|
+
const type = _picocolors.default.bgRed(_picocolors.default.white(` ${errorType ?? 'Unknown error'} `));
|
|
16
|
+
const formattedMessage = _picocolors.default.bold(_picocolors.default.white(` • ${message}`));
|
|
17
|
+
return `💥 ${failuresCount}${type}${formattedMessage}\r\n`;
|
|
18
|
+
};
|
|
14
19
|
exports.formatFailuresTitle = formatFailuresTitle;
|
|
15
20
|
//# sourceMappingURL=format-failures-title.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-failures-title.js","names":["_picocolors","_interopRequireDefault","require","e","__esModule","default","formatFailuresTitle","errorType","message","failuresLength","failureIndex","bgRed","white","bold","exports"],"sources":["../../../../src/logic/pretty-printing/format-failures-title.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,WAAA,gBAAAC,sBAAA,cAAAC,OAAA;AAA+B,SAAAD,uBAAAE,CAAA;EAAA,OAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA;IAAAE,OAAA,EAAAF;EAAA;AAAA;AAExB,MAAMG,mBAAmB,GAAGA,CACjCC,SAAkB,EAClBC,OAAgB,EAChBC,cAAsB,EACtBC,YAAoB,
|
|
1
|
+
{"version":3,"file":"format-failures-title.js","names":["_picocolors","_interopRequireDefault","require","e","__esModule","default","formatFailuresTitle","errorType","message","failuresLength","failureIndex","failuresCount","bgRed","white","type","formattedMessage","bold","exports"],"sources":["../../../../src/logic/pretty-printing/format-failures-title.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,WAAA,gBAAAC,sBAAA,cAAAC,OAAA;AAA+B,SAAAD,uBAAAE,CAAA;EAAA,OAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA;IAAAE,OAAA,EAAAF;EAAA;AAAA;AAExB,MAAMG,mBAAmB,GAAGA,CACjCC,SAAkB,EAClBC,OAAgB,EAChBC,cAAsB,EACtBC,YAAoB,KAClB;EACF,MAAMC,aAAa,GACjBF,cAAc,GAAG,CAAC,GACdT,WAAA,CAAAK,OAAK,CAACO,KAAK,CAACZ,WAAA,CAAAK,OAAK,CAACQ,KAAK,CAAC,KAAKH,YAAY,GAAG,CAAC,IAAI,CAAC,CAAC,GACnD,EAAE;EACR,MAAMI,IAAI,GAAGd,WAAA,CAAAK,OAAK,CAACO,KAAK,CACtBZ,WAAA,CAAAK,OAAK,CAACQ,KAAK,CAAC,IAAKN,SAAgC,IAAI,eAAe,GAAG,CAAC,CACzE;EACD,MAAMQ,gBAAgB,GAAGf,WAAA,CAAAK,OAAK,CAACW,IAAI,CAAChB,WAAA,CAAAK,OAAK,CAACQ,KAAK,CAAC,MAAML,OAAiB,EAAE,CAAC,CAAC;EAE3E,OAAO,MAAMG,aAAa,GAAGG,IAAI,GAAGC,gBAAgB,MAAM;AAC5D,CAAC;AAACE,OAAA,CAAAX,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -38,7 +38,17 @@ const formatSpanAttributes = (span, {
|
|
|
38
38
|
formattedAttributes,
|
|
39
39
|
stack
|
|
40
40
|
} = (0, _getSpanAttributes.getSpanAttributes)(attributes, isLastEntry);
|
|
41
|
-
const
|
|
41
|
+
const maybeCircle = isFirstEntry ? `\r\n${_picocolors.default.gray('◯')}` : '';
|
|
42
|
+
const message = _picocolors.default.white(`${maybeCircle}\r\n${(0, _spansStackTrailingChar.spanStackTrailingChar)(isLastEntry)}${_picocolors.default.gray('─')}${filePath}${(0, _getSpanDuration.getSpanDuration)(status, isLastEntry)}${formattedAttributes}`);
|
|
43
|
+
// const message = color.white(
|
|
44
|
+
// maybeCircle +
|
|
45
|
+
// '\r\n' +
|
|
46
|
+
// spanStackTrailingChar(isLastEntry) +
|
|
47
|
+
// color.gray('─') +
|
|
48
|
+
// filePath +
|
|
49
|
+
// getSpanDuration(status, isLastEntry) +
|
|
50
|
+
// formattedAttributes,
|
|
51
|
+
// );
|
|
42
52
|
return {
|
|
43
53
|
message,
|
|
44
54
|
stack
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-span-attributes.js","names":["_effect","require","_picocolors","_interopRequireDefault","_getSpanAttributes","_getSpanDuration","_spansStackTrailingChar","_stripCwdPath","e","__esModule","default","formatSpanAttributes","span","stripCwd","reverseSpans","current","spans","undefined","_tag","push","Option","getOrUndefined","parent","orderedSpans","toReversed","map","name","attributes","status","index","isFirstEntry","isLastEntry","length","filePath","stripCwdPath","formattedAttributes","stack","getSpanAttributes","
|
|
1
|
+
{"version":3,"file":"format-span-attributes.js","names":["_effect","require","_picocolors","_interopRequireDefault","_getSpanAttributes","_getSpanDuration","_spansStackTrailingChar","_stripCwdPath","e","__esModule","default","formatSpanAttributes","span","stripCwd","reverseSpans","current","spans","undefined","_tag","push","Option","getOrUndefined","parent","orderedSpans","toReversed","map","name","attributes","status","index","isFirstEntry","isLastEntry","length","filePath","stripCwdPath","formattedAttributes","stack","getSpanAttributes","maybeCircle","gray","message","white","spanStackTrailingChar","getSpanDuration","reduce","prev","curr","exports"],"sources":["../../../../src/logic/pretty-printing/format-span-attributes.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAEA,IAAAC,WAAA,gBAAAC,sBAAA,cAAAF,OAAA;AAGA,IAAAG,kBAAA,gBAAAH,OAAA;AACA,IAAAI,gBAAA,gBAAAJ,OAAA;AACA,IAAAK,uBAAA,gBAAAL,OAAA;AACA,IAAAM,aAAA,gBAAAN,OAAA;AAAoD,SAAAE,uBAAAK,CAAA;EAAA,OAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA;IAAAE,OAAA,EAAAF;EAAA;AAAA;AAE7C,MAAMG,oBAAoB,GAAGA,CAClCC,IAAsB,EACtB;EAAEC,QAAQ;EAAEC;AAAY,CAAsB,KAC5C;EACF,IAAIC,OAAO,GAA+BH,IAAI;EAE9C,MAAMI,KAAK,GAAG,EAAE;EAChB,OAAOD,OAAO,KAAKE,SAAS,IAAIF,OAAO,CAACG,IAAI,KAAK,MAAM,EAAE;IACvDF,KAAK,CAACG,IAAI,CAACJ,OAAO,CAAC;IACnBA,OAAO,GAAGf,OAAA,CAAAoB,MAAM,CAACC,cAAc,CAACN,OAAO,CAACO,MAAM,CAAC;EACjD;EAEA,MAAMC,YAAY,GAAGT,YAAY,KAAK,IAAI,GAAGE,KAAK,CAACQ,UAAU,EAAE,GAAGR,KAAK;EAEvE,OAAOO,YAAY,CAChBE,GAAG,CAAC,CAAC;IAAEC,IAAI;IAAEC,UAAU;IAAEC;EAAM,CAAE,EAAEC,KAAK,KAAI;IAC3C,MAAMC,YAAY,GAAGD,KAAK,KAAK,CAAC;IAChC,MAAME,WAAW,GAAGF,KAAK,KAAKb,KAAK,CAACgB,MAAM,GAAG,CAAC;IAE9C,MAAMC,QAAQ,GAAG,OAAOpB,QAAQ,KAAKI,SAAS,GAAG,IAAAV,aAAA,CAAA2B,YAAY,EAACR,IAAI,CAAC,GAAGA,IAAI,EAAE;IAE5E,MAAM;MAAES,mBAAmB;MAAEC;IAAK,CAAE,GAAG,IAAAhC,kBAAA,CAAAiC,iBAAiB,EACtDV,UAAU,EACVI,WAAW,CACZ;IAED,MAAMO,WAAW,GAAGR,YAAY,GAAG,OAAO5B,WAAA,CAAAQ,OAAK,CAAC6B,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE;IAEhE,MAAMC,OAAO,GAAGtC,WAAA,CAAAQ,OAAK,CAAC+B,KAAK,CACzB,GAAGH,WAAW,OAAO,IAAAhC,uBAAA,CAAAoC,qBAAqB,EAACX,WAAW,CAAC,GAAG7B,WAAA,CAAAQ,OAAK,CAAC6B,IAAI,CAAC,GAAG,CAAC,GAAGN,QAAQ,GAAG,IAAA5B,gBAAA,CAAAsC,eAAe,EAACf,MAAM,EAAEG,WAAW,CAAC,GAAGI,mBAAmB,EAAE,CACpJ;IACD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAEA,OAAO;MACLK,OAAO;MACPJ;KACD;EACH,CAAC,CAAC,CACDQ,MAAM,CACL,CAACC,IAAI,EAAEC,IAAI,MAAM;IACfN,OAAO,EAAEK,IAAI,CAACL,OAAO,GAAGM,IAAI,CAACN,OAAO;IACpCJ,KAAK,EAAE,CAAC,GAAGS,IAAI,CAACT,KAAK,EAAE,GAAGU,IAAI,CAACV,KAAK;GACrC,CAAC,EACF;IACEI,OAAO,EAAE,EAAE;IACXJ,KAAK,EAAE;GACR,CACF;AACL,CAAC;AAACW,OAAA,CAAApC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
@@ -22,6 +22,7 @@ const getErrorRelatedSources = sourceFile => _effect.Effect.gen(function* () {
|
|
|
22
22
|
if (isTypescriptFile) {
|
|
23
23
|
const source = yield* (0, _getSourceCode.getSourceCode)(location);
|
|
24
24
|
return {
|
|
25
|
+
_tag: 'sources',
|
|
25
26
|
runPath: `${filePath}:${line}:${column}`,
|
|
26
27
|
sourcesPath: undefined,
|
|
27
28
|
source
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-error-related-sources.js","names":["_effect","require","_getErrorLocationFromFilePath","_getSourceCode","_getSourcesFromMapFile","getErrorRelatedSources","sourceFile","Effect","gen","location","getErrorLocationFrom","undefined","filePath","line","column","isTypescriptFile","endsWith","source","getSourceCode","runPath","sourcesPath","getSourcesFromMapFile","exports"],"sources":["../../../src/source-maps/get-error-related-sources.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAIA,IAAAC,6BAAA,gBAAAD,OAAA;AACA,IAAAE,cAAA,gBAAAF,OAAA;AACA,IAAAG,sBAAA,gBAAAH,OAAA;
|
|
1
|
+
{"version":3,"file":"get-error-related-sources.js","names":["_effect","require","_getErrorLocationFromFilePath","_getSourceCode","_getSourcesFromMapFile","getErrorRelatedSources","sourceFile","Effect","gen","location","getErrorLocationFrom","undefined","filePath","line","column","isTypescriptFile","endsWith","source","getSourceCode","_tag","runPath","sourcesPath","getSourcesFromMapFile","exports"],"sources":["../../../src/source-maps/get-error-related-sources.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAIA,IAAAC,6BAAA,gBAAAD,OAAA;AACA,IAAAE,cAAA,gBAAAF,OAAA;AACA,IAAAG,sBAAA,gBAAAH,OAAA;AAMO,MAAMI,sBAAsB,GACjCC,UAAkB,IAElBN,OAAA,CAAAO,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,MAAMC,QAAQ,GAAG,IAAAP,6BAAA,CAAAQ,oBAAoB,EAACJ,UAAU,CAAC;EACjD,IAAIG,QAAQ,KAAKE,SAAS,EAAE;IAC1B;EACF;EAEA,MAAM;IAAEC,QAAQ;IAAEC,IAAI;IAAEC;EAAM,CAAE,GAAGL,QAAQ;EAE3C,MAAMM,gBAAgB,GACpBH,QAAQ,CAACI,QAAQ,CAAC,KAAK,CAAC,IAAIJ,QAAQ,CAACI,QAAQ,CAAC,MAAM,CAAC;EACvD,IAAID,gBAAgB,EAAE;IACpB,MAAME,MAAM,GAAG,OAAO,IAAAd,cAAA,CAAAe,aAAa,EAACT,QAAQ,CAAC;IAE7C,OAAO;MACLU,IAAI,EAAE,SAAkB;MACxBC,OAAO,EAAE,GAAGR,QAAQ,IAAIC,IAAI,IAAIC,MAAM,EAAE;MACxCO,WAAW,EAAEV,SAAS;MACtBM;KACD;EACH;EAEA,OAAO,OAAO,IAAAb,sBAAA,CAAAkB,qBAAqB,EAACb,QAAQ,CAAC;AAC/C,CAAC,CAAC;AAACc,OAAA,CAAAlB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -4,9 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getSourcesFromMapFile = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _nodePath = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("node:path"));
|
|
8
8
|
var _effect = /*#__PURE__*/require("effect");
|
|
9
|
-
var _picocolors = /*#__PURE__*/_interopRequireDefault(/*#__PURE__*/require("picocolors"));
|
|
10
9
|
var _sourceMapJs = /*#__PURE__*/require("source-map-js");
|
|
11
10
|
var _fsExtraEffects = /*#__PURE__*/require("../logic/effects/fs/fs-extra.effects.js");
|
|
12
11
|
var _getSourceCode = /*#__PURE__*/require("./get-source-code.js");
|
|
@@ -18,9 +17,11 @@ function _interopRequireDefault(e) {
|
|
|
18
17
|
const getSourcesFromMapFile = location => _effect.Effect.gen(function* () {
|
|
19
18
|
const fileExists = yield* (0, _fsExtraEffects.existsEffect)(`${location.filePath}.map`);
|
|
20
19
|
if (!fileExists) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
return {
|
|
21
|
+
_tag: 'location',
|
|
22
|
+
...location,
|
|
23
|
+
filePath: location.filePath.replace(process.cwd(), '')
|
|
24
|
+
};
|
|
24
25
|
}
|
|
25
26
|
const data = yield* (0, _fsExtraEffects.readJsonEffect)(`${location.filePath}.map`);
|
|
26
27
|
if (data.version === undefined || data.sources === undefined) {
|
|
@@ -34,13 +35,14 @@ const getSourcesFromMapFile = location => _effect.Effect.gen(function* () {
|
|
|
34
35
|
if (sources.source === null || sources.line === null || sources.column === null) {
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
|
-
const absolutePath =
|
|
38
|
+
const absolutePath = _nodePath.default.resolve(location.filePath.substring(0, location.filePath.lastIndexOf('/')), sources.source);
|
|
38
39
|
const source = yield* (0, _getSourceCode.getSourceCode)({
|
|
39
40
|
filePath: absolutePath,
|
|
40
41
|
line: sources.line,
|
|
41
42
|
column: sources.column
|
|
42
43
|
}, true);
|
|
43
44
|
return {
|
|
45
|
+
_tag: 'sources',
|
|
44
46
|
runPath: `${location.filePath}:${location.line}:${location.column}`,
|
|
45
47
|
sourcesPath: `${absolutePath}:${sources.line}:${sources.column + 1}`,
|
|
46
48
|
source
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-sources-from-map-file.js","names":["
|
|
1
|
+
{"version":3,"file":"get-sources-from-map-file.js","names":["_nodePath","_interopRequireDefault","require","_effect","_sourceMapJs","_fsExtraEffects","_getSourceCode","e","__esModule","default","getSourcesFromMapFile","location","Effect","gen","fileExists","existsEffect","filePath","_tag","replace","process","cwd","data","readJsonEffect","version","undefined","sources","consumer","SourceMapConsumer","originalPositionFor","column","line","source","absolutePath","resolve","substring","lastIndexOf","getSourceCode","runPath","sourcesPath","exports"],"sources":["../../../src/source-maps/get-sources-from-map-file.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,SAAA,gBAAAC,sBAAA,cAAAC,OAAA;AAEA,IAAAC,OAAA,gBAAAD,OAAA;AACA,IAAAE,YAAA,gBAAAF,OAAA;AAGA,IAAAG,eAAA,gBAAAH,OAAA;AAMA,IAAAI,cAAA,gBAAAJ,OAAA;AAAsE,SAAAD,uBAAAM,CAAA;EAAA,OAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA;IAAAE,OAAA,EAAAF;EAAA;AAAA;AAa/D,MAAMG,qBAAqB,GAChCC,QAAuB,IAEvBR,OAAA,CAAAS,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,MAAMC,UAAU,GAAG,OAAO,IAAAT,eAAA,CAAAU,YAAY,EAAC,GAAGJ,QAAQ,CAACK,QAAQ,MAAM,CAAC;EAClE,IAAI,CAACF,UAAU,EAAE;IACf,OAAO;MACLG,IAAI,EAAE,UAAmB;MACzB,GAAGN,QAAQ;MACXK,QAAQ,EAAEL,QAAQ,CAACK,QAAQ,CAACE,OAAO,CAACC,OAAO,CAACC,GAAG,EAAE,EAAE,EAAE;KACtD;EACH;EAEA,MAAMC,IAAI,GAAG,OAAO,IAAAhB,eAAA,CAAAiB,cAAc,EAChC,GAAGX,QAAQ,CAACK,QAAQ,MAAM,CAC3B;EACD,IAAIK,IAAI,CAACE,OAAO,KAAKC,SAAS,IAAIH,IAAI,CAACI,OAAO,KAAKD,SAAS,EAAE;IAC5D;EACF;EAEA,MAAME,QAAQ,GAAG,IAAItB,YAAA,CAAAuB,iBAAiB,CAACN,IAAI,CAAC;EAC5C,MAAMI,OAAO,GAAGC,QAAQ,CAACE,mBAAmB,CAAC;IAC3CC,MAAM,EAAElB,QAAQ,CAACkB,MAAM;IACvBC,IAAI,EAAEnB,QAAQ,CAACmB;GAChB,CAAC;EACF,IACEL,OAAO,CAACM,MAAM,KAAK,IAAI,IACvBN,OAAO,CAACK,IAAI,KAAK,IAAI,IACrBL,OAAO,CAACI,MAAM,KAAK,IAAI,EACvB;IACA;EACF;EAEA,MAAMG,YAAY,GAAGhC,SAAA,CAAAS,OAAI,CAACwB,OAAO,CAC/BtB,QAAQ,CAACK,QAAQ,CAACkB,SAAS,CAAC,CAAC,EAAEvB,QAAQ,CAACK,QAAQ,CAACmB,WAAW,CAAC,GAAG,CAAC,CAAC,EAClEV,OAAO,CAACM,MAAM,CACf;EACD,MAAMA,MAAM,GAAG,OAAO,IAAAzB,cAAA,CAAA8B,aAAa,EACjC;IACEpB,QAAQ,EAAEgB,YAAY;IACtBF,IAAI,EAAEL,OAAO,CAACK,IAAI;IAClBD,MAAM,EAAEJ,OAAO,CAACI;GACjB,EACD,IAAI,CACL;EAED,OAAO;IACLZ,IAAI,EAAE,SAAkB;IACxBoB,OAAO,EAAE,GAAG1B,QAAQ,CAACK,QAAQ,IAAIL,QAAQ,CAACmB,IAAI,IAAInB,QAAQ,CAACkB,MAAM,EAAE;IACnES,WAAW,EAAE,GAAGN,YAAY,IAAIP,OAAO,CAACK,IAAI,IAAIL,OAAO,CAACI,MAAM,GAAG,CAAC,EAAE;IACpEE;GACD;AACH,CAAC,CAAC;AAACQ,OAAA,CAAA7B,qBAAA,GAAAA,qBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getSourcesFromSpan = void 0;
|
|
7
|
+
var _effect = /*#__PURE__*/require("effect");
|
|
8
|
+
var _splitSpansAttributesByType = /*#__PURE__*/require("../logic/spans/split-spans-attributes-by-type.js");
|
|
9
|
+
var _maybeMapSourcemaps = /*#__PURE__*/require("./maybe-map-sourcemaps.js");
|
|
10
|
+
const getSourcesFromSpan = ({
|
|
11
|
+
span,
|
|
12
|
+
sources,
|
|
13
|
+
location
|
|
14
|
+
}) => (0, _effect.pipe)(_effect.Effect.gen(function* () {
|
|
15
|
+
if (span === undefined) {
|
|
16
|
+
return {
|
|
17
|
+
spans: [],
|
|
18
|
+
sources,
|
|
19
|
+
location
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const spans = [];
|
|
23
|
+
let current = span;
|
|
24
|
+
while (current !== undefined && current._tag === 'Span') {
|
|
25
|
+
const {
|
|
26
|
+
name,
|
|
27
|
+
attributes: allAttributes,
|
|
28
|
+
status
|
|
29
|
+
} = current;
|
|
30
|
+
const {
|
|
31
|
+
attributes,
|
|
32
|
+
stacktrace
|
|
33
|
+
} = (0, _splitSpansAttributesByType.splitSpansAttributesByTypes)(allAttributes);
|
|
34
|
+
const sourcesOrLocation = yield* (0, _maybeMapSourcemaps.maybeMapSourcemaps)(stacktrace);
|
|
35
|
+
const duration = status._tag === 'Ended' ? +`${(status.endTime - status.startTime) / BigInt(1000000)}` : undefined;
|
|
36
|
+
sources.push(...sourcesOrLocation.filter(el => el._tag === 'sources'));
|
|
37
|
+
location.push(...sourcesOrLocation.filter(el => el._tag === 'location'));
|
|
38
|
+
spans.push({
|
|
39
|
+
name,
|
|
40
|
+
attributes: Object.fromEntries(attributes),
|
|
41
|
+
durationInMilliseconds: duration
|
|
42
|
+
});
|
|
43
|
+
current = _effect.Option.getOrUndefined(current.parent);
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
spans,
|
|
47
|
+
location,
|
|
48
|
+
sources
|
|
49
|
+
};
|
|
50
|
+
}), _effect.Effect.withSpan('get-sources-from-span'));
|
|
51
|
+
exports.getSourcesFromSpan = getSourcesFromSpan;
|
|
52
|
+
//# sourceMappingURL=get-sources-from-span.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sources-from-span.js","names":["_effect","require","_splitSpansAttributesByType","_maybeMapSourcemaps","getSourcesFromSpan","span","sources","location","pipe","Effect","gen","undefined","spans","current","_tag","name","attributes","allAttributes","status","stacktrace","splitSpansAttributesByTypes","sourcesOrLocation","maybeMapSourcemaps","duration","endTime","startTime","BigInt","push","filter","el","Object","fromEntries","durationInMilliseconds","Option","getOrUndefined","parent","withSpan","exports"],"sources":["../../../src/source-maps/get-sources-from-span.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAGA,IAAAC,2BAAA,gBAAAD,OAAA;AAMA,IAAAE,mBAAA,gBAAAF,OAAA;AAEO,MAAMG,kBAAkB,GAAGA,CAAC;EACjCC,IAAI;EACJC,OAAO;EACPC;AAAQ,CAKT,KACC,IAAAP,OAAA,CAAAQ,IAAI,EACFR,OAAA,CAAAS,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,IAAIL,IAAI,KAAKM,SAAS,EAAE;IACtB,OAAO;MACLC,KAAK,EAAE,EAAE;MACTN,OAAO;MACPC;KACD;EACH;EAEA,MAAMK,KAAK,GAAG,EAAE;EAEhB,IAAIC,OAAO,GAA+BR,IAAI;EAC9C,OAAOQ,OAAO,KAAKF,SAAS,IAAIE,OAAO,CAACC,IAAI,KAAK,MAAM,EAAE;IACvD,MAAM;MAAEC,IAAI;MAAEC,UAAU,EAAEC,aAAa;MAAEC;IAAM,CAAE,GAAGL,OAAO;IAE3D,MAAM;MAAEG,UAAU;MAAEG;IAAU,CAAE,GAC9B,IAAAjB,2BAAA,CAAAkB,2BAA2B,EAACH,aAAa,CAAC;IAE5C,MAAMI,iBAAiB,GAAG,OAAO,IAAAlB,mBAAA,CAAAmB,kBAAkB,EAACH,UAAU,CAAC;IAE/D,MAAMI,QAAQ,GACZL,MAAM,CAACJ,IAAI,KAAK,OAAO,GACnB,CAAC,GAAG,CAACI,MAAM,CAACM,OAAO,GAAGN,MAAM,CAACO,SAAS,IAAIC,MAAM,CAAC,OAAO,CAAC,EAAE,GAC3Df,SAAS;IAEfL,OAAO,CAACqB,IAAI,CACV,GAAGN,iBAAiB,CAACO,MAAM,CAAEC,EAAE,IAAKA,EAAE,CAACf,IAAI,KAAK,SAAS,CAAC,CAC3D;IACDP,QAAQ,CAACoB,IAAI,CACX,GAAGN,iBAAiB,CAACO,MAAM,CAAEC,EAAE,IAAKA,EAAE,CAACf,IAAI,KAAK,UAAU,CAAC,CAC5D;IACDF,KAAK,CAACe,IAAI,CAAC;MACTZ,IAAI;MACJC,UAAU,EAAEc,MAAM,CAACC,WAAW,CAACf,UAAU,CAAC;MAC1CgB,sBAAsB,EAAET;KACzB,CAAC;IAEFV,OAAO,GAAGb,OAAA,CAAAiC,MAAM,CAACC,cAAc,CAACrB,OAAO,CAACsB,MAAM,CAAC;EACjD;EAEA,OAAO;IACLvB,KAAK;IACLL,QAAQ;IACRD;GACD;AACH,CAAC,CAAC,EACFN,OAAA,CAAAS,MAAM,CAAC2B,QAAQ,CAAC,uBAAuB,CAAC,CACzC;AAACC,OAAA,CAAAjC,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getSourcesFromStack = void 0;
|
|
7
|
+
var _effect = /*#__PURE__*/require("effect");
|
|
8
|
+
var _maybeAddErrorToSpansStack = /*#__PURE__*/require("../logic/spans/maybe-add-error-to-spans-stack.js");
|
|
9
|
+
var _maybeMapSourcemaps = /*#__PURE__*/require("./maybe-map-sourcemaps.js");
|
|
10
|
+
const getSourcesFromStack = maybeStack => (0, _effect.pipe)(_effect.Effect.gen(function* () {
|
|
11
|
+
if (maybeStack === undefined) {
|
|
12
|
+
return {
|
|
13
|
+
sources: [],
|
|
14
|
+
location: []
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
const relevantStackEntries = (0, _maybeAddErrorToSpansStack.removeNodeModulesEntriesFromStack)(maybeStack);
|
|
18
|
+
const sourcesOrLocation = yield* (0, _maybeMapSourcemaps.maybeMapSourcemaps)(relevantStackEntries);
|
|
19
|
+
return {
|
|
20
|
+
sources: sourcesOrLocation.filter(el => el._tag === 'sources'),
|
|
21
|
+
location: sourcesOrLocation.filter(el => el._tag === 'location')
|
|
22
|
+
};
|
|
23
|
+
}), _effect.Effect.withSpan('get-sources-from-stack'));
|
|
24
|
+
exports.getSourcesFromStack = getSourcesFromStack;
|
|
25
|
+
//# sourceMappingURL=get-sources-from-stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-sources-from-stack.js","names":["_effect","require","_maybeAddErrorToSpansStack","_maybeMapSourcemaps","getSourcesFromStack","maybeStack","pipe","Effect","gen","undefined","sources","location","relevantStackEntries","removeNodeModulesEntriesFromStack","sourcesOrLocation","maybeMapSourcemaps","filter","el","_tag","withSpan","exports"],"sources":["../../../src/source-maps/get-sources-from-stack.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAEA,IAAAC,0BAAA,gBAAAD,OAAA;AAEA,IAAAE,mBAAA,gBAAAF,OAAA;AAEO,MAAMG,mBAAmB,GAAIC,UAA8B,IAChE,IAAAL,OAAA,CAAAM,IAAI,EACFN,OAAA,CAAAO,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,IAAIH,UAAU,KAAKI,SAAS,EAAE;IAC5B,OAAO;MACLC,OAAO,EAAE,EAAE;MACXC,QAAQ,EAAE;KACX;EACH;EAEA,MAAMC,oBAAoB,GACxB,IAAAV,0BAAA,CAAAW,iCAAiC,EAACR,UAAU,CAAC;EAC/C,MAAMS,iBAAiB,GAAG,OAAO,IAAAX,mBAAA,CAAAY,kBAAkB,EAACH,oBAAoB,CAAC;EAEzE,OAAO;IACLF,OAAO,EAAEI,iBAAiB,CAACE,MAAM,CAAEC,EAAE,IAAKA,EAAE,CAACC,IAAI,KAAK,SAAS,CAAC;IAChEP,QAAQ,EAAEG,iBAAiB,CAACE,MAAM,CAAEC,EAAE,IAAKA,EAAE,CAACC,IAAI,KAAK,UAAU;GAClE;AACH,CAAC,CAAC,EACFlB,OAAA,CAAAO,MAAM,CAACY,QAAQ,CAAC,wBAAwB,CAAC,CAC1C;AAACC,OAAA,CAAAhB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -9,24 +9,22 @@ var _stackRegex = /*#__PURE__*/require("../logic/stack/stack-regex.js");
|
|
|
9
9
|
var _getErrorRelatedSources = /*#__PURE__*/require("./get-error-related-sources.js");
|
|
10
10
|
const maybeMapSourcemaps = stacktrace => (0, _effect.pipe)(_effect.Effect.forEach(stacktrace, stackLine => _effect.Effect.gen(function* () {
|
|
11
11
|
const chunks = stackLine.trimStart().split(' ');
|
|
12
|
-
const
|
|
13
|
-
const details = yield* (0, _getErrorRelatedSources.getErrorRelatedSources)(
|
|
12
|
+
const mapFileReportedPath = chunks.length === 2 ? chunks[1] : chunks[chunks.length - 1].slice(1, -1);
|
|
13
|
+
const details = yield* (0, _getErrorRelatedSources.getErrorRelatedSources)(mapFileReportedPath);
|
|
14
14
|
if (details === undefined) {
|
|
15
15
|
return {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
sourcesPath: undefined
|
|
16
|
+
_tag: 'stack-entry',
|
|
17
|
+
runPath: stackLine.replaceAll(_stackRegex.stackAtRegex, 'at ')
|
|
19
18
|
};
|
|
20
19
|
}
|
|
20
|
+
if (details._tag === 'location') {
|
|
21
|
+
return details;
|
|
22
|
+
}
|
|
21
23
|
const regex = new RegExp(`${process.cwd()}/node_modules/`);
|
|
22
24
|
if (details.sourcesPath?.match(regex)) {
|
|
23
25
|
return undefined;
|
|
24
26
|
}
|
|
25
|
-
return
|
|
26
|
-
runPath: details.runPath,
|
|
27
|
-
sourcesPath: details.sourcesPath,
|
|
28
|
-
source: details.source
|
|
29
|
-
};
|
|
27
|
+
return details;
|
|
30
28
|
})), _effect.Effect.map(array => array.filter(maybeSources => maybeSources !== undefined)));
|
|
31
29
|
exports.maybeMapSourcemaps = maybeMapSourcemaps;
|
|
32
30
|
//# sourceMappingURL=maybe-map-sourcemaps.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maybe-map-sourcemaps.js","names":["_effect","require","_stackRegex","_getErrorRelatedSources","maybeMapSourcemaps","stacktrace","pipe","Effect","forEach","stackLine","gen","chunks","trimStart","split","
|
|
1
|
+
{"version":3,"file":"maybe-map-sourcemaps.js","names":["_effect","require","_stackRegex","_getErrorRelatedSources","maybeMapSourcemaps","stacktrace","pipe","Effect","forEach","stackLine","gen","chunks","trimStart","split","mapFileReportedPath","length","slice","details","getErrorRelatedSources","undefined","_tag","runPath","replaceAll","stackAtRegex","regex","RegExp","process","cwd","sourcesPath","match","map","array","filter","maybeSources","exports"],"sources":["../../../src/source-maps/maybe-map-sourcemaps.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAGA,IAAAC,WAAA,gBAAAD,OAAA;AAEA,IAAAE,uBAAA,gBAAAF,OAAA;AAgBO,MAAMG,kBAAkB,GAC7BC,UAAoB,IAEpB,IAAAL,OAAA,CAAAM,IAAI,EACFN,OAAA,CAAAO,MAAM,CAACC,OAAO,CAACH,UAAU,EAAGI,SAAS,IACnCT,OAAA,CAAAO,MAAM,CAACG,GAAG,CAAC,aAAS;EAClB,MAAMC,MAAM,GAAGF,SAAS,CAACG,SAAS,EAAE,CAACC,KAAK,CAAC,GAAG,CAAC;EAC/C,MAAMC,mBAAmB,GACvBH,MAAM,CAACI,MAAM,KAAK,CAAC,GACfJ,MAAM,CAAC,CAAC,CAAC,GACTA,MAAM,CAACA,MAAM,CAACI,MAAM,GAAG,CAAC,CAAC,CAACC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;EAE5C,MAAMC,OAAO,GAAG,OAAO,IAAAd,uBAAA,CAAAe,sBAAsB,EAACJ,mBAAmB,CAAC;EAClE,IAAIG,OAAO,KAAKE,SAAS,EAAE;IACzB,OAAO;MACLC,IAAI,EAAE,aAAsB;MAC5BC,OAAO,EAAEZ,SAAS,CAACa,UAAU,CAACpB,WAAA,CAAAqB,YAAY,EAAE,KAAK;KAClD;EACH;EACA,IAAIN,OAAO,CAACG,IAAI,KAAK,UAAU,EAAE;IAC/B,OAAOH,OAAO;EAChB;EAEA,MAAMO,KAAK,GAAG,IAAIC,MAAM,CAAC,GAAGC,OAAO,CAACC,GAAG,EAAE,gBAAgB,CAAC;EAC1D,IAAIV,OAAO,CAACW,WAAW,EAAEC,KAAK,CAACL,KAAK,CAAC,EAAE;IACrC,OAAOL,SAAS;EAClB;EAEA,OAAOF,OAAO;AAChB,CAAC,CAAC,CACH,EACDjB,OAAA,CAAAO,MAAM,CAACuB,GAAG,CAAEC,KAAK,IACfA,KAAK,CAACC,MAAM,CAAEC,YAAY,IAAKA,YAAY,KAAKd,SAAS,CAAC,CAC3D,CACF;AAACe,OAAA,CAAA9B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.transformRawError = void 0;
|
|
7
7
|
var _effect = /*#__PURE__*/require("effect");
|
|
8
|
-
var _splitSpansAttributesByType = /*#__PURE__*/require("../logic/spans/split-spans-attributes-by-type.js");
|
|
9
8
|
var _stackRegex = /*#__PURE__*/require("../logic/stack/stack-regex.js");
|
|
10
9
|
var _stripCwdPath = /*#__PURE__*/require("../logic/strip-cwd-path.js");
|
|
11
|
-
var
|
|
12
|
-
var
|
|
10
|
+
var _getSourcesFromSpan = /*#__PURE__*/require("./get-sources-from-span.js");
|
|
11
|
+
var _getSourcesFromStack = /*#__PURE__*/require("./get-sources-from-stack.js");
|
|
13
12
|
const transformRawError = ({
|
|
14
13
|
reverseSpans,
|
|
15
14
|
stripCwd
|
|
@@ -19,37 +18,16 @@ const transformRawError = ({
|
|
|
19
18
|
span,
|
|
20
19
|
errorType,
|
|
21
20
|
isPlainString
|
|
22
|
-
}) => _effect.Effect.gen(function* () {
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
while (current !== undefined && current._tag === 'Span') {
|
|
33
|
-
const {
|
|
34
|
-
name,
|
|
35
|
-
attributes: allAttributes,
|
|
36
|
-
status
|
|
37
|
-
} = current;
|
|
38
|
-
const {
|
|
39
|
-
attributes,
|
|
40
|
-
stacktrace
|
|
41
|
-
} = (0, _splitSpansAttributesByType.splitSpansAttributesByTypes)(allAttributes);
|
|
42
|
-
const errorSources = yield* (0, _maybeMapSourcemaps.maybeMapSourcemaps)(stacktrace);
|
|
43
|
-
const duration = status._tag === 'Ended' ? +`${(status.endTime - status.startTime) / BigInt(1000000)}` : undefined;
|
|
44
|
-
sources.push(...errorSources);
|
|
45
|
-
spans.push({
|
|
46
|
-
name,
|
|
47
|
-
attributes: Object.fromEntries(attributes),
|
|
48
|
-
durationInMilliseconds: duration
|
|
49
|
-
});
|
|
50
|
-
current = _effect.Option.getOrUndefined(current.parent);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
21
|
+
}) => (0, _effect.pipe)(_effect.Effect.gen(function* () {
|
|
22
|
+
const data = yield* (0, _getSourcesFromStack.getSourcesFromStack)(maybeStack);
|
|
23
|
+
const {
|
|
24
|
+
spans,
|
|
25
|
+
sources,
|
|
26
|
+
location
|
|
27
|
+
} = yield* (0, _getSourcesFromSpan.getSourcesFromSpan)({
|
|
28
|
+
span,
|
|
29
|
+
...data
|
|
30
|
+
});
|
|
53
31
|
let stack;
|
|
54
32
|
if (maybeStack !== undefined) {
|
|
55
33
|
stack = stripCwd === true ? (0, _stripCwdPath.stripCwdPath)(maybeStack) : maybeStack;
|
|
@@ -58,10 +36,17 @@ const transformRawError = ({
|
|
|
58
36
|
errorType,
|
|
59
37
|
message,
|
|
60
38
|
stack: stack?.replaceAll(_stackRegex.stackAtRegex, 'at ').split('\r\n'),
|
|
61
|
-
sources: sources.length > 0 ? sources
|
|
39
|
+
sources: sources.length > 0 ? sources.map(({
|
|
40
|
+
_tag,
|
|
41
|
+
...data
|
|
42
|
+
}) => data) : undefined,
|
|
43
|
+
location: location.length > 0 ? location.map(({
|
|
44
|
+
_tag,
|
|
45
|
+
...data
|
|
46
|
+
}) => data) : undefined,
|
|
62
47
|
spans: reverseSpans === true ? spans.toReversed() : spans,
|
|
63
48
|
isPlainString
|
|
64
49
|
};
|
|
65
|
-
});
|
|
50
|
+
}), _effect.Effect.withSpan('transform-raw-error'));
|
|
66
51
|
exports.transformRawError = transformRawError;
|
|
67
52
|
//# sourceMappingURL=transform-raw-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transform-raw-error.js","names":["_effect","require","
|
|
1
|
+
{"version":3,"file":"transform-raw-error.js","names":["_effect","require","_stackRegex","_stripCwdPath","_getSourcesFromSpan","_getSourcesFromStack","transformRawError","reverseSpans","stripCwd","message","stack","maybeStack","span","errorType","isPlainString","pipe","Effect","gen","data","getSourcesFromStack","spans","sources","location","getSourcesFromSpan","undefined","stripCwdPath","replaceAll","stackAtRegex","split","length","map","_tag","toReversed","withSpan","exports"],"sources":["../../../src/source-maps/transform-raw-error.ts"],"sourcesContent":[null],"mappings":";;;;;;AAAA,IAAAA,OAAA,gBAAAC,OAAA;AAGA,IAAAC,WAAA,gBAAAD,OAAA;AACA,IAAAE,aAAA,gBAAAF,OAAA;AAGA,IAAAG,mBAAA,gBAAAH,OAAA;AACA,IAAAI,oBAAA,gBAAAJ,OAAA;AAEO,MAAMK,iBAAiB,GAC5BA,CAAC;EAAEC,YAAY;EAAEC;AAAQ,CAAwB,KACjD,CAAC;EACCC,OAAO;EACPC,KAAK,EAAEC,UAAU;EACjBC,IAAI;EACJC,SAAS;EACTC;AAAa,CACD,KACZ,IAAAd,OAAA,CAAAe,IAAI,EACFf,OAAA,CAAAgB,MAAM,CAACC,GAAG,CAAC,aAAS;EAClB,MAAMC,IAAI,GAAG,OAAO,IAAAb,oBAAA,CAAAc,mBAAmB,EAACR,UAAU,CAAC;EACnD,MAAM;IAAES,KAAK;IAAEC,OAAO;IAAEC;EAAQ,CAAE,GAAG,OAAO,IAAAlB,mBAAA,CAAAmB,kBAAkB,EAAC;IAC7DX,IAAI;IACJ,GAAGM;GACJ,CAAC;EAEF,IAAIR,KAAyB;EAC7B,IAAIC,UAAU,KAAKa,SAAS,EAAE;IAC5Bd,KAAK,GAAGF,QAAQ,KAAK,IAAI,GAAG,IAAAL,aAAA,CAAAsB,YAAY,EAACd,UAAU,CAAC,GAAGA,UAAU;EACnE;EAEA,OAAO;IACLE,SAAS;IACTJ,OAAO;IACPC,KAAK,EAAEA,KAAK,EAAEgB,UAAU,CAACxB,WAAA,CAAAyB,YAAY,EAAE,KAAK,CAAC,CAACC,KAAK,CAAC,MAAM,CAAC;IAC3DP,OAAO,EACLA,OAAO,CAACQ,MAAM,GAAG,CAAC,GACdR,OAAO,CAACS,GAAG,CAAC,CAAC;MAAEC,IAAI;MAAE,GAAGb;IAAI,CAAE,KAAKA,IAAI,CAAC,GACxCM,SAAS;IACfF,QAAQ,EACNA,QAAQ,CAACO,MAAM,GAAG,CAAC,GACfP,QAAQ,CAACQ,GAAG,CAAC,CAAC;MAAEC,IAAI;MAAE,GAAGb;IAAI,CAAE,KAAKA,IAAI,CAAC,GACzCM,SAAS;IACfJ,KAAK,EAAEb,YAAY,KAAK,IAAI,GAAGa,KAAK,CAACY,UAAU,EAAE,GAAGZ,KAAK;IACzDN;GACD;AACH,CAAC,CAAC,EACFd,OAAA,CAAAgB,MAAM,CAACiB,QAAQ,CAAC,qBAAqB,CAAC,CACvC;AAACC,OAAA,CAAA5B,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
package/dts/capture-errors.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Effect } from 'effect';
|
|
2
2
|
import { type Cause } from 'effect/Cause';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import type { FsError } from './logic/effects/fs/fs-error.js';
|
|
4
|
+
import type { ErrorLocation } from './source-maps/get-error-location-from-file-path.js';
|
|
5
|
+
import type { ErrorRelatedSources } from './source-maps/get-sources-from-map-file.js';
|
|
5
6
|
export interface ErrorSpan {
|
|
6
7
|
name: string;
|
|
7
8
|
attributes: Record<string, unknown>;
|
|
@@ -11,7 +12,8 @@ export interface ErrorData {
|
|
|
11
12
|
errorType: unknown;
|
|
12
13
|
message: unknown;
|
|
13
14
|
stack: string[] | undefined;
|
|
14
|
-
sources: ErrorRelatedSources[] | undefined;
|
|
15
|
+
sources: Omit<ErrorRelatedSources, '_tag'>[] | undefined;
|
|
16
|
+
location: Omit<ErrorLocation, '_tag'>[] | undefined;
|
|
15
17
|
spans: ErrorSpan[] | undefined;
|
|
16
18
|
isPlainString: boolean;
|
|
17
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-errors.d.ts","sourceRoot":"","sources":["../../src/capture-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,KAAK,KAAK,EAAqB,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"capture-errors.d.ts","sourceRoot":"","sources":["../../src/capture-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,KAAK,KAAK,EAAqB,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAE9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAGtF,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,sBAAsB,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAC5B,OAAO,EAAE,IAAI,CAAC,mBAAmB,EAAE,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;IACzD,QAAQ,EAAE,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,EAAE,GAAG,SAAS,CAAC;IACpD,KAAK,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,GAAI,CAAC,SACtB,KAAK,CAAC,CAAC,CAAC,YACN,oBAAoB,KAI5B,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAgBpC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { type Cause } from 'effect/Cause';
|
|
2
|
-
import {
|
|
2
|
+
import type { PrettyError } from '../../types/pretty-error.type.js';
|
|
3
3
|
export declare const captureErrorsFrom: <E>(cause: Cause<E>) => readonly PrettyError[];
|
|
4
4
|
//# sourceMappingURL=capture-errors-from-cause.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture-errors-from-cause.d.ts","sourceRoot":"","sources":["../../../../src/logic/errors/capture-errors-from-cause.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAqB,MAAM,cAAc,CAAC;AAE7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"capture-errors-from-cause.d.ts","sourceRoot":"","sources":["../../../../src/logic/errors/capture-errors-from-cause.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAqB,MAAM,cAAc,CAAC;AAE7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAIpE,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,KAAG,SAAS,WAAW,EAQvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-failures-title.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/format-failures-title.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,cACnB,OAAO,WACT,OAAO,kBACA,MAAM,gBACR,MAAM,
|
|
1
|
+
{"version":3,"file":"format-failures-title.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/format-failures-title.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,cACnB,OAAO,WACT,OAAO,kBACA,MAAM,gBACR,MAAM,WAYrB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Span } from 'effect/Tracer';
|
|
2
|
+
import type { PrettyPrintOptions } from '../../types/pretty-print-options.type.js';
|
|
3
3
|
export declare const formatSpanAttributes: (span: Span | undefined, { stripCwd, reverseSpans }: PrettyPrintOptions) => {
|
|
4
4
|
message: string;
|
|
5
5
|
stack: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-span-attributes.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/format-span-attributes.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"format-span-attributes.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/format-span-attributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAW,IAAI,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAMnF,eAAO,MAAM,oBAAoB,SACzB,IAAI,GAAG,SAAS,8BACM,kBAAkB;;;CAsD/C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Span } from 'effect/Tracer';
|
|
2
|
+
import type { PrettyPrintOptions } from '../../types/pretty-print-options.type.js';
|
|
3
3
|
export declare const maybePrintNodeStacktrace: (d: string[], span: Span | undefined, stack: string | undefined, isPlainString: boolean, { stripCwd }: PrettyPrintOptions) => void;
|
|
4
4
|
//# sourceMappingURL=maybe-print-node-stacktrace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maybe-print-node-stacktrace.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/maybe-print-node-stacktrace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"maybe-print-node-stacktrace.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/maybe-print-node-stacktrace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,eAAO,MAAM,wBAAwB,MAChC,MAAM,EAAE,QACL,IAAI,GAAG,SAAS,SACf,MAAM,GAAG,SAAS,iBACV,OAAO,gBACR,kBAAkB,SAWjC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Span } from 'effect/Tracer';
|
|
2
|
+
import type { PrettyPrintOptions } from '../../types/pretty-print-options.type.js';
|
|
3
3
|
export declare const maybePrintSpanAttributes: (d: string[], span: Span | undefined, isPlainString: boolean, { stripCwd, reverseSpans }: PrettyPrintOptions) => string[] | undefined;
|
|
4
4
|
//# sourceMappingURL=maybe-print-span-attributes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maybe-print-span-attributes.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/maybe-print-span-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"maybe-print-span-attributes.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/maybe-print-span-attributes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAInF,eAAO,MAAM,wBAAwB,MAChC,MAAM,EAAE,QACL,IAAI,GAAG,SAAS,iBACP,OAAO,8BACM,kBAAkB,yBAiB/C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Span } from 'effect/Tracer';
|
|
2
|
+
import type { PrettyPrintOptions } from '../../types/pretty-print-options.type.js';
|
|
3
3
|
export declare const printEffectStacktrace: (d: string[], span: Span | undefined, spanAttributesStack: string[] | undefined, { stripCwd }: PrettyPrintOptions) => void;
|
|
4
4
|
//# sourceMappingURL=print-effect-stacktrace.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print-effect-stacktrace.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/print-effect-stacktrace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"print-effect-stacktrace.d.ts","sourceRoot":"","sources":["../../../../src/logic/pretty-printing/print-effect-stacktrace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAG1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAGnF,eAAO,MAAM,qBAAqB,MAC7B,MAAM,EAAE,QACL,IAAI,GAAG,SAAS,uBACD,MAAM,EAAE,GAAG,SAAS,gBAC3B,kBAAkB,SAWjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-span-duration.d.ts","sourceRoot":"","sources":["../../../../src/logic/spans/get-span-duration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"get-span-duration.d.ts","sourceRoot":"","sources":["../../../../src/logic/spans/get-span-duration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAGhD,eAAO,MAAM,eAAe,WAAY,UAAU,eAAe,OAAO,WAQvE,CAAC"}
|