@promptbook/core 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 +3 -4
- package/esm/index.es.js.map +1 -1
- package/package.json +1 -1
- package/umd/index.umd.js +7 -7
- package/umd/index.umd.js.map +1 -1
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 { forTime } from 'waitasecond';
|
|
5
5
|
import { unparse, parse } from 'papaparse';
|
|
6
|
-
import { readFile } from 'fs/promises';
|
|
7
6
|
import { join, basename } from 'path';
|
|
8
7
|
import { SHA256 } from 'crypto-js';
|
|
9
8
|
import hexEncoder from 'crypto-js/enc-hex';
|
|
@@ -15,7 +14,7 @@ import moment from 'moment';
|
|
|
15
14
|
/**
|
|
16
15
|
* The version of the Promptbook library
|
|
17
16
|
*/
|
|
18
|
-
var PROMPTBOOK_VERSION = '0.71.0-
|
|
17
|
+
var PROMPTBOOK_VERSION = '0.71.0-16';
|
|
19
18
|
// TODO: [main] !!!! List here all the versions and annotate + put into script
|
|
20
19
|
|
|
21
20
|
/*! *****************************************************************************
|
|
@@ -5461,7 +5460,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
5461
5460
|
switch (_c.label) {
|
|
5462
5461
|
case 0:
|
|
5463
5462
|
_b = (_a = JSON).parse;
|
|
5464
|
-
return [4 /*yield*/, readFile(filename_1, 'utf-8')];
|
|
5463
|
+
return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
|
|
5465
5464
|
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
|
5466
5465
|
}
|
|
5467
5466
|
});
|
|
@@ -5471,7 +5470,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
5471
5470
|
return __awaiter(this, void 0, void 0, function () {
|
|
5472
5471
|
return __generator(this, function (_a) {
|
|
5473
5472
|
switch (_a.label) {
|
|
5474
|
-
case 0: return [4 /*yield*/, readFile(filename_1, 'utf-8')];
|
|
5473
|
+
case 0: return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
|
|
5475
5474
|
case 1: return [2 /*return*/, _a.sent()];
|
|
5476
5475
|
}
|
|
5477
5476
|
});
|