File tree Expand file tree Collapse file tree 7 files changed +19
-17
lines changed
Expand file tree Collapse file tree 7 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 124124 "tinycolor2" : " ^1.6.0" ,
125125 "tus-js-client" : " ^4.3.1" ,
126126 "use-resize-observer" : " ^9.1.0" ,
127- "uuid" : " https://registry.npmjs.org/uuid/-/uuid-2.0.2.tgz " ,
127+ "uuid" : " ^11.x " ,
128128 "wavesurfer.js" : " ^7.9.4"
129129 },
130130 "devDependencies" : {
Original file line number Diff line number Diff line change 11import { createAction } from "redux-actions" ;
22import isString from "lodash/isString" ;
33import isObject from "lodash/isObject" ;
4- import uuid from "uuid" ;
4+ import { v1 as uuidv1 } from "uuid" ;
55
66export const flush = createAction ( "ENTITY_STORE_FLUSH" , passedMetas => {
77 let metas ;
@@ -18,7 +18,7 @@ export const request = createAction(
1818 return { ...options , request : requestConfig , state : 0 } ;
1919 } ,
2020 ( apiConfig , meta = null ) => {
21- return meta || uuid . v1 ( ) ;
21+ return meta || uuidv1 ( ) ;
2222 }
2323) ;
2424/* eslint-enable no-unused-vars */
Original file line number Diff line number Diff line change 11import { createAction } from "redux-actions" ;
2- import uuid from "uuid" ;
2+ import { v1 as uuidv1 } from "uuid" ;
33
44// Add notification that will assign a random ID if one does not exist already
55export const addNotification = createAction ( "ADD_NOTIFICATION" , subject => {
66 const notification = subject ;
77 if ( ! notification . id ) {
8- notification . id = uuid . v1 ( ) ;
8+ notification . id = uuidv1 ( ) ;
99 }
1010 return notification ;
1111} ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import get from "lodash/get";
33import CookieHelper from "helpers/cookie/Browser" ;
44import config from "config" ;
55import ch from "helpers/consoleHelpers" ;
6- import uuid from "uuid" ;
6+ import { v1 as uuidv1 } from "uuid" ;
77import { entityStoreActions , currentUserActions } from "actions" ;
88import { analyticEventsAPI , requests } from "api" ;
99import { useFromStore } from "hooks" ;
@@ -18,13 +18,13 @@ function manifoldAnalyticsEnabled(settings) {
1818}
1919
2020function generateVisitorToken ( ) {
21- const token = uuid . v1 ( ) ;
21+ const token = uuidv1 ( ) ;
2222 cookie . write ( "visitorToken" , token , { expires : 365 } ) ;
2323 return token ;
2424}
2525
2626function generateVisitToken ( ) {
27- const token = uuid . v1 ( ) ;
27+ const token = uuidv1 ( ) ;
2828 cookie . write ( "visitToken" , token , { expires : 1 } ) ;
2929 return token ;
3030}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { formatDuration } from "date-fns/formatDuration";
1010import { startOfDay } from "date-fns/startOfDay" ;
1111import { endOfDay } from "date-fns/endOfDay" ;
1212import { sub } from "date-fns/sub" ;
13- import uuid from "uuid" ;
13+ import { v4 as uuidv4 } from "uuid" ;
1414
1515const { request } = entityStoreActions ;
1616
@@ -23,7 +23,7 @@ export default function withAnalyticsReport(WrappedComponent) {
2323 WrappedComponent
2424 ) } )`;
2525
26- const requestUUID = uuid ( ) ;
26+ const requestUUID = uuidv4 ( ) ;
2727 const requestName = `${ requests . beAnalyticsReport } -${ requestUUID } ` ;
2828
2929 class WithAnalyticsReport extends React . PureComponent {
Original file line number Diff line number Diff line change 1- import uuid from "uuid" ;
1+ import { v1 as uuidv1 } from "uuid" ;
22
33class PluginRegistry {
44 constructor ( ) {
55 this . _registry = { } ;
66 }
77
88 add ( component ) {
9- const id = uuid . v1 ( ) ;
9+ const id = uuidv1 ( ) ;
1010 this . _registry [ id ] = component ;
1111 return id ;
1212 }
Original file line number Diff line number Diff line change @@ -9229,7 +9229,7 @@ __metadata:
92299229 true-case-path: "npm:^2.2.1"
92309230 tus-js-client: "npm:^4.3.1"
92319231 use-resize-observer: "npm:^9.1.0"
9232- uuid: "https://registry.npmjs.org/uuid/-/uuid-2.0.2.tgz "
9232+ uuid: "npm:^11.x "
92339233 wait-on: "npm:^8.0.3"
92349234 wavesurfer.js: "npm:^7.9.4"
92359235 webpack: "npm:^5.x"
@@ -14287,10 +14287,12 @@ __metadata:
1428714287 languageName: node
1428814288 linkType: hard
1428914289
14290- "uuid@https://registry.npmjs.org/uuid/-/uuid-2.0.2.tgz":
14291- version: 2.0.2
14292- resolution: "uuid@npm:2.0.2"
14293- checksum: 10c0/a0a40e501fe790e5cdde1c559c06a72b38455b42be81d1b241328fc7f384bbc74e871bca49fd56b813a8bd6a0ac318f1a81e2e8144332e2e35b205f8e32933fb
14290+ "uuid@npm:^11.x":
14291+ version: 11.1.0
14292+ resolution: "uuid@npm:11.1.0"
14293+ bin:
14294+ uuid: dist/esm/bin/uuid
14295+ checksum: 10c0/34aa51b9874ae398c2b799c88a127701408cd581ee89ec3baa53509dd8728cbb25826f2a038f9465f8b7be446f0fbf11558862965b18d21c993684297628d4d3
1429414296 languageName: node
1429514297 linkType: hard
1429614298
You can’t perform that action at this time.
0 commit comments