Skip to content

Commit

Permalink
perf: change to credit-card-input-mask
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jun 27, 2019
1 parent f5bb55e commit 3269e94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"clinton": "^0.14.0",
"conventional-changelog-cli": "^2.0.12",
"coveralls": "^3.0.3",
"credit-card-input-mask": "^2.0.1",
"eslint": "^5.12.1",
"eslint-config-vue": "^2.0.2",
"eslint-config-xo": "^0.26.0",
Expand All @@ -68,7 +69,6 @@
"require-extension-hooks": "^0.3.3",
"require-extension-hooks-babel": "^1.0.0",
"require-extension-hooks-vue": "^3.0.0",
"restricted-input": "^2.0.1",
"rimraf": "^2.6.3",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# vue-restricted-input

> Input mask for vue.js based on [restricted-input](https://github.com/braintree/restricted-input)
> Input mask for vue.js based on [credit-card-input-mask](https://github.com/Scrum/credit-card-input-mask)
[![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)

[![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)

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

## Install

Expand Down Expand Up @@ -71,4 +71,4 @@ new Vue({
## Related

- [restricted-input](https://github.com/braintree/restricted-input) - Allow restricted character sets in `input` elements.
- [credit-card-input-mask](https://github.com/Scrum/credit-card-input-mask) - Allow restricted character sets in `input` elements.
4 changes: 2 additions & 2 deletions src/directive.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import RestrictedInput from 'restricted-input';
import Mask from 'credit-card-input-mask';

export default {
inserted(element, binding) {
element.masked = new RestrictedInput({
element.masked = new Mask({
element,
pattern: binding.value
});
Expand Down

0 comments on commit 3269e94

Please sign in to comment.