@azure/core-client 1.2.3-alpha.20210716.1 → 1.3.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/CHANGELOG.md +4 -4
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist-esm/src/serializer.js +2 -2
- package/dist-esm/src/serializer.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 1.
|
|
3
|
+
## 1.3.0 (2021-08-04)
|
|
4
4
|
|
|
5
5
|
### Features Added
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- Updated to use version 1.0.0-preview.13 of `@azure/core-tracing`.
|
|
8
8
|
|
|
9
|
-
### Bugs Fixed
|
|
9
|
+
### Key Bugs Fixed
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
- 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.
|
|
12
12
|
|
|
13
13
|
## 1.2.2 (2021-07-13)
|
|
14
14
|
|
package/dist/index.js
CHANGED
|
@@ -468,7 +468,6 @@ function unixTimeToDate(n) {
|
|
|
468
468
|
return new Date(n * 1000);
|
|
469
469
|
}
|
|
470
470
|
function serializeBasicTypes(typeName, objectName, value) {
|
|
471
|
-
var _a;
|
|
472
471
|
if (value !== null && value !== undefined) {
|
|
473
472
|
if (typeName.match(/^Number$/i) !== null) {
|
|
474
473
|
if (typeof value !== "number") {
|
|
@@ -496,7 +495,8 @@ function serializeBasicTypes(typeName, objectName, value) {
|
|
|
496
495
|
typeof value.pipe !== "function" &&
|
|
497
496
|
!(value instanceof ArrayBuffer) &&
|
|
498
497
|
!ArrayBuffer.isView(value) &&
|
|
499
|
-
|
|
498
|
+
// File objects count as a type of Blob, so we want to use instanceof explicitly
|
|
499
|
+
!((typeof Blob === "function" || typeof Blob === "object") && value instanceof Blob)) {
|
|
500
500
|
throw new Error(`${objectName} must be a string, Blob, ArrayBuffer, ArrayBufferView, or NodeJS.ReadableStream.`);
|
|
501
501
|
}
|
|
502
502
|
}
|