gerhut / axios-debug-log Goto Github PK
View Code? Open in Web Editor NEWAxios interceptor of logging request & response with debug library.
Home Page: https://npm.im/axios-debug-log
License: BSD 3-Clause "New" or "Revised" License
Axios interceptor of logging request & response with debug library.
Home Page: https://npm.im/axios-debug-log
License: BSD 3-Clause "New" or "Revised" License
6.0.2
to 6.1.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
mocha is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
options
parameter (@plroebuck).jsonc
extension (@sstephant)These are soft-deprecated, and will emit a warning upon use. Support will be removed in (likely) the next major version of Mocha:
this.skip()
in "before each" hooks (@juergba)--allow-uncaught
for uncaught exceptions thrown inside hooks (@givanse)and some regressions:
Suite
cloning by copying root
property (@fatso83)The new version differs by 28 commits.
f4fc95a
Release v6.1.0
bd29dbd
update CHANGELOG for v6.1.0 [ci skip]
aaf2b72
Use cwd-relative pathname to load config file (#3829)
b079d24
upgrade deps as per npm audit fix; closes #3854
e87c689
Deprecate this.skip() for "after all" hooks (#3719)
81cfa90
Copy Suite property "root" when cloning; closes #3847 (#3848)
8aa2fc4
Fix issue 3714, hide pound icon showing on hover header on docs page (#3850)
586bf78
Update JS-YAML to address security issue (#3845)
d1024a3
Update doc examples "tests.html" (#3811)
1d570e0
Delete "/docs/example/chai.js"
ade8b90
runner.js: "self.test" undefined in Browser (#3835)
0098147
Replace findup-sync with find-up for faster startup (#3830)
d5ba121
Remove "package" flag from sample config file because it can only be passes as CLI arg (#3793)
a3089ad
update package-lock
75430ec
Upgrade yargs-parser dependency to avoid loading 2 copies of yargs
There are 28 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency |
sinon
|
Current Version | 5.0.8 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 5 commits.
86b930c
Update docs/changelog.md and set new release id in docs/_config.yml
033aa60
Add release documentation for v5.0.9
3321085
5.0.9
9f321d5
Update History.md and AUTHORS for new release
e862196
Upgrade @std/esm
to esm
.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Branch | Build failing π¨ |
---|---|
Dependency | standard |
Current Version | 12.0.0 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
standard is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 8 commits.
6e28e31
authors
b8741d0
12.0.1
7839edf
changelog
523c15e
Merge pull request #1190 from Gerhut/patch-1
9ee4d0f
Silently pass in node 4
e1560df
fix readme translation links
5fc2231
fix changelog
0a910f2
lock config versions
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
I have a previously created instance of axios so I can't use this at the moment. Maybe you could change it to work like so:
// Use explicitly declared axios
require('axios-debug-log')(axios);
To save anyone else the headache of figuring this out, Axios changed something with how they export the main module and its not compatible with the non-ejected CRA, and as CRA is deprecated at this point it likely never will be.
facebook/create-react-app#12605
facebook/create-react-app#12021
Problem is the var axios = require('axios')
returns a string like /static/media/axios.5036f7f7333f291ef6b3.cjs
not the actual package, so you get this error when trying to import axios-debug-log:
Uncaught TypeError: Cannot read properties of undefined (reading 'request') at addLogger
Apparently you can run CRACO to get around this
I was able to get it running by copying over index.js and switching to an import statement
Thereβs no enable
file.
package.json
{
"name": "MyApp",
"dependencies": {
"axios": "1.0.0",
"axios-debug-log": "0.8.4"
}
}
output.log
node:internal/modules/cjs/loader:499
throw e;
^
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/helpers/isAbsoluteURL' is not defined by "exports" in /myapp/node_modules/axios/package.json
at new NodeError (node:internal/errors:387:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:464:9)
at packageExportsResolve (node:internal/modules/esm/resolve:748:3)
at resolveExports (node:internal/modules/cjs/loader:493:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:533:31)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:942:27)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/myapp/node_modules/axios-debug-log/index.js:4:21) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
Hi,
thanks for this great tool. I've got a small issue with it, however. By default, debug
logs to stderr
, which makes for rather nasty console.error messages:
I can use a custom logger that logs to console.info
like this:
const axiosLogger = require('debug')('axios');
axiosLogger.log = console.info.bind(console);
require('axios-debug-log').addLogger(apiClient, axiosLogger);
Unfortunately, this results in duplicate logging messages - the ones sent to stderr (the default logger) and my custom logger.
I'd love a way to only use my custom logger.
Branch | Build failing π¨ |
---|---|
Dependency | axios |
Current Version | 0.16.1 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As axios is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 12 commits.
46e275c
Releasing 0.16.2
e040815
Updating Changelog
3579da4
Merge pull request #930 from luciy/master
e4e3212
Convert the method parameter to lowercase
d1278df
Merge pull request #887 from fgnass/no-buffer-in-browser
1beb245
Fixing typo in comment blocks of createError() and enhanceError() functions (#857)
c849467
use Buffer global in http.js
c82753c
Use is-buffer instead of Buffer.isBuffer
f31317a
Merge pull request #830 from mzabriskie/feature/include-request-in-errors
1e76ea3
Adding documentation for error.request
22ce6db
Adding request to error objects when it is available
e0d59eb
Adding failing tests that verify errors contain the request
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
Currently, in package.json...
"dependencies": {
"@types/debug": "^4.0.0",
"debug": "^4.0.0"
},
Is @types/debug
a needed dependency, or could be moved to devDependencies
?
Having it in dependencies
causes @types/debug
to be installed in production builds, and the package is just typescript typings that are not needed in runtime
Branch | Build failing π¨ |
---|---|
Dependency | sinon |
Current Version | 4.1.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
sinon is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
The new version differs by 36 commits.
1ea2749
Update docs/changelog.md and set new release id in docs/_config.yml
078c082
Add release documentation for v4.1.4
571263e
4.1.4
f2ee9f1
Update History.md and AUTHORS for new release
a8262dd
Assertion error messages handle symbolic method names
8fa1e14
Merge pull request #1641 from mroderick/point-to-stack-overflow
7c1ebd0
Update issue links to point to sinonjs/sinon
93418f6
Update documentation to emphasize Stack Overflow
ca9e2fa
Merge pull request #1636 from fearphage/fix-headless-chrome-in-circle
39186f4
use google-chrome-unstable for tests
6315621
invalidate cache
d078af9
try using default chrome install
177c4b6
upgraded to the lastest official version of mochify
ecdc4e0
test with updated mochify
360c2e7
added more details and notes
There are 36 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi,
How can I use import
instead of require
?
Or how can I use require
within the context of imports?
My axios code is like so:
import axios from "axios";
const instance = axios.create(config);
let result = instance.axios.get('pings')
Branch | Build failing π¨ |
---|---|
Dependency | sinon |
Current Version | 2.3.2 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As sinon is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 24 commits.
bade318
Update docs/changelog.md and set new release id in docs/_config.yml
65d4e88
Add release documentation for v2.3.3
2204e72
2.3.3
64034ee
Update Changelog.txt and AUTHORS for new release
1ece07c
Merge pull request #1450 from raulmatei/fix-1445-sandbox-stubbing-static-function-property-throws-error
452981c
Fix 1445: make stubbing of static function properties possible
25f3eeb
Update sandbox configuration docs. (#1443)
c76fa2e
Merge pull request #1444 from piperchester/patch-1
6539d94
Update README.md
c6d01d8
Add missing function name (#1440)
5f989a8
Remove confusing .withArgs from spy documentation (#1438)
9ca272e
Remove superfluous calls in example (#1437)
9e3eac3
Merge pull request #1436 from sinonjs/feature-detect-name-property
65d3d7b
Feature detect function name property in issue 950
e0c75bd
Add test for #950, show that it has been fixed (#1435)
There are 24 commits in total.
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
0.18.0
to 0.19.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
axios is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
Fixes and Functionality:
#
, because client cut everything after #
getUri
signature to TypeScript definition. (#1736) - Alexander TrauzziDocumentation:
.then
to .finally
in example code (#2090) - Omar CairesponseType: 'blob'
doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browserThe new version differs by 108 commits.
8d0b92b
Releasing 0.19.0
3f7451c
Update Changelog for release (0.19.0)
f28ff93
Add information about auth parameter to README (#2166)
5250e6e
Add DELETE to list of methods that allow data as a config option (#2169)
6b0ccd1
Update ECOSYSTEM.md - Add Axios Endpoints (#2176)
299e827
Add r2curl in ECOSYSTEM (#2141)
fd0c959
Unzip response body only for statuses != 204 (#1129)
92d2313
Update README.md - Add instructions for installing with yarn (#2036)
ddcc2e4
Fixing spacing for README.md (#2066)
48c43d5
Update README.md. - Change .then
to .finally
in example code (#2090)
b7a9744
Clarify what values responseType can have in Node (#2121)
0d4fca0
Destroy stream on exceeding maxContentLength (fixes #1098) (#1485)
047501f
Makes Axios error generic to use AxiosResponse (#1738)
283d7b3
docs(ECOSYSTEM): add axios-api-versioning (#2020)
2eeb59a
Fixing Mocha tests by locking follow-redirects version to 1.5.10 (#1993)
There are 108 commits in total.
See the full diff
There is a collection of frequently asked questions. If those donβt help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot π΄
Hi! Thanks for this new easy to use debugging tool!
I think it would be possible to configure logging, for example, to see sent post params.
Branch | Build failing π¨ |
---|---|
Dependency | sinon |
Current Version | 2.3.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
As sinon is βonlyβ a devDependency of this project it might not break production or downstream projects, but βonlyβ your build or test tools β preventing new deploys or publishes.
I recommend you give this issue a high priority. Iβm sure you can resolve this πͺ
The new version differs by 5 commits.
72ae300
Update docs/changelog.md and set new release id in docs/_config.yml
769d770
Add release documentation for v2.3.4
c8d2ec0
2.3.4
d27976a
Update Changelog.txt and AUTHORS for new release
330101a
Fix #1372: make sandbox.resetHistory also reset spies (#1424)
See the full diff
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot π΄
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.