hedgedoc/.yarn/patches/lib0-npm-0.2.58-7de44657f5.patch
Tilman Vatteroth 7320fe2ac1 feat(packages): add commons package
This is an import of 166ca8da12
with some changes to make it fit into the mono repo.
- TypedEventEmitter has been replaced with EventEmitter2 because EventEmitter2 is faster and TypedEventEmitter had some troubles with the new way of compiling.
- tsc-esm has been replaced with microbundle. The problems that lib0 doesn't export its types correctly has been solved using yarn patch.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
2022-12-11 23:09:10 +01:00

366 lines
11 KiB
Diff

diff --git a/package.json b/package.json
index 9f2285b2a327935a64443dfff3b4389d2df0620d..b2a923b42f4a3f0fda68a9707cf65ac6007502e6 100644
--- a/package.json
+++ b/package.json
@@ -15,271 +15,316 @@
"./package.json": "./package.json",
".": {
"import": "./index.js",
- "require": "./dist/index.cjs"
+ "require": "./dist/index.cjs",
+ "types": "./index.d.ts"
},
"./array.js": "./array.js",
"./dist/array.cjs": "./dist/array.cjs",
"./array": {
"import": "./array.js",
- "require": "./dist/array.cjs"
+ "require": "./dist/array.cjs",
+ "types": "./array.d.ts"
},
"./binary.js": "./binary.js",
"./dist/binary.cjs": "./dist/binary.cjs",
"./binary": {
"import": "./binary.js",
- "require": "./dist/binary.cjs"
+ "require": "./dist/binary.cjs",
+ "types": "./binary.d.ts"
},
"./broadcastchannel.js": "./broadcastchannel.js",
"./dist/broadcastchannel.cjs": "./dist/broadcastchannel.cjs",
"./broadcastchannel": {
"import": "./broadcastchannel.js",
- "require": "./dist/broadcastchannel.cjs"
+ "require": "./dist/broadcastchannel.cjs",
+ "types": "./broadcastchannel.d.ts"
},
"./buffer.js": "./buffer.js",
"./dist/buffer.cjs": "./dist/buffer.cjs",
"./buffer": {
"import": "./buffer.js",
- "require": "./dist/buffer.cjs"
+ "require": "./dist/buffer.cjs",
+ "types": "./buffer.d.ts"
},
"./cache.js": "./cache.js",
"./dist/cache.cjs": "./dist/cache.cjs",
"./cache": {
"import": "./cache.js",
- "require": "./dist/cache.cjs"
+ "require": "./dist/cache.cjs",
+ "types": "./cache.d.ts"
},
"./component.js": "./component.js",
"./dist/component.cjs": "./dist/component.cjs",
"./component": {
"import": "./component.js",
- "require": "./dist/component.cjs"
+ "require": "./dist/component.cjs",
+ "types": "./component.d.ts"
},
"./conditions.js": "./conditions.js",
"./dist/conditions.cjs": "./dist/conditions.cjs",
"./conditions": {
"import": "./condititons.js",
- "require": "./dist/conditions.cjs"
+ "require": "./dist/conditions.cjs",
+ "types": "./conditions.d.ts"
},
"./decoding.js": "./decoding.js",
"./dist/decoding.cjs": "./dist/decoding.cjs",
"./decoding": {
"import": "./decoding.js",
- "require": "./dist/decoding.cjs"
+ "require": "./dist/decoding.cjs",
+ "types": "./decoding.d.ts"
},
"./diff.js": "./diff.js",
"./dist/diff.cjs": "./dist/diff.cjs",
"./diff": {
"import": "./diff.js",
- "require": "./dist/diff.cjs"
+ "require": "./dist/diff.cjs",
+ "types": "./diff.d.ts"
},
"./dom.js": "./dom.js",
"./dist/dom.cjs": "./dist/dom.cjs",
"./dom": {
"import": "./dom.js",
- "require": "./dist/dom.cjs"
+ "require": "./dist/dom.cjs",
+ "types": "./dom.d.ts"
},
"./encoding.js": "./encoding.js",
"./dist/encoding.cjs": "./dist/encoding.cjs",
"./encoding": {
"import": "./encoding.js",
- "require": "./dist/encoding.cjs"
+ "require": "./dist/encoding.cjs",
+ "types": "./encoding.d.ts"
},
"./environment.js": "./environment.js",
"./dist/environment.cjs": "./dist/environment.cjs",
"./environment": {
"import": "./environment.js",
- "require": "./dist/environment.cjs"
+ "require": "./dist/environment.cjs",
+ "types": "./environment.d.ts"
},
"./error.js": "./error.js",
"./dist/error.cjs": "./dist/error.cjs",
"./error": {
"import": "./error.js",
- "require": "./dist/error.cjs"
+ "require": "./dist/error.cjs",
+ "types": "./error.d.ts"
},
"./eventloop.js": "./eventloop.js",
"./dist/eventloop.cjs": "./dist/eventloop.cjs",
"./eventloop": {
"import": "./eventloop.js",
- "require": "./dist/eventloop.cjs"
+ "require": "./dist/eventloop.cjs",
+ "types": "./eventloop.d.ts"
},
"./function.js": "./function.js",
"./dist/function.cjs": "./dist/function.cjs",
"./function": {
"import": "./function.js",
- "require": "./dist/function.cjs"
+ "require": "./dist/function.cjs",
+ "types": "./function.d.ts"
},
"./indexeddb.js": "./indexeddb.js",
"./dist/indexeddb.cjs": "./dist/indexeddb.cjs",
"./indexeddb": {
"import": "./indexeddb.js",
- "require": "./dist/indexeddb.cjs"
+ "require": "./dist/indexeddb.cjs",
+ "types": "./indexeddb.d.ts"
},
"./isomorphic.js": "./isomorphic.js",
"./dist/isomorphic.cjs": "./dist/isomorphic.cjs",
"./isomorphic": {
"import": "./isomorphic.js",
- "require": "./dist/isomorphic.cjs"
+ "require": "./dist/isomorphic.cjs",
+ "types": "./isomorphic.d.ts"
},
"./iterator.js": "./iterator.js",
"./dist/iterator.cjs": "./dist/iterator.cjs",
"./iterator": {
"import": "./iterator.js",
- "require": "./dist/iterator.cjs"
+ "require": "./dist/iterator.cjs",
+ "types": "./iterator.d.ts"
},
"./json.js": "./json.js",
"./dist/json.cjs": "./dist/json.cjs",
"./json": {
"import": "./json.js",
- "require": "./dist/json.cjs"
+ "require": "./dist/json.cjs",
+ "types": "./json.d.ts"
},
"./list.js": "./list.js",
"./dist/list.cjs": "./dist/list.cjs",
"./list": {
"import": "./list.js",
- "require": "./dist/list.cjs"
+ "require": "./dist/list.cjs",
+ "types": "./list.d.ts"
},
"./logging.js": "./logging.js",
"./dist/logging.cjs": "./dist/logging.cjs",
"./logging": {
"import": "./logging.js",
- "require": "./dist/logging.cjs"
+ "require": "./dist/logging.cjs",
+ "types": "./logging.d.ts"
},
"./map.js": "./map.js",
"./dist/map.cjs": "./dist/map.cjs",
"./map": {
"import": "./map.js",
- "require": "./dist/map.cjs"
+ "require": "./dist/map.cjs",
+ "types": "./map.d.ts"
},
"./math.js": "./math.js",
"./dist/math.cjs": "./dist/math.cjs",
"./math": {
"import": "./math.js",
- "require": "./dist/math.cjs"
+ "require": "./dist/math.cjs",
+ "types": "./math.d.ts"
},
"./metric.js": "./metric.js",
"./dist/metric.cjs": "./dist/metric.cjs",
"./metric": {
"import": "./metric.js",
- "require": "./dist/metric.cjs"
+ "require": "./dist/metric.cjs",
+ "types": "./metric.d.ts"
},
"./mutex.js": "./mutex.js",
"./dist/mutex.cjs": "./dist/mutex.cjs",
"./mutex": {
"import": "./mutex.js",
- "require": "./dist/mutex.cjs"
+ "require": "./dist/mutex.cjs",
+ "types": "./mutex.d.ts"
},
"./number.js": "./number.js",
"./dist/number.cjs": "./dist/number.cjs",
"./number": {
"import": "./number.js",
- "require": "./dist/number.cjs"
+ "require": "./dist/number.cjs",
+ "types": "./number.d.ts"
},
"./object.js": "./object.js",
"./dist/object.cjs": "./dist/object.cjs",
"./object": {
"import": "./object.js",
- "require": "./dist/object.cjs"
+ "require": "./dist/object.cjs",
+ "types": "./object.d.ts"
},
"./observable.js": "./observable.js",
"./dist/observable.cjs": "./dist/observable.cjs",
"./observable": {
"import": "./observable.js",
- "require": "./dist/observable.cjs"
+ "require": "./dist/observable.cjs",
+ "types": "./observable.d.ts"
},
"./pair.js": "./pair.js",
"./dist/pair.cjs": "./dist/pair.cjs",
"./pair": {
"import": "./pair.js",
- "require": "./dist/pair.cjs"
+ "require": "./dist/pair.cjs",
+ "types": "./pair.d.ts"
},
"./prng.js": "./prng.js",
"./dist/prng.cjs": "./dist/prng.cjs",
"./prng": {
"import": "./prng.js",
- "require": "./dist/prng.cjs"
+ "require": "./dist/prng.cjs",
+ "types": "./prng.d.ts"
},
"./promise.js": "./promise.js",
"./dist/promise.cjs": "./dist/promise.cjs",
"./promise": {
"import": "./promise.js",
- "require": "./dist/promise.cjs"
+ "require": "./dist/promise.cjs",
+ "types": "./promise.d.ts"
},
"./queue.js": "./queue.js",
"./dist/queue.cjs": "./dist/queue.cjs",
"./queue": {
"import": "./queue.js",
- "require": "./dist/queue.cjs"
+ "require": "./dist/queue.cjs",
+ "types": "./queue.d.ts"
},
"./random.js": "./random.js",
"./dist/random.cjs": "./dist/random.cjs",
"./random": {
"import": "./random.js",
- "require": "./dist/random.cjs"
+ "require": "./dist/random.cjs",
+ "types": "./random.d.ts"
},
"./set.js": "./set.js",
"./dist/set.cjs": "./dist/set.cjs",
"./set": {
"import": "./set.js",
- "require": "./dist/set.cjs"
+ "require": "./dist/set.cjs",
+ "types": "./set.d.ts"
},
"./sort.js": "./sort.js",
"./dist/sort.cjs": "./dist/sort.cjs",
"./sort": {
"import": "./sort.js",
- "require": "./dist/sort.cjs"
+ "require": "./dist/sort.cjs",
+ "types": "./sort.d.ts"
},
"./statistics.js": "./statistics.js",
"./dist/statistics.cjs": "./dist/statistics.cjs",
"./statistics": {
"import": "./statistics.js",
- "require": "./dist/statistics.cjs"
+ "require": "./dist/statistics.cjs",
+ "types": "./statistics.d.ts"
},
"./storage.js": "./storage.js",
"./dist/storage.cjs": "./dist/storage.cjs",
"./storage": {
"import": "./storage.js",
- "require": "./dist/storage.cjs"
+ "require": "./dist/storage.cjs",
+ "types": "./storage.d.ts"
},
"./string.js": "./string.js",
"./dist/string.cjs": "./dist/string.cjs",
"./string": {
"import": "./string.js",
- "require": "./dist/string.cjs"
+ "require": "./dist/string.cjs",
+ "types": "./string.d.ts"
},
"./symbol.js": "./symbol.js",
"./dist/symbol.cjs": "./dist/symbol.cjs",
"./symbol": {
"import": "./symbol.js",
- "require": "./dist/symbol.cjs"
+ "require": "./dist/symbol.cjs",
+ "types": "./symbol.d.ts"
},
"./testing.js": "./testing.js",
"./dist/testing.cjs": "./dist/testing.cjs",
"./testing": {
"import": "./testing.js",
- "require": "./dist/testing.cjs"
+ "require": "./dist/testing.cjs",
+ "types": "./testing.d.ts"
},
"./time.js": "./time.js",
"./dist/time.cjs": "./dist/time.cjs",
"./time": {
"import": "./time.js",
- "require": "./dist/time.cjs"
+ "require": "./dist/time.cjs",
+ "types": "./time.d.ts"
},
"./tree.js": "./tree.js",
"./dist/tree.cjs": "./dist/tree.cjs",
"./tree": {
"import": "./tree.js",
- "require": "./dist/tree.cjs"
+ "require": "./dist/tree.cjs",
+ "types": "./tree.d.ts"
},
"./url.js": "./url.js",
"./dist/url.cjs": "./dist/url.cjs",
"./url": {
"import": "./url.js",
- "require": "./dist/url.cjs"
+ "require": "./dist/url.cjs",
+ "types": "./url.d.ts"
},
"./websocket.js": "./websocket.js",
"./dist/websocket.cjs": "./dist/websocket.cjs",
"./websocket": {
"import": "./websocket.js",
- "require": "./dist/websocket.cjs"
+ "require": "./dist/websocket.cjs",
+ "types": "./websocket.d.ts"
}
},
"dependencies": {