@willwade/aac-processors 0.1.2 → 0.1.3
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.
|
@@ -360,6 +360,12 @@ class GridsetProcessor extends BaseProcessor {
|
|
|
360
360
|
if (s.r !== undefined) {
|
|
361
361
|
const rElements = Array.isArray(s.r) ? s.r : [s.r];
|
|
362
362
|
for (const r of rElements) {
|
|
363
|
+
if (typeof r === 'number') {
|
|
364
|
+
if (r !== 0) {
|
|
365
|
+
parts.push(String(r));
|
|
366
|
+
}
|
|
367
|
+
continue;
|
|
368
|
+
}
|
|
363
369
|
if (typeof r === 'object' && r !== null && '#text' in r) {
|
|
364
370
|
parts.push(String(r['#text']));
|
|
365
371
|
}
|
|
@@ -386,6 +386,12 @@ class GridsetProcessor extends baseProcessor_1.BaseProcessor {
|
|
|
386
386
|
if (s.r !== undefined) {
|
|
387
387
|
const rElements = Array.isArray(s.r) ? s.r : [s.r];
|
|
388
388
|
for (const r of rElements) {
|
|
389
|
+
if (typeof r === 'number') {
|
|
390
|
+
if (r !== 0) {
|
|
391
|
+
parts.push(String(r));
|
|
392
|
+
}
|
|
393
|
+
continue;
|
|
394
|
+
}
|
|
389
395
|
if (typeof r === 'object' && r !== null && '#text' in r) {
|
|
390
396
|
parts.push(String(r['#text']));
|
|
391
397
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willwade/aac-processors",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "A comprehensive TypeScript library for processing AAC (Augmentative and Alternative Communication) file formats with translation support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"browser": "dist/browser/index.browser.js",
|