Skip to content

Commit 3269e94

Browse files
committed
perf: change to credit-card-input-mask
1 parent f5bb55e commit 3269e94

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"clinton": "^0.14.0",
4949
"conventional-changelog-cli": "^2.0.12",
5050
"coveralls": "^3.0.3",
51+
"credit-card-input-mask": "^2.0.1",
5152
"eslint": "^5.12.1",
5253
"eslint-config-vue": "^2.0.2",
5354
"eslint-config-xo": "^0.26.0",
@@ -68,7 +69,6 @@
6869
"require-extension-hooks": "^0.3.3",
6970
"require-extension-hooks-babel": "^1.0.0",
7071
"require-extension-hooks-vue": "^3.0.0",
71-
"restricted-input": "^2.0.1",
7272
"rimraf": "^2.6.3",
7373
"rollup": "^1.1.2",
7474
"rollup-plugin-babel": "^4.3.2",

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# vue-restricted-input
22

3-
> Input mask for vue.js based on [restricted-input](https://github.com/braintree/restricted-input)
3+
> Input mask for vue.js based on [credit-card-input-mask](https://github.com/Scrum/credit-card-input-mask)
44
55
[![Travis Build Status](https://img.shields.io/travis/Scrum/vue-restricted-input/master.svg?style=flat-square&label=unix)](https://travis-ci.org/Scrum/vue-restricted-input)[![AppVeyor Build Status](https://img.shields.io/appveyor/ci/GitScrum/vue-restricted-input/master.svg?style=flat-square&label=windows)](https://ci.appveyor.com/project/GitScrum/vue-restricted-input)[![node](https://img.shields.io/node/v/vue-restricted-input.svg?style=flat-square)]()[![npm version](https://img.shields.io/npm/v/vue-restricted-input.svg?style=flat-square)](https://www.npmjs.com/package/vue-restricted-input)[![Dependency Status](https://david-dm.org/Scrum/vue-restricted-input.svg?style=flat-square)](https://david-dm.org/Scrum/vue-restricted-input)[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg?style=flat-square)](https://github.com/sindresorhus/xo)[![Coveralls status](https://img.shields.io/coveralls/Scrum/vue-restricted-input.svg?style=flat-square)](https://coveralls.io/r/Scrum/vue-restricted-input)
66

77
[![npm downloads](https://img.shields.io/npm/dm/vue-restricted-input.svg?style=flat-square)](https://www.npmjs.com/package/vue-restricted-input)[![npm](https://img.shields.io/npm/dt/vue-restricted-input.svg?style=flat-square)](https://www.npmjs.com/package/vue-restricted-input)
88

99
## Why ?
10-
[restricted-input](https://github.com/braintree/restricted-input) greater support for old browsers, perfect work with carriage position, fast.
10+
[credit-card-input-mask](https://github.com/Scrum/credit-card-input-mask) greater support for old browsers, perfect work with carriage position, fast.
1111

1212
## Install
1313

@@ -71,4 +71,4 @@ new Vue({
7171
7272
## Related
7373

74-
- [restricted-input](https://github.com/braintree/restricted-input) - Allow restricted character sets in `input` elements.
74+
- [credit-card-input-mask](https://github.com/Scrum/credit-card-input-mask) - Allow restricted character sets in `input` elements.

src/directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import RestrictedInput from 'restricted-input';
1+
import Mask from 'credit-card-input-mask';
22

33
export default {
44
inserted(element, binding) {
5-
element.masked = new RestrictedInput({
5+
element.masked = new Mask({
66
element,
77
pattern: binding.value
88
});

0 commit comments

Comments
 (0)