@promptbook/markdown-utils 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 { 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
|
+
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
|
/*! *****************************************************************************
|
|
@@ -3285,7 +3284,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
3285
3284
|
switch (_c.label) {
|
|
3286
3285
|
case 0:
|
|
3287
3286
|
_b = (_a = JSON).parse;
|
|
3288
|
-
return [4 /*yield*/, readFile(filename_1, 'utf-8')];
|
|
3287
|
+
return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
|
|
3289
3288
|
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])];
|
|
3290
3289
|
}
|
|
3291
3290
|
});
|
|
@@ -3295,7 +3294,7 @@ function makeKnowledgeSourceHandler(knowledgeSource, tools, options) {
|
|
|
3295
3294
|
return __awaiter(this, void 0, void 0, function () {
|
|
3296
3295
|
return __generator(this, function (_a) {
|
|
3297
3296
|
switch (_a.label) {
|
|
3298
|
-
case 0: return [4 /*yield*/, readFile(filename_1, 'utf-8')];
|
|
3297
|
+
case 0: return [4 /*yield*/, tools.fs.readFile(filename_1, 'utf-8')];
|
|
3299
3298
|
case 1: return [2 /*return*/, _a.sent()];
|
|
3300
3299
|
}
|
|
3301
3300
|
});
|