update-check
Advanced tools
Comparing version 1.3.1 to 1.3.2
{ | ||
"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') |
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
9109
68