@tstdl/base 0.92.165 → 0.92.166
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 +1 -1
- package/utils/type-guards.js +2 -1
package/package.json
CHANGED
package/utils/type-guards.js
CHANGED
|
@@ -188,7 +188,8 @@ export const assertArrayBuffer = arrayBufferGuards.assertArrayBuffer;
|
|
|
188
188
|
export const assertNotArrayBuffer = arrayBufferGuards.assertNotArrayBuffer;
|
|
189
189
|
export const assertArrayBufferPass = arrayBufferGuards.assertArrayBufferPass;
|
|
190
190
|
export const assertNotArrayBufferPass = arrayBufferGuards.assertNotArrayBufferPass;
|
|
191
|
-
const sharedArrayBufferGuards = createInstanceGuards('SharedArrayBuffer', SharedArrayBuffer
|
|
191
|
+
const sharedArrayBufferGuards = createInstanceGuards('SharedArrayBuffer', globalThis.SharedArrayBuffer ?? class MockSharedArrayBuffer {
|
|
192
|
+
}); // in case SharedArrayBuffer is not available
|
|
192
193
|
export const isSharedArrayBuffer = sharedArrayBufferGuards.isSharedArrayBuffer;
|
|
193
194
|
export const isNotSharedArrayBuffer = sharedArrayBufferGuards.isNotSharedArrayBuffer;
|
|
194
195
|
export const assertSharedArrayBuffer = sharedArrayBufferGuards.assertSharedArrayBuffer;
|