@willwade/aac-processors 0.1.16 → 0.1.17
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.
|
@@ -469,7 +469,10 @@ class SnapProcessor extends BaseProcessor {
|
|
|
469
469
|
const base64 = imageData.Data.toString('base64');
|
|
470
470
|
buttonImage = `data:${mimeType};base64,${base64}`;
|
|
471
471
|
buttonParameters.image_id = imageData.Identifier;
|
|
472
|
-
|
|
472
|
+
// NOTE: We don't include imageData in parameters because Buffers don't serialize
|
|
473
|
+
// correctly across server/client boundaries (Next.js SSR, JSON, etc.)
|
|
474
|
+
// The data URL in buttonImage is sufficient for display purposes.
|
|
475
|
+
// For conversions, images can be reloaded from the source file/database.
|
|
473
476
|
}
|
|
474
477
|
}
|
|
475
478
|
catch (e) {
|
|
@@ -472,7 +472,10 @@ class SnapProcessor extends baseProcessor_1.BaseProcessor {
|
|
|
472
472
|
const base64 = imageData.Data.toString('base64');
|
|
473
473
|
buttonImage = `data:${mimeType};base64,${base64}`;
|
|
474
474
|
buttonParameters.image_id = imageData.Identifier;
|
|
475
|
-
|
|
475
|
+
// NOTE: We don't include imageData in parameters because Buffers don't serialize
|
|
476
|
+
// correctly across server/client boundaries (Next.js SSR, JSON, etc.)
|
|
477
|
+
// The data URL in buttonImage is sufficient for display purposes.
|
|
478
|
+
// For conversions, images can be reloaded from the source file/database.
|
|
476
479
|
}
|
|
477
480
|
}
|
|
478
481
|
catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willwade/aac-processors",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
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",
|