
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
clay-driver-base
Advanced tools
Base driver for clay
$ npm install clay-driver-base --save
'use strict'
const {Driver} = require('clay-driver-base')
// Define custom driver
class MyDriver extends Driver {
one (namespace, id) { /* ... */ }
list (namespace, condition) { /* ... */ }
create (namespace, attributes) { /* ... */ }
update (namespace, id, attributes) { /* ... */ }
destroy (namespace, id) { /* ... */ }
}
{
const clayLump = require('clay-lump')
const lump01 = clayLump({
driver: new MyDriver({/* ... */})
})
/* ... */
}
For more detail, see API Guide
Base driver for clay
Driver Class
DriverCreate driver instance
| Param | Type | Description |
|---|---|---|
| args | * |
Driver ClassAbstract driver
Constructor of Driver class
Promise.<ClayEntity>Get single entity from resource
| Param | Type | Description |
|---|---|---|
| resourceName | string | Name of resource |
| id | ClayId | Resource id |
| options | Object | Options settings |
Promise.<ClayCollection>List entities from resource
| Param | Type | Description |
|---|---|---|
| resourceName | string | Name of resource |
| condition | ListCondition | List condition query |
| options | Object | Options settings |
Promise.<ClayEntity>Create a new entity with resource
| Param | Type | Description |
|---|---|---|
| resourceName | string | Name of resource |
| attributes | Object | Resource attributes to create |
Promise.<ClayEntity>Update an existing entity in resource
| Param | Type | Description |
|---|---|---|
| resourceName | string | Name of resource |
| id | ClayId | Resource id |
| attributes | Object | Resource attributes to update |
Promise.<number>Delete a entity resource
| Param | Type | Description |
|---|---|---|
| resourceName | string | Name of resource |
| id | ClayId | Resource id |
Promise.<boolean>Drop resource
| Param | Type | Description |
|---|---|---|
| resourceName | string | Name of resource |
Promise.<Resource>List resources
This software is released under the Apache-2.0 License.
FAQs
Base driver for clay
The npm package clay-driver-base receives a total of 39 weekly downloads. As such, clay-driver-base popularity was classified as not popular.
We found that clay-driver-base demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.