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

@iobroker/db-base

Package Overview
Dependencies
Maintainers
6
Versions
424
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iobroker/db-base - npm Package Compare versions

Comparing version 5.0.20-alpha.0-20240323-74044f09 to 5.0.20-alpha.0-20240326-1f96ea5e

2

build/cjs/lib/inMemFileDB.d.ts

@@ -72,3 +72,3 @@ /**

* and general subscription and publish functionality
**/
*/
export declare class InMemoryFileDB {

@@ -75,0 +75,0 @@ private settings;

@@ -44,2 +44,3 @@ /// <reference types="node" />

* Initialize and register all data handlers to send out events on new commands
*
* @param socket Network Socket/Connection

@@ -51,4 +52,4 @@ * @param options options objects, currently mainly for logger

* Handle one incoming command, assign responseId and emit event to be handled
*
* @param data Array RESP data
* @private
*/

@@ -59,5 +60,5 @@ _handleCommand(data: any[]): void;

* if it needs to wait till earlier responses are ready
*
* @param responseId ID of the response
* @param data Buffer to send out
* @private
*/

@@ -67,4 +68,4 @@ _sendQueued(responseId: ResponseId, data: Buffer): void;

* Really write out a response to the network connection
*
* @param data Buffer to send out
* @private
*/

@@ -74,2 +75,3 @@ _write(data: Buffer): void;

* Guard to make sure a response is valid to be sent out
*
* @param responseId ID of the response

@@ -85,2 +87,3 @@ * @param data Buffer to send out

* Return if socket/handler active or closed
*
* @returns is Handler/Connection active (not closed)

@@ -91,2 +94,3 @@ */

* Encode RESP's Null value to RESP buffer and send out
*
* @param responseId ID of the response

@@ -97,2 +101,3 @@ */

* Encode RESP's Null Array value to RESP buffer and send out
*
* @param responseId ID of the response

@@ -103,2 +108,3 @@ */

* Encode string to RESP buffer and send out
*
* @param responseId ID od the response

@@ -110,2 +116,3 @@ * @param str String to encode

* Encode error object to RESP buffer and send out
*
* @param responseId ID of the response

@@ -117,2 +124,3 @@ * @param error Error object with error details to send out

* Encode integer to RESP buffer and send out
*
* @param responseId ID of the response

@@ -124,2 +132,3 @@ * @param num Integer to send out

* Encode RESP's bulk string to RESP buffer and send out
*
* @param responseId ID of the response

@@ -131,2 +140,3 @@ * @param str String to send out

* Encode RESP's bulk buffer to RESP buffer.
*
* @param responseId ID of the response

@@ -138,2 +148,3 @@ * @param buf Buffer to send out

* Encode an Array depending on the type of the elements
*
* @param arr Array to encode

@@ -145,2 +156,3 @@ * @returns Array with Buffers with encoded values

* Encode a array values to buffers and send out
*
* @param responseId ID of the response

@@ -153,3 +165,2 @@ * @param arr Array to send out

*
* @private
*/

@@ -160,4 +171,3 @@ _handleMulti(): void;

*
* @param {number} responseId ID of the response
* @private
* @param responseId ID of the response
*/

@@ -167,5 +177,4 @@ _handleExec(responseId: ResponseId): void;

* Builds up the exec response and sends it
*
* @param multiObj the multi object to send out
*
* @private
*/

@@ -179,3 +188,2 @@ _sendExecResponse(multiObj: FullMultiCallElement): void;

* @param buf buffer to include in response
* @private
*/

@@ -182,0 +190,0 @@ _handleMultiResponse(responseId: ResponseId, index: number, buf: Buffer): void;

@@ -72,3 +72,3 @@ /**

* and general subscription and publish functionality
**/
*/
export declare class InMemoryFileDB {

@@ -75,0 +75,0 @@ private settings;

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

* and general subscription and publish functionality
**/
*/
class InMemoryFileDB {

@@ -25,0 +25,0 @@ settings;

@@ -44,2 +44,3 @@ /// <reference types="node" />

* Initialize and register all data handlers to send out events on new commands
*
* @param socket Network Socket/Connection

@@ -51,4 +52,4 @@ * @param options options objects, currently mainly for logger

* Handle one incoming command, assign responseId and emit event to be handled
*
* @param data Array RESP data
* @private
*/

@@ -59,5 +60,5 @@ _handleCommand(data: any[]): void;

* if it needs to wait till earlier responses are ready
*
* @param responseId ID of the response
* @param data Buffer to send out
* @private
*/

@@ -67,4 +68,4 @@ _sendQueued(responseId: ResponseId, data: Buffer): void;

* Really write out a response to the network connection
*
* @param data Buffer to send out
* @private
*/

@@ -74,2 +75,3 @@ _write(data: Buffer): void;

* Guard to make sure a response is valid to be sent out
*
* @param responseId ID of the response

@@ -85,2 +87,3 @@ * @param data Buffer to send out

* Return if socket/handler active or closed
*
* @returns is Handler/Connection active (not closed)

@@ -91,2 +94,3 @@ */

* Encode RESP's Null value to RESP buffer and send out
*
* @param responseId ID of the response

@@ -97,2 +101,3 @@ */

* Encode RESP's Null Array value to RESP buffer and send out
*
* @param responseId ID of the response

@@ -103,2 +108,3 @@ */

* Encode string to RESP buffer and send out
*
* @param responseId ID od the response

@@ -110,2 +116,3 @@ * @param str String to encode

* Encode error object to RESP buffer and send out
*
* @param responseId ID of the response

@@ -117,2 +124,3 @@ * @param error Error object with error details to send out

* Encode integer to RESP buffer and send out
*
* @param responseId ID of the response

@@ -124,2 +132,3 @@ * @param num Integer to send out

* Encode RESP's bulk string to RESP buffer and send out
*
* @param responseId ID of the response

@@ -131,2 +140,3 @@ * @param str String to send out

* Encode RESP's bulk buffer to RESP buffer.
*
* @param responseId ID of the response

@@ -138,2 +148,3 @@ * @param buf Buffer to send out

* Encode an Array depending on the type of the elements
*
* @param arr Array to encode

@@ -145,2 +156,3 @@ * @returns Array with Buffers with encoded values

* Encode a array values to buffers and send out
*
* @param responseId ID of the response

@@ -153,3 +165,2 @@ * @param arr Array to send out

*
* @private
*/

@@ -160,4 +171,3 @@ _handleMulti(): void;

*
* @param {number} responseId ID of the response
* @private
* @param responseId ID of the response
*/

@@ -167,5 +177,4 @@ _handleExec(responseId: ResponseId): void;

* Builds up the exec response and sends it
*
* @param multiObj the multi object to send out
*
* @private
*/

@@ -179,3 +188,2 @@ _sendExecResponse(multiObj: FullMultiCallElement): void;

* @param buf buffer to include in response
* @private
*/

@@ -182,0 +190,0 @@ _handleMultiResponse(responseId: ResponseId, index: number, buf: Buffer): void;

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

* Initialize and register all data handlers to send out events on new commands
*
* @param socket Network Socket/Connection

@@ -88,4 +89,4 @@ * @param options options objects, currently mainly for logger

* Handle one incoming command, assign responseId and emit event to be handled
*
* @param data Array RESP data
* @private
*/

@@ -154,5 +155,5 @@ _handleCommand(data) {

* if it needs to wait till earlier responses are ready
*
* @param responseId ID of the response
* @param data Buffer to send out
* @private
*/

@@ -200,4 +201,4 @@ _sendQueued(responseId, data) {

* Really write out a response to the network connection
*
* @param data Buffer to send out
* @private
*/

@@ -209,2 +210,3 @@ _write(data) {

* Guard to make sure a response is valid to be sent out
*
* @param responseId ID of the response

@@ -240,2 +242,3 @@ * @param data Buffer to send out

* Return if socket/handler active or closed
*
* @returns is Handler/Connection active (not closed)

@@ -248,2 +251,3 @@ */

* Encode RESP's Null value to RESP buffer and send out
*
* @param responseId ID of the response

@@ -262,2 +266,3 @@ */

* Encode RESP's Null Array value to RESP buffer and send out
*
* @param responseId ID of the response

@@ -276,2 +281,3 @@ */

* Encode string to RESP buffer and send out
*
* @param responseId ID od the response

@@ -291,2 +297,3 @@ * @param str String to encode

* Encode error object to RESP buffer and send out
*
* @param responseId ID of the response

@@ -307,2 +314,3 @@ * @param error Error object with error details to send out

* Encode integer to RESP buffer and send out
*
* @param responseId ID of the response

@@ -322,2 +330,3 @@ * @param num Integer to send out

* Encode RESP's bulk string to RESP buffer and send out
*
* @param responseId ID of the response

@@ -337,2 +346,3 @@ * @param str String to send out

* Encode RESP's bulk buffer to RESP buffer.
*
* @param responseId ID of the response

@@ -352,2 +362,3 @@ * @param buf Buffer to send out

* Encode an Array depending on the type of the elements
*
* @param arr Array to encode

@@ -379,2 +390,3 @@ * @returns Array with Buffers with encoded values

* Encode a array values to buffers and send out
*
* @param responseId ID of the response

@@ -395,3 +407,2 @@ * @param arr Array to send out

*
* @private
*/

@@ -409,4 +420,3 @@ _handleMulti() {

*
* @param {number} responseId ID of the response
* @private
* @param responseId ID of the response
*/

@@ -428,5 +438,4 @@ _handleExec(responseId) {

* Builds up the exec response and sends it
*
* @param multiObj the multi object to send out
*
* @private
*/

@@ -444,3 +453,2 @@ _sendExecResponse(multiObj) {

* @param buf buffer to include in response
* @private
*/

@@ -447,0 +455,0 @@ _handleMultiResponse(responseId, index, buf) {

{
"name": "@iobroker/db-base",
"version": "5.0.20-alpha.0-20240323-74044f09",
"version": "5.0.20-alpha.0-20240326-1f96ea5e",
"engines": {

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

"dependencies": {
"@iobroker/js-controller-common": "5.0.20-alpha.0-20240323-74044f09",
"@iobroker/js-controller-common": "5.0.20-alpha.0-20240326-1f96ea5e",
"deep-clone": "^3.0.3",

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

],
"gitHead": "487be77dd42776c1fb2635c309c0d7c64dcefe57"
"gitHead": "b043ba922df87f3b0f03340c01c03a2a48e9f16b"
}

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

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