package: wip deps update

This commit is contained in:
bordun 2020-11-22 18:54:55 +01:00
parent 2c7e3d3d4b
commit 447b2544e4
3 changed files with 26 additions and 24 deletions

View file

@ -1,6 +1,6 @@
var EventEmitter = require('../../events/event-emitter'),
osc = require('../../osc'),
nanoid = require('nanoid/generate'),
{nanoid} = require('nanoid'),
widgetManager = require('../../managers/widgets'),
{urlParser} = require('../utils'),
Vm = require('../vm'),
@ -180,7 +180,7 @@ class Widget extends EventEmitter {
this.errors = {}
this.parent = options.parent
this.parentNode = options.parentNode
this.hash = options.hash || nanoid('abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
this.hash = options.hash || nanoid(10)
this.children = []
this.reCreateOptions = options.reCreateOptions
this.removed = false