-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
122 lines (122 loc) · 3 KB
/
package.json
File metadata and controls
122 lines (122 loc) · 3 KB
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
{
"name": "fetchff",
"version": "4.2.0",
"license": "MIT",
"author": "Matt Czapliński <deindesign.pl@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/MattCCC/fetchff.git"
},
"main": "dist/node/index.js",
"browser": "dist/browser/index.mjs",
"module": "dist/browser/index.mjs",
"types": "dist/index.d.ts",
"unpkg": "./dist/browser/index.mjs",
"exports": {
".": {
"types": "./dist/index.d.ts",
"react-native": "./dist/browser/index.mjs",
"import": {
"node": "./dist/node/index.js",
"default": "./dist/browser/index.mjs"
},
"require": {
"node": "./dist/node/index.js",
"default": "./dist/browser/index.global.js"
}
},
"./react": {
"types": "./dist/react/index.d.ts",
"import": "./dist/react/index.mjs",
"require": "./dist/react/index.cjs"
}
},
"keywords": [
"fetch",
"fetchff",
"fetch-wrapper",
"fetch-client",
"request",
"cache",
"fetch-cache",
"fetch-retry",
"api",
"api-handler",
"http-request",
"http-client",
"browser",
"node",
"nodejs",
"react-native"
],
"engines": {
"node": ">=18"
},
"sideEffects": false,
"scripts": {
"build": "tsup --config tsup.config.ts && npm run build:cleanup",
"build:cleanup": "rm -f dist/browser/index.d.mts dist/node/index.d.ts && mv dist/browser/index.d.ts dist/index.d.ts",
"type-check": "tsc --noEmit",
"test": "jest --forceExit --coverage --detectOpenHandles",
"lint": "eslint src/**/*.ts test/**/*.spec.ts docs/examples/*.ts",
"release": "npm version patch && git push --tags",
"prepublishOnly": "npm run build",
"size": "size-limit",
"analyze": "size-limit --why"
},
"prettier": {
"printWidth": 80,
"semi": true,
"singleQuote": true,
"trailingComma": "all"
},
"size-limit": [
{
"path": "dist/browser/index.mjs",
"limit": "5.99 KB"
},
{
"path": "dist/browser/index.global.js",
"limit": "5.99 KB"
},
{
"path": "dist/node/index.js",
"limit": "5.99 KB"
},
{
"path": "dist/react/index.mjs",
"limit": "9.5 KB"
},
{
"path": "dist/react/index.js",
"limit": "10 KB"
}
],
"devDependencies": {
"@size-limit/preset-small-lib": "12.0.0",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.2",
"@types/jest": "30.0.0",
"@types/react": "19.2.13",
"benchmark": "2.1.4",
"eslint": "9.39.1",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-prettier": "5.5.5",
"fetch-mock": "12.6.0",
"globals": "17.3.0",
"jest": "30.2.0",
"jest-environment-jsdom": "30.2.0",
"prettier": "3.8.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"size-limit": "12.0.0",
"ts-jest": "29.4.6",
"tslib": "2.8.1",
"tsup": "8.5.1",
"typescript": "5.9.3",
"typescript-eslint": "8.54.0"
},
"optionalDependencies": {
"@rollup/rollup-linux-x64-gnu": "4.38.0"
}
}