-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
366 lines (366 loc) · 12.9 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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
{
"name": "@jokester/ts-commonutil",
"version": "0.6.0",
"author": "Wang Guan <[email protected]>",
"description": "Common TypeScript code for my multiple projects",
"repository": {
"type": "git",
"url": "git+https://github.com/jokester/ts-commonutil.git"
},
"scripts": {
"build": "rm -rf lib && tsc -p tsconfig.esm.json && tsc -p tsconfig.json && ruby generate-exports.rb",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"typecheck": "tsc --noEmit",
"typecheck:watch": "tsc --watch --noEmit",
"lint": "gts lint",
"lint:fix": "gts fix"
},
"files": [
"lib"
],
"keywords": [
"nodejs",
"TypeScript",
"util"
],
"engines": {
"node": ">=16"
},
"engineStrict": true,
"license": "MIT",
"bugs": {
"url": "https://github.com/jokester/ts-commonutil/issues"
},
"homepage": "https://github.com/jokester/ts-commonutil#readme",
"dependencies": {
"tslib": "^2"
},
"devDependencies": {
"@types/jest": "^29",
"@types/node": "^18",
"@types/react": "latest",
"@types/react-dom": "latest",
"core-js": "^3.36.1",
"eventemitter3": "^4",
"fp-ts": "^2",
"gts": "^5.2.0",
"jest": "^29",
"jsr": "^0.12.4",
"loglevel": "^1.8.0",
"mobx": "^6.6.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rxjs": "^7",
"ts-jest": "^29",
"typescript": "^5.4",
"winston": "^3.8.0"
},
"exports": {
"./lib/algebra/topological-sort": {
"import": "./lib/__esm/algebra/topological-sort.js",
"require": "./lib/algebra/topological-sort.js",
"type": "./lib/algebra/topological-sort.d.ts"
},
"./lib/bytes/array-buffer": {
"import": "./lib/__esm/bytes/array-buffer.js",
"require": "./lib/bytes/array-buffer.js",
"type": "./lib/bytes/array-buffer.d.ts"
},
"./lib/bytes/string": {
"import": "./lib/__esm/bytes/string.js",
"require": "./lib/bytes/string.js",
"type": "./lib/bytes/string.d.ts"
},
"./lib/bytes/web": {
"import": "./lib/__esm/bytes/web.js",
"require": "./lib/bytes/web.js",
"type": "./lib/bytes/web.d.ts"
},
"./lib/collection/btree": {
"import": "./lib/__esm/collection/btree.js",
"require": "./lib/collection/btree.js",
"type": "./lib/collection/btree.d.ts"
},
"./lib/collection/default-map": {
"import": "./lib/__esm/collection/default-map.js",
"require": "./lib/collection/default-map.js",
"type": "./lib/collection/default-map.d.ts"
},
"./lib/collection/iterables": {
"import": "./lib/__esm/collection/iterables.js",
"require": "./lib/collection/iterables.js",
"type": "./lib/collection/iterables.d.ts"
},
"./lib/collection/min-heap": {
"import": "./lib/__esm/collection/min-heap.js",
"require": "./lib/collection/min-heap.js",
"type": "./lib/collection/min-heap.d.ts"
},
"./lib/collection/multiset": {
"import": "./lib/__esm/collection/multiset.js",
"require": "./lib/collection/multiset.js",
"type": "./lib/collection/multiset.d.ts"
},
"./lib/collection/segment-tree": {
"import": "./lib/__esm/collection/segment-tree.js",
"require": "./lib/collection/segment-tree.js",
"type": "./lib/collection/segment-tree.d.ts"
},
"./lib/collection/sets": {
"import": "./lib/__esm/collection/sets.js",
"require": "./lib/collection/sets.js",
"type": "./lib/collection/sets.d.ts"
},
"./lib/concurrency/async-throttle": {
"import": "./lib/__esm/concurrency/async-throttle.js",
"require": "./lib/concurrency/async-throttle.js",
"type": "./lib/concurrency/async-throttle.d.ts"
},
"./lib/concurrency/deferred": {
"import": "./lib/__esm/concurrency/deferred.js",
"require": "./lib/concurrency/deferred.js",
"type": "./lib/concurrency/deferred.d.ts"
},
"./lib/concurrency/lazy-thenable": {
"import": "./lib/__esm/concurrency/lazy-thenable.js",
"require": "./lib/concurrency/lazy-thenable.js",
"type": "./lib/concurrency/lazy-thenable.d.ts"
},
"./lib/concurrency/lease": {
"import": "./lib/__esm/concurrency/lease.js",
"require": "./lib/concurrency/lease.js",
"type": "./lib/concurrency/lease.d.ts"
},
"./lib/concurrency/resource-pool": {
"import": "./lib/__esm/concurrency/resource-pool.js",
"require": "./lib/concurrency/resource-pool.js",
"type": "./lib/concurrency/resource-pool.d.ts"
},
"./lib/concurrency/tic-toc": {
"import": "./lib/__esm/concurrency/tic-toc.js",
"require": "./lib/concurrency/tic-toc.js",
"type": "./lib/concurrency/tic-toc.d.ts"
},
"./lib/concurrency/timing": {
"import": "./lib/__esm/concurrency/timing.js",
"require": "./lib/concurrency/timing.js",
"type": "./lib/concurrency/timing.d.ts"
},
"./lib/fp-ts/monoid": {
"import": "./lib/__esm/fp-ts/monoid.js",
"require": "./lib/fp-ts/monoid.js",
"type": "./lib/fp-ts/monoid.d.ts"
},
"./lib/index": {
"import": "./lib/__esm/index.js",
"require": "./lib/index.js",
"type": "./lib/index.d.ts"
},
"./lib/logging/console-logger": {
"import": "./lib/__esm/logging/console-logger.js",
"require": "./lib/logging/console-logger.js",
"type": "./lib/logging/console-logger.d.ts"
},
"./lib/logging/get-debug-namespace": {
"import": "./lib/__esm/logging/get-debug-namespace.js",
"require": "./lib/logging/get-debug-namespace.js",
"type": "./lib/logging/get-debug-namespace.d.ts"
},
"./lib/logging/loglevel-logger": {
"import": "./lib/__esm/logging/loglevel-logger.js",
"require": "./lib/logging/loglevel-logger.js",
"type": "./lib/logging/loglevel-logger.d.ts"
},
"./lib/logging/winston-logger": {
"import": "./lib/__esm/logging/winston-logger.js",
"require": "./lib/logging/winston-logger.js",
"type": "./lib/logging/winston-logger.d.ts"
},
"./lib/node/fsp": {
"import": "./lib/__esm/node/fsp.js",
"require": "./lib/node/fsp.js",
"type": "./lib/node/fsp.d.ts"
},
"./lib/node/index": {
"import": "./lib/__esm/node/index.js",
"require": "./lib/node/index.js",
"type": "./lib/node/index.d.ts"
},
"./lib/node/subprocess": {
"import": "./lib/__esm/node/subprocess.js",
"require": "./lib/node/subprocess.js",
"type": "./lib/node/subprocess.d.ts"
},
"./lib/random/number": {
"import": "./lib/__esm/random/number.js",
"require": "./lib/random/number.js",
"type": "./lib/random/number.d.ts"
},
"./lib/random/series": {
"import": "./lib/__esm/random/series.js",
"require": "./lib/random/series.js",
"type": "./lib/random/series.d.ts"
},
"./lib/react/component/font-awesome": {
"import": "./lib/__esm/react/component/font-awesome.jsx",
"require": "./lib/react/component/font-awesome.jsx",
"type": "./lib/react/component/font-awesome.d.ts"
},
"./lib/react/component/inspect-render-count": {
"import": "./lib/__esm/react/component/inspect-render-count.jsx",
"require": "./lib/react/component/inspect-render-count.jsx",
"type": "./lib/react/component/inspect-render-count.d.ts"
},
"./lib/react/component/pre-json": {
"import": "./lib/__esm/react/component/pre-json.jsx",
"require": "./lib/react/component/pre-json.jsx",
"type": "./lib/react/component/pre-json.d.ts"
},
"./lib/react/hook/use-async-effect": {
"import": "./lib/__esm/react/hook/use-async-effect.js",
"require": "./lib/react/hook/use-async-effect.js",
"type": "./lib/react/hook/use-async-effect.d.ts"
},
"./lib/react/hook/use-concurrency-control": {
"import": "./lib/__esm/react/hook/use-concurrency-control.js",
"require": "./lib/react/hook/use-concurrency-control.js",
"type": "./lib/react/hook/use-concurrency-control.d.ts"
},
"./lib/react/hook/use-depending-state": {
"import": "./lib/__esm/react/hook/use-depending-state.js",
"require": "./lib/react/hook/use-depending-state.js",
"type": "./lib/react/hook/use-depending-state.d.ts"
},
"./lib/react/hook/use-fps": {
"import": "./lib/__esm/react/hook/use-fps.js",
"require": "./lib/react/hook/use-fps.js",
"type": "./lib/react/hook/use-fps.d.ts"
},
"./lib/react/hook/use-in-server": {
"import": "./lib/__esm/react/hook/use-in-server.js",
"require": "./lib/react/hook/use-in-server.js",
"type": "./lib/react/hook/use-in-server.d.ts"
},
"./lib/react/hook/use-life-cycle": {
"import": "./lib/__esm/react/hook/use-life-cycle.js",
"require": "./lib/react/hook/use-life-cycle.js",
"type": "./lib/react/hook/use-life-cycle.d.ts"
},
"./lib/react/hook/use-mounted": {
"import": "./lib/__esm/react/hook/use-mounted.js",
"require": "./lib/react/hook/use-mounted.js",
"type": "./lib/react/hook/use-mounted.d.ts"
},
"./lib/react/hook/use-observable-store": {
"import": "./lib/__esm/react/hook/use-observable-store.js",
"require": "./lib/react/hook/use-observable-store.js",
"type": "./lib/react/hook/use-observable-store.d.ts"
},
"./lib/react/hook/use-prev": {
"import": "./lib/__esm/react/hook/use-prev.js",
"require": "./lib/react/hook/use-prev.js",
"type": "./lib/react/hook/use-prev.d.ts"
},
"./lib/react/hook/use-promised": {
"import": "./lib/__esm/react/hook/use-promised.js",
"require": "./lib/react/hook/use-promised.js",
"type": "./lib/react/hook/use-promised.d.ts"
},
"./lib/react/hook/use-versioned-memo": {
"import": "./lib/__esm/react/hook/use-versioned-memo.js",
"require": "./lib/react/hook/use-versioned-memo.js",
"type": "./lib/react/hook/use-versioned-memo.d.ts"
},
"./lib/react/mobx/use-derived": {
"import": "./lib/__esm/react/mobx/use-derived.js",
"require": "./lib/react/mobx/use-derived.js",
"type": "./lib/react/mobx/use-derived.d.ts"
},
"./lib/react/mobx/use-mobx-derived": {
"import": "./lib/__esm/react/mobx/use-mobx-derived.js",
"require": "./lib/react/mobx/use-mobx-derived.js",
"type": "./lib/react/mobx/use-mobx-derived.d.ts"
},
"./lib/react/util/prop-of": {
"import": "./lib/__esm/react/util/prop-of.js",
"require": "./lib/react/util/prop-of.js",
"type": "./lib/react/util/prop-of.d.ts"
},
"./lib/rxjs/poisson-observable": {
"import": "./lib/__esm/rxjs/poisson-observable.js",
"require": "./lib/rxjs/poisson-observable.js",
"type": "./lib/rxjs/poisson-observable.d.ts"
},
"./lib/stress/chunk": {
"import": "./lib/__esm/stress/chunk.js",
"require": "./lib/stress/chunk.js",
"type": "./lib/stress/chunk.d.ts"
},
"./lib/stress/groupBy": {
"import": "./lib/__esm/stress/groupBy.js",
"require": "./lib/stress/groupBy.js",
"type": "./lib/stress/groupBy.d.ts"
},
"./lib/stress/sortBy": {
"import": "./lib/__esm/stress/sortBy.js",
"require": "./lib/stress/sortBy.js",
"type": "./lib/stress/sortBy.d.ts"
},
"./lib/text/chunk-to-lines": {
"import": "./lib/__esm/text/chunk-to-lines.js",
"require": "./lib/text/chunk-to-lines.js",
"type": "./lib/text/chunk-to-lines.d.ts"
},
"./lib/text/random-string": {
"import": "./lib/__esm/text/random-string.js",
"require": "./lib/text/random-string.js",
"type": "./lib/text/random-string.d.ts"
},
"./lib/type/freeze": {
"import": "./lib/__esm/type/freeze.js",
"require": "./lib/type/freeze.js",
"type": "./lib/type/freeze.d.ts"
},
"./lib/type/index": {
"import": "./lib/__esm/type/index.js",
"require": "./lib/type/index.js",
"type": "./lib/type/index.d.ts"
},
"./lib/type/omit": {
"import": "./lib/__esm/type/omit.js",
"require": "./lib/type/omit.js",
"type": "./lib/type/omit.d.ts"
},
"./lib/util/with-retry": {
"import": "./lib/__esm/util/with-retry.js",
"require": "./lib/util/with-retry.js",
"type": "./lib/util/with-retry.d.ts"
},
"./lib/web/dummy-img": {
"import": "./lib/__esm/web/dummy-img.js",
"require": "./lib/web/dummy-img.js",
"type": "./lib/web/dummy-img.d.ts"
},
"./lib/web/fps-observable": {
"import": "./lib/__esm/web/fps-observable.js",
"require": "./lib/web/fps-observable.js",
"type": "./lib/web/fps-observable.d.ts"
},
"./lib/web/measure-img": {
"import": "./lib/__esm/web/measure-img.js",
"require": "./lib/web/measure-img.js",
"type": "./lib/web/measure-img.d.ts"
},
"./lib/web/observe-dom-mutation": {
"import": "./lib/__esm/web/observe-dom-mutation.js",
"require": "./lib/web/observe-dom-mutation.js",
"type": "./lib/web/observe-dom-mutation.d.ts"
}
},
"resolutions": {
"@types/node": "18",
"@types/react": "^18"
}
}