create-request 0.0.1-beta.2 → 0.0.1-beta.20
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/README.md +492 -440
- package/dist/library/BaseRequest.d.ts +145 -6
- package/dist/library/BodyRequest.d.ts +13 -1
- package/dist/library/ResponseWrapper.d.ts +69 -30
- package/dist/library/enums.d.ts +37 -8
- package/dist/library/index.d.ts +15 -4
- package/dist/library/index.esm.js +1 -616
- package/dist/library/index.esm.js.map +1 -0
- package/dist/library/index.js +1 -635
- package/dist/library/index.js.map +1 -0
- package/dist/library/requestFactories.d.ts +60 -1
- package/dist/library/requestMethods.d.ts +60 -0
- package/dist/library/types/cache.d.ts +62 -0
- package/dist/library/types.d.ts +14 -3
- package/dist/library/utils/CacheManager.d.ts +82 -0
- package/dist/library/utils/CacheStorage.d.ts +49 -0
- package/dist/library/utils/Config.d.ts +125 -0
- package/dist/library/utils/CookieUtils.d.ts +9 -0
- package/dist/library/utils/CsrfUtils.d.ts +24 -0
- package/dist/library/utils/StorageProvider.d.ts +33 -0
- package/dist/library/utils/sizeUtils.d.ts +8 -0
- package/package.json +40 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-request",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.20",
|
|
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.js",
|
|
6
6
|
"module": "dist/library/index.esm.js",
|
|
@@ -9,20 +9,23 @@
|
|
|
9
9
|
"dist/library"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
12
|
+
"dev": "cross-env BUILD_ENV=development rollup -c rollup.config.js -w",
|
|
13
|
+
"build": "cross-env BUILD_ENV=production rollup -c rollup.config.js",
|
|
14
|
+
"analyze": "cross-env ANALYZE=true BUILD_ENV=production rollup -c rollup.config.js",
|
|
15
|
+
"lint": "eslint 'src/**/*.{js,ts,json}' 'test/**/*.{js,ts,json}'",
|
|
16
|
+
"lint:fix": "eslint \"**/*.ts\" --ignore-path .eslintignore --fix",
|
|
17
|
+
"format": "prettier --write \"**/*.{ts,js,json}\"",
|
|
18
|
+
"check": "concurrently \"npm run lint\" \"npm run test\" \"npx size-limit\"",
|
|
19
|
+
"check:size": "npx size-limit",
|
|
16
20
|
"pretest": "tsc -p tsconfig.test.json",
|
|
21
|
+
"test": "node --test",
|
|
22
|
+
"test:coverage": "npm run test -- --experimental-test-coverage",
|
|
23
|
+
"preversion": "npm run check",
|
|
17
24
|
"prepublishOnly": "npm run build",
|
|
18
|
-
"publish:beta": "npm version prerelease --preid=beta && git push origin --tags && npm publish --tag
|
|
19
|
-
"publish:patch": "npm version patch && git push origin --tags && npm publish",
|
|
20
|
-
"publish:minor": "npm version minor && git push origin --tags && npm publish",
|
|
21
|
-
"publish:major": "npm version major && git push origin --tags && npm publish"
|
|
22
|
-
"lint": "eslint 'src/**/*.ts' 'test/**/*.ts'",
|
|
23
|
-
"lint:fix": "eslint 'src/**/*.ts' 'test/**/*.ts' --fix",
|
|
24
|
-
"format": "prettier --write 'src/**/*.ts' 'test/**/*.ts'",
|
|
25
|
-
"check": "npm run lint && npm run test"
|
|
25
|
+
"publish:beta": "npm version prerelease --preid=beta && git push origin --tags && npm publish --tag latest",
|
|
26
|
+
"disabled:publish:patch": "npm version patch && git push origin --tags && npm publish",
|
|
27
|
+
"disabled:publish:minor": "npm version minor && git push origin --tags && npm publish",
|
|
28
|
+
"disabled:publish:major": "npm version major && git push origin --tags && npm publish"
|
|
26
29
|
},
|
|
27
30
|
"keywords": [
|
|
28
31
|
"fetch",
|
|
@@ -34,21 +37,45 @@
|
|
|
34
37
|
],
|
|
35
38
|
"author": "Daniel Amenou <amenou.daniel@gmail.com>",
|
|
36
39
|
"license": "MIT",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/DanielAmenou/create-request.git"
|
|
43
|
+
},
|
|
44
|
+
"sideEffects": false,
|
|
45
|
+
"size-limit": [
|
|
46
|
+
{
|
|
47
|
+
"path": "dist/library/index.esm.js",
|
|
48
|
+
"limit": "6 KB",
|
|
49
|
+
"gzip": true
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"path": "dist/library/index.js",
|
|
53
|
+
"limit": "6 KB",
|
|
54
|
+
"gzip": true
|
|
55
|
+
}
|
|
56
|
+
],
|
|
37
57
|
"devDependencies": {
|
|
38
58
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
39
59
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
60
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
40
61
|
"@rollup/plugin-typescript": "^8.3.2",
|
|
62
|
+
"@size-limit/preset-small-lib": "^8.2.6",
|
|
41
63
|
"@types/node": "^18.0.0",
|
|
42
64
|
"@typescript-eslint/eslint-plugin": "^6.15.0",
|
|
43
65
|
"@typescript-eslint/parser": "^6.15.0",
|
|
66
|
+
"concurrently": "^8.2.2",
|
|
67
|
+
"cross-env": "^7.0.3",
|
|
44
68
|
"eslint": "^8.56.0",
|
|
45
69
|
"eslint-config-prettier": "^9.1.0",
|
|
46
70
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
47
71
|
"eslint-plugin-import": "^2.29.1",
|
|
48
72
|
"eslint-plugin-prettier": "^5.0.1",
|
|
73
|
+
"eslint-plugin-jsonc": "^2.11.0",
|
|
49
74
|
"prettier": "^3.1.1",
|
|
50
75
|
"rollup": "^2.75.5",
|
|
51
76
|
"rollup-plugin-cleaner": "^1.0.0",
|
|
77
|
+
"rollup-plugin-visualizer": "^5.9.2",
|
|
78
|
+
"size-limit": "^8.2.6",
|
|
52
79
|
"tslib": "^2.4.0",
|
|
53
80
|
"typescript": "^4.7.3",
|
|
54
81
|
"undici": "^5.28.5"
|