From 3b8a84f612b7da309db21f544466284949a66ec2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 27 Jan 2024 10:55:15 +0100 Subject: [PATCH] build: log husky warnings on the console MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- pnpm-lock.yaml | 6 +++--- prepare.mjs | 4 +++- src/deque.ts | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0afba295..b60150ed 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -592,7 +592,7 @@ packages: engines: {node: '>= 8'} dependencies: '@nodelib/fs.scandir': 2.1.5 - fastq: 1.16.0 + fastq: 1.17.0 dev: true /@octokit/auth-token@4.0.0: @@ -2653,8 +2653,8 @@ packages: resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==} dev: true - /fastq@1.16.0: - resolution: {integrity: sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==} + /fastq@1.17.0: + resolution: {integrity: sha512-zGygtijUMT7jnk3h26kUms3BkSDp4IfIKjmnqI2tvx6nuBfiF1UqOxbnLfzdv+apBy+53oaImsKtMw/xYbW+1w==} dependencies: reusify: 1.0.4 dev: true diff --git a/prepare.mjs b/prepare.mjs index 9973a442..49da457e 100644 --- a/prepare.mjs +++ b/prepare.mjs @@ -2,5 +2,7 @@ import { env } from 'node:process' const isCIEnvironment = env.CI != null if (isCIEnvironment === false) { - import('husky').then(husky => husky.default()).catch(console.error) + import('husky') + .then(husky => console.warn(husky.default())) + .catch(console.error) } diff --git a/src/deque.ts b/src/deque.ts index 0d55f5b6..52441a3e 100644 --- a/src/deque.ts +++ b/src/deque.ts @@ -35,7 +35,7 @@ export class Deque { * Appends data to the deque. * * @param data - Data to append. - * @returns The new size of the queue. + * @returns The new size of the deque. */ public push (data: T): number { const node: ILinkedListNode = { data } @@ -52,7 +52,7 @@ export class Deque { * Prepends data to the deque. * * @param data - Data to prepend. - * @returns The new size of the queue. + * @returns The new size of the deque. */ public unshift (data: T): number { const node: ILinkedListNode = { data } -- 2.34.1