
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@classuper/loopback-softdelete-mixin
Advanced tools
A mixin to provide soft deletes by adding a deletedAt attribute for loopback Models
This module is designed for the Strongloop Loopback framework. It allows entities of any Model to be "soft deleted" by adding a deletedAt
attribute. Queries following the standard format will not return these entities; they can only be accessed by adding { deleted: true }
to the query object (at the same level as where
, include
etc).
npm install --save @classuper/loopback-softdelete-mixin
To use with your Models add the mixins
attribute to the definition object of your model config.
{
"name": "Widget",
"properties": {
"name": {
"type": "string",
},
},
"mixins": {
"SoftDelete" : true,
},
},
There are a number of configurable options to the mixin. You can specify an alternative property name for deletedAt
, as well as configuring deletion to "scrub" the entity. If true, this sets all but the "id" fields to null. If an array, it will only scrub properties with those names.
"mixins": {
"SoftDelete": {
"deletedAt": "deleted_at",
"scrub": true,
},
},
To run queries that include deleted items in the response, add { deleted: true }
to the query object (at the same level as where
, include
etc).
FAQs
A mixin to provide soft deletes by adding a deletedAt attribute for loopback Models
We found that @classuper/loopback-softdelete-mixin 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.