@sp-api-sdk/common
Advanced tools
Comparing version 1.7.7 to 1.7.8
@@ -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" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
297
13533
1
Updated@sp-api-sdk/auth@^1.9.6