Skip to content

Commit

Permalink
chore: bumped uuid version to latest and fix breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
iyiolapeter authored and ernest-okot committed Mar 31, 2021
1 parent 97cf044 commit e9a9d96
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 16 deletions.
31 changes: 21 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"dependencies": {
"axios": "^0.21.1",
"commander": "^2.19.0",
"uuid": "^3.3.2"
"uuid": "^8.3.2"
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
Expand All @@ -50,7 +50,7 @@
"@types/chai-as-promised": "^7.1.0",
"@types/mocha": "^5.2.5",
"@types/sinon": "^7.0.4",
"@types/uuid": "^3.4.4",
"@types/uuid": "^8.3.0",
"axios-mock-adapter": "^1.16.0",
"bluebird": "^3.5.3",
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/collections.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AxiosInstance } from "axios";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";

import { getTransactionError } from "./errors";
import { validateRequestToPay } from "./validate";
Expand Down
2 changes: 1 addition & 1 deletion src/disbursements.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AxiosInstance } from "axios";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";

import { getTransactionError } from "./errors";
import { validateTransfer } from "./validate";
Expand Down
2 changes: 1 addition & 1 deletion src/users.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AxiosInstance } from "axios";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";

import { Credentials } from "./common";

Expand Down
2 changes: 1 addition & 1 deletion test/validate.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AssertionError } from "assert";
import uuid from "uuid/v4";
import { v4 as uuid } from "uuid";

import { PaymentRequest } from "../src/collections";
import { expect } from "./chai";
Expand Down

0 comments on commit e9a9d96

Please sign in to comment.