UNPKG

strapi-plugin-soft-delete

Version:

Add a soft delete feature to your project

9 lines (6 loc) 372 B
import pluginPkg from '../package.json'; export const name = pluginPkg.strapi.name; export const pluginId = pluginPkg.name.replace(/^(@[^-,.][\w,-]+\/|strapi-)plugin-/i, ''); export const supportsContentType = (uid?: string) => { return uid?.match(/^api::/) || false;// || !uid?.match(/^\w+::/) || false; // TODO: Deleting a component doesn't use the entityService };