intelicoreact 0.1.65 → 0.1.66
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.
|
@@ -80,11 +80,11 @@ var formatToCutOffDotAtTheEnd = function formatToCutOffDotAtTheEnd(inputValue) {
|
|
|
80
80
|
|
|
81
81
|
exports.formatToCutOffDotAtTheEnd = formatToCutOffDotAtTheEnd;
|
|
82
82
|
|
|
83
|
-
var formatNumberValueToMask = function formatNumberValueToMask() {
|
|
84
|
-
var
|
|
85
|
-
|
|
83
|
+
var formatNumberValueToMask = function formatNumberValueToMask(inputValue, settings) {
|
|
84
|
+
var _inputValue$toString;
|
|
85
|
+
|
|
86
|
+
var safelyInputValue = typeof inputValue !== 'string' ? (inputValue === null || inputValue === void 0 ? void 0 : (_inputValue$toString = inputValue.toString) === null || _inputValue$toString === void 0 ? void 0 : _inputValue$toString.call(inputValue)) || '' : inputValue; // default valueSymbol === 'n', default mask === 'nnn-nnn-nnnn'
|
|
86
87
|
|
|
87
|
-
// default valueSymbol === 'n', default mask === 'nnn-nnn-nnnn'
|
|
88
88
|
var _ref = settings || {},
|
|
89
89
|
_ref$mask = _ref.mask,
|
|
90
90
|
mask = _ref$mask === void 0 ? 'XXX-XXX-XXXX' : _ref$mask,
|
|
@@ -98,7 +98,7 @@ var formatNumberValueToMask = function formatNumberValueToMask() {
|
|
|
98
98
|
acc.newValue.push(item === valueSymbol && acc.value.length ? acc.value.shift() : item);
|
|
99
99
|
return acc;
|
|
100
100
|
}, {
|
|
101
|
-
value:
|
|
101
|
+
value: safelyInputValue.split('').filter(function (sym) {
|
|
102
102
|
return /[0-9]/g.test(sym);
|
|
103
103
|
}),
|
|
104
104
|
newValue: [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intelicoreact",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"build": "node IntelicoKitVersioningBot/main.js && babel src --out-dir dist --copy-files --no-copy-ignored",
|
|
15
|
-
"release": "babel src --out-dir dist --copy-files --no-copy-ignored && npm publish && node IntelicoKitVersioningBot/main.js"
|
|
14
|
+
"build": "node ../../IntelicoKitVersioningBot/main.js && babel src --out-dir dist --copy-files --no-copy-ignored",
|
|
15
|
+
"release": "babel src --out-dir dist --copy-files --no-copy-ignored && npm publish && node ../../IntelicoKitVersioningBot/main.js"
|
|
16
16
|
},
|
|
17
17
|
"author": "Andrey Isakov",
|
|
18
18
|
"license": "ISC",
|