Skip to content

Commit

Permalink
Build assets and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
nosir committed Feb 29, 2020
1 parent 45db37a commit e9d55ba
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 47 deletions.
5 changes: 3 additions & 2 deletions dist/cleave-angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ return /******/ (function(modules) { // webpackBootstrap

pps.onValueChanged.call(owner, {
target: {
name: owner.element.name,
value: pps.result,
rawValue: owner.getRawValue()
}
Expand Down Expand Up @@ -1274,8 +1275,8 @@ return /******/ (function(modules) { // webpackBootstrap
// starts with 4; 16 digits
visa: /^4\d{0,15}/,

// starts with 62; 16 digits
unionPay: /^62\d{0,14}/
// starts with 62/81; 16 digits
unionPay: /^(62|81)\d{0,14}/
},

getStrictBlocks: function (block) {
Expand Down
6 changes: 3 additions & 3 deletions dist/cleave-angular.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/cleave-esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,8 @@ var CreditCardDetector = {
// starts with 4; 16 digits
visa: /^4\d{0,15}/,

// starts with 62; 16 digits
unionPay: /^62\d{0,14}/
// starts with 62/81; 16 digits
unionPay: /^(62|81)\d{0,14}/
},

getStrictBlocks: function (block) {
Expand Down Expand Up @@ -1413,6 +1413,7 @@ Cleave.prototype = {

pps.onValueChanged.call(owner, {
target: {
name: owner.element.name,
value: pps.result,
rawValue: owner.getRawValue()
}
Expand Down
2 changes: 1 addition & 1 deletion dist/cleave-esm.min.js

Large diffs are not rendered by default.

21 changes: 8 additions & 13 deletions dist/cleave-react-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,13 @@ return /******/ (function(modules) { // webpackBootstrap

componentDidUpdate: function componentDidUpdate() {
var owner = this,
phoneRegionCode = (owner.props.options || {}).phoneRegionCode,
newValue = owner.props.value,
pps = owner.properties;

Util.setSelection(owner.element, owner.state.cursorPosition, pps.document);
},

componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
var owner = this,
phoneRegionCode = (nextProps.options || {}).phoneRegionCode,
newValue = nextProps.value;
owner.updateRegisteredEvents(owner.props);
if (newValue !== undefined && newValue !== null) {

// update registed events
owner.updateRegisteredEvents(nextProps);

if (newValue !== undefined) {
newValue = newValue.toString();

if (newValue !== owner.properties.result) {
Expand All @@ -106,6 +99,8 @@ return /******/ (function(modules) { // webpackBootstrap
owner.initPhoneFormatter();
owner.onInput(owner.properties.result);
}

Util.setSelection(owner.element, owner.state.cursorPosition, pps.document);
},

updateRegisteredEvents: function updateRegisteredEvents(props) {
Expand Down Expand Up @@ -2470,8 +2465,8 @@ return /******/ (function(modules) { // webpackBootstrap
// starts with 4; 16 digits
visa: /^4\d{0,15}/,

// starts with 62; 16 digits
unionPay: /^62\d{0,14}/
// starts with 62/81; 16 digits
unionPay: /^(62|81)\d{0,14}/
},

getStrictBlocks: function getStrictBlocks(block) {
Expand Down
6 changes: 3 additions & 3 deletions dist/cleave-react-node.min.js

Large diffs are not rendered by default.

21 changes: 8 additions & 13 deletions dist/cleave-react.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,20 +78,13 @@ return /******/ (function(modules) { // webpackBootstrap

componentDidUpdate: function componentDidUpdate() {
var owner = this,
phoneRegionCode = (owner.props.options || {}).phoneRegionCode,
newValue = owner.props.value,
pps = owner.properties;

Util.setSelection(owner.element, owner.state.cursorPosition, pps.document);
},

componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
var owner = this,
phoneRegionCode = (nextProps.options || {}).phoneRegionCode,
newValue = nextProps.value;
owner.updateRegisteredEvents(owner.props);
if (newValue !== undefined && newValue !== null) {

// update registed events
owner.updateRegisteredEvents(nextProps);

if (newValue !== undefined) {
newValue = newValue.toString();

if (newValue !== owner.properties.result) {
Expand All @@ -106,6 +99,8 @@ return /******/ (function(modules) { // webpackBootstrap
owner.initPhoneFormatter();
owner.onInput(owner.properties.result);
}

Util.setSelection(owner.element, owner.state.cursorPosition, pps.document);
},

updateRegisteredEvents: function updateRegisteredEvents(props) {
Expand Down Expand Up @@ -2664,8 +2659,8 @@ return /******/ (function(modules) { // webpackBootstrap
// starts with 4; 16 digits
visa: /^4\d{0,15}/,

// starts with 62; 16 digits
unionPay: /^62\d{0,14}/
// starts with 62/81; 16 digits
unionPay: /^(62|81)\d{0,14}/
},

getStrictBlocks: function getStrictBlocks(block) {
Expand Down
8 changes: 4 additions & 4 deletions dist/cleave-react.min.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/cleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,7 @@ return /******/ (function(modules) { // webpackBootstrap

pps.onValueChanged.call(owner, {
target: {
name: owner.element.name,
value: pps.result,
rawValue: owner.getRawValue()
}
Expand Down Expand Up @@ -1217,8 +1218,8 @@ return /******/ (function(modules) { // webpackBootstrap
// starts with 4; 16 digits
visa: /^4\d{0,15}/,

// starts with 62; 16 digits
unionPay: /^62\d{0,14}/
// starts with 62/81; 16 digits
unionPay: /^(62|81)\d{0,14}/
},

getStrictBlocks: function (block) {
Expand Down
6 changes: 3 additions & 3 deletions dist/cleave.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"vanilla",
"react"
],
"version": "1.5.3",
"version": "1.5.4",
"files": [
"src",
"dist",
Expand Down

0 comments on commit e9d55ba

Please sign in to comment.