From b9df7eec731f67f46b55c0e5140f04bbc5699ec9 Mon Sep 17 00:00:00 2001 From: Holly Date: Tue, 15 Aug 2023 09:54:46 +0100 Subject: [PATCH] 1.0.2 --- README.md | 2 +- package-lock.json | 4 ++-- package.json | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ae28cfd..86b4003 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Console.customHeader(`xyz started at ${new Date()}`); This must be called this before anything is logged to the console! ## Cleaning up -It is **important** that you tell hsconsole to clean up before your application closes (i.e in the event on a CTRL+C) so it can be ensured that all log text is flushed to disk and to allow hsconsole to rename the latest log to the date your application was started. +It is **important** that you tell hsconsole to clean up before your application closes (i.e in the event of a CTRL+C) so it can be ensured that all log text is flushed to disk and to allow hsconsole to rename the latest log to the date your application was started. You can do this by calling `cleanup` in, for example, a **SIGINT** event handler: ```ts process.on("SIGINT", signal => { diff --git a/package-lock.json b/package-lock.json index 6e77d02..0e0cea4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hsconsole", - "version": "1.0.0", + "version": "1.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hsconsole", - "version": "1.0.0", + "version": "1.0.2", "license": "MIT", "dependencies": { "dyetty": "^1.0.1" diff --git a/package.json b/package.json index ac058d8..0aa135e 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "hsconsole", - "version": "1.0.1", + "version": "1.0.2", "description": "", - "main": "index.js", + "main": "./lib/index.js", + "types": "./lib/index.d.ts", "scripts": { "updateCheck": "check-outdated", "build": "tsc --build",