@plumier/generic-controller
Advanced tools
Comparing version 1.0.0-canary.kdid6yqc.0 to 1.0.0-canary.kdjdfg7t.0
@@ -6,6 +6,6 @@ "use strict"; | ||
const core_1 = require("@plumier/core"); | ||
const path_1 = require("path"); | ||
const pluralize_1 = tslib_1.__importDefault(require("pluralize")); | ||
const tinspector_1 = tslib_1.__importStar(require("tinspector")); | ||
const types_1 = require("./types"); | ||
const pluralize_1 = tslib_1.__importDefault(require("pluralize")); | ||
const path_1 = require("path"); | ||
// --------------------------------------------------------------------- // | ||
@@ -12,0 +12,0 @@ // ------------------------------- HELPER ------------------------------ // |
@@ -29,2 +29,3 @@ import { Class } from "@plumier/core"; | ||
} | ||
export declare function getOneToOneRelations(type: Class): import("tinspector").PropertyReflection[]; | ||
export declare abstract class BaseControllerGeneric { | ||
@@ -31,0 +32,0 @@ protected getGenericTypeParameters(): { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.OneToManyControllerGeneric = exports.ControllerGeneric = exports.BaseControllerGeneric = void 0; | ||
exports.OneToManyControllerGeneric = exports.ControllerGeneric = exports.BaseControllerGeneric = exports.getOneToOneRelations = void 0; | ||
const tslib_1 = require("tslib"); | ||
const core_1 = require("@plumier/core"); | ||
const tinspector_1 = tslib_1.__importDefault(require("tinspector")); | ||
function getOneToOneRelations(type) { | ||
const meta = tinspector_1.default(type); | ||
const result = []; | ||
for (const prop of meta.properties) { | ||
if (prop.decorators.find((x) => x.kind === "plumier-meta:relation") && prop.typeClassification !== "Array") { | ||
result.push(prop); | ||
} | ||
} | ||
return result; | ||
} | ||
exports.getOneToOneRelations = getOneToOneRelations; | ||
class BaseControllerGeneric { | ||
@@ -8,0 +19,0 @@ getGenericTypeParameters() { |
{ | ||
"name": "@plumier/generic-controller", | ||
"version": "1.0.0-canary.kdid6yqc.0+1a29374", | ||
"version": "1.0.0-canary.kdjdfg7t.0+44b6b52", | ||
"description": "Plumier generic controller implementation", | ||
@@ -18,3 +18,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@plumier/core": "1.0.0-canary.kdid6yqc.0+1a29374", | ||
"@plumier/core": "1.0.0-canary.kdjdfg7t.0+44b6b52", | ||
"@types/pluralize": "^0.0.29", | ||
@@ -33,3 +33,3 @@ "pluralize": "^8.0.0" | ||
}, | ||
"gitHead": "1a2937448a8288fa11bafe68f3368841cf95b16f" | ||
"gitHead": "44b6b52be66103214c84ecb1d9966f3f48e3c0f1" | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
39500
564