Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@iobroker/js-controller-common

Package Overview
Dependencies
Maintainers
6
Versions
406
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iobroker/js-controller-common - npm Package Compare versions

Comparing version 4.0.0-alpha.2-20210830-d7e31ee8 to 4.0.0-alpha.20-20211202-7f48f5ea

24

lib/common/logger.js

@@ -7,12 +7,12 @@ /* jshint -W097 */

const winston = require('winston');
const DailyRotateFile = require('winston-daily-rotate-file');
const fs = require('fs');
const path = require('path');
const os = require('os');
const tools = require('./tools');
const hostname = tools.getHostName();
const Transport = require('winston-transport');
const {LEVEL} = require('triple-beam');
const deepClone = require('deep-clone');
const winston = require('winston');
const DailyRotateFile = require('winston-daily-rotate-file');
const fs = require('fs');
const path = require('path');
const os = require('os');
const tools = require('./tools');
const hostname = tools.getHostName();
const Transport = require('winston-transport');
const {LEVEL} = require('triple-beam');
const deepClone = require('deep-clone');

@@ -164,3 +164,3 @@ let SysLog;

let fName = 0;
const isWindows = os.platform().match(/^win/);
const isWindows = os.platform().startsWith('win');
Object.keys(userOptions.transport).forEach(f => {

@@ -419,3 +419,3 @@ const transport = userOptions.transport[f];

this.log({
level: os.platform().match(/^win/) ? 'info' : 'error',
level: os.platform().startsWith('win') ? 'info' : 'error',
message: `host.${hostname} Cannot delete file "${path.normalize(transport.dirname + '/' + files[i])}": ${e}`

@@ -422,0 +422,0 @@ });

@@ -5,3 +5,3 @@ /**

*
* 7'2014-2016 Bluefox <dogafox@gmail.com>
* 7'2014-2021 Bluefox <dogafox@gmail.com>
* 2014 hobbyquaker <hq@ccu.io>

@@ -51,3 +51,3 @@ *

version = process.version.replace('v', '');
version = !version.match(/^0\.10\./);
version = !version.startsWith('0.10.');
}

@@ -86,13 +86,21 @@

this.hash(key[3], parseInt(key[1], 10), function (error, newHash) {
this.hash(key[3], parseInt(key[1], 10), (error, newHash) => {
if (error) {
return callback(error);
callback(error);
} else {
callback(null, newHash === hashedPassword);
}
callback(null, newHash === hashedPassword);
});
},
complexity: _callback => {
// Todo: Check for password complexity
return true;
complexity: (password, callback) => {
let result = false;
if (typeof password === 'string') {
result =
password.length >= 8 && // minimum length is 8
password.match(/\d/) && // contains at least one digit
password.match(/[a-z]/) && // contains at least one lower case letter
password.match(/[A-Z]/); // contains at least one upper case letter
}
typeof callback === 'function' && callback(result);
return result; // true if the complexity OK
}

@@ -102,2 +110,2 @@ };

module.exports = password;
module.exports = password;
{
"name": "@iobroker/js-controller-common",
"version": "4.0.0-alpha.2-20210830-d7e31ee8",
"version": "4.0.0-alpha.20-20211202-7f48f5ea",
"engines": {

@@ -12,3 +12,4 @@ "node": ">=12.0.0"

"dependencies": {
"@alcalzone/pak": "^0.6.0",
"@alcalzone/pak": "^0.7.0",
"ci-info": "^3.2.0",
"deep-clone": "^3.0.3",

@@ -41,7 +42,11 @@ "event-stream": "^4.0.1",

"main": "index.js",
"license": "Apache 2.0",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"gitHead": "8d222d1c77eb9647893d26267d899cc0e9571bf9"
"files": [
"lib/",
"index.js"
],
"gitHead": "c83735f4ad024f449335f45897c1aa68b88e372d"
}

@@ -5,3 +5,3 @@ # Common class for ioBroker

## License
Apache 2.0
Copyright 2018-2021 bluefox <dogafox@gmail.com>
MIT
Copyright 2018-2021 bluefox <dogafox@gmail.com>

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc