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.2.0 to 3.2.2

2

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

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