Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/kiota-http-fetchlibrary

Package Overview
Dependencies
Maintainers
2
Versions
74
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.39 to 1.0.0-preview.40

6

dist/cjs/src/fetchRequestAdapter.js

@@ -339,3 +339,3 @@ "use strict";

return api_1.trace.getTracer(this.observabilityOptions.getTracerInstrumentationName()).startActiveSpan("throwIfFailedResponse", (span) => tslib_1.__awaiter(this, void 0, void 0, function* () {
var _a, _b;
var _a, _b, _c;
try {

@@ -353,3 +353,4 @@ if (response.ok)

});
if (!errorMappings || (!errorMappings[statusCode] && !(statusCode >= 400 && statusCode < 500 && errorMappings._4XX) && !(statusCode >= 500 && statusCode < 600 && errorMappings._5XX))) {
const factory = errorMappings ? (_c = (_b = (_a = errorMappings[statusCode]) !== null && _a !== void 0 ? _a : (statusCode >= 400 && statusCode < 500 ? errorMappings._4XX : undefined)) !== null && _b !== void 0 ? _b : (statusCode >= 500 && statusCode < 600 ? errorMappings._5XX : undefined)) !== null && _c !== void 0 ? _c : errorMappings.XXX : undefined;
if (!factory) {
spanForAttributes.setAttribute(FetchRequestAdapter.errorMappingFoundAttributeName, false);

@@ -363,3 +364,2 @@ const error = new kiota_abstractions_1.DefaultApiError("the server returned an unexpected status code and no error class is registered for this code " + statusCode);

spanForAttributes.setAttribute(FetchRequestAdapter.errorMappingFoundAttributeName, true);
const factory = (_b = (_a = errorMappings[statusCode]) !== null && _a !== void 0 ? _a : (statusCode >= 400 && statusCode < 500 ? errorMappings._4XX : undefined)) !== null && _b !== void 0 ? _b : (statusCode >= 500 && statusCode < 600 ? errorMappings._5XX : undefined);
const rootNode = yield this.getRootParseNode(response);

@@ -366,0 +366,0 @@ let error = api_1.trace.getTracer(this.observabilityOptions.getTracerInstrumentationName()).startActiveSpan("getObjectValue", (deserializeSpan) => {

@@ -335,3 +335,3 @@ import { BackingStoreFactorySingleton, DefaultApiError, enableBackingStoreForParseNodeFactory, enableBackingStoreForSerializationWriterFactory, ParseNodeFactoryRegistry, ResponseHandlerOptionKey, SerializationWriterFactoryRegistry } from "@microsoft/kiota-abstractions";

return trace.getTracer(this.observabilityOptions.getTracerInstrumentationName()).startActiveSpan("throwIfFailedResponse", async (span) => {
var _a, _b;
var _a, _b, _c;
try {

@@ -349,3 +349,4 @@ if (response.ok)

});
if (!errorMappings || (!errorMappings[statusCode] && !(statusCode >= 400 && statusCode < 500 && errorMappings._4XX) && !(statusCode >= 500 && statusCode < 600 && errorMappings._5XX))) {
const factory = errorMappings ? (_c = (_b = (_a = errorMappings[statusCode]) !== null && _a !== void 0 ? _a : (statusCode >= 400 && statusCode < 500 ? errorMappings._4XX : undefined)) !== null && _b !== void 0 ? _b : (statusCode >= 500 && statusCode < 600 ? errorMappings._5XX : undefined)) !== null && _c !== void 0 ? _c : errorMappings.XXX : undefined;
if (!factory) {
spanForAttributes.setAttribute(FetchRequestAdapter.errorMappingFoundAttributeName, false);

@@ -359,3 +360,2 @@ const error = new DefaultApiError("the server returned an unexpected status code and no error class is registered for this code " + statusCode);

spanForAttributes.setAttribute(FetchRequestAdapter.errorMappingFoundAttributeName, true);
const factory = (_b = (_a = errorMappings[statusCode]) !== null && _a !== void 0 ? _a : (statusCode >= 400 && statusCode < 500 ? errorMappings._4XX : undefined)) !== null && _b !== void 0 ? _b : (statusCode >= 500 && statusCode < 600 ? errorMappings._5XX : undefined);
const rootNode = await this.getRootParseNode(response);

@@ -362,0 +362,0 @@ let error = trace.getTracer(this.observabilityOptions.getTracerInstrumentationName()).startActiveSpan("getObjectValue", (deserializeSpan) => {

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

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

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

@@ -51,3 +51,3 @@ "guid-typescript": "^1.0.9",

},
"gitHead": "11c05298333f7b08cec81379eff602f84fd332a3"
"gitHead": "58ac05f9412be43055b8ff84645460fdd6b958a8"
}

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