@zenfs/core 1.8.3 → 1.8.4

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.
Files changed (2) hide show
  1. package/dist/utils.js +1 -1
  2. package/package.json +1 -1
package/dist/utils.js CHANGED
@@ -172,7 +172,7 @@ export function growBuffer(buffer, newByteLength) {
172
172
  const newBuffer = growBuffer(buffer.buffer, newByteLength);
173
173
  return new buffer.constructor(newBuffer, buffer.byteOffset, newByteLength);
174
174
  }
175
- const isShared = buffer instanceof SharedArrayBuffer;
175
+ const isShared = typeof SharedArrayBuffer !== 'undefined' && buffer instanceof SharedArrayBuffer;
176
176
  // Note: If true, the buffer must be resizable/growable because of the first check.
177
177
  if (buffer.maxByteLength > newByteLength) {
178
178
  // eslint-disable-next-line @typescript-eslint/no-unused-expressions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "1.8.3",
3
+ "version": "1.8.4",
4
4
  "description": "A filesystem, anywhere",
5
5
  "funding": {
6
6
  "type": "individual",