Skip to content

Commit

Permalink
Update uuid from v3.3.3 to v8.3.2 (#346)
Browse files Browse the repository at this point in the history
This update includes changes to the package export. The various
different versions of `uuid` that used to be provided by path are now
named exports, and the default export has been removed.

Our imports have been updated to use the new named export, as per the
migration guide [1].

[1]: https://github.com/uuidjs/uuid#upgrading-from-uuid3x
  • Loading branch information
Gudahtt authored and MajorLift committed Oct 11, 2023
1 parent 660dabd commit 5a0d080
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"jsonschema": "^1.2.4",
"nanoid": "^3.1.12",
"single-call-balance-checker-abi": "^1.0.0",
"uuid": "^3.3.2",
"uuid": "^8.3.2",
"web3": "^0.20.7",
"web3-provider-engine": "^16.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion src/assets/AssetsController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { AssetsContractController } from './AssetsContractController';
import { ApiCollectibleResponse } from './AssetsDetectionController';

const { Mutex } = require('async-mutex');
const random = require('uuid/v1');
const random = require('uuid').v1;

/**
* @type Collectible
Expand Down
2 changes: 1 addition & 1 deletion src/message-manager/MessageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AbstractMessageManager, {
OriginalRequest,
} from './AbstractMessageManager';

const random = require('uuid/v1');
const random = require('uuid').v1;

/**
* @type Message
Expand Down
2 changes: 1 addition & 1 deletion src/message-manager/PersonalMessageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AbstractMessageManager, {
OriginalRequest,
} from './AbstractMessageManager';

const random = require('uuid/v1');
const random = require('uuid').v1;

/**
* @type Message
Expand Down
2 changes: 1 addition & 1 deletion src/message-manager/TypedMessageManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import AbstractMessageManager, {
OriginalRequest,
} from './AbstractMessageManager';

const random = require('uuid/v1');
const random = require('uuid').v1;

/**
* @type TypedMessage
Expand Down
2 changes: 1 addition & 1 deletion src/transaction/TransactionController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
const MethodRegistry = require('eth-method-registry');
const EthQuery = require('eth-query');
const Transaction = require('ethereumjs-tx');
const random = require('uuid/v1');
const random = require('uuid').v1;
const { BN } = require('ethereumjs-util');
const { Mutex } = require('async-mutex');

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7124,7 +7124,7 @@ uuid@^3.3.2:
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866"
integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ==

uuid@^8.3.0:
uuid@^8.3.0, uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
Expand Down

0 comments on commit 5a0d080

Please sign in to comment.