@willwade/aac-processors 0.2.9 → 0.2.11
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/README.md +4 -1
- package/dist/browser/processors/gridset/cellHelpers.js +97 -0
- package/dist/browser/processors/gridset/gridCalculations.js +61 -0
- package/dist/browser/processors/gridset/helpers.js +4 -1
- package/dist/browser/processors/gridset/xmlFormatter.js +84 -0
- package/dist/browser/processors/gridsetProcessor.js +31 -92
- package/dist/browser/processors/obfProcessor.js +106 -49
- package/dist/browser/utilities/analytics/morphology/index.js +0 -1
- package/dist/browser/utils/sqlite.js +6 -2
- package/dist/processors/gridset/cellHelpers.d.ts +66 -0
- package/dist/processors/gridset/cellHelpers.js +102 -0
- package/dist/processors/gridset/gridCalculations.d.ts +45 -0
- package/dist/processors/gridset/gridCalculations.js +65 -0
- package/dist/processors/gridset/helpers.js +4 -1
- package/dist/processors/gridset/wordlistHelpers.js +9 -7
- package/dist/processors/gridset/xmlFormatter.d.ts +43 -0
- package/dist/processors/gridset/xmlFormatter.js +89 -0
- package/dist/processors/gridsetProcessor.js +31 -92
- package/dist/processors/obfProcessor.d.ts +2 -1
- package/dist/processors/obfProcessor.js +106 -49
- package/dist/utilities/analytics/morphology/index.d.ts +0 -1
- package/dist/utilities/analytics/morphology/index.js +1 -3
- package/dist/utils/sqlite.js +6 -2
- package/package.json +1 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WordFormGenerator = exports.
|
|
3
|
+
exports.WordFormGenerator = exports.MorphologyEngine = void 0;
|
|
4
4
|
var engine_1 = require("./engine");
|
|
5
5
|
Object.defineProperty(exports, "MorphologyEngine", { enumerable: true, get: function () { return engine_1.MorphologyEngine; } });
|
|
6
|
-
var grid3VerbsParser_1 = require("./grid3VerbsParser");
|
|
7
|
-
Object.defineProperty(exports, "Grid3VerbsParser", { enumerable: true, get: function () { return grid3VerbsParser_1.Grid3VerbsParser; } });
|
|
8
6
|
var wordFormGenerator_1 = require("./wordFormGenerator");
|
|
9
7
|
Object.defineProperty(exports, "WordFormGenerator", { enumerable: true, get: function () { return wordFormGenerator_1.WordFormGenerator; } });
|
package/dist/utils/sqlite.js
CHANGED
|
@@ -85,7 +85,9 @@ async function openSqliteDatabase(input, options = {}) {
|
|
|
85
85
|
throw new Error('SQLite file paths are not supported in browser environments.');
|
|
86
86
|
}
|
|
87
87
|
const Database = getBetterSqlite3();
|
|
88
|
-
const db = new Database(input, {
|
|
88
|
+
const db = new Database(input, {
|
|
89
|
+
readonly: options.readonly ?? true,
|
|
90
|
+
});
|
|
89
91
|
return { db };
|
|
90
92
|
}
|
|
91
93
|
const data = await readBinaryFromInput(input);
|
|
@@ -98,7 +100,9 @@ async function openSqliteDatabase(input, options = {}) {
|
|
|
98
100
|
const dbPath = join(tempDir, 'input.sqlite');
|
|
99
101
|
await writeBinaryToPath(dbPath, data);
|
|
100
102
|
const Database = getBetterSqlite3();
|
|
101
|
-
const db = new Database(dbPath, {
|
|
103
|
+
const db = new Database(dbPath, {
|
|
104
|
+
readonly: options.readonly ?? true,
|
|
105
|
+
});
|
|
102
106
|
const cleanup = async () => {
|
|
103
107
|
try {
|
|
104
108
|
db.close();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willwade/aac-processors",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.11",
|
|
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",
|