uuid: replace shortid lib with nanoid

This commit is contained in:
jean-emmanuel 2018-07-25 22:14:47 +02:00
parent 999309dd8e
commit 23669c859e
3 changed files with 4 additions and 4 deletions

View file

@ -39,12 +39,12 @@
"licensify": "3.1.3",
"mathjs": "^5.0.1",
"minimatch": "^3.0.4",
"nanoid": "^1.1.0",
"nanomorph": "^5.1.3",
"node-sass": "4.9.0",
"nodemon": "1.17.5",
"scope-css": "^1.1.0",
"screenfull": "3.3.2",
"shortid": "2.2.8",
"stacktrace-js": "^2.0.0",
"through": "^2.3.8",
"uglifyify": "5.0.1",

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