UNPKG

strapi-plugin-soft-delete

Version:

Add a soft delete feature to your project

14 lines (13 loc) 782 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.supportsContentType = exports.pluginId = exports.name = void 0; const package_json_1 = __importDefault(require("../package.json")); exports.name = package_json_1.default.strapi.name; exports.pluginId = package_json_1.default.name.replace(/^(@[^-,.][\w,-]+\/|strapi-)plugin-/i, ''); const supportsContentType = (uid) => { return (uid === null || uid === void 0 ? void 0 : uid.match(/^api::/)) || false; // || !uid?.match(/^\w+::/) || false; // TODO: Deleting a component doesn't use the entityService }; exports.supportsContentType = supportsContentType;