bytekit 0.2.7 → 0.2.8
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 +109 -2288
- package/package.json +206 -197
package/package.json
CHANGED
|
@@ -1,200 +1,209 @@
|
|
|
1
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
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
"
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
"
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
"
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
2
|
+
"name": "bytekit",
|
|
3
|
+
"description": "Lightning-fast TypeScript utilities for modern development",
|
|
4
|
+
"version": "0.2.8",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"imports": {
|
|
7
|
+
"#core/*": "./dist/utils/core/*",
|
|
8
|
+
"#utils/*": "./dist/utils/*",
|
|
9
|
+
"#helpers/*": "./dist/utils/helpers/*"
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"bin": {
|
|
14
|
+
"sutils": "./bin/sutils.js"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./api-client": {
|
|
22
|
+
"types": "./dist/utils/core/ApiClient.d.ts",
|
|
23
|
+
"import": "./dist/utils/core/ApiClient.js"
|
|
24
|
+
},
|
|
25
|
+
"./retry-policy": {
|
|
26
|
+
"types": "./dist/utils/core/RetryPolicy.d.ts",
|
|
27
|
+
"import": "./dist/utils/core/RetryPolicy.js"
|
|
28
|
+
},
|
|
29
|
+
"./response-validator": {
|
|
30
|
+
"types": "./dist/utils/core/ResponseValidator.d.ts",
|
|
31
|
+
"import": "./dist/utils/core/ResponseValidator.js"
|
|
32
|
+
},
|
|
33
|
+
"./logger": {
|
|
34
|
+
"types": "./dist/utils/core/Logger.d.ts",
|
|
35
|
+
"import": "./dist/utils/core/Logger.js"
|
|
36
|
+
},
|
|
37
|
+
"./profiler": {
|
|
38
|
+
"types": "./dist/utils/core/Profiler.d.ts",
|
|
39
|
+
"import": "./dist/utils/core/Profiler.js"
|
|
40
|
+
},
|
|
41
|
+
"./debug": {
|
|
42
|
+
"types": "./dist/utils/core/debug.d.ts",
|
|
43
|
+
"import": "./dist/utils/core/debug.js"
|
|
44
|
+
},
|
|
45
|
+
"./date-utils": {
|
|
46
|
+
"types": "./dist/utils/helpers/DateUtils.d.ts",
|
|
47
|
+
"import": "./dist/utils/helpers/DateUtils.js"
|
|
48
|
+
},
|
|
49
|
+
"./string-utils": {
|
|
50
|
+
"types": "./dist/utils/helpers/StringUtils.d.ts",
|
|
51
|
+
"import": "./dist/utils/helpers/StringUtils.js"
|
|
52
|
+
},
|
|
53
|
+
"./validator": {
|
|
54
|
+
"types": "./dist/utils/helpers/Validator.d.ts",
|
|
55
|
+
"import": "./dist/utils/helpers/Validator.js"
|
|
56
|
+
},
|
|
57
|
+
"./env-manager": {
|
|
58
|
+
"types": "./dist/utils/helpers/EnvManager.d.ts",
|
|
59
|
+
"import": "./dist/utils/helpers/EnvManager.js"
|
|
60
|
+
},
|
|
61
|
+
"./storage-utils": {
|
|
62
|
+
"types": "./dist/utils/helpers/StorageUtils.d.ts",
|
|
63
|
+
"import": "./dist/utils/helpers/StorageUtils.js"
|
|
64
|
+
},
|
|
65
|
+
"./file-upload": {
|
|
66
|
+
"types": "./dist/utils/helpers/FileUploadHelper.d.ts",
|
|
67
|
+
"import": "./dist/utils/helpers/FileUploadHelper.js"
|
|
68
|
+
},
|
|
69
|
+
"./streaming": {
|
|
70
|
+
"types": "./dist/utils/helpers/StreamingHelper.d.ts",
|
|
71
|
+
"import": "./dist/utils/helpers/StreamingHelper.js"
|
|
72
|
+
},
|
|
73
|
+
"./websocket": {
|
|
74
|
+
"types": "./dist/utils/helpers/WebSocketHelper.d.ts",
|
|
75
|
+
"import": "./dist/utils/helpers/WebSocketHelper.js"
|
|
76
|
+
},
|
|
77
|
+
"./array-utils": {
|
|
78
|
+
"types": "./dist/utils/helpers/ArrayUtils.d.ts",
|
|
79
|
+
"import": "./dist/utils/helpers/ArrayUtils.js"
|
|
80
|
+
},
|
|
81
|
+
"./cache-manager": {
|
|
82
|
+
"types": "./dist/utils/helpers/CacheManager.d.ts",
|
|
83
|
+
"import": "./dist/utils/helpers/CacheManager.js"
|
|
84
|
+
},
|
|
85
|
+
"./compression-utils": {
|
|
86
|
+
"types": "./dist/utils/helpers/CompressionUtils.d.ts",
|
|
87
|
+
"import": "./dist/utils/helpers/CompressionUtils.js"
|
|
88
|
+
},
|
|
89
|
+
"./crypto-utils": {
|
|
90
|
+
"types": "./dist/utils/helpers/CryptoUtils.d.ts",
|
|
91
|
+
"import": "./dist/utils/helpers/CryptoUtils.js"
|
|
92
|
+
},
|
|
93
|
+
"./diff-utils": {
|
|
94
|
+
"types": "./dist/utils/helpers/DiffUtils.d.ts",
|
|
95
|
+
"import": "./dist/utils/helpers/DiffUtils.js"
|
|
96
|
+
},
|
|
97
|
+
"./event-emitter": {
|
|
98
|
+
"types": "./dist/utils/helpers/EventEmitter.d.ts",
|
|
99
|
+
"import": "./dist/utils/helpers/EventEmitter.js"
|
|
100
|
+
},
|
|
101
|
+
"./form-utils": {
|
|
102
|
+
"types": "./dist/utils/helpers/FormUtils.d.ts",
|
|
103
|
+
"import": "./dist/utils/helpers/FormUtils.js"
|
|
104
|
+
},
|
|
105
|
+
"./object-utils": {
|
|
106
|
+
"types": "./dist/utils/helpers/ObjectUtils.d.ts",
|
|
107
|
+
"import": "./dist/utils/helpers/ObjectUtils.js"
|
|
108
|
+
},
|
|
109
|
+
"./pagination-helper": {
|
|
110
|
+
"types": "./dist/utils/helpers/PaginationHelper.d.ts",
|
|
111
|
+
"import": "./dist/utils/helpers/PaginationHelper.js"
|
|
112
|
+
},
|
|
113
|
+
"./polling-helper": {
|
|
114
|
+
"types": "./dist/utils/helpers/PollingHelper.d.ts",
|
|
115
|
+
"import": "./dist/utils/helpers/PollingHelper.js"
|
|
116
|
+
},
|
|
117
|
+
"./time-utils": {
|
|
118
|
+
"types": "./dist/utils/helpers/TimeUtils.d.ts",
|
|
119
|
+
"import": "./dist/utils/helpers/TimeUtils.js"
|
|
120
|
+
},
|
|
121
|
+
"./request-cache": {
|
|
122
|
+
"types": "./dist/utils/core/RequestCache.d.ts",
|
|
123
|
+
"import": "./dist/utils/core/RequestCache.js"
|
|
124
|
+
},
|
|
125
|
+
"./rate-limiter": {
|
|
126
|
+
"types": "./dist/utils/core/RateLimiter.d.ts",
|
|
127
|
+
"import": "./dist/utils/core/RateLimiter.js"
|
|
128
|
+
},
|
|
129
|
+
"./request-deduplicator": {
|
|
130
|
+
"types": "./dist/utils/core/RequestDeduplicator.d.ts",
|
|
131
|
+
"import": "./dist/utils/core/RequestDeduplicator.js"
|
|
132
|
+
},
|
|
133
|
+
"./error-boundary": {
|
|
134
|
+
"types": "./dist/utils/core/ErrorBoundary.d.ts",
|
|
135
|
+
"import": "./dist/utils/core/ErrorBoundary.js"
|
|
136
|
+
},
|
|
137
|
+
"./batch-request": {
|
|
138
|
+
"types": "./dist/utils/core/BatchRequest.d.ts",
|
|
139
|
+
"import": "./dist/utils/core/BatchRequest.js"
|
|
140
|
+
},
|
|
141
|
+
"./http-status": {
|
|
142
|
+
"types": "./dist/utils/helpers/HttpStatusHelper.d.ts",
|
|
143
|
+
"import": "./dist/utils/helpers/HttpStatusHelper.js"
|
|
144
|
+
},
|
|
145
|
+
"./url-builder": {
|
|
146
|
+
"types": "./dist/utils/helpers/UrlBuilder.d.ts",
|
|
147
|
+
"import": "./dist/utils/helpers/UrlBuilder.js"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"scripts": {
|
|
151
|
+
"build": "tsc -p tsconfig.json",
|
|
152
|
+
"clean": "node -e \"require('fs').rmSync('dist', { recursive: true, force: true });\"",
|
|
153
|
+
"lint": "tsc --noEmit",
|
|
154
|
+
"test": "npm run lint && npm run build && node --test tests/**/*.test.js",
|
|
155
|
+
"test:jest": "jest",
|
|
156
|
+
"test:jest:watch": "jest --watch",
|
|
157
|
+
"test:wiki": "jest tests/wiki",
|
|
158
|
+
"test:all": "npm run test && npm run test:jest",
|
|
159
|
+
"wiki:generate": "node scripts/generate-wiki.js",
|
|
160
|
+
"prepublishOnly": "npm run lint && npm run clean && npm run build"
|
|
161
|
+
},
|
|
162
|
+
"files": [
|
|
163
|
+
"dist",
|
|
164
|
+
"bin"
|
|
165
|
+
],
|
|
166
|
+
"keywords": [
|
|
167
|
+
"typescript",
|
|
168
|
+
"http-client",
|
|
169
|
+
"logger",
|
|
170
|
+
"utilities",
|
|
171
|
+
"formerly @sebamar88/utils"
|
|
172
|
+
],
|
|
173
|
+
"repository": {
|
|
174
|
+
"type": "git",
|
|
175
|
+
"url": "git+https://github.com/sebamar88/bytekit.git"
|
|
176
|
+
},
|
|
177
|
+
"bugs": {
|
|
178
|
+
"url": "https://github.com/sebamar88/bytekit/issues"
|
|
179
|
+
},
|
|
180
|
+
"homepage": "https://github.com/sebamar88/bytekit#readme",
|
|
181
|
+
"author": "Sebastián Martinez",
|
|
182
|
+
"license": "MIT",
|
|
183
|
+
"sideEffects": false,
|
|
184
|
+
"publishConfig": {
|
|
185
|
+
"access": "public"
|
|
186
|
+
},
|
|
187
|
+
"engines": {
|
|
188
|
+
"node": ">=18"
|
|
189
|
+
},
|
|
190
|
+
"dependencies": {
|
|
191
|
+
"cross-fetch": "^4.1.0"
|
|
192
|
+
},
|
|
193
|
+
"devDependencies": {
|
|
194
|
+
"@types/jest": "^30.0.0",
|
|
195
|
+
"@types/node": "^25.0.3",
|
|
196
|
+
"fast-check": "^4.5.2",
|
|
197
|
+
"jest": "^30.2.0",
|
|
198
|
+
"ts-jest": "^29.4.6",
|
|
199
|
+
"typescript": "^5.9.3"
|
|
200
|
+
},
|
|
201
|
+
"peerDependencies": {
|
|
202
|
+
"typescript": ">=5.9.0"
|
|
203
|
+
},
|
|
204
|
+
"peerDependenciesMeta": {
|
|
205
|
+
"typescript": {
|
|
206
|
+
"optional": true
|
|
199
207
|
}
|
|
208
|
+
}
|
|
200
209
|
}
|