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'),
cache = require('../managers/cache'),
nanoid = require('nanoid/generate'), uuid,
{nanoid} = require('nanoid'), uuid,
notifications,
locales
@ -8,7 +8,7 @@ var localUuid = ENV.id || cache.get('osc.uuid', false)
if (localUuid) {
uuid = localUuid
} else {
uuid = nanoid('0123456789abcdefghijklmnopqrstuvwxyABCDEFGHIJKLMNOPQRSTUVWXYZ', 10)
uuid = nanoid(10)
cache.set('uuid', uuid, false)
}

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