From 447b2544e44da77e9c7fb9e42e1b2ea74f8fb846 Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 22 Nov 2020 18:54:55 +0100 Subject: [PATCH] package: wip deps update --- package.json | 42 +++++++++++++++-------------- src/client/ipc/index.js | 4 +-- src/client/widgets/common/widget.js | 4 +-- 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index a2ada907..19daed4b 100644 --- a/package.json +++ b/package.json @@ -20,47 +20,49 @@ "homepage": "http://openstagecontrol.ammd.net/", "license": "GPL-3.0", "dependencies": { - "@babel/core": "7.10.3", - "@babel/plugin-proposal-object-rest-spread": "7.10.3", - "@babel/polyfill": "7.10.1", - "@babel/preset-env": "7.10.3", + "@babel/core": "7.12.7", + "@babel/plugin-proposal-object-rest-spread": "7.12.1", + "@babel/polyfill": "7.12.1", + "@babel/preset-env": "7.12.7", "ansi-html": "0.0.7", "babel-eslint": "10.1.0", "babelify": "10.0.0", "bonjour": "github:jean-emmanuel/bonjour", - "browserify": "16.5.1", + "browserify": "17.0.0", "chokidar": "3.4.3", "chroma-js": "2.1.0", - "core-js": "3.6.5", + "core-js": "3.7.0", "cpr": "3.0.1", "deep-extend": "0.6.0", + "electron": "7.1.11", + "electron-installer-debian": "3.1.0", "electron-localshortcut": "3.2.1", - "electron-packager": "14.2.1", + "electron-packager": "15.1.0", "electron-packager-plugin-non-proprietary-codecs-ffmpeg": "1.0.2", "env-paths": "2.2.0", - "eslint": "7.3.1", + "eslint": "7.14.0", "exorcist": "1.0.1", - "file-saver": "2.0.2", + "file-saver": "2.0.5", "gyronorm": "2.0.6", "http-auth": "4.1.2", "json5": "2.1.3", "jsondiffpatch": "0.4.1", - "keyboardjs": "2.6.3", + "keyboardjs": "2.6.4", "licensify": "3.1.3", "loop-protect": "github:jean-emmanuel/loop-protect#v1.0.1", "minimatch": "3.0.4", "nanohtml": "1.9.1", - "nanoid": "2.1.11", - "nanomorph": "5.4.1", + "nanoid": "3.1.18", + "nanomorph": "5.4.2", "node-forge": "0.10.0", - "node-sass": "4.14.1", - "nodemon": "2.0.4", + "node-sass": "5.0.0", + "nodemon": "2.0.6", "nosleep.js": "0.11.0", - "open": "7.0.4", + "open": "7.3.0", "osc": "2.4.1", - "python-shell": "2.0.1", + "python-shell": "2.0.3", "replacestream": "4.0.3", - "sanitize-html": "1.27.0", + "sanitize-html": "2.1.2", "scope-css": "1.2.1", "screenfull": "5.0.2", "semver": "7.3.2", @@ -71,12 +73,12 @@ "through": "2.3.8", "uglifyify": "5.0.2", "webworkify": "1.5.0", - "ws": "7.3.0", - "yargs": "15.3.1" + "ws": "7.4.0", + "yargs": "16.1.1" }, "optionalDependencies": { "electron": "7.1.11", - "electron-installer-debian": "3.0.0" + "electron-installer-debian": "3.1.0" }, "scripts": { "postinstall": "echo '\\033[36m=> Dependencies installed successfully. Run \"npm run build\" to build the assets.\\033[0m\n'", diff --git a/src/client/ipc/index.js b/src/client/ipc/index.js index 62afd88a..1bed84f9 100644 --- a/src/client/ipc/index.js +++ b/src/client/ipc/index.js @@ -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) } diff --git a/src/client/widgets/common/widget.js b/src/client/widgets/common/widget.js index 353fdcd8..33269a25 100644 --- a/src/client/widgets/common/widget.js +++ b/src/client/widgets/common/widget.js @@ -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