diff --git a/bin/docker.js b/bin/docker.js index c1847480..0f6c6744 100755 --- a/bin/docker.js +++ b/bin/docker.js @@ -2,9 +2,9 @@ // @ts-check /* eslint-disable no-console */ import { execFile as unpromisifiedExecFile } from 'node:child_process'; -import util from 'node:util'; +import { promisify } from 'node:util'; -const execFile = util.promisify(unpromisifiedExecFile); +const execFile = promisify(unpromisifiedExecFile); /** * Retrieves and parses the docker image metadata diff --git a/bin/set-major-version-tag.js b/bin/set-major-version-tag.js index e60997f0..ada20ac6 100755 --- a/bin/set-major-version-tag.js +++ b/bin/set-major-version-tag.js @@ -1,13 +1,13 @@ #! /usr/bin/env node // @ts-check import { execFile as unpromisifiedExecFile } from 'node:child_process'; -import util from 'node:util'; +import { promisify } from 'node:util'; import { parse } from 'semver'; import pkg from '../package.json' with { type: 'json' }; -const execFile = util.promisify(unpromisifiedExecFile); +const execFile = promisify(unpromisifiedExecFile); /** * Runs command and logs all output diff --git a/src/lib/prompts.ts b/src/lib/prompts.ts index 651d5e16..7a612fcc 100644 --- a/src/lib/prompts.ts +++ b/src/lib/prompts.ts @@ -4,6 +4,7 @@ import type { Choice, PromptObject } from 'prompts'; import parse from 'parse-link-header'; import semver from 'semver'; +import { debug } from './logger.js'; import promptTerminal from './promptWrapper.js'; import { handleRes } from './readmeAPIFetch.js'; @@ -80,6 +81,7 @@ const updateOasPrompt = ( ); return specId; } catch (e) { + debug(`error retrieving previous specs: ${e.message}`); return null; } } else if (spec === 'next') { @@ -92,6 +94,7 @@ const updateOasPrompt = ( ); return specId; } catch (e) { + debug(`error retrieving next specs: ${e.message}`); return null; } }