@fraqjs/fraq 0.13.1 → 0.13.2

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.d.mts CHANGED
@@ -5542,6 +5542,7 @@ type RouteActivation =
5542
5542
  }
5543
5543
  | {
5544
5544
  type: 'mention';
5545
+ prefix?: string;
5545
5546
  }
5546
5547
  | {
5547
5548
  type: 'prefix';
package/dist/index.mjs CHANGED
@@ -366,7 +366,9 @@ var Router = class Router {
366
366
  consumeActivation(tokenizer, activation, session) {
367
367
  switch (activation.type) {
368
368
  case "direct": return true;
369
- case "mention": return tokenizer.consumeMention(session.selfId);
369
+ case "mention":
370
+ if (!tokenizer.consumeMention(session.selfId)) return false;
371
+ return activation.prefix === void 0 || tokenizer.consumeTextPrefix(activation.prefix);
370
372
  case "prefix": return tokenizer.consumeTextPrefix(activation.prefix);
371
373
  }
372
374
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fraqjs/fraq",
3
3
  "type": "module",
4
- "version": "0.13.1",
4
+ "version": "0.13.2",
5
5
  "description": "Milky Bot framework",
6
6
  "files": [
7
7
  "dist"