@texting/padder
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -40,4 +40,4 @@ 'use strict'; | ||
thousand = true | ||
} = this !== null && this !== void 0 ? this : {}; | ||
const padder = numStrict.isNumeric(va !== null && va !== void 0 ? va : thousand ? clean(tx) : tx) ? lpad : rpad; | ||
} = this ?? {}; | ||
const padder = numStrict.isNumeric(va ?? (thousand ? clean(tx) : tx)) ? lpad : rpad; | ||
return ansi ? padder(tx, ansiPadLength(tx, wd), fill) : padder(tx, wd, fill); | ||
@@ -63,3 +63,3 @@ }; | ||
fill = enumCharsFullwidth.SP | ||
} = this !== null && this !== void 0 ? this : {}; | ||
} = this ?? {}; | ||
const padder = (nullish(va) ? charsetFullwidth.isNumeric(tx) : numStrict.isNumeric(va)) ? lpad : rpad; | ||
@@ -66,0 +66,0 @@ return ansi ? padder(tx, ansiPadLength(tx, wd), fill) : padder(tx, wd, fill); |
@@ -36,4 +36,4 @@ import { hasAnsi } from '@texting/charset-ansi'; | ||
thousand = true | ||
} = this !== null && this !== void 0 ? this : {}; | ||
const padder = isNumeric(va !== null && va !== void 0 ? va : thousand ? clean(tx) : tx) ? lpad : rpad; | ||
} = this ?? {}; | ||
const padder = isNumeric(va ?? (thousand ? clean(tx) : tx)) ? lpad : rpad; | ||
return ansi ? padder(tx, ansiPadLength(tx, wd), fill) : padder(tx, wd, fill); | ||
@@ -59,3 +59,3 @@ }; | ||
fill = SP$1 | ||
} = this !== null && this !== void 0 ? this : {}; | ||
} = this ?? {}; | ||
const padder = (nullish(va) ? isNumeric$1(tx) : isNumeric(va)) ? lpad : rpad; | ||
@@ -62,0 +62,0 @@ return ansi ? padder(tx, ansiPadLength(tx, wd), fill) : padder(tx, wd, fill); |
{ | ||
"name": "@texting/padder", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "A debugging tool", | ||
@@ -18,7 +18,7 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@texting/charset-ansi": "^0.0.10", | ||
"@texting/charset-fullwidth": "^0.0.10", | ||
"@texting/charset-halfwidth": "^0.0.10", | ||
"@texting/enum-chars-fullwidth": "^0.0.10", | ||
"@texting/lange": "^0.0.10", | ||
"@texting/charset-ansi": "^0.0.11", | ||
"@texting/charset-fullwidth": "^0.0.11", | ||
"@texting/charset-halfwidth": "^0.0.11", | ||
"@texting/enum-chars-fullwidth": "^0.0.11", | ||
"@texting/lange": "^0.0.11", | ||
"@typen/num-strict": "^0.1.16" | ||
@@ -42,3 +42,3 @@ }, | ||
"homepage": "https://github.com/gadge/spare#readme", | ||
"gitHead": "dc57cfa4c97ec9130bc54a0ca0644d47152bd242" | ||
"gitHead": "51e4340828860e5ae4cff91fd23764b6555cbfe4" | ||
} |
9221
+ Added@texting/charset-ansi@0.0.11(transitive)
+ Added@texting/charset-fullwidth@0.0.11(transitive)
+ Added@texting/charset-halfwidth@0.0.11(transitive)
+ Added@texting/enum-chars@0.0.11(transitive)
+ Added@texting/enum-chars-fullwidth@0.0.11(transitive)
+ Added@texting/lange@0.0.11(transitive)
+ Added@texting/regex-charset@0.0.11(transitive)
- Removed@texting/charset-ansi@0.0.10(transitive)
- Removed@texting/charset-fullwidth@0.0.10(transitive)
- Removed@texting/charset-halfwidth@0.0.10(transitive)
- Removed@texting/enum-chars@0.0.10(transitive)
- Removed@texting/enum-chars-fullwidth@0.0.10(transitive)
- Removed@texting/lange@0.0.10(transitive)
- Removed@texting/regex-charset@0.0.10(transitive)
Updated@texting/lange@^0.0.11