create-request 1.5.0 → 1.5.2
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/dist/library/BaseRequest.d.ts +24 -12
- package/dist/library/ResponseWrapper.d.ts +19 -7
- package/dist/library/index.cjs +54 -15
- package/dist/library/index.cjs.map +1 -1
- package/dist/library/index.esm.js +53 -14
- package/dist/library/index.esm.js.map +1 -1
- package/dist/library/index.esm.min.js +1 -1
- package/dist/library/index.esm.min.js.map +1 -1
- package/dist/library/index.min.cjs +1 -1
- package/dist/library/index.min.cjs.map +1 -1
- package/dist/library/types.d.ts +8 -8
- package/package.json +39 -37
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-request",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "A modern, chainable wrapper for fetch with automatic retries, timeouts, comprehensive error handling, and first-class TypeScript support",
|
|
5
5
|
"main": "dist/library/index.cjs",
|
|
6
6
|
"module": "dist/library/index.esm.js",
|
|
@@ -15,15 +15,15 @@
|
|
|
15
15
|
],
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
+
"types": "./dist/library/index.d.ts",
|
|
18
19
|
"import": {
|
|
19
|
-
"
|
|
20
|
-
"
|
|
20
|
+
"production": "./dist/library/index.esm.min.js",
|
|
21
|
+
"default": "./dist/library/index.esm.js"
|
|
21
22
|
},
|
|
22
23
|
"require": {
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
}
|
|
26
|
-
"types": "./dist/library/index.d.ts"
|
|
24
|
+
"production": "./dist/library/index.min.cjs",
|
|
25
|
+
"default": "./dist/library/index.cjs"
|
|
26
|
+
}
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
@@ -31,21 +31,23 @@
|
|
|
31
31
|
"build": "cross-env BUILD_ENV=production rollup -c rollup.config.js",
|
|
32
32
|
"analyze": "cross-env ANALYZE=true BUILD_ENV=production rollup -c rollup.config.js",
|
|
33
33
|
"lint": "eslint 'src/**/*.{js,ts,json}' 'test/**/*.{js,ts,json}'",
|
|
34
|
+
"lint:quiet": "eslint 'src/**/*.{js,ts,json}' 'test/**/*.{js,ts,json}' --quiet",
|
|
34
35
|
"lint:fix": "eslint \"**/*.ts\" --ignore-path .eslintignore --fix",
|
|
35
36
|
"format": "prettier --write \"**/*.{ts,js,json}\"",
|
|
36
37
|
"check": "concurrently \"npm run lint\" \"npm run test\" \"npm run check:size\"",
|
|
37
38
|
"check:size": "npm run build && npx size-limit",
|
|
38
39
|
"test": "node --import tsx --test test/**/*.test.ts",
|
|
40
|
+
"test:quiet": "node --import tsx --test test/**/*.test.ts > /dev/null",
|
|
39
41
|
"test:coverage": "c8 --reporter=text --reporter=html --reporter=lcov npm test",
|
|
40
42
|
"prepare": "husky",
|
|
41
43
|
"prepack": "npm run build",
|
|
42
44
|
"preversion": "npm run check",
|
|
43
45
|
"prepublishOnly": "npm run build && npm test",
|
|
44
|
-
"publish:beta": "npm version prerelease --preid=beta -m \"chore(release): %s\" && git push origin --tags && npm publish --tag beta",
|
|
45
|
-
"publish:rc": "npm version prerelease --preid=rc -m \"chore(release): %s\" && git push origin --tags && npm publish --tag rc",
|
|
46
|
-
"publish:patch": "npm version patch -m \"chore(release): %s\" && git push origin --tags && npm publish",
|
|
47
|
-
"publish:minor": "npm version minor -m \"chore(release): %s\" && git push origin --tags && npm publish",
|
|
48
|
-
"publish:major": "npm version major -m \"chore(release): %s\" && git push origin --tags && npm publish"
|
|
46
|
+
"publish:beta": "npm version prerelease --preid=beta -m \"chore(release): %s\" && git push origin --follow-tags && npm publish --tag beta",
|
|
47
|
+
"publish:rc": "npm version prerelease --preid=rc -m \"chore(release): %s\" && git push origin --follow-tags && npm publish --tag rc",
|
|
48
|
+
"publish:patch": "npm version patch -m \"chore(release): %s\" && git push origin --follow-tags && npm publish",
|
|
49
|
+
"publish:minor": "npm version minor -m \"chore(release): %s\" && git push origin --follow-tags && npm publish",
|
|
50
|
+
"publish:major": "npm version major -m \"chore(release): %s\" && git push origin --follow-tags && npm publish"
|
|
49
51
|
},
|
|
50
52
|
"keywords": [
|
|
51
53
|
"fetch",
|
|
@@ -69,41 +71,41 @@
|
|
|
69
71
|
},
|
|
70
72
|
"repository": {
|
|
71
73
|
"type": "git",
|
|
72
|
-
"url": "https://github.com/DanielAmenou/create-request.git"
|
|
74
|
+
"url": "git+https://github.com/DanielAmenou/create-request.git"
|
|
73
75
|
},
|
|
74
76
|
"homepage": "https://create-request.com",
|
|
75
77
|
"bugs": {
|
|
76
78
|
"url": "https://github.com/DanielAmenou/create-request/issues"
|
|
77
79
|
},
|
|
78
80
|
"devDependencies": {
|
|
79
|
-
"@
|
|
80
|
-
"@
|
|
81
|
-
"@rollup/plugin-
|
|
81
|
+
"@commitlint/cli": "^20.1.0",
|
|
82
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
83
|
+
"@rollup/plugin-commonjs": "^29.0.0",
|
|
84
|
+
"@rollup/plugin-node-resolve": "^16.0.3",
|
|
85
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
82
86
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
83
|
-
"@size-limit/preset-small-lib": "^
|
|
84
|
-
"@types/node": "^
|
|
85
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
86
|
-
"@typescript-eslint/parser": "^8.
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"eslint
|
|
87
|
+
"@size-limit/preset-small-lib": "^12.0.0",
|
|
88
|
+
"@types/node": "^24.10.1",
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
90
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
91
|
+
"c8": "^10.1.3",
|
|
92
|
+
"concurrently": "^9.2.1",
|
|
93
|
+
"cross-env": "^10.1.0",
|
|
94
|
+
"eslint": "^9.39.1",
|
|
95
|
+
"eslint-config-prettier": "^10.1.8",
|
|
91
96
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
92
|
-
"eslint-plugin-import": "^2.
|
|
93
|
-
"eslint-plugin-jsonc": "^2.
|
|
94
|
-
"eslint-plugin-prettier": "^5.
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
+
"eslint-plugin-import": "^2.32.0",
|
|
98
|
+
"eslint-plugin-jsonc": "^2.21.0",
|
|
99
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
100
|
+
"husky": "^9.1.7",
|
|
101
|
+
"prettier": "^3.7.3",
|
|
102
|
+
"rollup": "^4.53.3",
|
|
97
103
|
"rollup-plugin-cleaner": "^1.0.0",
|
|
98
|
-
"rollup-plugin-visualizer": "^
|
|
99
|
-
"size-limit": "^
|
|
100
|
-
"tslib": "^2.
|
|
104
|
+
"rollup-plugin-visualizer": "^6.0.5",
|
|
105
|
+
"size-limit": "^12.0.0",
|
|
106
|
+
"tslib": "^2.8.1",
|
|
101
107
|
"tsx": "^4.20.6",
|
|
102
108
|
"typescript": "^5.9.3",
|
|
103
|
-
"undici": "^
|
|
104
|
-
"c8": "^8.0.1",
|
|
105
|
-
"@commitlint/cli": "^19.0.0",
|
|
106
|
-
"@commitlint/config-conventional": "^19.0.0",
|
|
107
|
-
"husky": "^9.0.0"
|
|
109
|
+
"undici": "^7.16.0"
|
|
108
110
|
}
|
|
109
111
|
}
|