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.
@janiscommerce/active-client
Advanced tools
A simple module for getting an Active Client from a field and a value
ActiveClient is a simple module for getting an Active Client from a field and a value. The module only has one method and a Model for the get.
npm install @janiscommerce/active-client
This package uses the Settings package for handle settings.
The setting key is clients
and the available settings are the following
Setting | Default Value | Description |
---|---|---|
databaseKey | _default | The database key from DB configuration |
table | clients | The clients table name |
getByField(field, value)
ASYNCHRONOUS, Search the client by a field and value given.field
: type String
, the field name. eg. 'name'.value
: type String|Integer
, the field value. eg. 'foo'.Returns a Object
with the client found or false
if client not found for field
with that value
.
const ActiveClient = require('@janiscommerce/active-client');
const client = await ActiveClient.getByField('name', 'client-name');
/**
Expected output:
{
id: 1,
name: 'client-name',
status: 5
}
*/
[1.2.1] - 2019-08-06
FAQs
A simple module for getting an Active Client from a field and a value
The npm package @janiscommerce/active-client receives a total of 5 weekly downloads. As such, @janiscommerce/active-client popularity was classified as not popular.
We found that @janiscommerce/active-client 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.