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

@iobroker/db-objects-jsonl

Package Overview
Dependencies
Maintainers
6
Versions
425
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iobroker/db-objects-jsonl - npm Package Compare versions

Comparing version

to
5.0.20-alpha.0-20240418-a0e0bc1d

6

build/cjs/index.d.ts

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

import { Client as ObjectsClient } from '@iobroker/db-objects-redis';
import ObjectsServer from './lib/objects/objectsInMemServerClass.js';
export declare const Client: typeof ObjectsClient;
export declare const Server: typeof ObjectsServer;
export { Client } from '@iobroker/db-objects-redis';
export { ObjectsInMemoryServerClass as Server } from './lib/objects/objectsInMemServerClass.js';
/**

@@ -6,0 +4,0 @@ * Get the default port of the objects db

"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -20,11 +18,7 @@ var __export = (target, all) => {

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var esm_exports = {};
__export(esm_exports, {
Client: () => Client,
Server: () => Server,
Client: () => import_db_objects_redis.Client,
Server: () => import_objectsInMemServerClass.ObjectsInMemoryServerClass,
getDefaultPort: () => getDefaultPort

@@ -34,5 +28,3 @@ });

var import_db_objects_redis = require("@iobroker/db-objects-redis");
var import_objectsInMemServerClass = __toESM(require("./lib/objects/objectsInMemServerClass.js"), 1);
const Client = import_db_objects_redis.Client;
const Server = import_objectsInMemServerClass.default;
var import_objectsInMemServerClass = require("./lib/objects/objectsInMemServerClass.js");
function getDefaultPort() {

@@ -39,0 +31,0 @@ return 9001;

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

declare const ObjectsInMemoryJsonlDB_base: typeof import("../../../../../node_modules/@iobroker/db-objects-file/build/esm/lib/objects/objectsInMemFileDB.js").default;
/**

@@ -6,3 +5,3 @@ * This class inherits InMemoryFileDB class and adds all relevant logic for objects

**/
export default class ObjectsInMemoryJsonlDB extends ObjectsInMemoryJsonlDB_base {
export class ObjectsInMemoryJsonlDB extends ObjectsInMemoryFileDB {
constructor(settings: any);

@@ -20,4 +19,4 @@ /** @type {JsonlDB<any>} */

}
import { ObjectsInMemoryFileDB } from '@iobroker/db-objects-file';
import { JsonlDB } from '@alcalzone/jsonl-db';
export {};
//# sourceMappingURL=objectsInMemJsonlDB.d.ts.map

@@ -27,3 +27,3 @@ "use strict";

__export(objectsInMemJsonlDB_exports, {
default: () => ObjectsInMemoryJsonlDB
ObjectsInMemoryJsonlDB: () => ObjectsInMemoryJsonlDB
});

@@ -213,3 +213,5 @@ module.exports = __toCommonJS(objectsInMemJsonlDB_exports);

// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
0 && (module.exports = {
ObjectsInMemoryJsonlDB
});
//# sourceMappingURL=objectsInMemJsonlDB.js.map

@@ -1,4 +0,4 @@

export default class ObjectsInMemoryServerClass extends ObjectsInRedisClient {
export class ObjectsInMemoryServerClass extends ObjectsInRedisClient {
constructor(settings: any);
objectsServer: ObjectsInMemServer;
objectsServer: ObjectsInMemoryServer;
syncFileDirectory(limitId: any): {

@@ -11,3 +11,3 @@ numberSuccess: number;

import { Client as ObjectsInRedisClient } from '@iobroker/db-objects-redis';
import ObjectsInMemServer from './objectsInMemServerRedis.js';
import { ObjectsInMemoryServer } from './objectsInMemServerRedis.js';
//# sourceMappingURL=objectsInMemServerClass.d.ts.map
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;

@@ -20,14 +18,10 @@ var __export = (target, all) => {

};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var objectsInMemServerClass_exports = {};
__export(objectsInMemServerClass_exports, {
default: () => ObjectsInMemoryServerClass
ObjectsInMemoryServerClass: () => ObjectsInMemoryServerClass
});
module.exports = __toCommonJS(objectsInMemServerClass_exports);
var import_db_objects_redis = require("@iobroker/db-objects-redis");
var import_objectsInMemServerRedis = __toESM(require("./objectsInMemServerRedis.js"), 1);
var import_objectsInMemServerRedis = require("./objectsInMemServerRedis.js");
class ObjectsInMemoryServerClass extends import_db_objects_redis.Client {

@@ -46,3 +40,3 @@ constructor(settings) {

};
this.objectsServer = new import_objectsInMemServerRedis.default(serverSettings);
this.objectsServer = new import_objectsInMemServerRedis.ObjectsInMemoryServer(serverSettings);
}

@@ -64,3 +58,5 @@ async destroy() {

// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
0 && (module.exports = {
ObjectsInMemoryServerClass
});
//# sourceMappingURL=objectsInMemServerClass.js.map

@@ -6,3 +6,3 @@ /// <reference types="node" resolution-mode="require"/>

**/
export default class ObjectsInMemoryServer extends ObjectsInMemoryJsonlDB {
export class ObjectsInMemoryServer extends ObjectsInMemoryJsonlDB {
/**

@@ -87,4 +87,4 @@ * Constructor

}
import ObjectsInMemoryJsonlDB from './objectsInMemJsonlDB.js';
import { ObjectsInMemoryJsonlDB } from './objectsInMemJsonlDB.js';
import net from 'node:net';
//# sourceMappingURL=objectsInMemServerRedis.d.ts.map

@@ -27,3 +27,3 @@ "use strict";

__export(objectsInMemServerRedis_exports, {
default: () => ObjectsInMemoryServer
ObjectsInMemoryServer: () => ObjectsInMemoryServer
});

@@ -39,4 +39,4 @@ module.exports = __toCommonJS(objectsInMemServerRedis_exports);

var import_db_base2 = require("@iobroker/db-base");
var import_objectsInMemJsonlDB = __toESM(require("./objectsInMemJsonlDB.js"), 1);
class ObjectsInMemoryServer extends import_objectsInMemJsonlDB.default {
var import_objectsInMemJsonlDB = require("./objectsInMemJsonlDB.js");
class ObjectsInMemoryServer extends import_objectsInMemJsonlDB.ObjectsInMemoryJsonlDB {
constructor(settings) {

@@ -742,3 +742,5 @@ super(settings);

// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});
0 && (module.exports = {
ObjectsInMemoryServer
});
//# sourceMappingURL=objectsInMemServerRedis.js.map

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

import { Client as ObjectsClient } from '@iobroker/db-objects-redis';
import ObjectsServer from './lib/objects/objectsInMemServerClass.js';
export declare const Client: typeof ObjectsClient;
export declare const Server: typeof ObjectsServer;
export { Client } from '@iobroker/db-objects-redis';
export { ObjectsInMemoryServerClass as Server } from './lib/objects/objectsInMemServerClass.js';
/**

@@ -6,0 +4,0 @@ * Get the default port of the objects db

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

import { Client as ObjectsClient } from '@iobroker/db-objects-redis';
import ObjectsServer from './lib/objects/objectsInMemServerClass.js';
export const Client = ObjectsClient;
export const Server = ObjectsServer;
export { Client } from '@iobroker/db-objects-redis';
export { ObjectsInMemoryServerClass as Server } from './lib/objects/objectsInMemServerClass.js';
/**

@@ -6,0 +4,0 @@ * Get the default port of the objects db

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

declare const ObjectsInMemoryJsonlDB_base: typeof import("../../../../../node_modules/@iobroker/db-objects-file/build/esm/lib/objects/objectsInMemFileDB.js").default;
/**

@@ -6,3 +5,3 @@ * This class inherits InMemoryFileDB class and adds all relevant logic for objects

**/
export default class ObjectsInMemoryJsonlDB extends ObjectsInMemoryJsonlDB_base {
export class ObjectsInMemoryJsonlDB extends ObjectsInMemoryFileDB {
constructor(settings: any);

@@ -20,4 +19,4 @@ /** @type {JsonlDB<any>} */

}
import { ObjectsInMemoryFileDB } from '@iobroker/db-objects-file';
import { JsonlDB } from '@alcalzone/jsonl-db';
export {};
//# sourceMappingURL=objectsInMemJsonlDB.d.ts.map

@@ -78,3 +78,3 @@ /**

**/
export default class ObjectsInMemoryJsonlDB extends ObjectsInMemoryFileDB {
export class ObjectsInMemoryJsonlDB extends ObjectsInMemoryFileDB {
constructor(settings) {

@@ -81,0 +81,0 @@ settings = settings || {};

@@ -1,4 +0,4 @@

export default class ObjectsInMemoryServerClass extends ObjectsInRedisClient {
export class ObjectsInMemoryServerClass extends ObjectsInRedisClient {
constructor(settings: any);
objectsServer: ObjectsInMemServer;
objectsServer: ObjectsInMemoryServer;
syncFileDirectory(limitId: any): {

@@ -11,3 +11,3 @@ numberSuccess: number;

import { Client as ObjectsInRedisClient } from '@iobroker/db-objects-redis';
import ObjectsInMemServer from './objectsInMemServerRedis.js';
import { ObjectsInMemoryServer } from './objectsInMemServerRedis.js';
//# sourceMappingURL=objectsInMemServerClass.d.ts.map

@@ -10,4 +10,4 @@ /**

import { Client as ObjectsInRedisClient } from '@iobroker/db-objects-redis';
import ObjectsInMemServer from './objectsInMemServerRedis.js';
export default class ObjectsInMemoryServerClass extends ObjectsInRedisClient {
import { ObjectsInMemoryServer } from './objectsInMemServerRedis.js';
export class ObjectsInMemoryServerClass extends ObjectsInRedisClient {
constructor(settings) {

@@ -25,3 +25,3 @@ settings.autoConnect = false; // delay Client connection to when we need it

};
this.objectsServer = new ObjectsInMemServer(serverSettings);
this.objectsServer = new ObjectsInMemoryServer(serverSettings);
}

@@ -28,0 +28,0 @@ async destroy() {

@@ -6,3 +6,3 @@ /// <reference types="node" resolution-mode="require"/>

**/
export default class ObjectsInMemoryServer extends ObjectsInMemoryJsonlDB {
export class ObjectsInMemoryServer extends ObjectsInMemoryJsonlDB {
/**

@@ -87,4 +87,4 @@ * Constructor

}
import ObjectsInMemoryJsonlDB from './objectsInMemJsonlDB.js';
import { ObjectsInMemoryJsonlDB } from './objectsInMemJsonlDB.js';
import net from 'node:net';
//# sourceMappingURL=objectsInMemServerRedis.d.ts.map

@@ -17,3 +17,3 @@ /**

import { RedisHandler } from '@iobroker/db-base';
import ObjectsInMemoryJsonlDB from './objectsInMemJsonlDB.js';
import { ObjectsInMemoryJsonlDB } from './objectsInMemJsonlDB.js';
// settings = {

@@ -43,3 +43,3 @@ // change: function (id, state) {},

**/
export default class ObjectsInMemoryServer extends ObjectsInMemoryJsonlDB {
export class ObjectsInMemoryServer extends ObjectsInMemoryJsonlDB {
/**

@@ -46,0 +46,0 @@ * Constructor

{
"name": "@iobroker/db-objects-jsonl",
"type": "module",
"version": "5.0.20-alpha.0-20240418-165fc4c8",
"version": "5.0.20-alpha.0-20240418-a0e0bc1d",
"engines": {

@@ -10,5 +10,5 @@ "node": ">=12.0.0"

"@alcalzone/jsonl-db": "~3.1.1",
"@iobroker/db-base": "5.0.20-alpha.0-20240418-165fc4c8",
"@iobroker/db-objects-file": "5.0.20-alpha.0-20240418-165fc4c8",
"@iobroker/db-objects-redis": "5.0.20-alpha.0-20240418-165fc4c8",
"@iobroker/db-base": "5.0.20-alpha.0-20240418-a0e0bc1d",
"@iobroker/db-objects-file": "5.0.20-alpha.0-20240418-a0e0bc1d",
"@iobroker/db-objects-redis": "5.0.20-alpha.0-20240418-a0e0bc1d",
"deep-clone": "^3.0.3",

@@ -53,3 +53,3 @@ "fs-extra": "^11.1.0"

],
"gitHead": "ba7b732f23ddf0da772e23ed6175185ec204ee6b"
"gitHead": "acbee7a1c28f373d894164718cb84f07e93d5fd2"
}

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