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