saltfish 0.3.35 → 0.3.37
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/core/services/PlaylistOrchestrator.d.ts.map +1 -1
- package/dist/core/services/StateMachineActionHandler.d.ts.map +1 -1
- package/dist/managers/TransitionManager.d.ts +13 -8
- package/dist/managers/TransitionManager.d.ts.map +1 -1
- package/dist/player.js +2 -3
- package/dist/player.min.js +2 -3
- package/dist/saltfish-playlist-player.es.js +90 -78
- package/dist/saltfish-playlist-player.umd.js +1 -1
- package/dist/utils/urlValidation.d.ts +16 -0
- package/dist/utils/urlValidation.d.ts.map +1 -0
- package/dist/validators/PlaylistValidator.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UrlRequirement } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Validates if the current URL matches a URL requirement
|
|
4
|
+
* @param urlRequirement - The URL requirement to validate against
|
|
5
|
+
* @returns true if URL matches, false otherwise
|
|
6
|
+
*/
|
|
7
|
+
export declare function validateUrlRequirement(urlRequirement: UrlRequirement): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Validates URL requirement with retry logic for SPA navigation
|
|
10
|
+
* @param urlRequirement - The URL requirement to validate
|
|
11
|
+
* @param maxRetries - Maximum number of retry attempts (default: 20)
|
|
12
|
+
* @param retryDelay - Delay between retries in ms (default: 100)
|
|
13
|
+
* @returns Promise<boolean> - true if validation passes, false otherwise
|
|
14
|
+
*/
|
|
15
|
+
export declare function validateUrlRequirementWithRetry(urlRequirement: UrlRequirement, maxRetries?: number, retryDelay?: number): Promise<boolean>;
|
|
16
|
+
//# sourceMappingURL=urlValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"urlValidation.d.ts","sourceRoot":"","sources":["../../src/utils/urlValidation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAwC9E;AAED;;;;;;GAMG;AACH,wBAAsB,+BAA+B,CACnD,cAAc,EAAE,cAAc,EAC9B,UAAU,GAAE,MAAW,EACvB,UAAU,GAAE,MAAY,GACvB,OAAO,CAAC,OAAO,CAAC,CAiClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaylistValidator.d.ts","sourceRoot":"","sources":["../../src/validators/PlaylistValidator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAsC,MAAM,UAAU,CAAC;AAEpF,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED;;;;GAIG;AACH,qBAAa,iBAAiB;IAC5B;;OAEG;IACU,qBAAqB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"PlaylistValidator.d.ts","sourceRoot":"","sources":["../../src/validators/PlaylistValidator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,OAAO,KAAK,EAAE,eAAe,EAAsC,MAAM,UAAU,CAAC;AAEpF,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;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