Skip to content
Browse files

[minor] Regenerated the documentation

  • Loading branch information...
1 parent a9d9d83 commit bb1bb841b14d75859d95fd83e00f527e9c095db7 @3rd-Eden 3rd-Eden committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 docs/Makefile
  2. +1 −1 docs/README.md
  3. +1 −1 docs/api.json
View
2 docs/Makefile
@@ -1,5 +1,5 @@
parse:
- @../node_modules/.bin/dox < ../lib/creditcard.js > api.json
+ @../node_modules/.bin/dox < ../index.js > api.json
generate:
@node ./generate.js > README.md
View
2 docs/README.md
@@ -247,7 +247,7 @@ exports.parse = function parse(number) {
, cvv: scheme === 'American Express'
? 4 // American Express requires 4 digits
: 3 // All other credit cards
- , pan: exports.pan(number) // PAN truncated version
+ , truncate: exports.truncate(number) // PAN truncated version
, scheme: scheme // Creditcard scheme
, validates: exports.validate(number) // Does the creditcard validate
};
View
2 docs/api.json
@@ -242,7 +242,7 @@
},
"isPrivate": false,
"ignore": false,
- "code": "exports.parse = function parse(number) {\n number = (''+ number).replace(/\\D/g, '');\n\n var scheme = exports.cardscheme(number);\n\n return {\n iin: number.slice(0, 9) // Issuer Identifier Number\n , mii: exports.mii[+number.charAt(0)] // Major Industry Identifier\n , formatted: exports.format(number) // Formatted version\n , cvv: scheme === 'American Express'\n ? 4 // American Express requires 4 digits\n : 3 // All other credit cards\n , pan: exports.pan(number) // PAN truncated version\n , scheme: scheme // Creditcard scheme\n , validates: exports.validate(number) // Does the creditcard validate\n };\n};\n}(typeof exports !== 'undefined' ? exports : (creditcard = {})));",
+ "code": "exports.parse = function parse(number) {\n number = (''+ number).replace(/\\D/g, '');\n\n var scheme = exports.cardscheme(number);\n\n return {\n iin: number.slice(0, 9) // Issuer Identifier Number\n , mii: exports.mii[+number.charAt(0)] // Major Industry Identifier\n , formatted: exports.format(number) // Formatted version\n , cvv: scheme === 'American Express'\n ? 4 // American Express requires 4 digits\n : 3 // All other credit cards\n , truncate: exports.truncate(number) // PAN truncated version\n , scheme: scheme // Creditcard scheme\n , validates: exports.validate(number) // Does the creditcard validate\n };\n};\n}(typeof exports !== 'undefined' ? exports : (creditcard = {})));",
"ctx": {
"type": "method",
"receiver": "exports",

0 comments on commit bb1bb84

Please sign in to comment.
Something went wrong with that request. Please try again.