@forestadmin/datasource-customizer
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const datasource_toolkit_1 = require("@forestadmin/datasource-toolkit"); | ||
const collection_decorator_1 = __importDefault(require("../collection-decorator")); | ||
@@ -20,3 +21,3 @@ /** This decorator allows hiding fields */ | ||
} | ||
if (field.type === 'Column' && field.isPrimaryKey) { | ||
if (datasource_toolkit_1.SchemaUtils.isPrimaryKey(this.childCollection.schema, name)) { | ||
throw new Error(`Cannot hide primary key`); | ||
@@ -65,2 +66,2 @@ } | ||
exports.default = PublicationFieldCollectionDecorator; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kZWNvcmF0b3JzL3B1YmxpY2F0aW9uLWZpZWxkL2NvbGxlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDQSxtRkFBMEQ7QUFHMUQsMENBQTBDO0FBQzFDLE1BQXFCLG1DQUFvQyxTQUFRLDhCQUFtQjtJQUFwRjs7UUFFbUIsZ0JBQVcsR0FBZ0IsSUFBSSxHQUFHLEVBQUUsQ0FBQztJQTREeEQsQ0FBQztJQTFEQyx1Q0FBdUM7SUFDdkMscUJBQXFCLENBQUMsSUFBWSxFQUFFLE9BQWdCO1FBQ2xELE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxlQUFlLENBQUMsTUFBTSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUV2RCxJQUFJLENBQUMsS0FBSyxFQUFFO1lBQ1YsTUFBTSxJQUFJLEtBQUssQ0FBQyxrQkFBa0IsSUFBSSxHQUFHLENBQUMsQ0FBQztTQUM1QztRQUVELElBQUksS0FBSyxDQUFDLElBQUksS0FBSyx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BQyxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxDQUMxRixDQUFDO0lBQ0osQ0FBQztDQUNGO0FBOURELHNEQThEQyJ9 |
{ | ||
"name": "@forestadmin/datasource-customizer", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "dist/index.js", | ||
@@ -32,3 +32,3 @@ "license": "GPL-3.0", | ||
"dependencies": { | ||
"@forestadmin/datasource-toolkit": "1.0.0", | ||
"@forestadmin/datasource-toolkit": "1.0.1", | ||
"luxon": "^2.3.0", | ||
@@ -35,0 +35,0 @@ "object-hash": "^3.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
412822
4759
+ Added@forestadmin/datasource-toolkit@1.0.1(transitive)
- Removed@forestadmin/datasource-toolkit@1.0.0(transitive)