1 | {
|
2 | "name": "lib0",
|
3 | "version": "0.2.86",
|
4 | "description": "",
|
5 | "sideEffects": false,
|
6 | "type": "module",
|
7 | "main": "./dist/index.cjs",
|
8 | "module": "./index.js",
|
9 | "types": "./index.d.ts",
|
10 | "funding": {
|
11 | "type": "GitHub Sponsors ❤",
|
12 | "url": "https://github.com/sponsors/dmonad"
|
13 | },
|
14 | "bin": {
|
15 | "0gentesthtml": "./bin/gentesthtml.js",
|
16 | "0serve": "./bin/0serve.js"
|
17 | },
|
18 | "exports": {
|
19 | "./package.json": "./package.json",
|
20 | ".": {
|
21 | "types": "./index.d.ts",
|
22 | "module": "./index.js",
|
23 | "import": "./index.js",
|
24 | "require": "./dist/index.cjs"
|
25 | },
|
26 | "./array.js": "./array.js",
|
27 | "./dist/array.cjs": "./dist/array.cjs",
|
28 | "./array": {
|
29 | "types": "./array.d.ts",
|
30 | "module": "./array.js",
|
31 | "import": "./array.js",
|
32 | "require": "./dist/array.cjs"
|
33 | },
|
34 | "./binary.js": "./binary.js",
|
35 | "./dist/binary.cjs": "./dist/binary.cjs",
|
36 | "./binary": {
|
37 | "types": "./binary.d.ts",
|
38 | "module": "./binary.js",
|
39 | "import": "./binary.js",
|
40 | "require": "./dist/binary.cjs"
|
41 | },
|
42 | "./broadcastchannel.js": "./broadcastchannel.js",
|
43 | "./dist/broadcastchannel.cjs": "./dist/broadcastchannel.cjs",
|
44 | "./broadcastchannel": {
|
45 | "types": "./broadcastchannel.d.ts",
|
46 | "module": "./broadcastchannel.js",
|
47 | "import": "./broadcastchannel.js",
|
48 | "require": "./dist/broadcastchannel.cjs"
|
49 | },
|
50 | "./buffer.js": "./buffer.js",
|
51 | "./dist/buffer.cjs": "./dist/buffer.cjs",
|
52 | "./buffer": {
|
53 | "types": "./buffer.d.ts",
|
54 | "module": "./buffer.js",
|
55 | "import": "./buffer.js",
|
56 | "require": "./dist/buffer.cjs"
|
57 | },
|
58 | "./cache.js": "./cache.js",
|
59 | "./dist/cache.cjs": "./dist/cache.cjs",
|
60 | "./cache": {
|
61 | "types": "./cache.d.ts",
|
62 | "module": "./cache.js",
|
63 | "import": "./cache.js",
|
64 | "require": "./dist/cache.cjs"
|
65 | },
|
66 | "./component.js": "./component.js",
|
67 | "./dist/component.cjs": "./dist/component.cjs",
|
68 | "./component": {
|
69 | "types": "./component.d.ts",
|
70 | "module": "./component.js",
|
71 | "import": "./component.js",
|
72 | "require": "./dist/component.cjs"
|
73 | },
|
74 | "./conditions.js": "./conditions.js",
|
75 | "./dist/conditions.cjs": "./dist/conditions.cjs",
|
76 | "./conditions": {
|
77 | "types": "./condititons.d.ts",
|
78 | "module": "./condititons.js",
|
79 | "import": "./condititons.js",
|
80 | "require": "./dist/conditions.cjs"
|
81 | },
|
82 | "./crypto/jwt": {
|
83 | "types": "./crypto/jwt.d.ts",
|
84 | "module": "./crypto/jwt.js",
|
85 | "import": "./crypto/jwt.js",
|
86 | "require": "./dist/jwt.cjs"
|
87 | },
|
88 | "./crypto/aes-gcm": {
|
89 | "types": "./crypto/aes-gcm.d.ts",
|
90 | "module": "./crypto/aes-gcm.js",
|
91 | "import": "./crypto/aes-gcm.js",
|
92 | "require": "./dist/aes-gcm.cjs"
|
93 | },
|
94 | "./crypto/ecdsa": {
|
95 | "types": "./crypto/ecdsa.d.ts",
|
96 | "module": "./crypto/ecdsa.js",
|
97 | "import": "./crypto/ecdsa.js",
|
98 | "require": "./dist/ecdsa.cjs"
|
99 | },
|
100 | "./crypto/rsa-oaep": {
|
101 | "types": "./crypto/rsa-oaep.d.ts",
|
102 | "module": "./crypto/rsa-oaep.js",
|
103 | "import": "./crypto/rsa-oaep.js",
|
104 | "require": "./dist/rsa-oaep.cjs"
|
105 | },
|
106 | "./hash/rabin": {
|
107 | "types": "./hash/rabin.d.ts",
|
108 | "module": "./hash/rabin.js",
|
109 | "import": "./hash/rabin.js",
|
110 | "require": "./dist/rabin.cjs"
|
111 | },
|
112 | "./hash/sha256": {
|
113 | "types": "./hash/sha256.d.ts",
|
114 | "node": {
|
115 | "require": "./dist/sha256.node.cjs",
|
116 | "default": "./hash/sha256.node.js"
|
117 | },
|
118 | "default": {
|
119 | "module": "./hash/sha256.js",
|
120 | "require": "./dist/sha256.cjs",
|
121 | "default": "./hash/sha256.js"
|
122 | }
|
123 | },
|
124 | "./decoding.js": "./decoding.js",
|
125 | "./dist/decoding.cjs": "./dist/decoding.cjs",
|
126 | "./decoding": {
|
127 | "types": "./decoding.d.ts",
|
128 | "module": "./decoding.js",
|
129 | "import": "./decoding.js",
|
130 | "require": "./dist/decoding.cjs"
|
131 | },
|
132 | "./diff.js": "./diff.js",
|
133 | "./dist/diff.cjs": "./dist/diff.cjs",
|
134 | "./diff": {
|
135 | "types": "./diff.d.ts",
|
136 | "module": "./diff.js",
|
137 | "import": "./diff.js",
|
138 | "require": "./dist/diff.cjs"
|
139 | },
|
140 | "./dom.js": "./dom.js",
|
141 | "./dist/dom.cjs": "./dist/dom.cjs",
|
142 | "./dom": {
|
143 | "types": "./dom.d.ts",
|
144 | "module": "./dom.js",
|
145 | "import": "./dom.js",
|
146 | "require": "./dist/dom.cjs"
|
147 | },
|
148 | "./encoding.js": "./encoding.js",
|
149 | "./dist/encoding.cjs": "./dist/encoding.cjs",
|
150 | "./encoding": {
|
151 | "types": "./encoding.d.ts",
|
152 | "module": "./encoding.js",
|
153 | "import": "./encoding.js",
|
154 | "require": "./dist/encoding.cjs"
|
155 | },
|
156 | "./environment.js": "./environment.js",
|
157 | "./dist/environment.cjs": "./dist/environment.cjs",
|
158 | "./environment": {
|
159 | "types": "./environment.d.ts",
|
160 | "module": "./environment.js",
|
161 | "import": "./environment.js",
|
162 | "require": "./dist/environment.cjs"
|
163 | },
|
164 | "./error.js": "./error.js",
|
165 | "./dist/error.cjs": "./dist/error.cjs",
|
166 | "./error": {
|
167 | "types": "./error.d.ts",
|
168 | "module": "./error.js",
|
169 | "import": "./error.js",
|
170 | "require": "./dist/error.cjs"
|
171 | },
|
172 | "./eventloop.js": "./eventloop.js",
|
173 | "./dist/eventloop.cjs": "./dist/eventloop.cjs",
|
174 | "./eventloop": {
|
175 | "types": "./eventloop.d.ts",
|
176 | "module": "./eventloop.js",
|
177 | "import": "./eventloop.js",
|
178 | "require": "./dist/eventloop.cjs"
|
179 | },
|
180 | "./function.js": "./function.js",
|
181 | "./dist/function.cjs": "./dist/function.cjs",
|
182 | "./function": {
|
183 | "types": "./function.d.ts",
|
184 | "module": "./function.js",
|
185 | "import": "./function.js",
|
186 | "require": "./dist/function.cjs"
|
187 | },
|
188 | "./indexeddb.js": "./indexeddb.js",
|
189 | "./dist/indexeddb.cjs": "./dist/indexeddb.cjs",
|
190 | "./indexeddb": {
|
191 | "types": "./indexeddb.d.ts",
|
192 | "module": "./indexeddb.js",
|
193 | "import": "./indexeddb.js",
|
194 | "require": "./dist/indexeddb.cjs"
|
195 | },
|
196 | "./isomorphic.js": "./isomorphic.js",
|
197 | "./dist/isomorphic.cjs": "./dist/isomorphic.cjs",
|
198 | "./isomorphic": {
|
199 | "types": "./isomorphic.d.ts",
|
200 | "module": "./isomorphic.js",
|
201 | "import": "./isomorphic.js",
|
202 | "require": "./dist/isomorphic.cjs"
|
203 | },
|
204 | "./iterator.js": "./iterator.js",
|
205 | "./dist/iterator.cjs": "./dist/iterator.cjs",
|
206 | "./iterator": {
|
207 | "types": "./iterator.d.ts",
|
208 | "module": "./iterator.js",
|
209 | "import": "./iterator.js",
|
210 | "require": "./dist/iterator.cjs"
|
211 | },
|
212 | "./json.js": "./json.js",
|
213 | "./dist/json.cjs": "./dist/json.cjs",
|
214 | "./json": {
|
215 | "types": "./json.d.ts",
|
216 | "module": "./json.js",
|
217 | "import": "./json.js",
|
218 | "require": "./dist/json.cjs"
|
219 | },
|
220 | "./list.js": "./list.js",
|
221 | "./dist/list.cjs": "./dist/list.cjs",
|
222 | "./list": {
|
223 | "types": "./list.d.ts",
|
224 | "module": "./list.js",
|
225 | "import": "./list.js",
|
226 | "require": "./dist/list.cjs"
|
227 | },
|
228 | "./logging.js": "./logging.js",
|
229 | "./dist/logging.cjs": "./dist/logging.node.cjs",
|
230 | "./logging": {
|
231 | "types": "./logging.node.d.ts",
|
232 | "deno": "./logging.node.js",
|
233 | "bun": "./logging.js",
|
234 | "node": {
|
235 | "module": "./logging.node.js",
|
236 | "require": "./dist/logging.node.cjs",
|
237 | "default": "./logging.node.js"
|
238 | },
|
239 | "default": {
|
240 | "module": "./logging.js",
|
241 | "require": "./dist/logging.cjs",
|
242 | "default": "./logging.js"
|
243 | }
|
244 | },
|
245 | "./map.js": "./map.js",
|
246 | "./dist/map.cjs": "./dist/map.cjs",
|
247 | "./map": {
|
248 | "types": "./map.d.ts",
|
249 | "module": "./map.js",
|
250 | "import": "./map.js",
|
251 | "require": "./dist/map.cjs"
|
252 | },
|
253 | "./math.js": "./math.js",
|
254 | "./dist/math.cjs": "./dist/math.cjs",
|
255 | "./math": {
|
256 | "types": "./math.d.ts",
|
257 | "module": "./math.js",
|
258 | "import": "./math.js",
|
259 | "require": "./dist/math.cjs"
|
260 | },
|
261 | "./metric.js": "./metric.js",
|
262 | "./dist/metric.cjs": "./dist/metric.cjs",
|
263 | "./metric": {
|
264 | "types": "./metric.d.ts",
|
265 | "module": "./metric.js",
|
266 | "import": "./metric.js",
|
267 | "require": "./dist/metric.cjs"
|
268 | },
|
269 | "./mutex.js": "./mutex.js",
|
270 | "./dist/mutex.cjs": "./dist/mutex.cjs",
|
271 | "./mutex": {
|
272 | "types": "./mutex.d.ts",
|
273 | "module": "./mutex.js",
|
274 | "import": "./mutex.js",
|
275 | "require": "./dist/mutex.cjs"
|
276 | },
|
277 | "./number.js": "./number.js",
|
278 | "./dist/number.cjs": "./dist/number.cjs",
|
279 | "./number": {
|
280 | "types": "./number.d.ts",
|
281 | "module": "./number.js",
|
282 | "import": "./number.js",
|
283 | "require": "./dist/number.cjs"
|
284 | },
|
285 | "./object.js": "./object.js",
|
286 | "./dist/object.cjs": "./dist/object.cjs",
|
287 | "./object": {
|
288 | "types": "./object.d.ts",
|
289 | "module": "./object.js",
|
290 | "import": "./object.js",
|
291 | "require": "./dist/object.cjs"
|
292 | },
|
293 | "./observable.js": "./observable.js",
|
294 | "./dist/observable.cjs": "./dist/observable.cjs",
|
295 | "./observable": {
|
296 | "types": "./observable.d.ts",
|
297 | "module": "./observable.js",
|
298 | "import": "./observable.js",
|
299 | "require": "./dist/observable.cjs"
|
300 | },
|
301 | "./pair.js": "./pair.js",
|
302 | "./dist/pair.cjs": "./dist/pair.cjs",
|
303 | "./pair": {
|
304 | "types": "./pair.d.ts",
|
305 | "module": "./pair.js",
|
306 | "import": "./pair.js",
|
307 | "require": "./dist/pair.cjs"
|
308 | },
|
309 | "./prng.js": "./prng.js",
|
310 | "./dist/prng.cjs": "./dist/prng.cjs",
|
311 | "./prng": {
|
312 | "types": "./prng.d.ts",
|
313 | "module": "./prng.js",
|
314 | "import": "./prng.js",
|
315 | "require": "./dist/prng.cjs"
|
316 | },
|
317 | "./promise.js": "./promise.js",
|
318 | "./dist/promise.cjs": "./dist/promise.cjs",
|
319 | "./promise": {
|
320 | "types": "./promise.d.ts",
|
321 | "module": "./promise.js",
|
322 | "import": "./promise.js",
|
323 | "require": "./dist/promise.cjs"
|
324 | },
|
325 | "./queue.js": "./queue.js",
|
326 | "./dist/queue.cjs": "./dist/queue.cjs",
|
327 | "./queue": {
|
328 | "types": "./queue.d.ts",
|
329 | "module": "./queue.js",
|
330 | "import": "./queue.js",
|
331 | "require": "./dist/queue.cjs"
|
332 | },
|
333 | "./random.js": "./random.js",
|
334 | "./dist/random.cjs": "./dist/random.cjs",
|
335 | "./random": {
|
336 | "types": "./random.d.ts",
|
337 | "module": "./random.js",
|
338 | "import": "./random.js",
|
339 | "require": "./dist/random.cjs"
|
340 | },
|
341 | "./set.js": "./set.js",
|
342 | "./dist/set.cjs": "./dist/set.cjs",
|
343 | "./set": {
|
344 | "types": "./set.d.ts",
|
345 | "module": "./set.js",
|
346 | "import": "./set.js",
|
347 | "require": "./dist/set.cjs"
|
348 | },
|
349 | "./sort.js": "./sort.js",
|
350 | "./dist/sort.cjs": "./dist/sort.cjs",
|
351 | "./sort": {
|
352 | "types": "./sort.d.ts",
|
353 | "module": "./sort.js",
|
354 | "import": "./sort.js",
|
355 | "require": "./dist/sort.cjs"
|
356 | },
|
357 | "./statistics.js": "./statistics.js",
|
358 | "./dist/statistics.cjs": "./dist/statistics.cjs",
|
359 | "./statistics": {
|
360 | "types": "./statistics.d.ts",
|
361 | "module": "./statistics.js",
|
362 | "import": "./statistics.js",
|
363 | "require": "./dist/statistics.cjs"
|
364 | },
|
365 | "./storage.js": "./storage.js",
|
366 | "./dist/storage.cjs": "./dist/storage.cjs",
|
367 | "./storage": {
|
368 | "types": "./storage.d.ts",
|
369 | "module": "./storage.js",
|
370 | "import": "./storage.js",
|
371 | "require": "./dist/storage.cjs"
|
372 | },
|
373 | "./string.js": "./string.js",
|
374 | "./dist/string.cjs": "./dist/string.cjs",
|
375 | "./string": {
|
376 | "types": "./string.d.ts",
|
377 | "module": "./string.js",
|
378 | "import": "./string.js",
|
379 | "require": "./dist/string.cjs"
|
380 | },
|
381 | "./symbol.js": "./symbol.js",
|
382 | "./dist/symbol.cjs": "./dist/symbol.cjs",
|
383 | "./symbol": {
|
384 | "types": "./symbol.d.ts",
|
385 | "module": "./symbol.js",
|
386 | "import": "./symbol.js",
|
387 | "require": "./dist/symbol.cjs"
|
388 | },
|
389 | "./testing.js": "./testing.js",
|
390 | "./dist/testing.cjs": "./dist/testing.cjs",
|
391 | "./testing": {
|
392 | "types": "./testing.d.ts",
|
393 | "module": "./testing.js",
|
394 | "import": "./testing.js",
|
395 | "require": "./dist/testing.cjs"
|
396 | },
|
397 | "./time.js": "./time.js",
|
398 | "./dist/time.cjs": "./dist/time.cjs",
|
399 | "./time": {
|
400 | "types": "./time.d.ts",
|
401 | "module": "./time.js",
|
402 | "import": "./time.js",
|
403 | "require": "./dist/time.cjs"
|
404 | },
|
405 | "./tree.js": "./tree.js",
|
406 | "./dist/tree.cjs": "./dist/tree.cjs",
|
407 | "./tree": {
|
408 | "types": "./tree.d.ts",
|
409 | "module": "./tree.js",
|
410 | "import": "./tree.js",
|
411 | "require": "./dist/tree.cjs"
|
412 | },
|
413 | "./url.js": "./url.js",
|
414 | "./dist/url.cjs": "./dist/url.cjs",
|
415 | "./url": {
|
416 | "types": "./url.d.ts",
|
417 | "module": "./url.js",
|
418 | "import": "./url.js",
|
419 | "require": "./dist/url.cjs"
|
420 | },
|
421 | "./websocket.js": "./websocket.js",
|
422 | "./dist/websocket.cjs": "./dist/websocket.cjs",
|
423 | "./websocket": {
|
424 | "types": "./websocket.d.ts",
|
425 | "module": "./websocket.js",
|
426 | "import": "./websocket.js",
|
427 | "require": "./dist/websocket.cjs"
|
428 | },
|
429 | "./webcrypto": {
|
430 | "types": "./webcrypto.d.ts",
|
431 | "deno": "./webcrypto.deno.js",
|
432 | "bun": "./webcrypto.js",
|
433 | "browser": "./webcrypto.js",
|
434 | "node": {
|
435 | "module": "./webcrypto.node.js",
|
436 | "require": "./dist/webcrypto.node.cjs",
|
437 | "default": "./webcrypto.node.js"
|
438 | },
|
439 | "default": {
|
440 | "module": "./webcrypto.js",
|
441 | "require": "./dist/webcrypto.cjs",
|
442 | "default": "./webcrypto.js"
|
443 | }
|
444 | },
|
445 | "./performance.js": "./performance.js",
|
446 | "./dist/performance.cjs": "./dist/performance.node.cjs",
|
447 | "./performance": {
|
448 | "types": "./performance.d.ts",
|
449 | "deno": "./performance.node.js",
|
450 | "bun": "./performance.node.js",
|
451 | "node": {
|
452 | "module": "./performance.node.js",
|
453 | "require": "./dist/performance.node.cjs",
|
454 | "default": "./performance.node.js"
|
455 | },
|
456 | "default": {
|
457 | "module": "./performance.js",
|
458 | "require": "./dist/performance.cjs",
|
459 | "default": "./performance.js"
|
460 | }
|
461 | }
|
462 | },
|
463 | "dependencies": {
|
464 | "isomorphic.js": "^0.2.4"
|
465 | },
|
466 | "devDependencies": {
|
467 | "@types/node": "^18.14.0",
|
468 | "c8": "^7.13.0",
|
469 | "jsdoc-api": "^8.0.0",
|
470 | "jsdoc-plugin-typescript": "^2.2.1",
|
471 | "rollup": "^2.42.1",
|
472 | "standard": "^17.1.0",
|
473 | "typescript": "^5.0.2"
|
474 | },
|
475 | "scripts": {
|
476 | "clean": "rm -rf dist *.d.ts */*.d.ts *.d.ts.map */*.d.ts.map",
|
477 | "types": "tsc --outDir .",
|
478 | "dist": "rollup -c",
|
479 | "debug": "npm run gentesthtml && node ./bin/0serve.js -o test.html",
|
480 | "test": "c8 --check-coverage --lines 100 --branches 100 --functions 100 --statements 100 node --unhandled-rejections=strict ./test.js --repetition-time 50 --production",
|
481 | "test-inspect": "node --inspect-brk --unhandled-rejections=strict ./test.js --repetition-time 50 --production",
|
482 | "test-extensive": "c8 --check-coverage --lines 100 --branches 100 --functions 100 --statements 100 node test.js --repetition-time 30000 --extensive --production",
|
483 | "trace-deopt": "clear && rollup -c && node --trace-deopt dist/test.cjs",
|
484 | "trace-opt": "clear && rollup -c && node --trace-opt dist/test.cjs",
|
485 | "lint": "standard && tsc",
|
486 | "gendocs": "node ./bin/gendocs.js",
|
487 | "preversion": "npm run clean && npm run lint && npm run test && npm run types && npm run dist && git add README.md",
|
488 | "postpublish": "npm run clean",
|
489 | "gentesthtml": "node ./bin/gentesthtml.js --script test.js > test.html"
|
490 | },
|
491 | "repository": {
|
492 | "type": "git",
|
493 | "url": "git+https://github.com/dmonad/lib0.git"
|
494 | },
|
495 | "author": "Kevin Jahns <kevin.jahns@protonmail.com>",
|
496 | "license": "MIT",
|
497 | "bugs": {
|
498 | "url": "https://github.com/dmonad/lib0/issues"
|
499 | },
|
500 | "homepage": "https://github.com/dmonad/lib0#readme",
|
501 | "standard": {
|
502 | "ignore": [
|
503 | "/dist",
|
504 | "/node_modules",
|
505 | "/docs"
|
506 | ]
|
507 | },
|
508 | "engines": {
|
509 | "node": ">=16"
|
510 | }
|
511 | }
|