
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
loopback4-soft-delete
Advanced tools
npm install loopback4-soft-delete
Right now, this extension exports two abstract classes which are actually helping with soft delete operations.
In order to use this extension in your LB4 application, please follow below steps.
import {model, property} from '@loopback/repository';
import {SoftDeleteEntity} from 'loopback4-soft-delete';
@model({
name: 'users',
})
export class User extends SoftDeleteEntity {
@property({
type: 'number',
id: true,
})
id?: number;
// .... More properties
}
import {inject} from '@loopback/core';
import {SoftCrudRepository} from 'loopback4-soft-delete';
import {PgdbDataSource} from '../datasources';
import {User} from '../models';
export class UserRepository extends SoftCrudRepository<
User,
typeof User.prototype.id
> {
constructor(@inject('datasources.pgdb') dataSource: PgdbDataSource) {
super(User, dataSource);
}
}
FAQs
A loopback-next extension for soft delete feature.
The npm package loopback4-soft-delete receives a total of 960 weekly downloads. As such, loopback4-soft-delete popularity was classified as not popular.
We found that loopback4-soft-delete demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.