playttm 0.0.7 → 0.0.9
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/lib.d.ts +8 -5
- package/dist/lib.js +890 -332
- package/package.json +1 -1
- package/src/lib.ts +944 -394
package/dist/lib.d.ts
CHANGED
|
@@ -92,12 +92,15 @@ export declare class ThaiTicketMajor {
|
|
|
92
92
|
*/
|
|
93
93
|
static syncCookiesToChrome(cookieString: string, domainUrl?: string): Promise<void>;
|
|
94
94
|
/**
|
|
95
|
-
* Setup declarativeNetRequest session rules
|
|
95
|
+
* Setup declarativeNetRequest session rules for Chrome Extension environment.
|
|
96
|
+
* Overrides forbidden headers (Referer, Origin) to bypass TTM and Kasikorn referrer checks.
|
|
97
|
+
* Uses excludedInitiatorDomains to NEVER alter requests made directly by tabs on thaiticketmajor.com.
|
|
96
98
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
static setupExtensionRules(context?: {
|
|
100
|
+
k?: string;
|
|
101
|
+
zone?: string;
|
|
102
|
+
roundId?: string;
|
|
103
|
+
}): Promise<void>;
|
|
101
104
|
syncCookies(domainUrl?: string): Promise<void>;
|
|
102
105
|
private emitProgress;
|
|
103
106
|
/**
|