@binance/fingerprint
Advanced tools
Comparing version 1.3.55 to 1.3.56
@@ -56,5 +56,4 @@ import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs"; | ||
var getTimezone = function getTimezone(offset) { | ||
var totalMinutes = -offset; | ||
var hours = Math.floor(Math.abs(totalMinutes) / 60); | ||
var minutes = Math.abs(totalMinutes % 60); | ||
var hours = Math.floor(Math.abs(offset) / 60); | ||
var minutes = Math.abs(offset % 60); | ||
var tz; | ||
@@ -66,3 +65,8 @@ if (minutes === 0) { | ||
} | ||
if (totalMinutes > 0) tz = "+".concat(tz); | ||
// If offset is positive, use negative timezone; if negative, use positive timezone | ||
if (offset > 0) { | ||
tz = "-".concat(tz); | ||
} else { | ||
tz = "+".concat(tz); | ||
} | ||
return "GMT".concat(tz); | ||
@@ -69,0 +73,0 @@ }; |
@@ -121,5 +121,4 @@ "use strict"; | ||
var getTimezone = function getTimezone(offset) { | ||
var totalMinutes = -offset; | ||
var hours = Math.floor(Math.abs(totalMinutes) / 60); | ||
var minutes = Math.abs(totalMinutes % 60); | ||
var hours = Math.floor(Math.abs(offset) / 60); | ||
var minutes = Math.abs(offset % 60); | ||
var tz; | ||
@@ -131,3 +130,8 @@ if (minutes === 0) { | ||
} | ||
if (totalMinutes > 0) tz = "+".concat(tz); | ||
// If offset is positive, use negative timezone; if negative, use positive timezone | ||
if (offset > 0) { | ||
tz = "-".concat(tz); | ||
} else { | ||
tz = "+".concat(tz); | ||
} | ||
return "GMT".concat(tz); | ||
@@ -134,0 +138,0 @@ }; |
{ | ||
"name": "@binance/fingerprint", | ||
"version": "1.3.55", | ||
"version": "1.3.56", | ||
"description": "binance web fingerprint", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
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
49937
1228