File tree Expand file tree Collapse file tree 7 files changed +33
-6
lines changed Expand file tree Collapse file tree 7 files changed +33
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "private" : true ,
3- "version" : " 1.6.2 " ,
3+ "version" : " 1.6.3 " ,
44 "type" : " module" ,
55 "scripts" : {
66 "build" : " rollup -c" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " create-gopeed-ext" ,
3- "version" : " 1.6.2 " ,
3+ "version" : " 1.6.3 " ,
44 "keywords" : [
55 " gopeed"
66 ],
Original file line number Diff line number Diff line change 2020 "eslint" : " ^8.51.0" ,
2121 "eslint-config-prettier" : " ^9.0.0" ,
2222 "eslint-plugin-prettier" : " ^5.0.0" ,
23- "gopeed" : " ^1.6.2 " ,
23+ "gopeed" : " ^1.6.3 " ,
2424 "gopeed-polyfill-webpack-plugin" : " ^1.0.6" ,
2525 "prettier" : " ^3.0.3" ,
2626 "webpack" : " ^5.75.0" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @gopeed/rest" ,
3- "version" : " 1.6.2 " ,
3+ "version" : " 1.6.3 " ,
44 "description" : " " ,
55 "main" : " dist/index.js" ,
66 "exports" : {
Original file line number Diff line number Diff line change 11{
22 "name" : " @gopeed/types" ,
3- "version" : " 1.6.2 " ,
3+ "version" : " 1.6.3 " ,
44 "description" : " " ,
55 "main" : " dist/index.js" ,
66 "exports" : {
Original file line number Diff line number Diff line change @@ -77,12 +77,39 @@ export interface MessageErrorConstructor {
7777 ( message ?: string ) : MessageError ;
7878}
7979
80+ export type Fingerprint =
81+ /** No browser fingerprint simulation - use default TLS settings */
82+ | 'none'
83+ /** Simulate Chrome browser TLS fingerprint and headers */
84+ | 'chrome'
85+ /** Simulate Firefox browser TLS fingerprint and headers */
86+ | 'firefox'
87+ /** Simulate Safari browser TLS fingerprint and headers */
88+ | 'safari' ;
89+
8090/**
8191 * Global gopeed extension instance
8292 */
8393declare global {
8494 const gopeed : Gopeed ;
8595 const MessageError : MessageErrorConstructor ;
96+
97+ /**
98+ * Set browser fingerprint for HTTP requests
99+ * This function configures the TLS fingerprint and User-Agent headers to simulate different browsers
100+ *
101+ * @param fingerprint - The browser fingerprint type to simulate
102+ *
103+ * @example
104+ * ```typescript
105+ * // Simulate Chrome browser
106+ * __gopeed_setFingerprint('chrome');
107+ *
108+ * // Use default settings (no simulation)
109+ * __gopeed_setFingerprint('none');
110+ * ```
111+ */
112+ function __gopeed_setFingerprint ( fingerprint : Fingerprint ) : void ;
86113}
87114
88115export * from './types/events' ;
Original file line number Diff line number Diff line change 11{
22 "name" : " gopeed" ,
3- "version" : " 1.6.2 " ,
3+ "version" : " 1.6.3 " ,
44 "description" : " " ,
55 "main" : " index.js" ,
66 "type" : " module" ,
You can’t perform that action at this time.
0 commit comments