@azure/synapse-monitoring 1.0.0-alpha.20230824.1 → 1.0.0-alpha.20230908.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
@@ -587,13 +587,14 @@ function serializeBasicTypes(typeName, objectName, value) {
587
587
  else if (typeName.match(/^Stream$/i) !== null) {
588
588
  const objectType = typeof value;
589
589
  if (objectType !== "string" &&
590
- typeof value.pipe !== "function" &&
590
+ typeof value.pipe !== "function" && // NodeJS.ReadableStream
591
+ typeof value.tee !== "function" && // browser ReadableStream
591
592
  !(value instanceof ArrayBuffer) &&
592
593
  !ArrayBuffer.isView(value) &&
593
594
  // File objects count as a type of Blob, so we want to use instanceof explicitly
594
595
  !((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob) &&
595
596
  objectType !== "function") {
596
- throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, NodeJS.ReadableStream, or () => NodeJS.ReadableStream.`);
597
+ throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`);
597
598
  }
598
599
  }
599
600
  }
@@ -2239,7 +2240,7 @@ function setPlatformSpecificData(map) {
2239
2240
 
2240
2241
  // Copyright (c) Microsoft Corporation.
2241
2242
  // Licensed under the MIT license.
2242
- const SDK_VERSION = "1.12.1";
2243
+ const SDK_VERSION = "1.12.2";
2243
2244
  const DEFAULT_RETRY_POLICY_COUNT = 3;
2244
2245
 
2245
2246
  // Copyright (c) Microsoft Corporation.