-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
128 lines (128 loc) · 2.99 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"name": "ava-nock",
"version": "2.1.0",
"description": "",
"repository": "[email protected]:exogen/ava-nock",
"keywords": [
"ava",
"testing",
"http",
"nock",
"mocking",
"vcr",
"record",
"playback"
],
"author": "Brian Beck <[email protected]>",
"license": "MIT",
"engines": {
"node": ">=12.20.0"
},
"main": "lib/index.js",
"files": [
"lib",
"yarn.lock"
],
"scripts": {
"build": "npm run build:lib",
"build:lib": "babel src --out-dir lib --ignore \"**/*.test.js\"",
"clean": "rimraf lib",
"format": "npm run format:js && npm run format:other",
"format:js": "npm run lint:fix || true",
"format:other": "prettier --write \"*.md\" \"**/*.json\"",
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"precommit": "lint-staged",
"prepare": "npm run clean && npm run build",
"test": "npm run lint && npm run test:coverage",
"test:cache": "NOCK_MODE=cache ava",
"test:coverage": "nyc ava",
"test:live": "NOCK_MODE=live ava",
"test:only": "ava",
"test:play": "NOCK_MODE=play ava",
"test:preview": "NOCK_MODE=preview ava",
"test:record": "NOCK_MODE=record ava"
},
"ava": {
"require": [
"@babel/register"
],
"files": [
"src/**/*.test.js",
"test/**/*.test.js"
]
},
"ava-nock": {
"pathFilter": [
"([?&]secretKey=)([^&#]+)",
"$1<secret>"
],
"headerFilter": {
"x-cache-status": [
".+",
""
],
"authorization": [
".+",
"<secret>"
]
},
"requestBodyFilter": [
"(\"password\":\\s*)\"[^\"]+\"",
"$1\"<secret>\""
],
"responseBodyFilter": [
"(\"(password|authorization)\":\\s*)\"[^\"]+\"",
"$1\"<secret>\""
]
},
"prettier": {
"singleQuote": true,
"proseWrap": "always"
},
"lint-staged": {
"*.js": [
"eslint --fix"
],
"{README.md,*.json}": [
"prettier --write"
]
},
"peerDependencies": {
"ava": "^1.0.0 || ^2.0.0 || ^3.0.0"
},
"dependencies": {
"debug": "^4.3.1",
"fs-extra": "^9.1.0",
"json-parse-better-errors": "^1.0.2",
"json-stable-stringify": "^1.0.1",
"nock": "^13.0.11",
"object-hash": "^2.1.1",
"temp-write": "^4.0.0"
},
"devDependencies": {
"@babel/cli": "^7.13.14",
"@babel/core": "^7.13.14",
"@babel/eslint-parser": "^7.13.14",
"@babel/eslint-plugin": "^7.13.15",
"@babel/preset-env": "^7.13.14",
"@babel/register": "^7.13.14",
"ava": "^4.0.0-alpha.2",
"axios": "^0.21.1",
"eslint": "^7.24.0",
"eslint-config-prettier": "^8.1.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-promise": "^5.1.0",
"husky": "^6.0.0",
"isomorphic-fetch": "^3.0.0",
"lint-staged": "^10.5.4",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"request": "^2.88.2",
"rimraf": "^3.0.2",
"uuid": "^8.3.2"
}
}