forked from haverstack/axios-fetch-adapter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
130 lines (130 loc) · 3.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
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
129
130
{
"name": "@haverstack/axios-fetch-adapter",
"version": "0.8.0",
"description": "An Axios adapter that uses native fetch or custom fetch functions. Useful for Cloudflare Workers and ServiceWorker environments.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "lib/index.esm.js",
"scripts": {
"build:js": "node build.js",
"build:types": "tsc --project ./tsconfig.build.json",
"build": "npm run clean:lib && run-s build:*",
"check": "npm run test && npm run lint && npm run format:check",
"clean": "run-p clean:*",
"clean:lib": "rimraf ./lib",
"clean:coverage": "rimraf ./coverage",
"clean:modules": "rimraf ./node_modules",
"clean:packages": "rimraf ./*.tgz",
"deploy": "npm run build && npm publish",
"fix": "npm run lint:fix && npm run format:fix",
"format": "prettier \"src/**\"",
"format:check": "npm run format -- --check",
"format:fix": "npm run format -- --write",
"lint": "eslint --ignore-path .gitignore \"src/**\"",
"lint:fix": "npm run lint -- --fix",
"test": "npm run build && cross-env NODE_ENV=test jest"
},
"files": [
"/lib",
"README.md",
"LICENSE"
],
"repository": {
"type": "git",
"url": "git+https://github.com/haverstack/axios-fetch-adapter.git"
},
"keywords": [
"axios",
"adapter",
"fetch",
"cloudflare",
"serviceworker"
],
"author": "Jen Garcia <jen@haverstack.com> (https://haverstack.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/haverstack/axios-fetch-adapter/issues"
},
"homepage": "https://github.com/haverstack/axios-fetch-adapter#readme",
"devDependencies": {
"@types/jest": "^29.2.3",
"@types/node": "^18.11.9",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"axios": "^0.21.1",
"cross-env": "^7.0.3",
"esbuild": "^0.17.11",
"eslint": "^8.28.0",
"jest": "^29.3.1",
"jest-environment-miniflare": "^2.11.0",
"ncp": "^2.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.0",
"rimraf": "^4.4.0",
"ts-jest": "^29.0.3",
"typescript": "^4.9.3"
},
"peerDependencies": {
"axios": "^0.21.1"
},
"jest": {
"testEnvironment": "miniflare",
"transform": {
"^.+\\.(t|j)s?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(js?|ts?)$",
"moduleFileExtensions": [
"ts",
"js",
"json",
"node"
],
"testPathIgnorePatterns": [
"lib/"
],
"collectCoverage": true,
"collectCoverageFrom": [
"src/**"
],
"coveragePathIgnorePatterns": [
".d.ts"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"root": true,
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-explicit-any": "off"
}
},
"prettier": {
"useTabs": false,
"trailingComma": "none",
"printWidth": 100,
"endOfLine": "auto"
}
}