Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@todesktop/client-util

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@todesktop/client-util - npm Package Compare versions

Comparing version 1.0.0-alpha5 to 1.0.0-alpha6

tsdoc.json

6

checkIfCompatibleWithBackend.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc