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

axios-better-stacktrace

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axios-better-stacktrace - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

lib/cjs/axiosBetterStacktrace.d.ts

7

CHANGELOG.md

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

17

package.json

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

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