Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
jwplayer-errors
Advanced tools
This repo contains a standardized, numerical set of errors used by JWPlayer and its plugins.
npm i -D jwplayer-errors
Each module is a named export:
build, Category, Code, Severity, Data
You can import them all with the following syntax:
import * as JWError from 'jwplayer-errors;'
Or individually:
import Category from 'jwplayer-errors;'
Errors are composed of a Category
, Code
, Severity
, and an optional Data
object, which are passed into the build
function with the following signature:
build(category, code, severity, data)
The build function uses these arguments to generate a standardized error message, which it returns along with the numerical values (while omitting the data
object):
{
category,
code,
severity,
message
}
Important!: The data
argument must be created with a factory function from the JWError.Data
module. Data arguments are expected to conform to a certain structure.
import * as JWError from `jwplayer-errors`;
const networkErrorData = JWError.Data.Network('https://jwplayer.com', 404, 'Not found');
const error = JWError.build(
JWError.Category.NETWORK,
JWError.Code.BAD_HTTP_STATUS,
JWError.Severity.FATAL,
networkErrorData
);
FAQs
A standardized set of errors used by JWPlayer
The npm package jwplayer-errors receives a total of 0 weekly downloads. As such, jwplayer-errors popularity was classified as not popular.
We found that jwplayer-errors 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.