
Research
/Security News
10 npm Typosquatted Packages Deploy Multi-Stage Credential Harvester
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.
electrode-ui-logger
Advanced tools
Log well and prosper. Happy Logging!
This is a logger for UI code with an Electrode server as backend support.
When your UI code is running on the browser, the logger will save up your logs and send them to the log API {basePath}/api/logger every 10 seconds.
When your UI code is running on the server for SSR, the logger will call request.log. This is why the request option is required on the server.
$ npm install electrode-ui-logger --save
The logging interface provides a simple api for generating developer logs.
import logger from "electrode-ui-logger";
logger.log(tags, data, options);
tags - array of strings used to specify log level, transport(s) and to otherwise categorize log entries
data - string or object, for transmitting log message and other information
options - object with additional options. Currently the only option is request which is required for SSR. For CSR the options are ignored and can be considered optional.
Examples:
logger.log(["error"], {err: "some error occurred"}, {request: req});
logger.log("info", {msg: "hello, world"}); // you can use a string for tags directly
logger.info({msg: "info is hello world"});
Data objects have some special keys:
msg: To include a log message along with other data
logger.log(["info"], { a: "b", msg: "Log message" });
err: Errors should be passed in using the err field:
logger.log(["error"], { err: err });
Reserved keys (do not use as top-level keys in data): tags
"trace", "debug", "info", "warn", "error", "fatal"
(case insensitive)logger.log(["info", "warn"], {}) will be logged at warninfo if none is specifiedThese are the API aliases for different log levels:
logger.info(data, options)logger.warn(data, options)logger.fatal(data, options)logger.error(data, options)logger.debug(data, options)logger.trace(data, options)FAQs
Electrode Logging Utility for UI code
We found that electrode-ui-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.