@azure/synapse-monitoring 1.0.0-alpha.20221129.1 → 1.0.0-alpha.20221201.1

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.js CHANGED
@@ -585,8 +585,9 @@ function serializeBasicTypes(typeName, objectName, value) {
585
585
  !(value instanceof ArrayBuffer) &&
586
586
  !ArrayBuffer.isView(value) &&
587
587
  // File objects count as a type of Blob, so we want to use instanceof explicitly
588
- !((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob)) {
589
- throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, or NodeJS.ReadableStream.`);
588
+ !((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob) &&
589
+ objectType !== "function") {
590
+ throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, NodeJS.ReadableStream, or () => NodeJS.ReadableStream.`);
590
591
  }
591
592
  }
592
593
  }