axios-error-redact 0.0.250 → 0.0.252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +1 -0
- package/.nvmrc +1 -0
- package/.projenrc.ts +8 -1
- package/README.md +8 -0
- package/package.json +2 -2
package/.gitattributes
CHANGED
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
16
|
package/.projenrc.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {JsonFile, typescript, javascript} from 'projen'
|
|
1
|
+
import {JsonFile, typescript, javascript, TextFile} from 'projen'
|
|
2
|
+
|
|
3
|
+
const nodeVersion = '16'
|
|
2
4
|
|
|
3
5
|
const project = new typescript.TypeScriptProject({
|
|
4
6
|
projenrcTs: true,
|
|
@@ -53,6 +55,7 @@ const project = new typescript.TypeScriptProject({
|
|
|
53
55
|
allowedUsernames: ['AminFazlMondo'],
|
|
54
56
|
},
|
|
55
57
|
autoApproveUpgrades: true,
|
|
58
|
+
workflowNodeVersion: nodeVersion,
|
|
56
59
|
})
|
|
57
60
|
|
|
58
61
|
const additionalRules = {
|
|
@@ -82,5 +85,9 @@ new JsonFile(project, '.mocharc.json', {
|
|
|
82
85
|
},
|
|
83
86
|
})
|
|
84
87
|
|
|
88
|
+
new TextFile(project, '.nvmrc', {
|
|
89
|
+
lines: [nodeVersion],
|
|
90
|
+
})
|
|
91
|
+
|
|
85
92
|
project.tasks.tryFind('test')?.exec('mocha')
|
|
86
93
|
project.synth()
|
package/README.md
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
# Axios-Error-Redact
|
|
2
|
+
|
|
2
3
|
Library to redact sensitive information from Axios errors.
|
|
3
4
|
This can be used as an response interceptor for axios instances, or can be used standalone.
|
|
4
5
|
|
|
6
|
+
# Compatibility
|
|
7
|
+
|
|
8
|
+
Works with
|
|
9
|
+
|
|
10
|
+
- `axios@^0`
|
|
11
|
+
- `axios@^1`
|
|
12
|
+
|
|
5
13
|
# Getting started
|
|
6
14
|
|
|
7
15
|
```console
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"json-schema": "^0.4.0",
|
|
48
48
|
"mocha": "^10.0.0",
|
|
49
49
|
"npm-check-updates": "^16",
|
|
50
|
-
"projen": "^0.63.
|
|
50
|
+
"projen": "^0.63.20",
|
|
51
51
|
"standard-version": "^9",
|
|
52
52
|
"ts-eager": "^2.0.2",
|
|
53
53
|
"ts-node": "^10.9.1",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"main": "lib/index.js",
|
|
73
73
|
"license": "Apache-2.0",
|
|
74
|
-
"version": "0.0.
|
|
74
|
+
"version": "0.0.252",
|
|
75
75
|
"types": "lib/index.d.ts",
|
|
76
76
|
"overrides": {
|
|
77
77
|
"@types/responselike": "1.0.0",
|