@spare/quote
Advanced tools
Comparing version 0.3.12 to 0.4.0
@@ -21,9 +21,8 @@ 'use strict'; | ||
const Qt = (read, mode) => { | ||
const qt = SelectQt(mode); | ||
if (!mode) return read; | ||
if (!read) return qt; | ||
if (!read) return SelectQt(mode); | ||
return x => { | ||
var _ref, _x; | ||
return _ref = (_x = x, read(_x)), qt(_ref); | ||
return _ref = (_x = x, read(_x)), SelectQt(mode)(_ref); | ||
}; | ||
@@ -30,0 +29,0 @@ }; |
@@ -17,9 +17,8 @@ import { APOS, DITTO } from '@spare/enum-quotes'; | ||
const Qt = (read, mode) => { | ||
const qt = SelectQt(mode); | ||
if (!mode) return read; | ||
if (!read) return qt; | ||
if (!read) return SelectQt(mode); | ||
return x => { | ||
var _ref, _x; | ||
return _ref = (_x = x, read(_x)), qt(_ref); | ||
return _ref = (_x = x, read(_x)), SelectQt(mode)(_ref); | ||
}; | ||
@@ -26,0 +25,0 @@ }; |
{ | ||
"name": "@spare/quote", | ||
"version": "0.3.12", | ||
"version": "0.4.0", | ||
"description": "Add quotation mark to string", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@spare/enum-quotes": "^0.3.12" | ||
"@spare/enum-quotes": "^0.4.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/spare#readme", | ||
"gitHead": "4f270028adc37143defa085cf074042cb7c4c195" | ||
"gitHead": "3f8fe1e26e06ea8ab8597a9081249a303cb23a76" | ||
} |
5396
58
+ Added@spare/enum-quotes@0.4.19(transitive)
- Removed@spare/enum-quotes@0.3.12(transitive)
Updated@spare/enum-quotes@^0.4.0