@azure/core-client
Advanced tools
Comparing version 1.2.3-alpha.20210716.1 to 1.3.0
# Release History | ||
## 1.2.3 (Unreleased) | ||
## 1.3.0 (2021-08-04) | ||
### Features Added | ||
### Breaking Changes | ||
- Updated to use version 1.0.0-preview.13 of `@azure/core-tracing`. | ||
### Bugs Fixed | ||
### Key Bugs Fixed | ||
### Other Changes | ||
- Fixed an issue where APIs that accepted a Blob didn't work with File objects. See [#16754](https://github.com/Azure/azure-sdk-for-js/issues/16754) for more details. | ||
@@ -13,0 +13,0 @@ ## 1.2.2 (2021-07-13) |
@@ -320,3 +320,2 @@ // Copyright (c) Microsoft Corporation. | ||
function serializeBasicTypes(typeName, objectName, value) { | ||
var _a; | ||
if (value !== null && value !== undefined) { | ||
@@ -349,3 +348,4 @@ if (typeName.match(/^Number$/i) !== null) { | ||
!ArrayBuffer.isView(value) && | ||
!(((_a = value === null || value === void 0 ? void 0 : value.constructor) === null || _a === void 0 ? void 0 : _a.name) === "Blob")) { | ||
// File objects count as a type of Blob, so we want to use instanceof explicitly | ||
!((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob)) { | ||
throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, or NodeJS.ReadableStream.`); | ||
@@ -352,0 +352,0 @@ } |
{ | ||
"name": "@azure/core-client", | ||
"version": "1.2.3-alpha.20210716.1", | ||
"version": "1.3.0", | ||
"description": "Core library for interfacing with AutoRest generated code", | ||
@@ -85,4 +85,4 @@ "sdk-type": "client", | ||
"@types/sinon": "^9.0.4", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0-alpha", | ||
"@azure/dev-tool": "^1.0.0-alpha", | ||
"@azure/eslint-plugin-azure-sdk": "^3.0.0", | ||
"@azure/dev-tool": "^1.0.0", | ||
"chai": "^4.2.0", | ||
@@ -89,0 +89,0 @@ "downlevel-dts": "~0.4.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
566157
0