scv-esm 1.114.4 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scv-esm",
3
- "version": "1.114.4",
3
+ "version": "1.115.0",
4
4
  "description": "SuttaCentral Voice ES Module",
5
5
  "main": "index.js",
6
6
  "module": "main.mjs",
@@ -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
- if (pa.sutta || pa.vinaya) {
135
- pa.stats = authorStats[key];
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
  });
@@ -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",