scv-esm 1.114.3 → 1.115.0
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/package.json +3 -3
- package/scripts/js/authors-v2.mjs +7 -6
- package/src/auto/authors-v2.mjs +0 -53
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scv-esm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.115.0",
|
|
4
4
|
"description": "SuttaCentral Voice ES Module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "main.mjs",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"eslint": "^9.17.0",
|
|
28
28
|
"memo-again": "^0.8.0",
|
|
29
29
|
"mocha": "^11.0.1",
|
|
30
|
-
"scv-bilara": "^3.171.
|
|
30
|
+
"scv-bilara": "^3.171.3",
|
|
31
31
|
"should": "^13.2.3",
|
|
32
|
-
"suttacentral-api": "^2.
|
|
32
|
+
"suttacentral-api": "^2.17.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -79,9 +79,9 @@ function deeplAuthor(pubAuthors, lang) {
|
|
|
79
79
|
// Initialize with authors not included in published
|
|
80
80
|
// SuttaCentral authors
|
|
81
81
|
let pubAuthors = {};
|
|
82
|
-
deeplAuthor(pubAuthors, 'es');
|
|
83
|
-
deeplAuthor(pubAuthors, 'pt');
|
|
84
|
-
deeplAuthor(pubAuthors, 'it');
|
|
82
|
+
//deeplAuthor(pubAuthors, 'es');
|
|
83
|
+
//deeplAuthor(pubAuthors, 'pt');
|
|
84
|
+
//deeplAuthor(pubAuthors, 'it');
|
|
85
85
|
|
|
86
86
|
for (let i=0; i < ebtPubs.length; i++) {
|
|
87
87
|
let v = ebtPubs[i];
|
|
@@ -131,10 +131,11 @@ function deeplAuthor(pubAuthors, lang) {
|
|
|
131
131
|
pa.sutta = true;
|
|
132
132
|
pa.vinaya = true;
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
let stats = authorStats[key];
|
|
135
|
+
if (stats && (stats.sutta || stats.vinaya)) {
|
|
136
|
+
pa.stats = stats;
|
|
136
137
|
} else {
|
|
137
|
-
console.log(msg, `omitting ${key}
|
|
138
|
+
console.log(msg, `omitting ${key}`, stats);
|
|
138
139
|
delete pubAuthors[key];
|
|
139
140
|
}
|
|
140
141
|
});
|
package/src/auto/authors-v2.mjs
CHANGED
|
@@ -1,46 +1,4 @@
|
|
|
1
1
|
const AUTHORS = {
|
|
2
|
-
"es:ebt-deepl": {
|
|
3
|
-
"type": "translation",
|
|
4
|
-
"lang": "es",
|
|
5
|
-
"author": "ebt-deepl",
|
|
6
|
-
"name": [
|
|
7
|
-
"EBT-DeepL/ES"
|
|
8
|
-
],
|
|
9
|
-
"exampleVersion": 1,
|
|
10
|
-
"sutta": true,
|
|
11
|
-
"vinaya": false,
|
|
12
|
-
"examples": [
|
|
13
|
-
"sutta"
|
|
14
|
-
]
|
|
15
|
-
},
|
|
16
|
-
"pt:ebt-deepl": {
|
|
17
|
-
"type": "translation",
|
|
18
|
-
"lang": "pt",
|
|
19
|
-
"author": "ebt-deepl",
|
|
20
|
-
"name": [
|
|
21
|
-
"EBT-DeepL/PT"
|
|
22
|
-
],
|
|
23
|
-
"exampleVersion": 1,
|
|
24
|
-
"sutta": true,
|
|
25
|
-
"vinaya": false,
|
|
26
|
-
"examples": [
|
|
27
|
-
"sutta"
|
|
28
|
-
]
|
|
29
|
-
},
|
|
30
|
-
"it:ebt-deepl": {
|
|
31
|
-
"type": "translation",
|
|
32
|
-
"lang": "it",
|
|
33
|
-
"author": "ebt-deepl",
|
|
34
|
-
"name": [
|
|
35
|
-
"EBT-DeepL/IT"
|
|
36
|
-
],
|
|
37
|
-
"exampleVersion": 1,
|
|
38
|
-
"sutta": true,
|
|
39
|
-
"vinaya": false,
|
|
40
|
-
"examples": [
|
|
41
|
-
"sutta"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
2
|
"en:sujato": {
|
|
45
3
|
"type": "translation",
|
|
46
4
|
"lang": "en",
|
|
@@ -316,17 +274,6 @@ const AUTHORS = {
|
|
|
316
274
|
"sutta/kn/ud/vagga8": 10
|
|
317
275
|
}
|
|
318
276
|
},
|
|
319
|
-
"ru:team": {
|
|
320
|
-
"type": "translation",
|
|
321
|
-
"lang": "ru",
|
|
322
|
-
"author": "team",
|
|
323
|
-
"name": [
|
|
324
|
-
"Dzmitry",
|
|
325
|
-
"Danylo Rybchynskyi"
|
|
326
|
-
],
|
|
327
|
-
"exampleVersion": 0,
|
|
328
|
-
"sutta": true
|
|
329
|
-
},
|
|
330
277
|
"jpn:kaz": {
|
|
331
278
|
"type": "translation",
|
|
332
279
|
"lang": "jpn",
|