@promptbook/website-crawler 0.104.0 → 0.105.0-0

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 CHANGED
@@ -27,6 +27,10 @@ Turn your company's scattered knowledge into AI ready Books
27
27
 
28
28
 
29
29
 
30
+ <blockquote style="color: #ff8811">
31
+ <b>⚠ Warning:</b> This is a pre-release version of the library. It is not yet ready for production use. Please look at <a href="https://www.npmjs.com/package/@promptbook/core?activeTab=versions">latest stable release</a>.
32
+ </blockquote>
33
+
30
34
  ## 📦 Package `@promptbook/website-crawler`
31
35
 
32
36
  - Promptbooks are [divided into several](#-packages) packages, all are published from [single monorepo](https://github.com/webgptorg/promptbook).
package/esm/index.es.js CHANGED
@@ -27,7 +27,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
27
27
  * @generated
28
28
  * @see https://github.com/webgptorg/promptbook
29
29
  */
30
- const PROMPTBOOK_ENGINE_VERSION = '0.104.0';
30
+ const PROMPTBOOK_ENGINE_VERSION = '0.105.0-0';
31
31
  /**
32
32
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
33
33
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -3544,7 +3544,7 @@ function jsonStringsToJsons(object) {
3544
3544
  *
3545
3545
  * @public exported from `@promptbook/utils`
3546
3546
  */
3547
- function deserializeError(error) {
3547
+ function deserializeError(error, isStackAddedToMessage = true) {
3548
3548
  const { name, stack, id } = error; // Added id
3549
3549
  let { message } = error;
3550
3550
  let ErrorClass = ALL_ERRORS[error.name];
@@ -3552,7 +3552,7 @@ function deserializeError(error) {
3552
3552
  ErrorClass = Error;
3553
3553
  message = `${name}: ${message}`;
3554
3554
  }
3555
- if (stack !== undefined && stack !== '') {
3555
+ if (isStackAddedToMessage && stack !== undefined && stack !== '') {
3556
3556
  message = spaceTrim$2((block) => `
3557
3557
  ${block(message)}
3558
3558