@willwade/aac-processors 0.3.5 → 0.3.6
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/dist/browser/utils/io.js +4 -0
- package/dist/utils/io.js +4 -0
- package/package.json +1 -1
package/dist/browser/utils/io.js
CHANGED
|
@@ -69,6 +69,10 @@ export function getOs() {
|
|
|
69
69
|
return cachedOs;
|
|
70
70
|
}
|
|
71
71
|
export function isNodeRuntime() {
|
|
72
|
+
const browserGlobals = globalThis;
|
|
73
|
+
if (browserGlobals.window !== undefined) {
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
72
76
|
return typeof process !== 'undefined' && !!process.versions?.node;
|
|
73
77
|
}
|
|
74
78
|
export function getBasename(filePath) {
|
package/dist/utils/io.js
CHANGED
|
@@ -83,6 +83,10 @@ function getOs() {
|
|
|
83
83
|
return cachedOs;
|
|
84
84
|
}
|
|
85
85
|
function isNodeRuntime() {
|
|
86
|
+
const browserGlobals = globalThis;
|
|
87
|
+
if (browserGlobals.window !== undefined) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
86
90
|
return typeof process !== 'undefined' && !!process.versions?.node;
|
|
87
91
|
}
|
|
88
92
|
function getBasename(filePath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willwade/aac-processors",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
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",
|