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

@iobroker/db-objects-redis

Package Overview
Dependencies
Maintainers
6
Versions
437
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 5.0.12 to 5.0.13-alpha.0-20230904-0b3c6e0e

40

build/lib/objects/objectsInRedisClient.d.ts

@@ -30,4 +30,4 @@ /// <reference types="@iobroker/types-dev" />

group?: string;
user?: string;
owner?: string;
user?: ioBroker.ObjectIDs.User;
owner?: ioBroker.ObjectIDs.User;
ownerGroup?: string;

@@ -108,3 +108,3 @@ acl?: any;

setDefaultAcl(defaultNewAcl: ACLObject | null): Promise<void>;
getUserGroup(user: string, callback: GetUserGroupCallbackNoError): Promise<GetUserGroupPromiseReturn> | void;
getUserGroup(user: ioBroker.ObjectIDs.User, callback: GetUserGroupCallbackNoError): Promise<GetUserGroupPromiseReturn> | void;
insert(id: string, attName: string, ignore: any, options: string | Record<string, any>, obj: any, callback: (err: Error | null | undefined, param: null) => void): WMStrm;

@@ -177,4 +177,4 @@ private _writeFile;

private _subscribe;
subscribeConfig(pattern: string | string[], callback?: ioBroker.ErrorCallback): void;
subscribeConfig(pattern: string | string[], options?: CallOptions, callback?: ioBroker.ErrorCallback): void;
private subscribeConfig;
subscribe(pattern: string | string[], callback?: ioBroker.ErrorCallback): void;
subscribe(pattern: string | string[], options?: CallOptions, callback?: ioBroker.ErrorCallback): void;

@@ -186,4 +186,4 @@ subscribeAsync(pattern: string | string[], options?: CallOptions): Promise<void>;

private _unsubscribe;
unsubscribeConfig(pattern: string | string[], callback?: ioBroker.ErrorCallback): void;
unsubscribeConfig(pattern: string | string[], options?: CallOptions | null, callback?: ioBroker.ErrorCallback): void;
private unsubscribeConfig;
unsubscribe(pattern: string | string[], callback?: ioBroker.ErrorCallback): void;
unsubscribe(pattern: string | string[], options?: CallOptions | null, callback?: ioBroker.ErrorCallback): void;

@@ -206,7 +206,6 @@ unsubscribeAsync(pattern: string | string[], options: CallOptions): Promise<void>;

private _getKeys;
getKeys(pattern: string, options: CallOptions | null | undefined, callback: ioBroker.GetConfigKeysCallback, dontModify?: boolean): void;
getKeys(pattern: string, callback: ioBroker.GetConfigKeysCallback): void;
getKeys(pattern: string, options?: CallOptions | null, callback?: undefined, dontModify?: boolean): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetConfigKeysCallback>>;
getKeysAsync(id: string, options?: CallOptions): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetConfigKeysCallback>>;
getConfigKeys(pattern: string, options: CallOptions, callback: ioBroker.GetConfigKeysCallback, dontModify?: boolean): void;
getKeys(pattern: string, options: CallOptions | null | undefined, callback: ioBroker.GetKeysCallback, dontModify?: boolean): void;
getKeys(pattern: string, callback: ioBroker.GetKeysCallback): void;
getKeys(pattern: string, options?: CallOptions | null, callback?: undefined, dontModify?: boolean): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetKeysCallback>>;
getKeysAsync(id: string, options?: CallOptions): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetKeysCallback>>;
private _getObjects;

@@ -240,10 +239,9 @@ getObjects(keys: string[], callback: (err?: Error | null, objs?: ioBroker.AnyObject[]) => void): void;

