New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

version-service

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

version-service - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

2

package.json
{
"name": "version-service",
"version": "1.4.3",
"version": "1.4.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "./build/version.js",

@@ -25,7 +25,7 @@ # Version Service

var timeout = 500;
var myVersion = '1.0.0';
var localVersion = '1.0.0';
var callback = function(localVersion, responseVersion) {
//...do something when versions dont match
}
var versionService = new Version(url, timeout, myVersion, callback);
var versionService = new Version(url, timeout, localVersion, callback);

@@ -38,3 +38,3 @@ // you can run a single version check

local: localVersion,
server: serverVersion
server: responseVersion
}

@@ -41,0 +41,0 @@ */

@@ -188,3 +188,4 @@ import {expect} from 'chai';

return new Promise((resolve, reject) => {
resolve('1.0.0');
// you can access the myVersion object
resolve(this.localVersion);
});

@@ -191,0 +192,0 @@ }

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