@spare/fullwidth
Advanced tools
Comparing version 0.8.11 to 0.8.12
@@ -5,9 +5,11 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var enumChars = require('@spare/enum-chars'); | ||
var enumFullAngleChars = require('@spare/enum-full-angle-chars'); | ||
var lange = require('@spare/lange'); | ||
var stripAnsi = _interopDefault(require('strip-ansi')); | ||
var stripAnsi = require('strip-ansi'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var stripAnsi__default = /*#__PURE__*/_interopDefaultLegacy(stripAnsi); | ||
const FWREG = /[\uff01-\uff5e|\u3000]+/g; | ||
@@ -117,3 +119,3 @@ const FWCHREG = /[\u4e00-\u9fa5|\uff01-\uff5e|\u3000]+/g; | ||
} = this; | ||
if (ansi && lange.hasAnsi(tx)) tx = stripAnsi(tx); | ||
if (ansi && lange.hasAnsi(tx)) tx = stripAnsi__default['default'](tx); | ||
if (lean) tx = tx.replace(/(\W)\s+/g, (_, x) => x); | ||
@@ -120,0 +122,0 @@ return halfToFull(tx); |
{ | ||
"name": "@spare/fullwidth", | ||
"version": "0.8.11", | ||
"version": "0.8.12", | ||
"description": "Convert between half-width and full-width", | ||
@@ -18,5 +18,5 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@spare/enum-chars": "^0.8.11", | ||
"@spare/enum-full-angle-chars": "^0.8.11", | ||
"@spare/lange": "^0.8.11", | ||
"@spare/enum-chars": "^0.8.12", | ||
"@spare/enum-full-angle-chars": "^0.8.12", | ||
"@spare/lange": "^0.8.12", | ||
"strip-ansi": "^6.0.0" | ||
@@ -40,3 +40,3 @@ }, | ||
"homepage": "https://github.com/gadge/spare#readme", | ||
"gitHead": "55af6e8e71f77182f8a023a47342a43327f87d5b" | ||
"gitHead": "33008a9b8b3be11d0ccdfc7bc3075a722e5086f2" | ||
} |
8757
204
Updated@spare/enum-chars@^0.8.12
Updated@spare/lange@^0.8.12