diff --git a/packages/abstractions/package.json b/packages/abstractions/package.json index 050722d39..cd739d199 100644 --- a/packages/abstractions/package.json +++ b/packages/abstractions/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-abstractions", - "version": "1.0.0-preview.27", + "version": "1.0.0-preview.28", "description": "Core abstractions for kiota generated libraries in TypeScript and JavaScript", "main": "dist/cjs/src/index.js", "module": "dist/es/src/index.js", diff --git a/packages/abstractions/src/requestInformation.ts b/packages/abstractions/src/requestInformation.ts index 90d6df425..628ac6874 100644 --- a/packages/abstractions/src/requestInformation.ts +++ b/packages/abstractions/src/requestInformation.ts @@ -249,9 +249,19 @@ export class RequestInformation { /** * Sets the request body to be a binary stream. * @param value the binary stream + * @param contentType the content type. */ - public setStreamContent = (value: ArrayBuffer): void => { - this.tryAddRequestHeaders(RequestInformation.contentTypeHeader, RequestInformation.binaryContentType); + public setStreamContent = ( + value: ArrayBuffer, + contentType?: string, + ): void => { + if (!contentType) { + contentType = RequestInformation.binaryContentType; + } + this.tryAddRequestHeaders( + RequestInformation.contentTypeHeader, + contentType, + ); this.content = value; }; /** diff --git a/packages/authentication/azure/package.json b/packages/authentication/azure/package.json index 85424254d..21bc09cd9 100644 --- a/packages/authentication/azure/package.json +++ b/packages/authentication/azure/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-authentication-azure", - "version": "1.0.0-preview.22", + "version": "1.0.0-preview.23", "description": "Authentication provider for Kiota using Azure Identity", "main": "dist/cjs/src/index.js", "module": "dist/es/src/index.js", @@ -30,7 +30,7 @@ "homepage": "https://github.com/microsoft/kiota-typescript#readme", "dependencies": { "@azure/core-auth": "^1.3.2", - "@microsoft/kiota-abstractions": "^1.0.0-preview.27", + "@microsoft/kiota-abstractions": "^1.0.0-preview.28", "@opentelemetry/api": "^1.2.0", "tslib": "^2.3.1" }, diff --git a/packages/authentication/spfx/package.json b/packages/authentication/spfx/package.json index 256a8330e..ffcfd36d0 100644 --- a/packages/authentication/spfx/package.json +++ b/packages/authentication/spfx/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-authentication-spfx", - "version": "1.0.0-preview.17", + "version": "1.0.0-preview.18", "description": "Authentication provider for using Kiota in SPFx solutions", "main": "dist/cjs/src/index.js", "module": "dist/es/src/index.js", @@ -39,7 +39,7 @@ }, "homepage": "https://github.com/microsoft/kiota-typescript#readme", "dependencies": { - "@microsoft/kiota-abstractions": "^1.0.0-preview.27", + "@microsoft/kiota-abstractions": "^1.0.0-preview.28", "@microsoft/sp-http": "^1.15.2", "@opentelemetry/api": "^1.2.0", "tslib": "^2.3.1" diff --git a/packages/http/fetch/package.json b/packages/http/fetch/package.json index fe89bf80e..03fe2faa0 100644 --- a/packages/http/fetch/package.json +++ b/packages/http/fetch/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-http-fetchlibrary", - "version": "1.0.0-preview.26", + "version": "1.0.0-preview.27", "description": "Kiota request adapter implementation with fetch", "keywords": [ "Kiota", @@ -38,7 +38,7 @@ "test:cjs": "mocha 'dist/cjs/test/common/**/*.js' && mocha 'dist/cjs/test/node/**/*.js'" }, "dependencies": { - "@microsoft/kiota-abstractions": "^1.0.0-preview.27", + "@microsoft/kiota-abstractions": "^1.0.0-preview.28", "@opentelemetry/api": "^1.2.0", "guid-typescript": "^1.0.9", "node-fetch": "^2.6.5", diff --git a/packages/serialization/form/package.json b/packages/serialization/form/package.json index 53201381d..bc6ccb1d4 100644 --- a/packages/serialization/form/package.json +++ b/packages/serialization/form/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-serialization-form", - "version": "1.0.0-preview.16", + "version": "1.0.0-preview.17", "description": "Implementation of Kiota Serialization interfaces for URI from encoded", "main": "dist/cjs/src/index.js", "browser": { @@ -39,7 +39,7 @@ }, "homepage": "https://github.com/microsoft/kiota-typescript#readme", "dependencies": { - "@microsoft/kiota-abstractions": "^1.0.0-preview.27", + "@microsoft/kiota-abstractions": "^1.0.0-preview.28", "guid-typescript": "^1.0.9", "tslib": "^2.3.1" }, diff --git a/packages/serialization/json/package.json b/packages/serialization/json/package.json index c763f04fe..14128dff6 100644 --- a/packages/serialization/json/package.json +++ b/packages/serialization/json/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-serialization-json", - "version": "1.0.0-preview.27", + "version": "1.0.0-preview.28", "description": "Implementation of Kiota Serialization interfaces for JSON", "main": "dist/cjs/src/index.js", "browser": { @@ -39,7 +39,7 @@ }, "homepage": "https://github.com/microsoft/kiota-typescript#readme", "dependencies": { - "@microsoft/kiota-abstractions": "^1.0.0-preview.27", + "@microsoft/kiota-abstractions": "^1.0.0-preview.28", "guid-typescript": "^1.0.9", "tslib": "^2.3.1" }, diff --git a/packages/serialization/multipart/package.json b/packages/serialization/multipart/package.json index e21ebcf7f..891bb601b 100644 --- a/packages/serialization/multipart/package.json +++ b/packages/serialization/multipart/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-serialization-multipart", - "version": "1.0.0-preview.6", + "version": "1.0.0-preview.7", "description": "Implementation of Kiota Serialization interfaces for multipart form data", "main": "dist/cjs/src/index.js", "module": "dist/es/src/index.js", @@ -35,12 +35,12 @@ }, "homepage": "https://github.com/microsoft/kiota-typescript#readme", "dependencies": { - "@microsoft/kiota-abstractions": "^1.0.0-preview.27", + "@microsoft/kiota-abstractions": "^1.0.0-preview.28", "guid-typescript": "^1.0.9", "tslib": "^2.3.1" }, "devDependencies": { - "@microsoft/kiota-serialization-json": "^1.0.0-preview.27" + "@microsoft/kiota-serialization-json": "^1.0.0-preview.28" }, "publishConfig": { "access": "public" diff --git a/packages/serialization/text/package.json b/packages/serialization/text/package.json index e67887b6b..5cb548d50 100644 --- a/packages/serialization/text/package.json +++ b/packages/serialization/text/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft/kiota-serialization-text", - "version": "1.0.0-preview.24", + "version": "1.0.0-preview.25", "description": "Implementation of Kiota Serialization interfaces for text", "main": "dist/cjs/src/index.js", "browser": { @@ -39,7 +39,7 @@ }, "homepage": "https://github.com/microsoft/kiota-typescript#readme", "dependencies": { - "@microsoft/kiota-abstractions": "^1.0.0-preview.27", + "@microsoft/kiota-abstractions": "^1.0.0-preview.28", "guid-typescript": "^1.0.9", "tslib": "^2.3.1" },