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

@iobroker/db-objects-redis

Package Overview
Dependencies
Maintainers
0
Versions
425
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 6.0.12-alpha.0-20240922-1ea0ace13 to 6.0.12-alpha.0-20240924-4e8189ae0

2

build/cjs/lib/objects/objectsInRedisClient.d.ts

@@ -154,3 +154,3 @@ /// <reference types="@iobroker/types-dev" />

rmAsync(id: string, name: string, options: CallOptions): Promise<void | ioBroker.RmResult[]>;
mkdir(id: string, dirName?: string, options?: CallOptions | null | undefined, callback?: ioBroker.ErrorCallback): void;
mkdir(id: string, dirName?: string, options?: CallOptions | null, callback?: ioBroker.ErrorCallback): void;
mkdirAsync(id: string, dirName?: string, options?: CallOptions): Promise<void>;

@@ -157,0 +157,0 @@ private _chownFileHelper;

@@ -103,5 +103,4 @@ "use strict";

return mimeInfo;
} else {
return { mimeType: isTextData ? "text/plain" : "application/octet-stream", isBinary: !isTextData };
}
return { mimeType: isTextData ? "text/plain" : "application/octet-stream", isBinary: !isTextData };
}

@@ -166,5 +165,4 @@ function checkFile(fileOptions, options, flag, defaultNewAcl) {

return import_db_base.tools.maybeCallbackWithError(callback, ERRORS.ERROR_PERMISSION, options2);
} else {
return import_db_base.tools.maybeCallbackWithError(callback, null, options2, opt);
}
return import_db_base.tools.maybeCallbackWithError(callback, null, options2, opt);
});

@@ -346,7 +344,7 @@ }

if (name.includes("..")) {
name = import_node_path.default.normalize("/" + name);
name = import_node_path.default.normalize(`/${name}`);
}
if (name.includes("..")) {
name = name.replace(/\.\./g, "");
name = import_node_path.default.normalize("/" + name);
name = import_node_path.default.normalize(`/${name}`);
}

@@ -449,5 +447,4 @@ name = name.replace(/\\/g, "/");

return import_db_base.tools.maybeCallbackWithError(callback, ERRORS.ERROR_PERMISSION, options);
} else {
return import_db_base.tools.maybeCallbackWithError(callback, null, options);
}
return import_db_base.tools.maybeCallbackWithError(callback, null, options);
}

@@ -454,0 +451,0 @@ // Annotate the CommonJS export names for ESM import in node:

@@ -154,3 +154,3 @@ /// <reference types="@iobroker/types-dev" />

rmAsync(id: string, name: string, options: CallOptions): Promise<void | ioBroker.RmResult[]>;
mkdir(id: string, dirName?: string, options?: CallOptions | null | undefined, callback?: ioBroker.ErrorCallback): void;
mkdir(id: string, dirName?: string, options?: CallOptions | null, callback?: ioBroker.ErrorCallback): void;
mkdirAsync(id: string, dirName?: string, options?: CallOptions): Promise<void>;

@@ -157,0 +157,0 @@ private _chownFileHelper;

@@ -46,3 +46,3 @@ /**

create: false,
delete: false
delete: false,
},

@@ -54,3 +54,3 @@ object: {

create: false,
delete: false
delete: false,
},

@@ -62,3 +62,3 @@ state: {

create: false,
delete: false
delete: false,
},

@@ -70,5 +70,5 @@ users: {

create: false,
delete: false
}
}
delete: false,
},
},
};

@@ -93,5 +93,3 @@ // FIXME: This should have better types. Probably Record<string, {acl: ioBroker.ObjectPermissions, [x: string | number | symbol]: any}>

}
else {
return { mimeType: isTextData ? 'text/plain' : 'application/octet-stream', isBinary: !isTextData };
}
return { mimeType: isTextData ? 'text/plain' : 'application/octet-stream', isBinary: !isTextData };
}

@@ -106,3 +104,3 @@ export function checkFile(fileOptions, options, flag, defaultNewAcl) {

permissions: (defaultNewAcl && defaultNewAcl.file) ||
CONSTS.ACCESS_USER_RW | CONSTS.ACCESS_GROUP_READ | CONSTS.ACCESS_EVERY_READ // '0644'
CONSTS.ACCESS_USER_RW | CONSTS.ACCESS_GROUP_READ | CONSTS.ACCESS_EVERY_READ, // '0644'
};

@@ -177,5 +175,3 @@ }

}
else {
return tools.maybeCallbackWithError(callback, null, options, opt);
}
return tools.maybeCallbackWithError(callback, null, options, opt);
});

@@ -192,3 +188,3 @@ }

create: true,
delete: true
delete: true,
},

@@ -200,3 +196,3 @@ object: {

write: true,
delete: true
delete: true,
},

@@ -208,3 +204,3 @@ users: {

write: true,
delete: true
delete: true,
},

@@ -216,3 +212,3 @@ state: {

create: true,
list: true
list: true,
},

@@ -222,4 +218,4 @@ other: {

http: false,
sendto: false
}
sendto: false,
},
};

@@ -390,3 +386,3 @@ }

if (name.includes('..')) {
name = path.normalize('/' + name);
name = path.normalize(`/${name}`);
}

@@ -396,3 +392,3 @@ if (name.includes('..')) {

name = name.replace(/\.\./g, '');
name = path.normalize('/' + name);
name = path.normalize(`/${name}`);
}

@@ -455,3 +451,3 @@ name = name.replace(/\\/g, '/'); // replace win path backslashes

groups: [CONSTS.SYSTEM_ADMIN_GROUP],
acl: getDefaultAdminRights()
acl: getDefaultAdminRights(),
};

@@ -535,6 +531,4 @@ }

}
else {
return tools.maybeCallbackWithError(callback, null, options);
}
return tools.maybeCallbackWithError(callback, null, options);
}
//# sourceMappingURL=objectsUtils.js.map
{
"name": "@iobroker/db-objects-redis",
"type": "module",
"version": "6.0.12-alpha.0-20240922-1ea0ace13",
"version": "6.0.12-alpha.0-20240924-4e8189ae0",
"engines": {

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

"dependencies": {
"@iobroker/db-base": "6.0.12-alpha.0-20240922-1ea0ace13",
"@iobroker/db-base": "6.0.12-alpha.0-20240924-4e8189ae0",
"deep-clone": "^3.0.3",

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

],
"gitHead": "f864a31b47322c8d4994b2a4336beaf44d364a55"
"gitHead": "3540964b91b0991a6e81f1d6f9d6e90b9e46dbff"
}

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

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