@astrosheep/square 0.3.13 → 0.3.14
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/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import { extractMentions } from './square-core.js';
|
|
|
2
2
|
import { parseSquareRoute } from './delivery.js';
|
|
3
3
|
import { sameName, SquareError } from './model.js';
|
|
4
4
|
import { Square } from './square-wiring.js';
|
|
5
|
+
import { wakeNotifierForSquare } from './notifications.js';
|
|
5
6
|
export { Square } from './square-wiring.js';
|
|
6
7
|
export { SquareError } from './model.js';
|
|
7
8
|
export { captureRoute } from './delivery.js';
|
|
@@ -19,7 +20,7 @@ export async function express(route, options) {
|
|
|
19
20
|
typeof options.body !== 'string') {
|
|
20
21
|
throw new SquareError('invalid_args', 'Route express requires { as, body }');
|
|
21
22
|
}
|
|
22
|
-
const square = await Square.at({ path: parsed.squarePath });
|
|
23
|
+
const square = await Square.at({ path: parsed.squarePath, notifier: wakeNotifierForSquare(parsed.squarePath) });
|
|
23
24
|
try {
|
|
24
25
|
const recipient = (await square.participants()).find((participant) => participant.state === 'joined' && sameName(participant.name, parsed.name));
|
|
25
26
|
if (recipient === undefined)
|
package/package.json
CHANGED