New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iobroker/js-controller-common-db

Package Overview
Dependencies
Maintainers
0
Versions
409
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 7.0.2 to 7.0.3

4

build/cjs/index.js

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

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -23,0 +27,0 @@ mod

1

build/cjs/lib/common/aliasProcessing.d.ts

@@ -1,2 +0,1 @@

/// <reference types="@iobroker/types-dev" />
interface ApplyAliasTransformerOptions {

@@ -3,0 +2,0 @@ /** State used for calculations */

@@ -1,2 +0,1 @@

/// <reference types="@iobroker/types-dev" />
type SharedDatabaseOptions = ioBroker.ObjectsDatabaseOptions | ioBroker.StatesDatabaseOptions;

@@ -3,0 +2,0 @@ interface DefaultRedisInterviewOptions<TConfig extends SharedDatabaseOptions> {

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

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -23,0 +27,0 @@ mod

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

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -31,2 +35,3 @@ mod

module.exports = __toCommonJS(logger_exports);
var __import_meta_url = typeof document === "undefined" ? new (require("url".replace("", ""))).URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
var import_winston = __toESM(require("winston"), 1);

@@ -43,5 +48,4 @@ var import_winston_daily_rotate_file = __toESM(require("winston-daily-rotate-file"), 1);

var import_node_module = require("node:module");
const import_meta = {};
const thisDir = url.fileURLToPath(new URL(".", import_meta.url || `file://${__filename}`));
const require2 = (0, import_node_module.createRequire)(import_meta.url || `file://${__filename}`);
const thisDir = url.fileURLToPath(new URL(".", __import_meta_url || `file://${__filename}`));
const require2 = (0, import_node_module.createRequire)(__import_meta_url || `file://${__filename}`);
const hostname = tools.getHostName();

@@ -269,6 +273,11 @@ let SysLog;

datePattern: "YYYY-MM-DD",
//json: false, // If true, messages will be logged as JSON (default true). TODO format.json()
level,
silent: false,
localTime: true,
//colorize: (userOptions.colorize === undefined) ? true : userOptions.colorize, // TODO format.colorize()
//timestamp: timestamp, // TODO: format.timestamp()
//label: prefix || '', // TODO format.label()
handleExceptions: false
//maxSize: defaultMaxSize
};

@@ -283,2 +292,5 @@ options.transports.push(new import_winston_daily_rotate_file.default(opt));

format: import_winston.default.format.combine(import_winston.default.format.printf(formatter))
//colorize: (userOptions.colorize === undefined) ? true : userOptions.colorize, // TODO format.colorize()
//timestamp: timestamp, // TODO: format.timestamp()
//label: prefix || '' // TODO format.label()
}));

@@ -311,3 +323,8 @@ }

this.transports.forEach((transport) => {
if (transport.name !== "dailyRotateFile" || !transport.options || transport.options.name !== tools.appName) {
if (
/** @ts-expect-error we use undocumented stuff here TODO */
transport.name !== "dailyRotateFile" || /** @ts-expect-error we use undocumented stuff here TODO */
!transport.options || /** @ts-expect-error we use undocumented stuff here TODO */
transport.options.name !== tools.appName
) {
return;

@@ -323,3 +340,3 @@ }

}
const forXdays = new Date();
const forXdays = /* @__PURE__ */ new Date();
forXdays.setDate(forXdays.getDate() - daysCount - 1);

@@ -342,2 +359,3 @@ for (let i = 0; i < files2.length; i++) {

message: `host.${hostname} Cannot delete file "${import_node_path.default.normalize(
/** @ts-expect-error we use undocumented stuff here TODO */
`${transport.dirname}/${files2[i]}`

@@ -347,2 +365,3 @@ )}": ${e}`

console.log(`host.${hostname} Cannot delete file "${import_node_path.default.normalize(
/** @ts-expect-error we use undocumented stuff here TODO */
`${transport.dirname}/${files2[i]}`

@@ -362,7 +381,7 @@ )}": ${e.message}`);

function getDate() {
const ts = new Date();
const ts = /* @__PURE__ */ new Date();
return `${ts.getFullYear()}-${(ts.getMonth() + 1).toString().padStart(2, "0")}-${ts.getDate().toString().padStart(2, "0")}`;
}
function timestamp(date) {
const ts = date ? new Date(date) : new Date();
const ts = date ? new Date(date) : /* @__PURE__ */ new Date();
return `${ts.getFullYear()}-${(ts.getMonth() + 1).toString().padStart(2, "0")}-${ts.getDate().toString().padStart(2, "0")} ${ts.getHours().toString().padStart(2, "0")}:${ts.getMinutes().toString().padStart(2, "0")}:${ts.getSeconds().toString().padStart(2, "0")}.${ts.getMilliseconds().toString().padStart(3, "0")} `;

@@ -369,0 +388,0 @@ }

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

var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,

@@ -66,3 +70,6 @@ mod

if (typeof password2 === "string") {
result = password2.length >= 8 && /\d/.test(password2) && /[a-z]/.test(password2) && /[A-Z]/.test(password2);
result = password2.length >= 8 && // minimum length is 8
/\d/.test(password2) && // contains at least one digit
/[a-z]/.test(password2) && // contains at least one lower case letter
/[A-Z]/.test(password2);
}

@@ -69,0 +76,0 @@ typeof callback === "function" && callback(result);

@@ -36,2 +36,8 @@ "use strict";

}
/**
* Attempt to fetch session by the given `sid`.
*
* @param sid Session ID
* @param fn callback
*/
get(sid, fn) {

@@ -50,2 +56,10 @@ this.adapter.getSession(sid, (obj) => {

}
/**
* Commit the given `sess` object associated with the given `sid`.
*
* @param sid Session ID
* @param ttl Time to live
* @param sess the session
* @param fn callback
*/
set(sid, ttl, sess, fn) {

@@ -62,2 +76,8 @@ if (typeof ttl === "object") {

}
/**
* Destroy the session associated with the given `sid`.
*
* @param sid Session ID
* @param fn callback
*/
destroy(sid, fn) {

@@ -64,0 +84,0 @@ this.adapter.destroySession(sid, fn);

@@ -1,5 +0,1 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="@iobroker/types-dev" />
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { type ChildProcessPromise } from 'promisify-child-process';

@@ -6,0 +2,0 @@ import type { CommandResult, PackageManager } from '@alcalzone/pak';

@@ -1,2 +0,1 @@

/// <reference types="@iobroker/types-dev" />
interface ApplyAliasTransformerOptions {

@@ -3,0 +2,0 @@ /** State used for calculations */

@@ -1,2 +0,1 @@

/// <reference types="@iobroker/types-dev" />
type SharedDatabaseOptions = ioBroker.ObjectsDatabaseOptions | ioBroker.StatesDatabaseOptions;

@@ -3,0 +2,0 @@ interface DefaultRedisInterviewOptions<TConfig extends SharedDatabaseOptions> {

@@ -1,5 +0,1 @@

/// <reference types="node" resolution-mode="require"/>
/// <reference types="@iobroker/types-dev" />
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
import { type ChildProcessPromise } from 'promisify-child-process';

@@ -6,0 +2,0 @@ import type { CommandResult, PackageManager } from '@alcalzone/pak';

{
"name": "@iobroker/js-controller-common-db",
"type": "module",
"version": "7.0.2",
"version": "7.0.3",
"engines": {

@@ -75,3 +75,3 @@ "node": ">=18.0.0"

],
"gitHead": "06427179951aa037bdf485c0ea2483142c10d903"
"gitHead": "1c716ca37fe7c26d4f56571f90d33be69d45726e"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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