getObjectView<Design extends string = string, Search extends string = string>(design: Design, search: Search, params: ioBroker.GetObjectViewParams, callback: ioBroker.GetObjectViewCallback<ioBroker.InferGetObjectViewItemType<Design, Search>>): void;
getObjectViewAsync(design: string, search: string, params?: ioBroker.GetObjectViewParams, options?: CallOptions): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetObjectViewCallback<any>>>;
getObjectViewAsync<Design extends string = string, Search extends string = string>(design: Design, search: Search, params?: ioBroker.GetObjectViewParams, options?: CallOptions): ioBroker.GetObjectViewPromise<ioBroker.InferGetObjectViewItemType<Design, Search>>;
private _getObjectList;
getObjectList(params: ioBroker.GetObjectListParams, callback: ioBroker.GetObjectListCallback): void;
getObjectList(params: ioBroker.GetObjectListParams): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetObjectListCallback>>;
getObjectList<T extends ioBroker.GetObjectListCallback>(params: ioBroker.GetObjectListParams, options?: CallOptions | null, callback?: T): T extends ioBroker.GetObjectListCallback ? void : Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetObjectListCallback>>;
getObjectList(params: ioBroker.GetObjectListParams, options: CallOptions | null, callback: ioBroker.GetObjectListCallback): void;
getObjectList(params: ioBroker.GetObjectListParams, options?: CallOptions | null): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetObjectListCallback>>;
getObjectListAsync(params: ioBroker.GetObjectListParams, options?: CallOptions): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.GetObjectListCallback>>;
getObjectList(params: ioBroker.GetObjectListParams): ioBroker.GetObjectListPromise;
getObjectList(params: ioBroker.GetObjectListParams, options?: CallOptions | null): ioBroker.GetObjectListPromise;
getObjectList(params: ioBroker.GetObjectListParams, callback: ioBroker.GetObjectListCallback<ioBroker.Object>): void;
getObjectList<T extends ioBroker.GetObjectListCallback<ioBroker.Object>>(params: ioBroker.GetObjectListParams, options?: CallOptions | null, callback?: T): T extends ioBroker.GetObjectListCallback<ioBroker.Object> ? void : ioBroker.GetObjectListPromise;
getObjectListAsync(params: ioBroker.GetObjectListParams, options?: CallOptions): ioBroker.GetObjectListPromise;
private _extendObject;

@@ -253,6 +251,2 @@ extendObject<T extends string>(id: T, obj: ioBroker.PartialObject<ioBroker.ObjectIdToObjectType<T, 'write'>>, options?: ioBroker.ExtendObjectOptions | null): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.ExtendObjectCallback>>;

extendObjectAsync(id: string, obj: Partial<ioBroker.AnyObject>, options?: ioBroker.ExtendObjectOptions): Promise<ioBroker.CallbackReturnTypeOf<ioBroker.ExtendObjectCallback>>;
setConfig(id: string, obj: ioBroker.SettableOtherObject, options: CallOptions, callback: ioBroker.SetObjectCallback): void | Promise<ioBroker.CallbackReturnTypeOf<ioBroker.SetObjectCallback>>;
delConfig(id: string, options: CallOptions, callback: ioBroker.ErrorCallback): void;
getConfig(id: string, options: CallOptions, callback: ioBroker.GetObjectCallback): void;
getConfigs(keys: string[], options: CallOptions, callback: (err?: Error | null, objs?: ioBroker.AnyObject[]) => void, dontModify: boolean): void;
/**

@@ -259,0 +253,0 @@ * Returns the object id if found

@@ -58,3 +58,3 @@ /**

type GetUserGroupCallback = (err: Error | null | undefined, user: string, groups: string[], acl: ioBroker.ObjectPermissions) => void;
export declare function getUserGroup(objects: any, user: string, callback?: GetUserGroupCallback): Promise<GetUserGroupPromiseReturn> | void;
export declare function getUserGroup(objects: any, user: ioBroker.ObjectIDs.User, callback?: GetUserGroupCallback): Promise<GetUserGroupPromiseReturn> | void;
export declare function sanitizePath(id: string, name: string): {

@@ -61,0 +61,0 @@ id: string;

@@ -302,5 +302,3 @@ "use strict";

console.log(`invalid user name: ${user}`);
user = JSON.stringify(user);
// deep copy
return db_base_1.tools.maybeCallbackWithError(callback, `invalid user name: ${user}`, user, [], (0, deep_clone_1.default)(defaultAcl.acl));
return db_base_1.tools.maybeCallbackWithError(callback, `invalid user name: ${user}`, (0, deep_clone_1.default)(user), [], (0, deep_clone_1.default)(defaultAcl.acl));
}

@@ -307,0 +305,0 @@ if (users[user]) {

{
"name": "@iobroker/db-objects-redis",
"version": "5.0.12",
"version": "5.0.13-alpha.0-20230904-0b3c6e0e",
"engines": {

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

"dependencies": {
"@iobroker/db-base": "5.0.12",
"@iobroker/db-base": "5.0.13-alpha.0-20230904-0b3c6e0e",
"deep-clone": "^3.0.3",

@@ -46,3 +46,3 @@ "ioredis": "^4.28.2",

],
"gitHead": "72526869156e91335caa1e1e0f0e86a6d827b423"
"gitHead": "f9ad33cfefac61369e51287a8c66626bb158fb9f"
}

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

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