@timardex/cluemart-shared 1.5.500 → 1.5.502

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.mjs CHANGED
@@ -438,16 +438,6 @@ import dayjs from "dayjs";
438
438
  import utc from "dayjs/plugin/utc";
439
439
 
440
440
  // src/types/game.ts
441
- var createRouteMatcher = (base, type) => {
442
- switch (type) {
443
- case "mongoId":
444
- return new RegExp(`^\\/${base}\\/([a-f0-9]{24})$`);
445
- case "slug":
446
- return new RegExp(`^\\/${base}\\/[^/]+$`);
447
- default:
448
- return new RegExp(`^\\/${base}$`);
449
- }
450
- };
451
441
  var gameScreenIdentifierList = [
452
442
  {
453
443
  clue: "Where your actions turn into a timeline.",
@@ -467,7 +457,7 @@ var gameScreenIdentifierList = [
467
457
  {
468
458
  clue: "A single moment worth showing up for.",
469
459
  id: "single-event",
470
- match: createRouteMatcher("events", "mongoId")
460
+ match: /^\/events\/[a-f0-9]{24}$/
471
461
  },
472
462
  {
473
463
  clue: "What\u2019s happening around you, right now.",
@@ -482,7 +472,7 @@ var gameScreenIdentifierList = [
482
472
  {
483
473
  clue: "What\u2019s happening in a wider area\u2014not just nearby.",
484
474
  id: "events-region",
485
- match: createRouteMatcher("events/region", "slug")
475
+ match: /^\/events\/region\/[^/]+$/
486
476
  },
487
477
  {
488
478
  clue: "Where you go to find something specific.",
@@ -512,7 +502,7 @@ var gameScreenIdentifierList = [
512
502
  {
513
503
  clue: "A single collaborator in the ecosystem.",
514
504
  id: "single-partner",
515
- match: createRouteMatcher("partners", "mongoId")
505
+ match: /^\/partners\/[a-f0-9]{24}$/
516
506
  },
517
507
  {
518
508
  clue: "The network behind the scenes.",
@@ -522,7 +512,7 @@ var gameScreenIdentifierList = [
522
512
  {
523
513
  clue: "Where you share something with everyone.",
524
514
  id: "single-visitor-post",
525
- match: createRouteMatcher("visitors/posts", "mongoId")
515
+ match: /^\/visitors\/posts\/[a-f0-9]{24}$/
526
516
  },
527
517
  {
528
518
  clue: "Your identity, on display.",
@@ -532,7 +522,7 @@ var gameScreenIdentifierList = [
532
522
  {
533
523
  clue: "One provider offering something valuable.",
534
524
  id: "single-vendor",
535
- match: createRouteMatcher("vendors", "mongoId")
525
+ match: /^\/vendors\/[a-f0-9]{24}$/
536
526
  },
537
527
  {
538
528
  clue: "A marketplace of providers.",