-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
94 lines (94 loc) · 2.4 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
{
"name": "onfetch",
"version": "0.8.2",
"description": "Mock fetch() with native Request / Response API. Works with globalThis, service worker, @mswjs/interceptors, and custom contexts",
"types": "./build/index.d.ts",
"main": "./build/index.js",
"type": "module",
"browser": {
"./src/lib/MSWInterceptors/index.js": false,
"./build/lib/MSWInterceptors/index.js": false,
"./test/node/setup.js": false,
"jest-message-util": false,
"jest-util": false,
"mocha": "mocha/mocha.js"
},
"exports": {
".": "./build/index.js",
"./sw": "./build/sw.js",
"./core": "./build/core.js",
"./lib/*": "./build/lib/*.js",
"./lib/*/": "./build/lib/*/index.js",
"./package.json": "./package.json"
},
"typesVersions": {
"<4.7": {
".": [
"./build/index.d.ts"
],
"sw": [
"./build/sw.d.ts"
],
"core": [
"./build/core.d.ts"
]
}
},
"scripts": {
"build": "tsc",
"lint": "eslint .",
"prepare": "npm run build",
"test-browser": "wrightplay \"test/**/*.test.*\" \"!test/**/node\" sw=test/browser/sw.ts",
"test-node": "mocha --experimental-abortcontroller",
"test-wp": "wrightplay \"test/**/*.test.*\" \"!test/**/node\"",
"test": "npm run test-browser && npm run test-node && npm run test-wp"
},
"files": [
"build"
],
"keywords": [
"mock",
"fetch",
"test",
"testing",
"service",
"worker",
"server",
"spy"
],
"author": "PaperStrike",
"repository": "github:PaperStrike/onfetch",
"license": "ISC",
"peerDependencies": {
"@mswjs/interceptors": "~0.16.2",
"wrightplay": "^0.3.3"
},
"peerDependenciesMeta": {
"@mswjs/interceptors": {
"optional": true
},
"wrightplay": {
"optional": true
}
},
"devDependencies": {
"@mswjs/interceptors": "~0.16.6",
"@types/mocha": "^9.1.1",
"@types/serviceworker": "^0.0.47",
"@typescript-eslint/eslint-plugin": "^5.29.0",
"@typescript-eslint/parser": "^5.29.0",
"@typescript/lib-dom": "npm:@types/web@^0.0.68",
"error-cause": "^1.0.4",
"eslint": "^8.18.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"expect": "^28.1.1",
"mocha": "^10.0.0",
"node-fetch": "^3.2.6",
"playwright-fixtures": "^0.3.5",
"sirv": "^2.0.2",
"ts-node": "^10.8.1",
"typescript": "^4.7.4",
"wrightplay": "^0.3.3"
}
}