Socket
Socket
Sign inDemoInstall

update-check

Package Overview
Dependencies
Maintainers
6
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

update-check - npm Package Compare versions

Comparing version 1.3.1 to 1.3.2

2

package.json
{
"name": "update-check",
"version": "1.3.1",
"version": "1.3.2",
"description": "Minimalistic update notifications for command line interfaces",

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

@@ -29,4 +29,6 @@ # update-check

const pkg = require('./package')
const update = require('update-check')(pkg)
const checkForUpdate = require('update-check')
const update = await checkForUpdate(pkg)
if (update) {

@@ -47,3 +49,3 @@ console.log(`The latest version is ${update.latest}. Please update!`)

const update = checkForUpdate(pkg, {
const update = await checkForUpdate(pkg, {
interval: 3600000, // For how long the latest version should be cached (default: 1 day)

@@ -50,0 +52,0 @@ distTag: 'canary' // A npm distribution tag to compare the version to (default: 'latest')

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