@3-/aiapi 0.1.55 → 0.1.56
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/fmtJson.js +3 -0
- package/package.json +1 -1
package/fmtJson.js
CHANGED
|
@@ -3,11 +3,14 @@ import fmtSeg from './fmtSeg.js';
|
|
|
3
3
|
|
|
4
4
|
import partition from './partition.js';
|
|
5
5
|
|
|
6
|
+
import RmCnSpace from '@3-/rm_cn_space';
|
|
7
|
+
|
|
6
8
|
export default async(chat, txt) => {
|
|
7
9
|
var pli;
|
|
8
10
|
if (!txt) {
|
|
9
11
|
return [];
|
|
10
12
|
}
|
|
13
|
+
txt = RmCnSpace(txt);
|
|
11
14
|
pli = (await partition(chat, txt));
|
|
12
15
|
return Promise.all(pli.map(async([title, li]) => {
|
|
13
16
|
console.log('\n---\n→ ' + title + '\n' + li.join('\n') + '\n---\n');
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@3-/aiapi","version":"0.1.
|
|
1
|
+
{"name":"@3-/aiapi","version":"0.1.56","repository":{"type":"git","url":"git+https://atomgit.com/i18n/lib.git"},"homepage":"https://atomgit.com/i18n/lib/tree/dev/aiapi","author":"i18n.site@gmail.com","license":"MulanPSL-2.0","exports":{".":"./lib.js","./*":"./*"},"files":["./*"],"devDependencies":{"@3-/read":"^0.1.4"},"scripts":{},"type":"module","dependencies":{"@3-/retry":"^0.0.2","@3-/rm_cn_space":"^0.1.1","@3-/sleep":"^0.0.4","@3-/txt_li":"^0.1.5","@3-/utf8":"^0.0.4","lodash-es":"^4.17.21"}}
|