Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit 9e80973

Browse files
authored
Merge pull request #273 from gwu/upgrade-uuid-dep
upgrade uuid dep to support bundler tree shaking
2 parents 0f7ec93 + 775dbd0 commit 9e80973

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const looselyValidate = require('@segment/loosely-validate-event')
66
const axios = require('axios')
77
const axiosRetry = require('axios-retry')
88
const ms = require('ms')
9-
const uuid = require('uuid/v4')
9+
const { v4: uuid } = require('uuid')
1010
const md5 = require('md5')
1111
const version = require('./package.json').version
1212
const isString = require('lodash.isstring')

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"md5": "^2.2.1",
4141
"ms": "^2.0.0",
4242
"remove-trailing-slash": "^0.1.0",
43-
"uuid": "^3.2.1"
43+
"uuid": "^8.3.2"
4444
},
4545
"devDependencies": {
4646
"ava": "^0.25.0",

yarn.lock

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6179,10 +6179,15 @@ [email protected]:
61796179
resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713"
61806180
integrity sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=
61816181

6182-
uuid@^3.0.1, uuid@^3.2.1, uuid@^3.3.2:
6182+
uuid@^3.0.1, uuid@^3.3.2:
61836183
version "3.3.2"
61846184
resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131"
61856185

6186+
uuid@^8.3.2:
6187+
version "8.3.2"
6188+
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
6189+
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==
6190+
61866191
validate-npm-package-license@^3.0.1:
61876192
version "3.0.4"
61886193
resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a"

0 commit comments

Comments
 (0)