
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-entity
Advanced tools

Entity class for ClayDB
$ npm install clay-entity --save
'use strict'
const clayEntity = require('clay-entity')
{
let entity01 = clayEntity({
title: 'Wonderful Banana'
})
console.log(entity01)
}
Entity class for ClayDB
DecoratedEntity Class
EntityCreate a Entity instance
| Param | Type | Description |
|---|---|---|
| args | * |
DecoratedEntityDecorate an entity
| Param | Type | Description |
|---|---|---|
| decorate | Entity |
booleanDetect a instance is entity or not
| Param | Type | Description |
|---|---|---|
| obj | * | Object to check |
DecoratedEntity ClassConstructor of DecoratedEntity class
| Param | Type | Description |
|---|---|---|
| entity | Entity | Entity to decorate |
*Get entity attribute.
| Param | Type | Description |
|---|---|---|
| name | string | Name of attribute |
DecoratedEntitySet value
| Param | Type | Description |
|---|---|---|
| name | string | Name of attribute to set |
| value | * | Value to set |
DecoratedEntitySet values
| Param | Type | Description |
|---|---|---|
| attributes | Object | Attributes to set |
| options | Object | Optional settings |
| options.allowReserved | boolean | Allow to set reserved |
DecoratedEntitySet $$at attribute
| Param | Type | Description |
|---|---|---|
| at | Date | Date data set at |
DateGet $$at attribute
DecoratedEntitySet $$by attribute
| Param | Type | Description |
|---|---|---|
| by | string | Lump id |
stringGet $$by attribute
DecoratedEntitySeal this entity
| Param | Type | Description |
|---|---|---|
| privateKey | string | Private key to seal |
stringGet seal
DecoratedEntitySet resource name as as
| Param | Type | Description |
|---|---|---|
| as | string | As |
stringGet as
DecoratedEntitySet entity number as num
| Param | Type | Description |
|---|---|---|
| num | string | As |
stringGet num
booleanVerify the entity with public key
| Param | Type | Description |
|---|---|---|
| publicKey | string |
ObjectConvert into value object
This software is released under the Apache-2.0 License.
FAQs
Entity class for ClayDB
We found that clay-entity 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.