From: Jérôme Benoit Date: Sat, 27 Jan 2024 09:55:15 +0000 (+0100) Subject: build: log husky warnings on the console X-Git-Tag: v3.1.20~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3b8a84f612b7da309db21f544466284949a66ec2;p=poolifier.git build: log husky warnings on the console Signed-off-by: Jérôme Benoit --- 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 }