uuid: replace shortid lib with nanoid

This commit is contained in:
jean-emmanuel 2018-07-25 22:14:47 +02:00
parent 2b248fd3a0
commit 34b91c64af
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
var EventEmitter = require('wolfy87-eventemitter'),
uuid = require('shortid').generate()
uuid = require('nanoid')()
var reconnectInterval = 5000,
hearbeatInterval = 25000,

View file

@ -1,6 +1,6 @@
var EventEmitter = require('../../events/event-emitter'),
osc = require('../../osc'),
shortid = require('shortid'),
nanoid = require('nanoid'),
widgetManager = require('../../managers/widgets'),
{math} = require('../utils'),
scopeCss = require('scope-css'),
@ -46,7 +46,7 @@ class Widget extends EventEmitter {
this.parsers = {}
this.parent = options.root ? widgetManager : options.parent
this.parentNode = options.parentNode
this.hash = shortid.generate()
this.hash = nanoid(10)
this.childrenHashes = []
this.reCreateOptions = options.reCreateOptions