tiny-updater
Advanced tools
Comparing version 3.0.0 to 3.2.0
declare const updater: ({ name, version }: { | ||
name: string; | ||
version: string; | ||
version?: string | undefined; | ||
}) => Promise<boolean>; | ||
export default updater; |
@@ -14,2 +14,4 @@ /* IMPORT */ | ||
const updater = async ({ name, version }) => { | ||
if (!version) | ||
return false; | ||
const latest = await Utils.getLatestVersion(name).catch(() => undefined); | ||
@@ -16,0 +18,0 @@ if (!latest) |
@@ -5,3 +5,3 @@ { | ||
"description": "A small update notifier for NPM packages, useful for CLI apps.", | ||
"version": "3.0.0", | ||
"version": "3.2.0", | ||
"type": "module", | ||
@@ -8,0 +8,0 @@ "main": "dist/index.js", |
@@ -18,4 +18,6 @@ | ||
const updater = async ({ name, version }: { name: string, version: string }): Promise<boolean> => { | ||
const updater = async ({ name, version }: { name: string, version?: string }): Promise<boolean> => { | ||
if ( !version ) return false; | ||
const latest = await Utils.getLatestVersion ( name ).catch ( () => undefined ); | ||
@@ -22,0 +24,0 @@ |
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
13387
243