@todesktop/client-util
Advanced tools
Comparing version 1.0.0-alpha5 to 1.0.0-alpha6
@@ -1,2 +0,2 @@ | ||
const currentBackendVersion = typeof window["todesktop"] === "object" && | ||
const getBackendVersion = () => typeof window["todesktop"] === "object" && | ||
window["todesktop"].desktopifyVersion; | ||
@@ -17,7 +17,7 @@ /** | ||
export function checkIfCompatibleWithBackend(apiName, introducedToBackendVersion) { | ||
const isCompatible = isSemverGreaterOrEqualThan(currentBackendVersion, introducedToBackendVersion); | ||
const isCompatible = isSemverGreaterOrEqualThan(getBackendVersion(), introducedToBackendVersion); | ||
if (isCompatible) | ||
return true; | ||
// eslint-disable-next-line no-console | ||
console.warn(`[todesktop-client] ${apiName} not called. ${apiName} was introduced in ${introducedToBackendVersion}. You are running version ${currentBackendVersion}.`); | ||
console.warn(`[todesktop-client] ${apiName} not called. ${apiName} was introduced in ${introducedToBackendVersion}. You are running version ${getBackendVersion()}.`); | ||
return false; | ||
@@ -24,0 +24,0 @@ } |
{ | ||
"name": "@todesktop/client-util", | ||
"version": "1.0.0-alpha5", | ||
"version": "1.0.0-alpha6", | ||
"description": "Utility functions for ToDesktop client libraries", | ||
@@ -22,3 +22,3 @@ "main": "index.js", | ||
"agadoo": "^2.0.0", | ||
"typescript": "^4.5.5" | ||
"typescript": "^4.7.2" | ||
}, | ||
@@ -25,0 +25,0 @@ "dependencies": { |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
407
0
15129