@promptbook/website-crawler 0.85.0-0 → 0.85.0-1

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
@@ -3,8 +3,8 @@ import { Readability } from '@mozilla/readability';
3
3
  import { JSDOM } from 'jsdom';
4
4
  import { SHA256 } from 'crypto-js';
5
5
  import hexEncoder from 'crypto-js/enc-hex';
6
- import { mkdir, rm } from 'fs/promises';
7
- import { basename, join, dirname } from 'path';
6
+ import { mkdir, rm } from 'node:fs/promises';
7
+ import { basename, join, dirname } from 'node:path';
8
8
  import { format } from 'prettier';
9
9
  import parserHtml from 'prettier/parser-html';
10
10
  import { BehaviorSubject, concat, from } from 'rxjs';
@@ -29,7 +29,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- var PROMPTBOOK_ENGINE_VERSION = '0.84.0';
32
+ var PROMPTBOOK_ENGINE_VERSION = '0.85.0-0';
33
33
  /**
34
34
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
35
35
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2650,9 +2650,9 @@ function assertsTaskSuccessful(executionResult) {
2650
2650
  function createTask(options) {
2651
2651
  var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
2652
2652
  var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(256 /* <- TODO: !!! To global config */));
2653
- var resultSubject = new BehaviorSubject({});
2653
+ var partialResultSubject = new BehaviorSubject({});
2654
2654
  var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
2655
- resultSubject.next(newOngoingResult);
2655
+ partialResultSubject.next(newOngoingResult);
2656
2656
  });
2657
2657
  function asPromise(options) {
2658
2658
  return __awaiter(this, void 0, void 0, function () {
@@ -2677,7 +2677,7 @@ function createTask(options) {
2677
2677
  taskId: taskId,
2678
2678
  asPromise: asPromise,
2679
2679
  asObservable: function () {
2680
- return concat(resultSubject.asObservable(), from(asPromise({
2680
+ return concat(partialResultSubject.asObservable(), from(asPromise({
2681
2681
  isCrashedOnError: true,
2682
2682
  })));
2683
2683
  },