@astrosheep/square 0.3.20 → 0.3.21
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/square-wiring.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export declare class Square {
|
|
|
9
9
|
static build(input: SquareBuildInput): Promise<Square>;
|
|
10
10
|
static inMemory(input: Omit<SquareBuildInput, 'path'>): Square;
|
|
11
11
|
join(name: string): Promise<Participant>;
|
|
12
|
+
joinWithActivity(name: string): Promise<{
|
|
13
|
+
readonly participant: Participant;
|
|
14
|
+
readonly activity: Activity | null;
|
|
15
|
+
}>;
|
|
12
16
|
implicitJoin(name: string): Promise<{
|
|
13
17
|
readonly state: 'joined' | 'active' | 'done';
|
|
14
18
|
readonly participant?: Participant;
|
package/dist/square-wiring.js
CHANGED
|
@@ -59,6 +59,10 @@ export class Square {
|
|
|
59
59
|
const joined = await join(this.square, name);
|
|
60
60
|
return new ParticipantHandle(joined.name, this.square);
|
|
61
61
|
}
|
|
62
|
+
async joinWithActivity(name) {
|
|
63
|
+
const joined = await join(this.square, name);
|
|
64
|
+
return { participant: new ParticipantHandle(joined.name, this.square), activity: joined.activity };
|
|
65
|
+
}
|
|
62
66
|
async implicitJoin(name) {
|
|
63
67
|
const joined = await implicitJoin(this.square, name);
|
|
64
68
|
return joined.state === 'done'
|