UNPKG

lp-audit

Version:

Adds comprehensive audit trail functionality to Loopback by keeping track of who created/modified/deleted data and when they did it, and adds a revisions model compatible with Sofa/Revisionable for PHP (https://github.com/jarektkaczyk/revisionable)

10 lines (7 loc) 277 B
import { deprecate } from 'util'; import auditz from './auditz'; export default deprecate( app => app.loopback.modelBuilder.mixins.define('Auditz', auditz), 'DEPRECATED: Use mixinSources, see https://github.com/jouke/loopback-auditz' ); module.exports = exports.default;