Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function checkUpdate () {
var pkg = require("./package.json");
require("update-notifier")({
packageName: pkg.name,
packageVersion: pkg.version
}).notify();
}
(function checkForUpdates () {
var thisPackage = require('../package.json')
require('update-notifier')({
packageName: thisPackage.name,
packageVersion: thisPackage.version
}).notify()
}())