jackspeak
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -45,3 +45,5 @@ "use strict"; | ||
const fromEnvVal = (env, type, multiple, delim = '\n') => (multiple | ||
? env.split(delim).map(v => fromEnvVal(v, type, false)) | ||
? env | ||
? env.split(delim).map(v => fromEnvVal(v, type, false)) | ||
: [] | ||
: type === 'string' | ||
@@ -709,4 +711,7 @@ ? env | ||
const normalize = (s, pre = false) => pre | ||
// prepend a ZWSP to each line so cliui doesn't strip it. | ||
? s.split('\n').map(l => `\u200b${l}`).join('\n') | ||
? // prepend a ZWSP to each line so cliui doesn't strip it. | ||
s | ||
.split('\n') | ||
.map(l => `\u200b${l}`) | ||
.join('\n') | ||
: s | ||
@@ -713,0 +718,0 @@ // remove single line breaks, except for lists |
@@ -39,3 +39,5 @@ import { inspect } from 'node:util'; | ||
const fromEnvVal = (env, type, multiple, delim = '\n') => (multiple | ||
? env.split(delim).map(v => fromEnvVal(v, type, false)) | ||
? env | ||
? env.split(delim).map(v => fromEnvVal(v, type, false)) | ||
: [] | ||
: type === 'string' | ||
@@ -700,4 +702,7 @@ ? env | ||
const normalize = (s, pre = false) => pre | ||
// prepend a ZWSP to each line so cliui doesn't strip it. | ||
? s.split('\n').map(l => `\u200b${l}`).join('\n') | ||
? // prepend a ZWSP to each line so cliui doesn't strip it. | ||
s | ||
.split('\n') | ||
.map(l => `\u200b${l}`) | ||
.join('\n') | ||
: s | ||
@@ -704,0 +709,0 @@ // remove single line breaks, except for lists |
{ | ||
"name": "jackspeak", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "A very strict and proper argument parser.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
222024
2085
39
0
0
0
10