@promptbook/documents 0.82.0-2 → 0.82.0-3
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/esm/index.es.js
CHANGED
|
@@ -25,7 +25,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
25
25
|
* @generated
|
|
26
26
|
* @see https://github.com/webgptorg/promptbook
|
|
27
27
|
*/
|
|
28
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-
|
|
28
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-2';
|
|
29
29
|
/**
|
|
30
30
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
31
31
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2518,11 +2518,17 @@ var ALL_ERRORS = __assign(__assign({}, PROMPTBOOK_ERRORS), COMMON_JAVASCRIPT_ERR
|
|
|
2518
2518
|
* @public exported from `@promptbook/utils`
|
|
2519
2519
|
*/
|
|
2520
2520
|
function deserializeError(error) {
|
|
2521
|
+
var name = error.name, stack = error.stack;
|
|
2522
|
+
var message = error.message;
|
|
2521
2523
|
var ErrorClass = ALL_ERRORS[error.name];
|
|
2522
2524
|
if (ErrorClass === undefined) {
|
|
2523
|
-
|
|
2525
|
+
ErrorClass = Error;
|
|
2526
|
+
message = "".concat(name, ": ").concat(message);
|
|
2524
2527
|
}
|
|
2525
|
-
|
|
2528
|
+
if (stack !== undefined && stack !== '') {
|
|
2529
|
+
message = spaceTrim$1(function (block) { return "\n ".concat(block(message), "\n\n Original stack trace:\n ").concat(block(stack || ''), "\n "); });
|
|
2530
|
+
}
|
|
2531
|
+
return new ErrorClass(message);
|
|
2526
2532
|
}
|
|
2527
2533
|
|
|
2528
2534
|
/**
|