Skip to content

Commit

Permalink
updates dependenceies, fixes linter issues (#60)
Browse files Browse the repository at this point in the history
* updates dependenceies, fixes linter issues

* temporarily reverts crypto-js
  • Loading branch information
ygunayer authored Sep 8, 2021
1 parent c9753ec commit ee458eb
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"plugin:import/warnings",
"plugin:import/errors"
],
Expand All @@ -27,7 +26,7 @@
"test/**/*"
],
"rules": {
"no-unused-vars": ["warn", {"args": "after-used", "varsIgnorePattern": "^_.*"}],
"no-unused-vars": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"import/named": "error",
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "15.0.2",
"@typescript-eslint/eslint-plugin": "4.22.1",
"@typescript-eslint/parser": "4.22.1",
"@types/node": "16.7.13",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"ava": "3.15.0",
"axios-mock-adapter": "1.19.0",
"eslint": "7.26.0",
"eslint-config-prettier": "6.15.0",
"axios-mock-adapter": "1.20.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-prettier": "4.0.0",
"hosted-git-info": "4.0.2",
"nock": "13.0.11",
"nock": "13.1.3",
"nyc": "15.1.0",
"prettier": "2.3.0",
"prettier": "2.3.2",
"rimraf": "3.0.2",
"ts-node": "9.1.1",
"typescript": "4.2.4"
"ts-node": "10.2.1",
"typescript": "4.4.2"
},
"dependencies": {
"axios": "0.21.1",
"axios": "0.21.4",
"crypto-js": "4.0.0",
"lodash": "4.17.21"
}
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/PaymentAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import RefundPaymentRequest from '../request/RefundPaymentRequest';
import RefundPaymentTransactionRequest from '../request/RefundPaymentTransactionRequest';
import SearchStoredCardsRequest from '../request/SearchStoredCardsRequest';
import StoreCardRequest from '../request/StoreCardRequest';
import UpdateCardRequest from '../request/UpdateCardRequest';

import DataResponse from '../response/DataResponse';
import DepositPaymentResponse from '../response/DepositPaymentResponse';
Expand All @@ -25,7 +26,6 @@ import PaymentTransactionRefundResponse from '../response/PaymentTransactionRefu
import StoredCardResponse from '../response/StoredCardResponse';

import BaseAdapter from './BaseAdapter';
import UpdateCardRequest from '../request/UpdateCardRequest';

export default class PaymentAdapter extends BaseAdapter {
constructor(options: ClientCreationOptions) {
Expand Down
1 change: 0 additions & 1 deletion src/model/BounceStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ enum BounceStatus {
PayoutCompleted = 'PAYOUT_COMPLETED'
}


export default BounceStatus;
2 changes: 1 addition & 1 deletion src/model/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ApprovalStatus from './ApprovalStatus';
import BounceStatus from './BounceStatus';
import CardAssociation from './CardAssociation';
import CardType from './CardType';
import Currency from './Currency';
Expand All @@ -22,7 +23,6 @@ import TransactionPayoutStatus from './TransactionPayoutStatus';
import TransactionStatus from './TransactionStatus';
import WalletTransactionRefundCardTransactionType from './WalletTransactionRefundCardTransactionType';
import WalletTransactionType from './WalletTransactionType';
import BounceStatus from './BounceStatus';

export = {
ApprovalStatus,
Expand Down
2 changes: 1 addition & 1 deletion src/request/CreatePaymentRequest.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PaymentPhase from '../model/PaymentPhase';
import Currency from '../model/Currency';
import Installment from '../model/Installment';
import PaymentGroup from '../model/PaymentGroup';
import PaymentPhase from '../model/PaymentPhase';

import {Card} from './dto/Card';
import PaymentItem from './dto/PaymentItem';
Expand Down
3 changes: 2 additions & 1 deletion src/response/PayoutDetailResponse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PayoutDetailTransaction from './dto/PayoutDetailTransaction';
import BounceStatus from '../model/BounceStatus';

import PayoutDetailTransaction from './dto/PayoutDetailTransaction';

type PaymentResponse = {
rowDescription: string;
payoutDate: Date;
Expand Down

0 comments on commit ee458eb

Please sign in to comment.