Skip to content

Commit

Permalink
update uuid package version (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
eli-darkly committed Aug 23, 2021
1 parent 717322a commit 3b2ff6c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 11 deletions.
22 changes: 15 additions & 7 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"dependencies": {
"base64-js": "^1.3.0",
"fast-deep-equal": "^2.0.1",
"uuid": "^3.3.2"
"uuid": "^8.0.0"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/EventSender.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as errors from './errors';
import * as utils from './utils';
import uuidv1 from 'uuid/v1';
const { v1: uuidv1 } = require('uuid');

const MAX_URL_LENGTH = 2000;

Expand Down
2 changes: 1 addition & 1 deletion src/UserValidator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uuidv1 from 'uuid/v1';
const { v1: uuidv1 } = require('uuid');

import * as errors from './errors';
import * as messages from './messages';
Expand Down
2 changes: 1 addition & 1 deletion src/diagnosticEvents.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const uuidv1 = require('uuid/v1');
const { v1: uuidv1 } = require('uuid');
// Note that in the diagnostic events spec, these IDs are to be generated with UUID v4. However,
// in JS we were already using v1 for unique user keys, so to avoid bringing in two packages we
// will use v1 here as well.
Expand Down

0 comments on commit 3b2ff6c

Please sign in to comment.