Skip to content

Commit 829a8cf

Browse files
authored
Merge pull request #534 from maxmind/wes/upgrade-dependencies
Upgrade dependencies
2 parents ba64f39 + de84a29 commit 829a8cf

38 files changed

+20975
-8560
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist
2+
docs
3+
node_modules

.eslintrc.js

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
module.exports = {
2+
"env": {
3+
"es6": true,
4+
"node": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"prettier"
9+
],
10+
"overrides": [
11+
{
12+
"env": {
13+
"jest": true,
14+
},
15+
"files": [
16+
"**/*.spec.js",
17+
],
18+
},
19+
{
20+
"extends": [
21+
"plugin:@typescript-eslint/recommended",
22+
],
23+
"files": [
24+
'**/*.ts'
25+
],
26+
"parser": "@typescript-eslint/parser",
27+
"parserOptions": {
28+
"project": "./tsconfig.eslint.json",
29+
"sourceType": "module"
30+
},
31+
"plugins": [
32+
"@typescript-eslint"
33+
],
34+
"rules": {}
35+
}
36+
],
37+
"parserOptions": {
38+
"ecmaVersion": "latest",
39+
"sourceType": "module",
40+
},
41+
"plugins": [
42+
"eslint-plugin-prefer-arrow",
43+
],
44+
"rules": {}
45+
};

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-node@v1
1515
with:
16-
node-version: 12
17-
- run: yarn install
18-
- run: yarn lint
19-
- run: yarn prettier:ci
16+
node-version: 16
17+
- run: npm install
18+
- run: npm run lint
19+
- run: npm run prettier:ci

.github/workflows/test.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ jobs:
1717
- uses: actions/setup-node@v1
1818
with:
1919
node-version: ${{ matrix.version }}
20-
- run: yarn install
21-
- run: yarn test --coverage
22-
- run: yarn build
23-
- run: yarn build:docs
24-
- run: yarn link
25-
- run: yarn
20+
- run: npm install
21+
- run: npm test --coverage
22+
- run: npm run build
23+
- run: npm run build:docs
24+
- run: npm link
25+
- run: npm install
2626
working-directory: e2e/js
27-
- run: yarn link '@maxmind/minfraud-api-node'
27+
- run: npm link '@maxmind/minfraud-api-node'
2828
working-directory: e2e/js
29-
- run: yarn jest
29+
- run: npx jest
3030
working-directory: e2e/js
31-
- run: yarn
31+
- run: npm install
3232
working-directory: e2e/ts
33-
- run: yarn link '@maxmind/minfraud-api-node'
33+
- run: npm link '@maxmind/minfraud-api-node'
3434
working-directory: e2e/ts
35-
- run: yarn jest
35+
- run: npx jest
3636
working-directory: e2e/ts

.husky/_/husky.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/bin/sh
22
if [ -z "$husky_skip_init" ]; then
33
debug () {
4-
[ "$HUSKY_DEBUG" = "1" ] && echo "husky (debug) - $1"
4+
if [ "$HUSKY_DEBUG" = "1" ]; then
5+
echo "husky (debug) - $1"
6+
fi
57
}
68

79
readonly hook_name="$(basename "$0")"

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn lint-staged
4+
npx lint-staged

README.dev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Steps for releasing:
88
5. Create a release PR containing the updates relating to any of the steps
99
above.
1010
6. Ensure that the release PR is merged into main.
11-
7. With `main` checked out, run `yarn publish`. This will generate the
11+
7. With `main` checked out, run `npm publish`. This will generate the
1212
docs, deploy docs, and publish the module to NPM.
1313
8. Create and push a git tag (eg `git tag v4.2.0 && git push --tags`).
1414
8. Manually create a release on GitHub to include the release-specific

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,12 @@ active LTS versions of Node.js, as well as the latest stable release.
1212

1313
## Installation
1414

15-
```
16-
yarn add @maxmind/minfraud-api-node
17-
```
18-
19-
If you are not able to use `yarn`, you may also use `npm`:
20-
2115
```
2216
npm install @maxmind/minfraud-api-node
2317
```
2418

19+
You can also use `yarn` or `pnpm`.
20+
2521
## API Documentation
2622

2723
Documentation for this API can be found [here](https://maxmind.github.io/minfraud-api-node/)

e2e/js/index.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const minFraud = require('@maxmind/minfraud-api-node');
22

33
describe('client', () => {
44
it('exists', () => {
5-
const client = new minFraud.Client('1234', 'foo');
65
expect(new minFraud.Transaction({
76
device: new minFraud.Device({
87
ipAddress: '1.1.1.1',

0 commit comments

Comments
 (0)