axios-better-stacktrace
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -5,2 +5,9 @@ # Changelog | ||
## [2.1.0](https://github.com/svsool/axios-better-stacktrace/compare/v2.0.2...v2.1.0) (2021-03-10) | ||
### Features | ||
* Add ESM support ([#3](https://github.com/svsool/axios-better-stacktrace/issues/3)) ([47fe367](https://github.com/svsool/axios-better-stacktrace/commit/47fe36733516b08e89efe56ed4f3b6bda9a33293)) | ||
### [2.0.2](https://github.com/svsool/axios-better-stacktrace/compare/v2.0.1...v2.0.2) (2021-02-14) | ||
@@ -7,0 +14,0 @@ |
@@ -14,5 +14,11 @@ { | ||
"author": "Svyatoslav Sobol <svyatoslav.sobol@gmail.com>", | ||
"version": "2.0.2", | ||
"main": "lib/axiosBetterStacktrace.js", | ||
"types": "lib/axiosBetterStacktrace.d.ts", | ||
"version": "2.1.0", | ||
"main": "./lib/cjs/axiosBetterStacktrace.js", | ||
"exports": { | ||
".": { | ||
"import": "./lib/esm/axiosBetterStacktrace.js", | ||
"require": "./lib/cjs/axiosBetterStacktrace.js" | ||
} | ||
}, | ||
"types": "lib/cjs/axiosBetterStacktrace.d.ts", | ||
"license": "MIT", | ||
@@ -32,3 +38,6 @@ "repository": { | ||
"scripts": { | ||
"build": "rimraf ./lib && tsc", | ||
"build": "rimraf ./lib && yarn build:cjs && yarn build:esm && yarn generate:pkg-json", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:esm": "tsc -p tsconfig.esm.json", | ||
"generate:pkg-json": "ts-node ./scripts/generatePackageJsonFiles.ts", | ||
"demo": "ts-node ./demo/index.ts", | ||
@@ -35,0 +44,0 @@ "lint": "eslint ./src -c .eslintrc --ext .ts", |
@@ -53,3 +53,3 @@ # axios-better-stacktrace | ||
// or using a response interceptor and an error callback (e.g. could be useful with a logging middleware) | ||
axiosAgent.interceptors.response.use(config => config, enhancedError => { | ||
axiosAgent.interceptors.response.use(response => response, enhancedError => { | ||
console.error(enhancedError); | ||
@@ -56,0 +56,0 @@ |
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
25965
9
227
1