@promptbook/pdf 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
@@ -3,7 +3,6 @@ import { format } from 'prettier';
3
3
  import parserHtml from 'prettier/parser-html';
4
4
  import { basename, join } from 'path';
5
5
  import { forTime } from 'waitasecond';
6
- import { readFile } from 'fs/promises';
7
6
  import { SHA256 } from 'crypto-js';
8
7
  import hexEncoder from 'crypto-js/enc-hex';
9
8
  import { lookup } from 'mime-types';
@@ -13,7 +12,7 @@ import { unparse, parse } from 'papaparse';
13
12
  /**
14
13
  * The version of the Promptbook library
15
14
  */
16
- var PROMPTBOOK_VERSION = '0.71.0-15';
15
+ var PROMPTBOOK_VERSION = '0.71.0-16';
17
16
  // TODO: [main] !!!! List here all the versions and annotate + put into script
18
17
 
19
18
  /*! *****************************************************************************
@@ -3096,7 +3095,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
3096
3095
  switch (_c.label) {
3097
3096
  case 0:
3098
3097
  _b = (_a = JSON).parse;
3099
- return [4 /*yield*/, readFile(filename_1, 'utf-8')];
3098
+ return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
3100
3099
  case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
3101
3100
  }
3102
3101
  });
@@ -3106,7 +3105,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
3106
3105
  return __awaiter(this, void 0, void 0, function () {
3107
3106
  return __generator(this, function (_a) {
3108
3107
  switch (_a.label) {
3109
- case 0: return [4 /*yield*/, readFile(filename_1, 'utf-8')];
3108
+ case 0: return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
3110
3109
  case 1: return [2 /*return*/, _a.sent()];
3111
3110
  }
3112
3111
  });