New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

tiny-updater

Package Overview
Dependencies
Maintainers
1
Versions
13
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.4.0 to 3.5.0

4

dist/store.js
/* IMPORT */
import { SessionStore } from 'isostore';
import IonStore from 'ionstore';
import Utils from './utils.js';

@@ -8,3 +8,3 @@ /* MAIN */

/* VARIABLES */
this.store = new SessionStore('tiny-updater');
this.store = new IonStore('tiny-updater');
/* API */

@@ -11,0 +11,0 @@ this.get = (name) => {

@@ -5,3 +5,3 @@ {

"description": "A small update notifier for NPM packages, useful for CLI apps.",
"version": "3.4.0",
"version": "3.5.0",
"type": "module",

@@ -29,3 +29,3 @@ "main": "dist/index.js",

"dependencies": {
"isostore": "^1.0.0",
"ionstore": "^1.0.0",
"tiny-colors": "^2.0.2",

@@ -32,0 +32,0 @@ "when-exit": "^2.1.0"

@@ -9,3 +9,3 @@ # Tiny Updater

- **Small**: This library has only a handful of small and reliable dependencies. This library weighs about ~2.5kb total.
- **Small**: This library has only a handful of small and reliable dependencies. This library weighs about ~6kb total.
- **Bundler-ready**: This library can be bundled, which is important for achieving the best startup times. `update-notifier` on the other hand uses highly dyanmic imports and spawns a child process, if you are using it you can't bundle your CLI app.

@@ -28,3 +28,3 @@ - **Fast**: Startup performance is paramount for CLI apps, in order to improve that you need to bundle your app and make the bundle as small as possible, using this library won't compromise your startup times much.

await updater ({ name, version });
await updater ({ name, version, ttl: 86_400_000 });

@@ -37,3 +37,3 @@ // If there are no updates available:

// 1. `true` is returned
// 2. Right before the process exists a message like the following is logged to the console:
// 2. At most once a day, right before the process exists, a message like the following is logged to the console:
// 📦 Update available for example-package: 0.1.0 → 1.0.0

@@ -40,0 +40,0 @@ ```

/* IMPORT */
import {SessionStore} from 'isostore';
import IonStore from 'ionstore';
import Utils from './utils';

@@ -14,3 +14,3 @@ import type {StoreRecord} from './types';

private store = new SessionStore ( 'tiny-updater' );
private store = new IonStore ( 'tiny-updater' );

@@ -17,0 +17,0 @@ /* API */

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