@vot.js/shared
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -12,3 +12,3 @@ export default { | ||
loggerLevel: 1, | ||
version: "2.2.0", | ||
version: "2.2.1", | ||
}; |
@@ -8,2 +8,7 @@ import { SecType, ClientSession } from "./types/secure.js"; | ||
export declare function getHmacSha1(hmacKey: string, salt: string): Promise<string | false>; | ||
export declare const browserSecHeaders: { | ||
"sec-ch-ua": string; | ||
"sec-ch-ua-full-version-list": string; | ||
"Sec-Fetch-Mode": string; | ||
}; | ||
//# sourceMappingURL=secure.d.ts.map |
import config from "./data/config.js"; | ||
import Logger from "./utils/logger.js"; | ||
const { componentVersion } = config; | ||
async function getCrypto() { | ||
@@ -51,1 +52,6 @@ if (typeof window !== "undefined" && window.crypto) { | ||
} | ||
export const browserSecHeaders = { | ||
"sec-ch-ua": `"Chromium";v="130", "YaBrowser";v="${componentVersion.slice(0, 5)}", "Not?A_Brand";v="99", "Yowser";v="2.5"`, | ||
"sec-ch-ua-full-version-list": `"Chromium";v="130.0.6723.152", "YaBrowser";v="${componentVersion}", "Not?A_Brand";v="99.0.0.0", "Yowser";v="2.5"`, | ||
"Sec-Fetch-Mode": "no-cors", | ||
}; |
{ | ||
"name": "@vot.js/shared", | ||
"description": "shared for all @vot.js package", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"author": "Toil", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
171364
3891