Comparing version 1.1.0 to 1.1.1
@@ -149,2 +149,7 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
// Get CSRF | ||
const xcsrf = yield RAssets.getCSRF(cookie); | ||
if (!xcsrf) { | ||
throw (new Error("Invalid cookie")); | ||
} | ||
// Config | ||
@@ -167,2 +172,4 @@ const config = { | ||
headers: { | ||
Cookie: cookie, | ||
"X-CSRF-Token": xcsrf, | ||
"Content-Type": "application-json" | ||
@@ -169,0 +176,0 @@ }, |
{ | ||
"name": "rassets", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A simple Typescript wrapper to upload assets.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -148,2 +148,8 @@ // Dependencies | ||
export async function verifyAudio(cookie: string, data: IAudioVerifyRequest){ | ||
// Get CSRF | ||
const xcsrf = await RAssets.getCSRF(cookie) | ||
if (!xcsrf){ | ||
throw(new Error("Invalid cookie")) | ||
} | ||
// Config | ||
@@ -163,2 +169,4 @@ const config = <IAudioVerifyRequest>{ | ||
headers: { | ||
Cookie: cookie, | ||
"X-CSRF-Token": xcsrf, | ||
"Content-Type": "application-json" | ||
@@ -165,0 +173,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97532
695