
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@level-two/redis
Advanced tools
A message broker and cache extension for LevelTwo. Refer to the Worker API for function definitions.
import { createLevelTwoRedis } from "@level-two/redis";
// Integrates redis pubsub & cache into a LevelTwo instance
const levelTwo = createLevelTwoRedis({
clientOptions: { url: "redis://localhost:6379" },
});
// Create a worker for getting cacheable customer objects
const worker = levelTwo.createWorker("customer", async (ids, earlyWrite) => {
const rows = await mysql.query(
"SELECT id, name FROM customers WHERE id IN (?)",
[ids]
);
rows.forEach((row) => earlyWrite(row.id, row));
});
// Service method for getting a single customer
export async function getCustomer(id: string): Promise<Customer> {
return await worker.get(id);
}
// Service method for getting a list of customers
export async function getCustomerList(ids: string[]): Promise<Customer[]> {
return await worker.getMulti(ids);
}
redis
Existing redis client that should be used in this extension
clientOptions
Configuration options for creating a new redis client
broadcastChannel
Broadcast channel name for sending/receiving actions. Defaults to "level-two-broadcast"
cachePrefix
String prefix to use in front of each cache key
cacheDisabled
Indicates if cache should be disabled or not. Defaults to enabled
cacheDefaults
LevelTwo worker cache defaults
FAQs
Redis message broker and cache extension of LevelTwo
The npm package @level-two/redis receives a total of 3 weekly downloads. As such, @level-two/redis popularity was classified as not popular.
We found that @level-two/redis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.