@promptbook/website-crawler 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
|
@@ -26,7 +26,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-
|
|
29
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-2';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2482,11 +2482,17 @@ var ALL_ERRORS = __assign(__assign({}, PROMPTBOOK_ERRORS), COMMON_JAVASCRIPT_ERR
|
|
|
2482
2482
|
* @public exported from `@promptbook/utils`
|
|
2483
2483
|
*/
|
|
2484
2484
|
function deserializeError(error) {
|
|
2485
|
+
var name = error.name, stack = error.stack;
|
|
2486
|
+
var message = error.message;
|
|
2485
2487
|
var ErrorClass = ALL_ERRORS[error.name];
|
|
2486
2488
|
if (ErrorClass === undefined) {
|
|
2487
|
-
|
|
2489
|
+
ErrorClass = Error;
|
|
2490
|
+
message = "".concat(name, ": ").concat(message);
|
|
2488
2491
|
}
|
|
2489
|
-
|
|
2492
|
+
if (stack !== undefined && stack !== '') {
|
|
2493
|
+
message = spaceTrim$1(function (block) { return "\n ".concat(block(message), "\n\n Original stack trace:\n ").concat(block(stack || ''), "\n "); });
|
|
2494
|
+
}
|
|
2495
|
+
return new ErrorClass(message);
|
|
2490
2496
|
}
|
|
2491
2497
|
|
|
2492
2498
|
/**
|