Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tiny-updater

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-updater - npm Package Compare versions

Comparing version 3.0.0 to 3.2.0

2

dist/index.d.ts
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 @@

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