@levu/snap 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.3.4] - 2026-02-26
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- Fixed `picocolors` ESM/CJS interop in multiline and password adapters to prevent runtime errors like `pc.cyan is not a function`.
|
|
12
|
+
- Keeps Ghostty `Shift+Enter` (`13~`) fallback and custom password input fixes from `0.3.3`.
|
|
13
|
+
|
|
8
14
|
## [0.3.3] - 2026-02-26
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createInterface, emitKeypressEvents } from 'node:readline';
|
|
2
|
-
import
|
|
2
|
+
import pcModule from 'picocolors';
|
|
3
|
+
const pc = pcModule?.default ?? pcModule;
|
|
3
4
|
export const createMultilineTextPrompt = () => {
|
|
4
5
|
return async (opts) => {
|
|
5
6
|
const { message, initialValue = '', placeholder = '', validate, allowPaste = false, input = process.stdin, output = process.stdout, signal, } = opts;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { password as clackPassword } from '@clack/prompts';
|
|
2
2
|
import { emitKeypressEvents } from 'node:readline';
|
|
3
|
-
import
|
|
3
|
+
import pcModule from 'picocolors';
|
|
4
4
|
import { PromptCancelledError, unwrapClackResult } from './cancel.js';
|
|
5
|
+
const pc = pcModule?.default ?? pcModule;
|
|
5
6
|
export const runPasswordPrompt = async (input) => {
|
|
6
7
|
const inStream = (input.input ?? process.stdin);
|
|
7
8
|
const outStream = (input.output ?? process.stdout);
|