@promptbook/website-crawler 0.71.0-16 → 0.71.0-17

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
@@ -1,6 +1,6 @@
1
1
  import spaceTrim$1, { spaceTrim } from 'spacetrim';
2
2
  import { Readability } from '@mozilla/readability';
3
- import { mkdir, rm, readFile, writeFile } from 'fs/promises';
3
+ import { mkdir, rm, writeFile } from 'fs/promises';
4
4
  import { JSDOM } from 'jsdom';
5
5
  import { forTime } from 'waitasecond';
6
6
  import { SHA256 } from 'crypto-js';
@@ -16,7 +16,7 @@ import { Converter } from 'showdown';
16
16
  /**
17
17
  * The version of the Promptbook library
18
18
  */
19
- var PROMPTBOOK_VERSION = '0.71.0-15';
19
+ var PROMPTBOOK_VERSION = '0.71.0-16';
20
20
  // TODO: [main] !!!! List here all the versions and annotate + put into script
21
21
 
22
22
  /*! *****************************************************************************
@@ -3213,7 +3213,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
3213
3213
  switch (_c.label) {
3214
3214
  case 0:
3215
3215
  _b = (_a = JSON).parse;
3216
- return [4 /*yield*/, readFile(filename_1, 'utf-8')];
3216
+ return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
3217
3217
  case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
3218
3218
  }
3219
3219
  });
@@ -3223,7 +3223,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
3223
3223
  return __awaiter(this, void 0, void 0, function () {
3224
3224
  return __generator(this, function (_a) {
3225
3225
  switch (_a.label) {
3226
- case 0: return [4 /*yield*/, readFile(filename_1, 'utf-8')];
3226
+ case 0: return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
3227
3227
  case 1: return [2 /*return*/, _a.sent()];
3228
3228
  }
3229
3229
  });