New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/kiota-http-fetchlibrary

Package Overview
Dependencies
Maintainers
2
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/kiota-http-fetchlibrary - npm Package Compare versions

Comparing version 1.0.0-preview.80 to 1.0.0-preview.81

dist/es/src/middlewares/authorizationHandler.d.ts

14

CHANGELOG.md
# Changelog
## [1.0.0-preview.81](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-http-fetchlibrary@1.0.0-preview.80...@microsoft/kiota-http-fetchlibrary@1.0.0-preview.81) (2025-01-31)
### Features
* adds authorization handler ([#1575](https://github.com/microsoft/kiota-typescript/issues/1575)) ([f9ff6ab](https://github.com/microsoft/kiota-typescript/commit/f9ff6ab91af308ce69cc86a8f8e5cc3eaebaf751))
### Dependencies
* The following workspace dependencies were updated
* dependencies
* @microsoft/kiota-abstractions bumped from ^1.0.0-preview.80 to ^1.0.0-preview.81
## [1.0.0-preview.80](https://github.com/microsoft/kiota-typescript/compare/@microsoft/kiota-http-fetchlibrary@1.0.0-preview.79...@microsoft/kiota-http-fetchlibrary@1.0.0-preview.80) (2025-01-21)

@@ -4,0 +18,0 @@

1

dist/es/src/index.d.ts

@@ -10,2 +10,3 @@ /**

export * from "./middlewares/middleware.js";
export * from "./middlewares/authorizationHandler.js";
export * from "./middlewares/chaosHandler.js";

@@ -12,0 +13,0 @@ export * from "./middlewares/customFetchHandler.js";

@@ -12,2 +12,3 @@ /**

export * from "./middlewares/middleware.js";
export * from "./middlewares/authorizationHandler.js";
export * from "./middlewares/chaosHandler.js";

@@ -14,0 +15,0 @@ export * from "./middlewares/customFetchHandler.js";

4

dist/es/src/kiotaClientFactory.d.ts

@@ -9,2 +9,3 @@ /**

import { HttpClient } from "./httpClient.js";
import { BaseBearerTokenAuthenticationProvider } from "@microsoft/kiota-abstractions";
/**

@@ -23,2 +24,3 @@ *

* If custom fetch is undefined, the httpClient instance uses the `DefaultFetchHandler`
* @param authenticationProvider - an optional instance of BaseBearerTokenAuthenticationProvider to be used for authentication
* @returns a HttpClient instance

@@ -46,4 +48,4 @@ * @example

*/
static create(customFetch?: (request: string, init: RequestInit) => Promise<Response>, middlewares?: Middleware[]): HttpClient;
static create(customFetch?: (request: string, init: RequestInit) => Promise<Response>, middlewares?: Middleware[], authenticationProvider?: BaseBearerTokenAuthenticationProvider): HttpClient;
}
//# sourceMappingURL=kiotaClientFactory.d.ts.map

@@ -9,2 +9,3 @@ /**

import { HttpClient } from "./httpClient.js";
import { AuthorizationHandler } from "./middlewares/authorizationHandler.js";
/**

@@ -23,2 +24,3 @@ *

* If custom fetch is undefined, the httpClient instance uses the `DefaultFetchHandler`
* @param authenticationProvider - an optional instance of BaseBearerTokenAuthenticationProvider to be used for authentication
* @returns a HttpClient instance

@@ -47,4 +49,7 @@ * @example

// eslint-disable-next-line @typescript-eslint/no-unsafe-return
static create(customFetch = (...args) => fetch(...args), middlewares) {
static create(customFetch = (...args) => fetch(...args), middlewares, authenticationProvider) {
const middleware = middlewares || MiddlewareFactory.getDefaultMiddlewares(customFetch);
if (authenticationProvider) {
middleware.unshift(new AuthorizationHandler(authenticationProvider));
}
return new HttpClient(customFetch, ...middleware);

@@ -51,0 +56,0 @@ }

{
"name": "@microsoft/kiota-http-fetchlibrary",
"version": "1.0.0-preview.80",
"version": "1.0.0-preview.81",
"description": "Kiota request adapter implementation with fetch",

@@ -37,3 +37,3 @@ "keywords": [

"dependencies": {
"@microsoft/kiota-abstractions": "^1.0.0-preview.80",
"@microsoft/kiota-abstractions": "^1.0.0-preview.81",
"@opentelemetry/api": "^1.7.0",

@@ -48,3 +48,3 @@ "tslib": "^2.6.2"

],
"gitHead": "3868a28578f7e972a221e4c8fb86098b933bc2d2"
"gitHead": "d68be5598cf336fe8df4a0f3583093e08e49c654"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc