tiny-updater
Advanced tools
Comparing version 3.5.2 to 3.5.3
@@ -1,4 +0,4 @@ | ||
import type { Options } from './types'; | ||
import type { Options } from './types.js'; | ||
declare const updater: ({ name, version, ttl }: Options) => Promise<boolean>; | ||
export default updater; | ||
export type { Options }; |
@@ -1,2 +0,2 @@ | ||
import type { StoreRecord } from './types'; | ||
import type { StoreRecord } from './types.js'; | ||
declare class Store { | ||
@@ -3,0 +3,0 @@ private store; |
@@ -5,3 +5,4 @@ { | ||
"description": "A small update notifier for NPM packages, useful for CLI apps.", | ||
"version": "3.5.2", | ||
"license": "MIT", | ||
"version": "3.5.3", | ||
"type": "module", | ||
@@ -29,11 +30,11 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"ionstore": "^1.0.0", | ||
"tiny-colors": "^2.0.2", | ||
"when-exit": "^2.1.1" | ||
"ionstore": "^1.0.1", | ||
"tiny-colors": "^2.2.2", | ||
"when-exit": "^2.1.4" | ||
}, | ||
"devDependencies": { | ||
"fava": "^0.2.0", | ||
"tsex": "^3.0.0", | ||
"typescript": "^5.1.6" | ||
"fava": "^0.3.4", | ||
"tsex": "^4.0.2", | ||
"typescript": "^5.7.3" | ||
} | ||
} |
@@ -18,3 +18,3 @@ # Tiny Updater | ||
```sh | ||
npm install --save tiny-updater | ||
npm install tiny-updater | ||
``` | ||
@@ -28,2 +28,4 @@ | ||
// Let's check for updates | ||
await updater ({ name, version, ttl: 86_400_000 }); | ||
@@ -37,3 +39,3 @@ | ||
// 1. `true` is returned | ||
// 2. At most once a day, 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 exits, a message like the following is logged to the console: | ||
// 📦 Update available for example-package: 0.1.0 → 1.0.0 | ||
@@ -40,0 +42,0 @@ ``` |
44
10991
13
205
Updatedionstore@^1.0.1
Updatedtiny-colors@^2.2.2
Updatedwhen-exit@^2.1.4