@alva-ai/toolkit 0.20.0 → 0.21.0

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/index.cjs CHANGED
@@ -77,6 +77,11 @@ var CliUsageError = class extends Error {
77
77
  }
78
78
  };
79
79
 
80
+ // src/arrayBuffer.ts
81
+ function isArrayBuffer(value) {
82
+ return Object.prototype.toString.call(value) === "[object ArrayBuffer]";
83
+ }
84
+
80
85
  // src/resources/fs.ts
81
86
  var WRITE_FLAG_APPEND = 1 << 0;
82
87
  function isValidUtf8(bytes) {
@@ -128,7 +133,7 @@ var FsResource = class {
128
133
  const result = await this.client._request("GET", "/api/v1/fs/read", {
129
134
  query: { path: params.path, offset: params.offset, size: params.size }
130
135
  });
131
- if (!(result instanceof ArrayBuffer)) return result;
136
+ if (!isArrayBuffer(result)) return result;
132
137
  if (!isValidUtf8(new Uint8Array(result))) {
133
138
  return result;
134
139
  }
@@ -3781,7 +3786,7 @@ var installPlaybookRuntime = (targetWindow) => {
3781
3786
  };
3782
3787
 
3783
3788
  // src/index.ts
3784
- var VERSION = true ? "0.20.0" : "dev";
3789
+ var VERSION = true ? "0.21.0" : "dev";
3785
3790
  // Annotate the CommonJS export names for ESM import in node:
3786
3791
  0 && (module.exports = {
3787
3792
  AlertsResource,