@dxos/async 2.33.5-dev.ea3876ba → 2.33.5-dev.fee8f5fe
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/dist/src/async.d.ts +5 -2
- package/dist/src/async.d.ts.map +1 -1
- package/dist/src/async.js +4 -1
- package/dist/src/async.js.map +1 -1
- package/dist/src/callback.d.ts +1 -1
- package/dist/src/callback.d.ts.map +1 -1
- package/dist/src/callback.js +9 -11
- package/dist/src/callback.js.map +1 -1
- package/dist/src/event.d.ts.map +1 -1
- package/dist/src/event.js +1 -0
- package/dist/src/event.js.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +6 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/lock.test.js +4 -4
- package/dist/src/lock.test.js.map +1 -1
- package/dist/src/util.d.ts +27 -0
- package/dist/src/util.d.ts.map +1 -0
- package/dist/src/{events.js → util.js} +4 -2
- package/dist/src/util.js.map +1 -0
- package/dist/src/util.test.d.ts +2 -0
- package/dist/src/util.test.d.ts.map +1 -0
- package/dist/src/{events.test.js → util.test.js} +6 -6
- package/dist/src/util.test.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/async.ts +5 -2
- package/src/callback.ts +8 -10
- package/src/event.ts +4 -5
- package/src/index.ts +1 -1
- package/src/lock.test.ts +4 -4
- package/src/trigger.ts +1 -1
- package/src/{events.test.js → util.test.ts} +2 -2
- package/src/{events.js → util.ts} +14 -4
- package/dist/src/events.d.ts +0 -6
- package/dist/src/events.d.ts.map +0 -1
- package/dist/src/events.js.map +0 -1
- package/dist/src/events.test.d.ts +0 -2
- package/dist/src/events.test.d.ts.map +0 -1
- package/dist/src/events.test.js.map +0 -1
package/dist/src/async.d.ts
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const sleep: (ms: number) => Promise<void>;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Wait for promise or throw error on timeout.
|
|
7
|
+
* @param promise
|
|
8
|
+
* @param [timeout] How long to wait, in milliseconds.
|
|
9
|
+
* @param [error]
|
|
7
10
|
*/
|
|
8
|
-
export declare const promiseTimeout: <T
|
|
11
|
+
export declare const promiseTimeout: <T>(promise: Promise<T>, timeout: number, error?: Error | string) => Promise<T>;
|
|
9
12
|
/**
|
|
10
13
|
* Returns a Promise which resolves when `condFn` returns truthy. The value returned by
|
|
11
14
|
* `condFn` is used to resolve the Promise.
|
package/dist/src/async.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/async.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,KAAK,OAAQ,MAAM,kBAc9B,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/async.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,eAAO,MAAM,KAAK,OAAQ,MAAM,kBAc9B,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,oCAAqC,MAAM,UAAU,KAAK,GAAG,MAAM,eAmB7F,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,WAAY,QAAQ,sDAwBhD,CAAC"}
|
package/dist/src/async.js
CHANGED
|
@@ -24,7 +24,10 @@ const sleep = (ms) => new Promise((resolve) => {
|
|
|
24
24
|
});
|
|
25
25
|
exports.sleep = sleep;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Wait for promise or throw error on timeout.
|
|
28
|
+
* @param promise
|
|
29
|
+
* @param [timeout] How long to wait, in milliseconds.
|
|
30
|
+
* @param [error]
|
|
28
31
|
*/
|
|
29
32
|
const promiseTimeout = (promise, timeout, error) => {
|
|
30
33
|
let cancelTimeout;
|
package/dist/src/async.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/async.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAAoC;AAEpC;;GAEG;AACI,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IAE/B,qGAAqG;IACrG,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,MAAM,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAClC,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC5B;aAAM;YACL,OAAO,EAAE,CAAC;SACX;IACH,CAAC,CAAC;IAEF,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC,CAAC;AAdU,QAAA,KAAK,SAcf;AAEH
|
|
1
|
+
{"version":3,"file":"async.js","sourceRoot":"","sources":["../../src/async.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAAoC;AAEpC;;GAEG;AACI,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;IAE/B,qGAAqG;IACrG,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,MAAM,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAClC,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;SAC5B;aAAM;YACL,OAAO,EAAE,CAAC;SACX;IACH,CAAC,CAAC;IAEF,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC,CA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AChB,MAAM;iBACP;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,UAAU;aACX;YACD,4CAA4C;YAC5C,MAAM,IAAA,aAAK,EAAC,QAAQ,CAAC,CAAC;SACvB;IACH,CAAC,CAAC;IAEF,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;IAEtB,OAAO,OAAO,CAAC,CAAC,CAAC,IAAA,sBAAc,EAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;AAC1F,CAAC,CAAC;AAxBW,QAAA,gBAAgB,oBAwB3B"}
|
package/dist/src/callback.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Helper to convert a callback based API into a promise based API.
|
|
3
3
|
*/
|
|
4
|
-
export declare
|
|
4
|
+
export declare const createPromiseFromCallback: <T = void>(run: (cb: (error?: Error, value?: T | undefined) => void) => void) => Promise<T>;
|
|
5
5
|
//# sourceMappingURL=callback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../src/callback.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"callback.d.ts","sourceRoot":"","sources":["../../src/callback.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,eAAO,MAAM,yBAAyB,gCAAiC,KAAK,4BAAgB,IAAI,KAAK,IAAI,eAQvG,CAAC"}
|
package/dist/src/callback.js
CHANGED
|
@@ -7,17 +7,15 @@ exports.createPromiseFromCallback = void 0;
|
|
|
7
7
|
/**
|
|
8
8
|
* Helper to convert a callback based API into a promise based API.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
});
|
|
10
|
+
const createPromiseFromCallback = (run) => new Promise((resolve, reject) => {
|
|
11
|
+
run((error, value) => {
|
|
12
|
+
if (error) {
|
|
13
|
+
reject(error);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
resolve(value);
|
|
17
|
+
}
|
|
20
18
|
});
|
|
21
|
-
}
|
|
19
|
+
});
|
|
22
20
|
exports.createPromiseFromCallback = createPromiseFromCallback;
|
|
23
21
|
//# sourceMappingURL=callback.js.map
|
package/dist/src/callback.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.js","sourceRoot":"","sources":["../../src/callback.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF;;GAEG;
|
|
1
|
+
{"version":3,"file":"callback.js","sourceRoot":"","sources":["../../src/callback.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF;;GAEG;AACI,MAAM,yBAAyB,GAAG,CAAW,GAAqD,EAAc,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IACxJ,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;QACnB,IAAI,KAAK,EAAE;YACT,MAAM,CAAC,KAAK,CAAC,CAAC;SACf;aAAM;YACL,OAAO,CAAC,KAAM,CAAC,CAAC;SACjB;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AARU,QAAA,yBAAyB,6BAQnC"}
|
package/dist/src/event.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/event.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../src/event.ts"],"names":[],"mappings":"AAMA,oBAAY,MAAM,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;AAUpD,UAAU,gBAAgB;IACxB,E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EG;IACG,gBAAgB,CAAE,SAAS,EAAE,MAAM,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAMhE;;OAEG;IACH,aAAa;IAIb;;;;;;;;;;;;;;;;OAgBG;IACH,SAAS,CAAE,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI;IAetC,QAAQ,CAAE,OAAO,SAAI;IAkBrB;;OAEG;IACH,gBAAgB,IAAK,KAAK,CAAC,IAAI,CAAC;IAIhC;;OAEG;IACH,MAAM;;;YAMQ,QAAQ;IAUtB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,eAAe;CAOxB;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,IAAI;IACrC;;;;;;;OAOG;IACH,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAE5C;;;;;;;;OAQG;IACH,GAAG,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC;IAEvC;;;;;;OAMG;IACH,IAAI,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAE9C;;;;OAIG;IACH,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC;IAE3C;;;;OAIG;IACH,OAAO,CAAC,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAErD;;;OAGG;IACH,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAEhD;;OAEG;IACH,gBAAgB,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;CACjC"}
|
package/dist/src/event.js
CHANGED
|
@@ -35,6 +35,7 @@ const debug_1 = require("@dxos/debug");
|
|
|
35
35
|
* 6. Removes the cases where event names intersect when used in cases with inheritance.
|
|
36
36
|
* 7. Remove the need to namespace events when developing a class with events that will be used as a base-class.
|
|
37
37
|
*/
|
|
38
|
+
// TODO(burdon): Rename EventListener.
|
|
38
39
|
class Event {
|
|
39
40
|
constructor() {
|
|
40
41
|
this._listeners = new Set();
|
package/dist/src/event.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAAsD;
|
|
1
|
+
{"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,uCAAsD;AAiBtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,sCAAsC;AACtC,MAAa,KAAK;IAAlB;QAamB,eAAU,GAAG,IAAI,GAAG,EAAqB,CAAC;QAC1C,mBAAc,GAAG,IAAI,GAAG,EAAqB,CAAC;QAC9C,aAAQ,GAAG,IAAI,GAAG,EAAsB,CAAC;IAuO5D,CAAC;IArPC,MAAM,CAAC,IAAI,CAAK,OAAyB,EAAE,SAAiB;QAC1D,MAAM,KAAK,GAAG,IAAI,KAAK,EAAK,CAAC;QAE7B,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YACnB,MAAM,OAAO,GAAG,CAAC,IAAS,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChD,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;YAC/B,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC;IAMD;;;;;;;;;OASG;IACH,IAAI,CAAE,IAAO;QACX,KAAK,MAAM,QAAQ,IAAI,IAAI,CAA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AO;QAC1D,IAAI;YACF,MAAM,aAAa,EAAE,CAAC,CAAC,wDAAwD;YAC/E,QAAQ,CAAC,IAAI,CAAC,CAAC;SAChB;QAAC,OAAO,KAAU,EAAE;YACnB,0BAA0B;YAC1B,IAAA,+BAAuB,EAAC,KAAK,CAAC,CAAC;SAChC;IACH,CAAC;IAEO,WAAW;QACjB,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE;YAClC,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC;SAClC;IACH,CAAC;IAEO,eAAe;;QACrB,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,QAAQ,EAAE;YAClC,iDAAiD;YACjD,MAAA,MAAM,CAAC,OAAO,sDAAI,CAAC;YACnB,MAAM,CAAC,OAAO,GAAG,SAAS,CAAC;SAC5B;IACH,CAAC;CACF;AAtPD,sBAsPC;AAgED;;GAEG;AACH,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from './async';
|
|
2
2
|
export * from './event';
|
|
3
|
-
export * from './events';
|
|
4
3
|
export * from './latch';
|
|
5
4
|
export * from './lock';
|
|
6
5
|
export * from './sink';
|
|
7
6
|
export * from './trigger';
|
|
8
7
|
export * from './types';
|
|
9
8
|
export * from './callback';
|
|
9
|
+
export * from './util';
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -4,7 +4,11 @@
|
|
|
4
4
|
//
|
|
5
5
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
6
|
if (k2 === undefined) k2 = k;
|
|
7
|
-
Object.
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
8
12
|
}) : (function(o, m, k, k2) {
|
|
9
13
|
if (k2 === undefined) k2 = k;
|
|
10
14
|
o[k2] = m[k];
|
|
@@ -15,11 +19,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
20
|
__exportStar(require("./async"), exports);
|
|
17
21
|
__exportStar(require("./event"), exports);
|
|
18
|
-
__exportStar(require("./events"), exports);
|
|
19
22
|
__exportStar(require("./latch"), exports);
|
|
20
23
|
__exportStar(require("./lock"), exports);
|
|
21
24
|
__exportStar(require("./sink"), exports);
|
|
22
25
|
__exportStar(require("./trigger"), exports);
|
|
23
26
|
__exportStar(require("./types"), exports);
|
|
24
27
|
__exportStar(require("./callback"), exports);
|
|
28
|
+
__exportStar(require("./util"), exports);
|
|
25
29
|
//# sourceMappingURL=index.js.map
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;;;;;;;;;AAEF,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB;AACvB,yCAAuB;AACvB,4CAA0B;AAC1B,0CAAwB;AACxB,6CAA2B;AAC3B,yCAAuB"}
|
package/dist/src/lock.test.js
CHANGED
|
@@ -93,11 +93,11 @@ describe('Lock', () => {
|
|
|
93
93
|
});
|
|
94
94
|
test('errors are propagated with stack traces', async () => {
|
|
95
95
|
const lock = new lock_1.Lock();
|
|
96
|
-
async
|
|
96
|
+
const throwsError = async () => {
|
|
97
97
|
throw new Error();
|
|
98
|
-
}
|
|
98
|
+
};
|
|
99
99
|
let error;
|
|
100
|
-
async
|
|
100
|
+
const callLock = async () => {
|
|
101
101
|
try {
|
|
102
102
|
await lock.executeSynchronized(async () => {
|
|
103
103
|
await throwsError();
|
|
@@ -107,7 +107,7 @@ describe('Lock', () => {
|
|
|
107
107
|
error = err;
|
|
108
108
|
throw error;
|
|
109
109
|
}
|
|
110
|
-
}
|
|
110
|
+
};
|
|
111
111
|
await expect(() => callLock()).rejects.toThrowError();
|
|
112
112
|
expect(error.stack.includes('throwsError')).toBe(true);
|
|
113
113
|
expect(error.stack.includes('callLock')).toBe(true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lock.test.js","sourceRoot":"","sources":["../../src/lock.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;;;;AAEF,mCAAgC;AAChC,iCAA4C;AAE5C,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE;IACpB,IAAI,CAAC,kBAAkB,EAAE,KAAK,IAAI,EAAE;QAClC,MAAM,MAAM,GAAG,EAAE,CAA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AE5B,MAAM,EAAE,CAAC;QACT,MAAM,EAAE,CAAC;QAET,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC;YACrB,WAAW;YACX,WAAW;YACX,SAAS;YACT,SAAS;SACV,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
3
|
+
/**
|
|
4
|
+
* Adds the listener and returns a function to remove it.
|
|
5
|
+
* Promotes removing listeners when cleaning up objects (to prevent leaks).
|
|
6
|
+
* @param {EventEmitter} eventEmitter
|
|
7
|
+
* @param {string} eventName
|
|
8
|
+
* @param {Function} callback
|
|
9
|
+
*/
|
|
10
|
+
export declare const onEvent: (eventEmitter: EventEmitter, eventName: string, callback: (args: any) => void) => () => EventEmitter;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*/
|
|
14
|
+
export declare const addListener: (eventEmitter: EventEmitter, eventName: string, callback: () => void) => {
|
|
15
|
+
remove: () => EventEmitter;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Waits for an event with an optional test condition.
|
|
19
|
+
* @param {EventEmitter} eventEmitter
|
|
20
|
+
* @param {string} eventName
|
|
21
|
+
* @param {function} [test] Returns truthy value if the test passes.
|
|
22
|
+
* @param {Number} [timeout]
|
|
23
|
+
* @param {unknown} [error]
|
|
24
|
+
* @returns {Promise<unknown>}
|
|
25
|
+
*/
|
|
26
|
+
export declare const waitForEvent: (eventEmitter: EventEmitter, eventName: string, test?: ((args: any) => boolean) | undefined, timeout?: number, error?: Error | string) => Promise<any>;
|
|
27
|
+
//# sourceMappingURL=util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":";AAMA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAItC;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,iBAAkB,YAAY,aAAa,MAAM,mBAAmB,GAAG,KAAK,IAAI,uBAGnG,CAAC;AAEF;;GAEG;AAEH,eAAO,MAAM,WAAW,iBAAkB,YAAY,aAAa,MAAM,YAAY,MAAM,IAAI;;CAK9F,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,iBACT,YAAY,aACf,MAAM,iBACH,GAAG,KAAK,OAAO,yBACnB,MAAM,UACR,KAAK,GAAG,MAAM,KACrB,QAAQ,GAAG,CAYb,CAAC"}
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
//
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.waitForEvent = exports.addListener = exports.onEvent = void 0;
|
|
7
|
-
/* eslint-disable jest/no-export, jest/no-disabled-tests, jest/expect-expect, jest/valid-title */
|
|
8
7
|
const async_1 = require("./async");
|
|
9
8
|
/**
|
|
10
9
|
* Adds the listener and returns a function to remove it.
|
|
@@ -18,6 +17,9 @@ const onEvent = (eventEmitter, eventName, callback) => {
|
|
|
18
17
|
return () => eventEmitter.off(eventName, callback);
|
|
19
18
|
};
|
|
20
19
|
exports.onEvent = onEvent;
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated
|
|
22
|
+
*/
|
|
21
23
|
// TODO(burdon): Remove.
|
|
22
24
|
const addListener = (eventEmitter, eventName, callback) => {
|
|
23
25
|
const off = (0, exports.onEvent)(eventEmitter, eventName, callback);
|
|
@@ -47,4 +49,4 @@ const waitForEvent = (eventEmitter, eventName, test, timeout, error) => {
|
|
|
47
49
|
return timeout ? (0, async_1.promiseTimeout)(promise, timeout, error !== null && error !== void 0 ? error : new Error()).finally(off) : promise.finally(off);
|
|
48
50
|
};
|
|
49
51
|
exports.waitForEvent = waitForEvent;
|
|
50
|
-
//# sourceMappingURL=
|
|
52
|
+
//# sourceMappingURL=util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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EAAE,OAAO,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC9G,CAAC,CAAC;AAlBW,QAAA,YAAY,gBAkBvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.test.d.ts","sourceRoot":"","sources":["../../src/util.test.ts"],"names":[],"mappings":""}
|
|
@@ -11,12 +11,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11
11
|
const events_1 = __importDefault(require("events"));
|
|
12
12
|
const debug_1 = require("@dxos/debug");
|
|
13
13
|
const async_1 = require("./async");
|
|
14
|
-
const
|
|
14
|
+
const util_1 = require("./util");
|
|
15
15
|
const latch_1 = require("./latch");
|
|
16
16
|
test('onEvent', async () => {
|
|
17
17
|
const emitter = new events_1.default();
|
|
18
18
|
const [promise, resolve] = (0, latch_1.latch)();
|
|
19
|
-
const off = (0,
|
|
19
|
+
const off = (0, util_1.onEvent)(emitter, 'test', () => {
|
|
20
20
|
off();
|
|
21
21
|
expect(emitter.listenerCount('test')).toBe(0);
|
|
22
22
|
resolve();
|
|
@@ -26,7 +26,7 @@ test('onEvent', async () => {
|
|
|
26
26
|
});
|
|
27
27
|
test('waitForEvent', async () => {
|
|
28
28
|
const emitter = new events_1.default();
|
|
29
|
-
const waiting = (0,
|
|
29
|
+
const waiting = (0, util_1.waitForEvent)(emitter, 'test');
|
|
30
30
|
setTimeout(() => emitter.emit('test', { value: 500 }), 10);
|
|
31
31
|
const { value } = await waiting;
|
|
32
32
|
expect(value).toBe(500);
|
|
@@ -34,7 +34,7 @@ test('waitForEvent', async () => {
|
|
|
34
34
|
});
|
|
35
35
|
test('waitForEvent (with test)', async () => {
|
|
36
36
|
const emitter = new events_1.default();
|
|
37
|
-
const waiting = (0,
|
|
37
|
+
const waiting = (0, util_1.waitForEvent)(emitter, 'test', value => (value === 300) && value);
|
|
38
38
|
setTimeout(() => emitter.emit('test', 100), 10);
|
|
39
39
|
setTimeout(() => emitter.emit('test', 200), 20);
|
|
40
40
|
setTimeout(() => emitter.emit('test', 300), 30);
|
|
@@ -44,7 +44,7 @@ test('waitForEvent (with test)', async () => {
|
|
|
44
44
|
});
|
|
45
45
|
test('waitForEvent (exipred)', async () => {
|
|
46
46
|
const emitter = new events_1.default();
|
|
47
|
-
await (0, debug_1.expectToThrow)(() => (0,
|
|
47
|
+
await (0, debug_1.expectToThrow)(() => (0, util_1.waitForEvent)(emitter, 'test', undefined, 100));
|
|
48
48
|
expect(emitter.listenerCount('test')).toBe(0);
|
|
49
49
|
});
|
|
50
|
-
//# sourceMappingURL=
|
|
50
|
+
//# sourceMappingURL=util.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.test.js","sourceRoot":"","sources":["../../src/util.test.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,wBAAwB;AACxB,qDAAqD;AAErD,oDAAkC;AAElC,uCAA4C;AAE5C,mCAAyC;AACzC,iCAA+C;AAC/C,mCAAgC;AAEhC,IAAI,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACzB,MAAM,OAAO,GAAG,IAAI,gBAAY,EAAE,CAAC;IAEnC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,aAAK,GAAE,CAAC;IAEnC,MAAM,GAAG,GAAG,IAAA,cAAO,EAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE;QACxC,GAAG,EAAE,CAAC;QAEN,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9C,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAErB,MAAM,OAA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;IACjD,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxB,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,IAAI,CAAC,wBAAwB,EAAE,KAAK,IAAI,EAAE;IACxC,MAAM,OAAO,GAAG,IAAI,gBAAY,EAAE,CAAC;IAEnC,MAAM,IAAA,qBAAa,EAAC,GAAG,EAAE,CAAC,IAAA,mBAAY,EAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC;IACzE,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.5.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../debug/dist/src/assert.d.ts","../../debug/dist/src/console.d.ts","../../debug/dist/src/error-handler.d.ts","../../debug/dist/src/error-stream.d.ts","../../debug/dist/src/errors/dxos-error.d.ts","../../debug/dist/src/errors/errors.d.ts","../../debug/dist/src/errors/index.d.ts","../../debug/dist/src/fail.d.ts","../../debug/dist/src/log-method.d.ts","../../debug/dist/src/logging.d.ts","../../debug/dist/src/raise.d.ts","../../debug/dist/src/stack-trace.d.ts","../../debug/dist/src/strings.d.ts","../../debug/dist/src/throw.d.ts","../../debug/dist/src/throw-unhandled-rejection.d.ts","../../debug/dist/src/timeout-warning.d.ts","../../debug/dist/src/index.d.ts","../src/trigger.ts","../src/async.ts","../src/async.test.ts","../src/callback.ts","../src/event.ts","../src/event.test.ts","../src/events.js","../src/latch.ts","../src/events.test.js","../src/lock.ts","../src/sink.ts","../src/types.ts","../src/index.ts","../src/lock.test.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+jest@26.0.24/node_modules/@types/jest/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert/strict.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/diagnostics_channel.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/consumers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/web.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2cc028cd0bdb35b1b5eb723d84666a255933fffbea607f72cbd0c7c7b4bee144",{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"e881c10a9375e1e7999f529d6a7e0f57fda7280fb232fb927c221df6546a9c86","49dada859a1e7a2ccfc38c4ee75ef4915983f033a751d0433c80b3932e4f75bc","408961bf1c33d835d9aa7f67892daf49830db17b892eab53a60b70a340e9a37a","217767768c03d9107fab244f0a1d41ee2fc9beea572b9b10d3bbfcda258fa471","4f1f99c145ff1ff5408e1cf043a4b47491e94fc1995d4db7915a5c5a46345d5f","a017d71a02e034534781e25b46b463a247f257f35927fdd22eb540648a218624","307608ba5cb4170e819ebda0ce4f2d18f102abead268a4bbcb42af67f876693a","a52dffe094fa29673bc950ed469299c1852d8cfcfa4d6cfb8a5b7d6e0ca55c3c","391b4ea9ef9bb44bb409b71f3f412cdced854a0851e903131a08b8aba4538109","f145064a05f34fcff1d3fd35a69249b90dbb393eb3c746da839d156f1ab2cd69","9e5f9b01148b742d5e7498fea6e98a177f5e4e3d796fc2a371fdded6e560fce8","84eb87ebd9a5f2e44a9059de4aa82f95ce772e7088c37c006ccc77ef41aa761f","c9dd45a187635e67d84767f33abf10dabd010d73028677bda32f37eaf84a69be","58a2ca0c379c5761fd1cd6e1645cdab0325f5cf0a04cd43d5f551bb727750dcf","b7760db3c4335e90855d654892bdad4ab5c6741538a766ec3a9db8ad8c69d7ac","918542c297b47033b2e4691fdfd9d8ef7029ac618089bc8141fd76c9e1eead7d","a9e293e60119009fe3098c83242507708f3b1fea7b1572b4c5560293877d3d9e","de10b5227a243c50864d24e234e63c4a038259f18b45d4ad8725310af3a6a345","e73df9a93e884d992a1d95a877d5ca4672bfc2e01d76498db39aff4367ff7ad2","6b87ee5a46364b2ae907e03f47a9c327a19c87547f50391512a1a81fe1ef6be7","b5a236318130da6276bd5e917a7516541e67e11f2d8415698ad7acd968900441","c4089f7d8a81eb30f7b53b01b58674b4570d6ab1208ad73c1684fdd589388efa","7b82390d03d800eb1d74ba98ff7e9ca9f3205a8e52b5b695814e235b52690bf3","6a884f1f2bca5e25057d7175e566f9166be08ae34a6b5a75260f0a00e4c0deba","5aab60228dd1f9e1eeec271f928fa05219894afe8552946a52bf536e12273cce","67d33a07f619a2a5253bba755f12954cd208bbd3015f48138dad8d8b5d9834c0","28cf9caeaf444de46bf20905dc58d5fc32ccbcd21bbe16ef3b1212d8ffd0d103","4f48888e4492f371eb7d975a74b060f781d10de8b2e578ec89409bb20a39d9a2","46dbc4e8177e2d509c51b4f63779207d146da3b51a32e3391b0923366207eb35","1d802bded9c759da01fdb14a67f2b6ce856f30c149b4a43a48e43f44de5ac800","9cf95399adc7b8b07160419a81617a79ae67f03cc8ff3a7b979996dc5dafa64d","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","c665d5c50c2573aefd98f0ffb12c5583e333ed94294ce6f144a4163a8c84f09b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"8a215750db3e2073511e07c9e293c8c40d6109e5c7368845e060bcc12adbae6f","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","3fa48484c65913004d5abb5c0f917b61ea4684f32d05bb28c1ecfa5f05a9ed12","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"dd9ea469d1bfaf589c6a196275d35cb1aa14014707c2c46d920c7b921e8f5bca","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[80,82,127],[84,127],[87,127],[88,93,127],[89,99,100,107,116,126,127],[89,90,99,107,127],[91,127],[92,93,100,108,127],[93,116,123,127],[94,96,99,107,127],[95,127],[96,97,127],[98,99,127],[99,127],[99,100,101,116,126,127],[99,100,101,116,127],[127],[102,107,116,126,127],[99,100,102,103,107,116,123,126,127],[102,104,116,123,126,127],[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],[99,105,127],[106,126,127],[96,99,107,116,127],[108,127],[109,127],[87,110,127],[111,125,127,131],[112,127],[113,127],[99,114,127],[114,115,127,129],[99,116,117,118,127],[116,118,127],[116,117,127],[119,127],[120,127],[99,121,122,127],[121,122,127],[93,107,123,127],[124,127],[107,125,127],[88,102,113,126,127],[93,127],[116,127,128],[127,129],[127,130],[88,93,99,101,110,116,126,127,129,131],[116,127,132],[76,77,127],[76,77,78,79,127],[81,127],[61,62,63,127],[62,127],[63,66,127],[61,127],[63,127],[61,63,68,69,99,127],[62,63,65,66,68,69,71,72,73,127],[63,71,127],[62,99,127],[49,127],[49,50,127],[45,46,47,48,51,52,53,54,55,56,57,58,59,60,127]],"referencedMap":[[83,1],[84,2],[85,2],[87,3],[88,4],[89,5],[90,6],[91,7],[92,8],[93,9],[94,10],[95,11],[96,12],[97,12],[98,13],[99,14],[100,15],[101,16],[86,17],[133,17],[102,18],[103,19],[104,20],[134,21],[105,22],[106,23],[107,24],[108,25],[109,26],[110,27],[111,28],[112,29],[113,30],[114,31],[115,32],[116,33],[118,34],[117,35],[119,36],[120,37],[121,38],[122,39],[123,40],[124,41],[125,42],[126,43],[127,44],[128,45],[129,46],[130,47],[131,48],[132,49],[76,17],[78,50],[80,51],[79,50],[77,17],[82,52],[81,17],[11,17],[10,17],[2,17],[12,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[3,17],[4,17],[23,17],[20,17],[21,17],[22,17],[24,17],[25,17],[26,17],[5,17],[27,17],[28,17],[29,17],[30,17],[6,17],[31,17],[32,17],[33,17],[34,17],[7,17],[39,17],[35,17],[36,17],[37,17],[38,17],[8,17],[43,17],[40,17],[41,17],[42,17],[1,17],[9,17],[44,17],[64,53],[63,54],[65,17],[67,55],[66,56],[68,57],[70,58],[74,59],[69,2],[75,60],[71,54],[72,61],[62,17],[73,17],[45,17],[46,17],[47,14],[48,17],[49,17],[50,62],[51,63],[52,17],[61,64],[53,17],[54,17],[55,17],[56,17],[57,17],[59,17],[58,17],[60,17]],"exportedModulesMap":[[83,1],[84,2],[85,2],[87,3],[88,4],[89,5],[90,6],[91,7],[92,8],[93,9],[94,10],[95,11],[96,12],[97,12],[98,13],[99,14],[100,15],[101,16],[86,17],[133,17],[102,18],[103,19],[104,20],[134,21],[105,22],[106,23],[107,24],[108,25],[109,26],[110,27],[111,28],[112,29],[113,30],[114,31],[115,32],[116,33],[118,34],[117,35],[119,36],[120,37],[121,38],[122,39],[123,40],[124,41],[125,42],[126,43],[127,44],[128,45],[129,46],[130,47],[131,48],[132,49],[76,17],[78,50],[80,51],[79,50],[77,17],[82,52],[81,17],[11,17],[10,17],[2,17],[12,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[3,17],[4,17],[23,17],[20,17],[21,17],[22,17],[24,17],[25,17],[26,17],[5,17],[27,17],[28,17],[29,17],[30,17],[6,17],[31,17],[32,17],[33,17],[34,17],[7,17],[39,17],[35,17],[36,17],[37,17],[38,17],[8,17],[43,17],[40,17],[41,17],[42,17],[1,17],[9,17],[44,17],[64,53],[63,54],[65,17],[67,55],[66,56],[68,57],[70,58],[74,59],[69,2],[75,60],[71,54],[72,61],[62,17],[73,17],[45,17],[46,17],[47,14],[48,17],[49,17],[50,62],[51,63],[52,17],[61,64],[53,17],[54,17],[55,17],[56,17],[57,17],[59,17],[58,17],[60,17]],"semanticDiagnosticsPerFile":[83,84,85,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,86,133,102,103,104,134,105,106,107,108,109,110,111,112,113,114,115,116,118,117,119,120,121,122,123,124,125,126,127,128,129,130,131,132,76,78,80,79,77,82,81,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,27,28,29,30,6,31,32,33,34,7,39,35,36,37,38,8,43,40,41,42,1,9,44,64,63,65,67,66,68,70,74,69,75,71,72,62,73,45,46,47,48,49,50,51,52,61,53,54,55,56,57,59,58,60]},"version":"4.5.3"}
|
|
1
|
+
{"program":{"fileNames":["../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es5.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../common/temp/node_modules/.pnpm/typescript@4.7.4/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../debug/dist/src/assert.d.ts","../../debug/dist/src/console.d.ts","../../debug/dist/src/error-handler.d.ts","../../debug/dist/src/error-stream.d.ts","../../debug/dist/src/errors/dxos-error.d.ts","../../debug/dist/src/errors/errors.d.ts","../../debug/dist/src/errors/index.d.ts","../../debug/dist/src/fail.d.ts","../../debug/dist/src/log-method.d.ts","../../debug/dist/src/logging.d.ts","../../debug/dist/src/raise.d.ts","../../debug/dist/src/stack-trace.d.ts","../../debug/dist/src/strings.d.ts","../../debug/dist/src/throw.d.ts","../../debug/dist/src/throw-unhandled-rejection.d.ts","../../debug/dist/src/timeout-warning.d.ts","../../debug/dist/src/index.d.ts","../src/trigger.ts","../src/async.ts","../src/async.test.ts","../src/callback.ts","../src/event.ts","../src/event.test.ts","../src/latch.ts","../src/lock.ts","../src/sink.ts","../src/types.ts","../src/util.ts","../src/index.ts","../src/lock.test.ts","../src/util.test.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/diffLines.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/printDiffs.d.ts","../../../../common/temp/node_modules/.pnpm/jest-diff@26.6.2/node_modules/jest-diff/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/types.d.ts","../../../../common/temp/node_modules/.pnpm/pretty-format@26.6.2/node_modules/pretty-format/build/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+jest@26.0.24/node_modules/@types/jest/index.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/assert/strict.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/async_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/buffer.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/child_process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/cluster.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/console.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/constants.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/crypto.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dgram.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/diagnostics_channel.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/dns/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/domain.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/fs/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/http2.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/https.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/inspector.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/module.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/net.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/os.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/path.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/perf_hooks.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/process.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/punycode.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/querystring.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/readline.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/repl.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/consumers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/stream/web.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/string_decoder.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/timers/promises.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tls.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/trace_events.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/tty.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/url.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/util.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/v8.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/vm.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/wasi.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/worker_threads.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/zlib.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/globals.global.d.ts","../../../../common/temp/node_modules/.pnpm/@types+node@16.11.27/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},"03ba2aa9d42a459ebdb546b6b9b7269691a420c3939ed41b7cf210c2f3af860a","49dada859a1e7a2ccfc38c4ee75ef4915983f033a751d0433c80b3932e4f75bc","408961bf1c33d835d9aa7f67892daf49830db17b892eab53a60b70a340e9a37a","217767768c03d9107fab244f0a1d41ee2fc9beea572b9b10d3bbfcda258fa471","4f1f99c145ff1ff5408e1cf043a4b47491e94fc1995d4db7915a5c5a46345d5f","a017d71a02e034534781e25b46b463a247f257f35927fdd22eb540648a218624","307608ba5cb4170e819ebda0ce4f2d18f102abead268a4bbcb42af67f876693a","a52dffe094fa29673bc950ed469299c1852d8cfcfa4d6cfb8a5b7d6e0ca55c3c","391b4ea9ef9bb44bb409b71f3f412cdced854a0851e903131a08b8aba4538109","72121353eb8b54ac8ecc7ec7fb647491a1b66cdd6aeff724f193221266bd068f","9e5f9b01148b742d5e7498fea6e98a177f5e4e3d796fc2a371fdded6e560fce8","84eb87ebd9a5f2e44a9059de4aa82f95ce772e7088c37c006ccc77ef41aa761f","c9dd45a187635e67d84767f33abf10dabd010d73028677bda32f37eaf84a69be","58a2ca0c379c5761fd1cd6e1645cdab0325f5cf0a04cd43d5f551bb727750dcf","aeb42f4a6bd760d4bbaa7029d6470168f2ff738cf9be46b3d2500c417b9cbf59","cdb25af900a1ac76f32cb09ca4bf1f482f32df42e1ab6caaef872493d05be049","a9e293e60119009fe3098c83242507708f3b1fea7b1572b4c5560293877d3d9e",{"version":"559d2e595bced551e023cdbe6c4fd1b4b527445c5f2ce71725113a13ab24fc7b","signature":"9b3e441e984de9d038ef4336a578be149f0aac4362fd7cb7c654a15fd3f30f68"},{"version":"ff0cc586876f7d4bea6725cab1327a0761f08ff89498ed103c3b84a0fb8bb796","signature":"1151d34559eaea1f0047018b3210082530c0a65f5710198185d7c3f0578c3d6f"},{"version":"6b87ee5a46364b2ae907e03f47a9c327a19c87547f50391512a1a81fe1ef6be7","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"bcbf9c4d8a25f185dce6e1f602fb1be57ef03a116e1033d569a31bd35e96e216","signature":"ce051ffc5fa7c7a5aa53016604e2fcbd30ae5752f854e40e84702c8e7594819e"},{"version":"dc1ccff879882c30e529139c6c6e127fe4040f902ab1ab2b50e0ee255b150cc8","signature":"b7034e378272f243321bae9735efd1312c642d2b83913cc19085cdf93df30fb6"},{"version":"7b82390d03d800eb1d74ba98ff7e9ca9f3205a8e52b5b695814e235b52690bf3","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"5aab60228dd1f9e1eeec271f928fa05219894afe8552946a52bf536e12273cce","signature":"17c678f1ef93cc7152bb1f4e450498dec71a8f938812c63837bb4c83ef4a0424"},{"version":"28cf9caeaf444de46bf20905dc58d5fc32ccbcd21bbe16ef3b1212d8ffd0d103","signature":"8d8e2b7e50c0ede01882020d316245e9c390c66d50094781ef3b940fe92b838b"},{"version":"4f48888e4492f371eb7d975a74b060f781d10de8b2e578ec89409bb20a39d9a2","signature":"5a7c931a04e5e2a9a832d12351abb8e43c96bf4820bceb03979ac7e22b3bf097"},{"version":"46dbc4e8177e2d509c51b4f63779207d146da3b51a32e3391b0923366207eb35","signature":"cf17ca2a9260d9a9fe82fd17e25d2de4c3b632fd1c9d4b166bdf2c7011f610fd"},{"version":"3a90d6ba288b20296cefe9eb69373bd89814ffbd19a98bd282f25c53f016acc2","signature":"69d3f32da5e5b02f81406ea585054171ebd2570b12a9fa756ca6af0a137e769e"},{"version":"8aa6e8ea3d745cf18a5b47b02d89845923945dbf80140109591f7c44db2eb593","signature":"a75b172c6db2a53ae4b5bf8095438c68a9269ef08172365a08988f98a55ca159"},{"version":"9e92eadbe419c0abb3a0a2c68f757d235910d4030b2705c9d224ed17d32b6eff","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"cf92cc8ce99c4a4e660cf391f873a46444a499f25c3486bb81d61b3985d57ed7","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"516a426e3960379f310107635b8f3a7e8c307c6c665080b128039d9299ec4087","affectsGlobalScope":true},"0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","c665d5c50c2573aefd98f0ffb12c5583e333ed94294ce6f144a4163a8c84f09b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"8a215750db3e2073511e07c9e293c8c40d6109e5c7368845e060bcc12adbae6f","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","3fa48484c65913004d5abb5c0f917b61ea4684f32d05bb28c1ecfa5f05a9ed12","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"dd9ea469d1bfaf589c6a196275d35cb1aa14014707c2c46d920c7b921e8f5bca","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd"],"options":{"composite":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noImplicitOverride":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":5},"fileIdsList":[[88,90,135],[92,135],[95,135],[96,101,135],[97,107,108,115,124,134,135],[97,98,107,115,135],[99,135],[100,101,108,116,135],[101,124,131,135],[102,104,107,115,135],[103,135],[104,105,135],[106,107,135],[107,135],[107,108,109,124,134,135],[107,108,109,124,135],[135],[110,115,124,134,135],[107,108,110,111,115,124,131,134,135],[110,112,124,131,134,135],[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],[107,113,135],[114,134,135],[104,107,115,124,135],[116,135],[117,135],[95,118,135],[119,133,135,139],[120,135],[121,135],[107,122,135],[122,123,135,137],[107,124,125,126,135],[124,126,135],[124,125,135],[127,135],[128,135],[107,129,130,135],[129,130,135],[101,115,131,135],[132,135],[115,133,135],[96,110,121,134,135],[101,135],[124,135,136],[135,137],[135,138],[96,101,107,109,118,124,134,135,137,139],[124,135,140],[84,85,135],[84,85,86,87,135],[89,135],[69,70,71,135],[70,135],[71,74,135],[69,135],[70,71,73,74,76,77,78,79,80,135],[71,77,135],[70,107,135],[69,71,76,80,107,135],[71,107,135],[57,135],[57,58,135],[53,54,55,56,59,60,61,62,63,64,65,66,67,68,135],[70,71,73,74,76,77,78,79,80],[107]],"referencedMap":[[91,1],[92,2],[93,2],[95,3],[96,4],[97,5],[98,6],[99,7],[100,8],[101,9],[102,10],[103,11],[104,12],[105,12],[106,13],[107,14],[108,15],[109,16],[94,17],[141,17],[110,18],[111,19],[112,20],[142,21],[113,22],[114,23],[115,24],[116,25],[117,26],[118,27],[119,28],[120,29],[121,30],[122,31],[123,32],[124,33],[126,34],[125,35],[127,36],[128,37],[129,38],[130,39],[131,40],[132,41],[133,42],[134,43],[135,44],[136,45],[137,46],[138,47],[139,48],[140,49],[84,17],[86,50],[88,51],[87,50],[85,17],[90,52],[89,17],[12,17],[11,17],[2,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[20,17],[3,17],[4,17],[24,17],[21,17],[22,17],[23,17],[25,17],[26,17],[27,17],[5,17],[28,17],[29,17],[30,17],[31,17],[6,17],[32,17],[33,17],[34,17],[35,17],[7,17],[36,17],[41,17],[42,17],[37,17],[38,17],[39,17],[40,17],[8,17],[46,17],[43,17],[44,17],[45,17],[47,17],[9,17],[48,17],[49,17],[50,17],[51,17],[1,17],[10,17],[52,17],[72,53],[71,54],[73,17],[75,55],[74,56],[81,57],[76,2],[82,58],[77,54],[78,59],[70,17],[79,17],[83,60],[80,61],[53,17],[54,17],[55,14],[56,17],[57,17],[58,62],[59,63],[60,17],[69,64],[61,17],[62,17],[63,17],[64,17],[65,17],[67,17],[66,17],[68,17]],"exportedModulesMap":[[91,1],[92,2],[93,2],[95,3],[96,4],[97,5],[98,6],[99,7],[100,8],[101,9],[102,10],[103,11],[104,12],[105,12],[106,13],[107,14],[108,15],[109,16],[94,17],[141,17],[110,18],[111,19],[112,20],[142,21],[113,22],[114,23],[115,24],[116,25],[117,26],[118,27],[119,28],[120,29],[121,30],[122,31],[123,32],[124,33],[126,34],[125,35],[127,36],[128,37],[129,38],[130,39],[131,40],[132,41],[133,42],[134,43],[135,44],[136,45],[137,46],[138,47],[139,48],[140,49],[84,17],[86,50],[88,51],[87,50],[85,17],[90,52],[89,17],[12,17],[11,17],[2,17],[13,17],[14,17],[15,17],[16,17],[17,17],[18,17],[19,17],[20,17],[3,17],[4,17],[24,17],[21,17],[22,17],[23,17],[25,17],[26,17],[27,17],[5,17],[28,17],[29,17],[30,17],[31,17],[6,17],[32,17],[33,17],[34,17],[35,17],[7,17],[36,17],[41,17],[42,17],[37,17],[38,17],[39,17],[40,17],[8,17],[46,17],[43,17],[44,17],[45,17],[47,17],[9,17],[48,17],[49,17],[50,17],[51,17],[1,17],[10,17],[52,17],[81,65],[78,66],[80,66],[53,17],[54,17],[55,14],[56,17],[57,17],[58,62],[59,63],[60,17],[69,64],[61,17],[62,17],[63,17],[64,17],[65,17],[67,17],[66,17],[68,17]],"semanticDiagnosticsPerFile":[91,92,93,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,94,141,110,111,112,142,113,114,115,116,117,118,119,120,121,122,123,124,126,125,127,128,129,130,131,132,133,134,135,136,137,138,139,140,84,86,88,87,85,90,89,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,1,10,52,72,71,73,75,74,81,76,82,77,78,70,79,83,80,53,54,55,56,57,58,59,60,69,61,62,63,64,65,67,66,68]},"version":"4.7.4"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/async",
|
|
3
|
-
"version": "2.33.5-dev.
|
|
3
|
+
"version": "2.33.5-dev.fee8f5fe",
|
|
4
4
|
"description": "Async utils.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/dxos/protocols/issues"
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
"src"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dxos/debug": "2.33.5-dev.
|
|
21
|
+
"@dxos/debug": "2.33.5-dev.fee8f5fe"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@dxos/eslint-plugin": "~1.0.
|
|
24
|
+
"@dxos/eslint-plugin": "~1.0.33",
|
|
25
25
|
"@dxos/protocols-toolchain": "2.33.4",
|
|
26
26
|
"@types/jest": "^26.0.7",
|
|
27
27
|
"@types/node": "^16.11.27",
|
|
28
28
|
"eslint": "^7.12.1",
|
|
29
|
-
"typescript": "^4.
|
|
29
|
+
"typescript": "^4.7.2"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
package/src/async.ts
CHANGED
|
@@ -24,9 +24,12 @@ export const sleep = (ms: number) => new Promise<void>((resolve) => {
|
|
|
24
24
|
});
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Wait for promise or throw error on timeout.
|
|
28
|
+
* @param promise
|
|
29
|
+
* @param [timeout] How long to wait, in milliseconds.
|
|
30
|
+
* @param [error]
|
|
28
31
|
*/
|
|
29
|
-
export const promiseTimeout = <T
|
|
32
|
+
export const promiseTimeout = <T>(promise: Promise<T>, timeout: number, error?: Error | string): Promise<T> => {
|
|
30
33
|
let cancelTimeout: any;
|
|
31
34
|
|
|
32
35
|
const timeoutPromise = new Promise<T>((resolve, reject) => {
|
package/src/callback.ts
CHANGED
|
@@ -5,14 +5,12 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* Helper to convert a callback based API into a promise based API.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
});
|
|
8
|
+
export const createPromiseFromCallback = <T = void>(run: (cb: (error?: Error, value?: T) => void) => void): Promise<T> => new Promise((resolve, reject) => {
|
|
9
|
+
run((error, value) => {
|
|
10
|
+
if (error) {
|
|
11
|
+
reject(error);
|
|
12
|
+
} else {
|
|
13
|
+
resolve(value!);
|
|
14
|
+
}
|
|
17
15
|
});
|
|
18
|
-
}
|
|
16
|
+
});
|
package/src/event.ts
CHANGED
|
@@ -4,21 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
import { throwUnhandledRejection } from '@dxos/debug';
|
|
6
6
|
|
|
7
|
-
// TODO(burdon): Rename (don't have both "event" and "events" files). Deprecate "events"?
|
|
8
|
-
|
|
9
7
|
export type Effect = () => (() => void) | undefined;
|
|
10
8
|
|
|
11
9
|
/**
|
|
12
10
|
* Effect that's been added to a specific Event.
|
|
13
11
|
*/
|
|
14
12
|
interface MaterializedEffect {
|
|
15
|
-
effect: Effect
|
|
13
|
+
effect: Effect
|
|
16
14
|
cleanup: (() => void) | undefined
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
interface EventEmitterLike {
|
|
20
|
-
on(event: string, cb: (data: any) => void): void
|
|
21
|
-
off(event: string, cb: (data: any) => void): void
|
|
18
|
+
on(event: string, cb: (data: any) => void): void
|
|
19
|
+
off(event: string, cb: (data: any) => void): void
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
/**
|
|
@@ -51,6 +49,7 @@ interface EventEmitterLike {
|
|
|
51
49
|
* 6. Removes the cases where event names intersect when used in cases with inheritance.
|
|
52
50
|
* 7. Remove the need to namespace events when developing a class with events that will be used as a base-class.
|
|
53
51
|
*/
|
|
52
|
+
// TODO(burdon): Rename EventListener.
|
|
54
53
|
export class Event<T = void> implements ReadOnlyEvent<T> {
|
|
55
54
|
static wrap<T> (emitter: EventEmitterLike, eventName: string): Event<T> {
|
|
56
55
|
const event = new Event<T>();
|
package/src/index.ts
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
export * from './async';
|
|
6
6
|
export * from './event';
|
|
7
|
-
export * from './events';
|
|
8
7
|
export * from './latch';
|
|
9
8
|
export * from './lock';
|
|
10
9
|
export * from './sink';
|
|
11
10
|
export * from './trigger';
|
|
12
11
|
export * from './types';
|
|
13
12
|
export * from './callback';
|
|
13
|
+
export * from './util';
|
package/src/lock.test.ts
CHANGED
|
@@ -116,12 +116,12 @@ describe('Lock', () => {
|
|
|
116
116
|
test('errors are propagated with stack traces', async () => {
|
|
117
117
|
const lock = new Lock();
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
const throwsError = async () => {
|
|
120
120
|
throw new Error();
|
|
121
|
-
}
|
|
121
|
+
};
|
|
122
122
|
|
|
123
123
|
let error: Error;
|
|
124
|
-
|
|
124
|
+
const callLock = async () => {
|
|
125
125
|
try {
|
|
126
126
|
await lock.executeSynchronized(async () => {
|
|
127
127
|
await throwsError();
|
|
@@ -130,7 +130,7 @@ describe('Lock', () => {
|
|
|
130
130
|
error = err;
|
|
131
131
|
throw error;
|
|
132
132
|
}
|
|
133
|
-
}
|
|
133
|
+
};
|
|
134
134
|
|
|
135
135
|
await expect(() => callLock()).rejects.toThrowError();
|
|
136
136
|
|
package/src/trigger.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function trigger (timeout?: number): [() => Promise<void>, () => void]
|
|
9
9
|
export function trigger <T>(timeout?: number): [() => Promise<T>, (arg: T) => void]
|
|
10
|
-
export function trigger <T> (timeout?: number): [() => Promise<T>, (arg: T) => void] {
|
|
10
|
+
export function trigger <T> (timeout?: number): [() => Promise<T>, (arg: T) => void] { // eslint-disable-line @stayradiated/prefer-arrow-functions/prefer-arrow-functions
|
|
11
11
|
let callback: (arg: T) => void;
|
|
12
12
|
|
|
13
13
|
const promise = new Promise<T>((resolve, reject) => {
|
|
@@ -10,7 +10,7 @@ import EventEmitter from 'events';
|
|
|
10
10
|
import { expectToThrow } from '@dxos/debug';
|
|
11
11
|
|
|
12
12
|
import { promiseTimeout } from './async';
|
|
13
|
-
import { onEvent, waitForEvent } from './
|
|
13
|
+
import { onEvent, waitForEvent } from './util';
|
|
14
14
|
import { latch } from './latch';
|
|
15
15
|
|
|
16
16
|
test('onEvent', async () => {
|
|
@@ -57,6 +57,6 @@ test('waitForEvent (with test)', async () => {
|
|
|
57
57
|
test('waitForEvent (exipred)', async () => {
|
|
58
58
|
const emitter = new EventEmitter();
|
|
59
59
|
|
|
60
|
-
await expectToThrow(() => waitForEvent(emitter, 'test',
|
|
60
|
+
await expectToThrow(() => waitForEvent(emitter, 'test', undefined, 100));
|
|
61
61
|
expect(emitter.listenerCount('test')).toBe(0);
|
|
62
62
|
});
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
/* eslint-disable jest/no-export, jest/no-disabled-tests, jest/expect-expect, jest/valid-title */
|
|
6
6
|
|
|
7
|
+
import { EventEmitter } from 'events';
|
|
8
|
+
|
|
7
9
|
import { promiseTimeout } from './async';
|
|
8
10
|
|
|
9
11
|
/**
|
|
@@ -13,14 +15,16 @@ import { promiseTimeout } from './async';
|
|
|
13
15
|
* @param {string} eventName
|
|
14
16
|
* @param {Function} callback
|
|
15
17
|
*/
|
|
16
|
-
export const onEvent = (eventEmitter, eventName, callback) => {
|
|
18
|
+
export const onEvent = (eventEmitter: EventEmitter, eventName: string, callback: (args: any) => void) => {
|
|
17
19
|
eventEmitter.on(eventName, callback);
|
|
18
|
-
|
|
19
20
|
return () => eventEmitter.off(eventName, callback);
|
|
20
21
|
};
|
|
21
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
*/
|
|
22
26
|
// TODO(burdon): Remove.
|
|
23
|
-
export const addListener = (eventEmitter, eventName, callback) => {
|
|
27
|
+
export const addListener = (eventEmitter: EventEmitter, eventName: string, callback: () => void) => {
|
|
24
28
|
const off = onEvent(eventEmitter, eventName, callback);
|
|
25
29
|
return {
|
|
26
30
|
remove: () => off()
|
|
@@ -36,7 +40,13 @@ export const addListener = (eventEmitter, eventName, callback) => {
|
|
|
36
40
|
* @param {unknown} [error]
|
|
37
41
|
* @returns {Promise<unknown>}
|
|
38
42
|
*/
|
|
39
|
-
export const waitForEvent = (
|
|
43
|
+
export const waitForEvent = (
|
|
44
|
+
eventEmitter: EventEmitter,
|
|
45
|
+
eventName: string,
|
|
46
|
+
test?: (args: any) => boolean,
|
|
47
|
+
timeout?: number,
|
|
48
|
+
error?: Error | string
|
|
49
|
+
): Promise<any> => {
|
|
40
50
|
let off;
|
|
41
51
|
|
|
42
52
|
const promise = new Promise((resolve) => {
|
package/dist/src/events.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export function onEvent(eventEmitter: EventEmitter, eventName: string, callback: Function): () => any;
|
|
2
|
-
export function addListener(eventEmitter: any, eventName: any, callback: any): {
|
|
3
|
-
remove: () => any;
|
|
4
|
-
};
|
|
5
|
-
export function waitForEvent(eventEmitter: EventEmitter, eventName: string, test?: Function | undefined, timeout?: number | undefined, error?: unknown): Promise<unknown>;
|
|
6
|
-
//# sourceMappingURL=events.d.ts.map
|
package/dist/src/events.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/events.js"],"names":[],"mappings":"AAeO,+DAHI,MAAM,iCAOhB;AAGM;;EAKN;AAWM,oEANI,MAAM,qEAGN,OAAO,GACL,QAAQ,OAAO,CAAC,CAc5B"}
|
package/dist/src/events.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/events.js"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;AAEF,iGAAiG;AAEjG,mCAAyC;AAEzC;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAC3D,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAErC,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AACrD,CAAC,CAAC;AAJW,QAAA,OAAO,WAIlB;AAEF,wBAAwB;AACjB,MAAM,WAAW,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE;IAC/D,MAAM,GAAG,GAAG,IAAA,eAAO,EAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACvD,OAAO;QACL,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,EAAE;KACpB,CAAC;AACJ,CAAC,CAAC;AALW,QAAA,WAAW,eAKtB;AAEF;;;;;;;;GAQG;AACI,MAAM,YAAY,GAAG,CAAC,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE;IAC5E,IAAI,GAAG,CAAC;IAER,MAAM,OAAO,GAAG,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QACtC,GAAG,GAAG,IAAA,eAAO,EAAC,YAAY,EAAE,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE;YACjD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,GAAG,IAAI,CAAC,EAAE;gBAC1B,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC;aAClB;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,CAAC,CAAC,IAAA,sBAAc,EAAC,OAAO,EAAE,OAAO,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC9G,CAAC,CAAC;AAZW,QAAA,YAAY,gBAYvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.test.d.ts","sourceRoot":"","sources":["../../src/events.test.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.test.js","sourceRoot":"","sources":["../../src/events.test.js"],"names":[],"mappings":";AAAA,EAAE;AACF,0BAA0B;AAC1B,EAAE;;;;;AAEF,wBAAwB;AACxB,qDAAqD;AAErD,oDAAkC;AAElC,uCAA4C;AAE5C,mCAAyC;AACzC,qCAAiD;AACjD,mCAAgC;AAEhC,IAAI,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACzB,MAAM,OAAO,GAAG,IAAI,gBAAY,EAAE,CAAC;IAEnC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,IAAA,aAAK,GAAE,CAAC;IAEnC,MAAM,GAAG,GAAG,IAAA,gBAAO,EAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE;QACxC,GAAG,EAAE,CAAC;QAEN,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC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