@apimatic/core
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -0,1 +1,3 @@ | ||
import { combineHttpInterceptors } from '@apimatic/core-interfaces'; | ||
/** | ||
@@ -8,15 +10,6 @@ * Calls HTTP interceptor chain | ||
function callHttpInterceptors(interceptors, client) { | ||
var next = client; | ||
var _loop_1 = function (index) { | ||
var current = interceptors[index]; | ||
var last = next; | ||
next = function (request, options) { | ||
return current(request, options, last); | ||
}; | ||
return function (request, options) { | ||
return combineHttpInterceptors(interceptors)(request, options, client); | ||
}; | ||
for (var index = interceptors.length - 1; index >= 0; index--) { | ||
_loop_1(index); | ||
} | ||
return next; | ||
} | ||
export { callHttpInterceptors }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.callHttpInterceptors = void 0; | ||
var core_interfaces_1 = require("@apimatic/core-interfaces"); | ||
/** | ||
@@ -11,13 +12,6 @@ * Calls HTTP interceptor chain | ||
function callHttpInterceptors(interceptors, client) { | ||
var next = client; | ||
var _loop_1 = function (index) { | ||
var current = interceptors[index]; | ||
var last = next; | ||
next = function (request, options) { return current(request, options, last); }; | ||
return function (request, options) { | ||
return core_interfaces_1.combineHttpInterceptors(interceptors)(request, options, client); | ||
}; | ||
for (var index = interceptors.length - 1; index >= 0; index--) { | ||
_loop_1(index); | ||
} | ||
return next; | ||
} | ||
exports.callHttpInterceptors = callHttpInterceptors; |
{ | ||
"name": "@apimatic/core", | ||
"author": "APIMatic Ltd.", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "sideEffects": false, |
@@ -0,0 +0,0 @@ import { HttpResponse } from '@apimatic/core-interfaces'; |
export * from '@apimatic/core-interfaces'; |
/// <reference lib="dom" /> |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import JSONBig from '@apimatic/json-bigint'; |
@@ -0,0 +0,0 @@ import { SchemaValidationError } from '../schema'; |
@@ -0,0 +0,0 @@ import { ApiResponse, HttpRequest } from '../coreInterfaces'; |
export * from '@apimatic/file-wrapper'; |
export * from '@apimatic/http-headers'; |
import { | ||
HttpInterceptorInterface, | ||
HttpCallExecutor, | ||
combineHttpInterceptors, | ||
} from '@apimatic/core-interfaces'; | ||
@@ -15,9 +16,4 @@ /** | ||
): HttpCallExecutor<T> { | ||
let next = client; | ||
for (let index = interceptors.length - 1; index >= 0; index--) { | ||
const current = interceptors[index]; | ||
const last = next; | ||
next = (request, options) => current(request, options, last); | ||
} | ||
return next; | ||
return (request, options) => | ||
combineHttpInterceptors(interceptors)(request, options, client); | ||
} |
@@ -0,0 +0,0 @@ import flatMap from 'lodash.flatmap'; |
export * from '@apimatic/http-query'; |
@@ -0,0 +0,0 @@ import JSONBig from '@apimatic/json-bigint'; |
@@ -0,0 +0,0 @@ import { getHeader } from './httpHeaders'; |
@@ -0,0 +0,0 @@ import { |
@@ -0,0 +0,0 @@ // tslint:disable-next-line:no-reference |
export * from '@apimatic/schema'; |
// tslint:disable-next-line:no-empty-interface | ||
interface Blob {} |
@@ -0,0 +0,0 @@ export interface XmlSerializerInterface { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141737
3480