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

@apimatic/core

Package Overview
Dependencies
Maintainers
4
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apimatic/core - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

15

es/http/httpInterceptor.js

@@ -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 {

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