Socket
Socket
Sign inDemoInstall

tallyarbiter

Package Overview
Dependencies
299
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.2 to 3.0.3

ui-dist/main.0c14b8be9cbda688393f.js

21

dist/_helpers/config.js

@@ -21,2 +21,3 @@ "use strict";

var path_1 = __importDefault(require("path"));
var crypto_1 = require("crypto");
var clone_1 = require("./clone");

@@ -36,3 +37,3 @@ var uuid_1 = require("./uuid");

security: {
jwt_private_key: require('crypto').randomBytes(256).toString('base64'),
jwt_private_key: "",
},

@@ -56,3 +57,3 @@ users: [],

remoteErrorReporting: false,
uuid: (0, uuid_1.uuidv4)()
uuid: ""
};

@@ -94,13 +95,13 @@ exports.currentConfig = (0, clone_1.clone)(exports.ConfigDefaults);

exports.currentConfig = __assign(__assign({}, (0, clone_1.clone)(exports.ConfigDefaults)), loadedConfig);
if (!loadedConfig.users || loadedConfig.users.length === 0) {
if (!loadedConfig.users || typeof loadedConfig.users !== "object" || loadedConfig.users.length === 0) {
(0, __1.logger)('Migrating user configs to the new format.', 'info-quiet');
exports.currentConfig.users = [];
(0, auth_1.addUser)({
username: exports.currentConfig.security.username_producer || "producer",
password: exports.currentConfig.security.password_producer || "12345",
username: loadedConfig.security.username_producer || "producer",
password: loadedConfig.security.password_producer || "12345",
roles: "producer"
});
(0, auth_1.addUser)({
username: exports.currentConfig.security.username_settings || "admin",
password: exports.currentConfig.security.password_settings || "12345",
username: loadedConfig.security.username_settings || "admin",
password: loadedConfig.security.password_settings || "12345",
roles: "admin"

@@ -114,8 +115,10 @@ });

}
if (!loadedConfig.uuid) {
if (!loadedConfig.uuid || typeof loadedConfig.uuid !== "string") {
(0, __1.logger)('Adding an uuid identifier to this server for using MDNS.', 'info-quiet');
exports.currentConfig.uuid = (0, uuid_1.uuidv4)();
SaveConfig(); //uuid added if missing on config save
}
if (!loadedConfig.security.jwt_private_key) {
if (!loadedConfig.security.jwt_private_key || typeof loadedConfig.security.jwt_private_key !== "string") {
(0, __1.logger)('Adding a private key for JWT authentication.', 'info-quiet');
exports.currentConfig.security.jwt_private_key = (0, crypto_1.randomBytes)(256).toString('base64');
SaveConfig(); //uuid added if missing on config save

@@ -122,0 +125,0 @@ }

{
"name": "tallyarbiter",
"version": "3.0.2",
"version": "3.0.3",
"description": "The flexible and customizable tally system",

@@ -100,3 +100,3 @@ "keywords": [

"@types/xml2js": "^0.4.9",
"electron": "^12.1.0",
"electron": "^13.6.6",
"electron-builder": "^22.11.7",

@@ -103,0 +103,0 @@ "redundancyjs": "^0.1.0",

{
"configVersion": 1,
"timestamp": 1647373490821,
"timestamp": 1648900532620,
"index": "/index.html",

@@ -15,3 +15,3 @@ "assetGroups": [

"/index.html",
"/main.89cbc5c4ee589eaf4058.js",
"/main.0c14b8be9cbda688393f.js",
"/manifest.webmanifest",

@@ -89,5 +89,5 @@ "/polyfills.a2cbd07da252e6d0eb8d.js",

"/favicon.png": "4af5a419c4bcc9bc6358e77e833a8f40b898fcba",
"/index.html": "10c25bedfb5bb2b80110d90e9d4ca4c19fd5de70",
"/index.html": "23487d973559da9ec052b54f7c1a4f728952b2e4",
"/jsoneditor-icons.15f2789dd231f36d43a4.svg": "ab494ea3944f654d927ce67bc0b515de6c84d836",
"/main.89cbc5c4ee589eaf4058.js": "0d0f254a9474c26416da8405cee42856ae5212f4",
"/main.0c14b8be9cbda688393f.js": "7b483062aa051a425ec59e3fd1b9e1020429b9e7",
"/manifest.webmanifest": "ef97a41ed26a303993648ef818e98cfaa41007f7",

@@ -94,0 +94,0 @@ "/polyfills.a2cbd07da252e6d0eb8d.js": "fbb2daf01ebe35a029ec5a0d650e7f9a63cd82c4",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc