@wvdsh/api 0.1.37 → 0.1.38

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.
@@ -193,6 +193,9 @@ export declare const UrlParams: {
193
193
  export declare const PlayRouteCaller: {
194
194
  readonly Wavedash: "wavedash";
195
195
  };
196
+ export declare const PAID_CONTENT_PICOMATCH_OPTIONS: {
197
+ readonly dot: true;
198
+ };
196
199
  export declare const HEARTBEAT: {
197
200
  /** Client sends heartbeat every 30 seconds when tab is visible */
198
201
  readonly CLIENT_INTERVAL_MS: 30000;
@@ -112,6 +112,8 @@ export const UrlParams = {
112
112
  export const PlayRouteCaller = {
113
113
  Wavedash: 'wavedash'
114
114
  };
115
+ // ========== PAID CONTENT ==========
116
+ export const PAID_CONTENT_PICOMATCH_OPTIONS = { dot: true };
115
117
  // ========== HEARTBEAT (client-side constants) ==========
116
118
  const HEARTBEAT_CLIENT_INTERVAL_MS = 30_000;
117
119
  export const HEARTBEAT = {
package/dist/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './_generated/constants';
2
2
  export * from './_generated/convex_api';
3
- export * from './_generated/helpers';
package/dist/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export * from './_generated/constants';
2
2
  export * from './_generated/convex_api';
3
- export * from './_generated/helpers';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wvdsh/api",
3
- "version": "0.1.37",
3
+ "version": "0.1.38",
4
4
  "description": "Public API types and shared constants for the Wavedash platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,8 +0,0 @@
1
- /**
2
- * Helper functions shared with external consumers via the @wvdsh/api package
3
- */
4
- /**
5
- * Match `levels/level2.dat` (literal) or `skins/*` (single-segment wildcard).
6
- * `**` matches across segments. Patterns are case-sensitive, no leading slash.
7
- */
8
- export declare function matchesPaidContentPattern(pattern: string, path: string): boolean;
@@ -1,22 +0,0 @@
1
- // THIS FILE IS AUTOGENERATED — DO NOT EDIT
2
- // Source: wavedash/src/lib/utils/sharedHelpers.ts
3
- /**
4
- * Helper functions shared with external consumers via the @wvdsh/api package
5
- */
6
- /**
7
- * Match `levels/level2.dat` (literal) or `skins/*` (single-segment wildcard).
8
- * `**` matches across segments. Patterns are case-sensitive, no leading slash.
9
- */
10
- export function matchesPaidContentPattern(pattern, path) {
11
- if (!pattern)
12
- return false;
13
- if (pattern === path)
14
- return true;
15
- // Build a regex: escape regex chars, then expand `**` → `.*` and `*` → `[^/]*`.
16
- const escaped = pattern.replace(/[.+^${}()|[\]\\]/g, '\\$&');
17
- const regexSrc = escaped
18
- .replace(/\*\*/g, '__DOUBLE_STAR__')
19
- .replace(/\*/g, '[^/]*')
20
- .replace(/__DOUBLE_STAR__/g, '.*');
21
- return new RegExp(`^${regexSrc}$`).test(path);
22
- }