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

@sp-api-sdk/common

Package Overview
Dependencies
Maintainers
2
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sp-api-sdk/common - npm Package Compare versions

Comparing version 1.7.7 to 1.7.8

dist/cjs/src/errors.js

4

dist/cjs/src/axios/create-instance.js

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

const read_pkg_up_1 = require("read-pkg-up");
const selling_partner_api_error_1 = require("../selling-partner-api-error");
const errors_1 = require("../errors");
const { packageJson } = (0, read_pkg_up_1.sync)();

@@ -52,3 +52,3 @@ function createAxiosInstance({ auth, userAgent = `${packageJson.name}/${packageJson.version}`, region, rateLimits, onRetry, }) {

instance.interceptors.response.use(async (response) => response, async (error) => {
throw axios_1.default.isAxiosError(error) ? new selling_partner_api_error_1.SellingPartnerApiError(error) : error;
throw axios_1.default.isAxiosError(error) ? new errors_1.SellingPartnerApiError(error) : error;
});

@@ -55,0 +55,0 @@ return instance;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
(0, tslib_1.__exportStar)(require("./endpoints"), exports);
(0, tslib_1.__exportStar)(require("./regions"), exports);
(0, tslib_1.__exportStar)(require("./axios"), exports);
(0, tslib_1.__exportStar)(require("./selling-partner-api-error"), exports);
(0, tslib_1.__exportStar)(require("./errors"), exports);

@@ -5,3 +5,3 @@ import axios from 'axios';

import { sync as readPackageJson } from 'read-pkg-up';
import { SellingPartnerApiError } from '../selling-partner-api-error';
import { SellingPartnerApiError } from '../errors';
const { packageJson } = readPackageJson();

@@ -8,0 +8,0 @@ export function createAxiosInstance({ auth, userAgent = `${packageJson.name}/${packageJson.version}`, region, rateLimits, onRetry, }) {

@@ -1,3 +0,3 @@

export * from './endpoints';
export * from './regions';
export * from './axios';
export * from './selling-partner-api-error';
export * from './errors';

@@ -1,3 +0,3 @@

export * from './endpoints';
export * from './regions';
export * from './axios';
export * from './selling-partner-api-error';
export * from './errors';

@@ -5,3 +5,3 @@ {

"description": "Selling Parner API common library",
"version": "1.7.7",
"version": "1.7.8",
"main": "dist/cjs/index.js",

@@ -27,7 +27,6 @@ "module": "dist/es/index.js",

"clean": "rimraf dist",
"lint": "xo --cwd=../../ $PWD",
"test": "NODE_ENV=test jest"
},
"dependencies": {
"@sp-api-sdk/auth": "^1.9.5",
"@sp-api-sdk/auth": "^1.9.6",
"aws4-axios": "^2.4.6",

@@ -59,3 +58,3 @@ "axios": "^0.24.0",

},
"gitHead": "e8c21d7d481263e8a6663ee11f6708d4dc6968b6"
"gitHead": "f21b5cb511abd110bf1f07843558719993f36187"
}
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