Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge latest changes #16

Draft
wants to merge 37 commits into
base: mada-card-type
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
ff7af13
chore: update dev dependencies
jplukarski Jun 1, 2021
c240fce
chore: update dependencies
jplukarski Jun 10, 2021
47d0acd
chore: update dev dependencies
jplukarski Jun 24, 2021
736191e
chore: update dev dependencies
crookedneighbor Jul 19, 2021
f9d325b
chore: update dev dependencies
crookedneighbor Aug 18, 2021
1ccd048
chore: update packages
crookedneighbor Sep 21, 2021
421fd4f
chore: update dev dependencies
braintreeps Oct 26, 2021
3737dad
chore: update node to v16
braintreeps Oct 27, 2021
e660887
chore: update eslint-config
braintreeps Oct 27, 2021
d03ae99
chore: update dev dependencies
braintreeps Jan 4, 2022
8a3ce15
fix: remove redundant card patterns for unionpay
jplukarski Mar 17, 2022
5285782
Merge pull request #142 from braintree/union-pay-types
jplukarski Mar 18, 2022
5a73171
chore: update dependencies
braintreeps Mar 25, 2022
1a15c6a
chore: update dev dependencies
crookedneighbor Apr 11, 2022
7641379
docs: specify that normalization happens prior to creditCardType (#149)
cgdibble Jan 4, 2023
8e3a640
chore: update dependencies
crookedneighbor Mar 8, 2023
46707d0
Update deps
jplukarski Aug 21, 2023
00a2e08
Add dependabot updates
jplukarski Aug 21, 2023
ccd9839
Minor version updates
jplukarski Aug 22, 2023
65f245c
Typescript major version update
jplukarski Aug 22, 2023
1b23f0c
Update node to v18
jplukarski Aug 23, 2023
3dcb82d
update changelog
jplukarski Aug 23, 2023
5efef0c
Update changelog
jplukarski Aug 28, 2023
b80bb76
Merge pull request #156 from braintree/update-deps
jplukarski Aug 28, 2023
e38527e
Bump @babel/traverse from 7.21.2 to 7.23.2
dependabot[bot] Oct 18, 2023
9a7544a
Merge pull request #157 from braintree/dependabot/npm_and_yarn/babel/…
jplukarski Oct 25, 2023
025f58b
update changelog
jplukarski Nov 7, 2023
f101494
10.0.0
jplukarski Nov 7, 2023
ef68f2d
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 16, 2024
125e731
fix: add changelog entry
ibooker Jun 17, 2024
bfc32c4
Merge pull request #163 from braintree/dependabot/npm_and_yarn/braces…
ibooker Jun 17, 2024
8b95a89
chore: update changelog
ibooker Jun 18, 2024
949c11d
10.0.1
ibooker Jun 18, 2024
b980597
Update dependencies with vulnerabilities (#166)
ibooker Nov 20, 2024
f42e2e4
doc: update changelog
ibooker Dec 17, 2024
f6169f3
10.0.2
ibooker Dec 17, 2024
d9049ce
doc: lint updates, formatting fixes
ibooker Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: "14.x"
node-version: "18.x"
- run: npm install
- run: npm test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14
v18
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# 10.0.2

- Update (sub-)dependencies
- `cross-spawn` to 7.0.6
- `micromatch` to 4.0.8
- `semver` to 6.3.1

# 10.0.1

- Update `braces` to 3.0.3

# 10.0.0

- BREAKING CHANGES
- Update Node to v18
- DevDependencies
- Update prettier to v3
- Update eslint-plugin-prettier to v5
- Typescript to v5

# 9.1.0

- Add additional Hiper bins (#115 thanks @upigilam)
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ npm install credit-card-type
```javascript
var creditCardType = require("credit-card-type");

// The card number provided should be normalized prior to usage here.
var visaCards = creditCardType("4111");
console.log(visaCards[0].type); // 'visa'

Expand All @@ -43,6 +44,8 @@ console.log(ambiguousCards[2].niceType); // 'Maestro'

If no card types are found, this returns an empty array.

_Note:_ The card number provided should be normalized ahead of time. The card number string should not contain any non-integer values (e.g. no letters or special characters)

### `creditCardType.getTypeInfo(type: String)`

`getTypeInfo` will return a singular object (with the same structure as `creditCardType`) corresponding with the specified `type`, or undefined if the specified `type` is invalid/unknown.
Expand Down
Loading