Comparing version 0.27.15 to 0.27.16
@@ -30,10 +30,14 @@ import { setControllerSettings } from '../context.js'; | ||
return (target, info) => { | ||
for (const rawFilterMember in target) { | ||
if (Object.prototype.hasOwnProperty.call(target, rawFilterMember)) { | ||
const element = target[rawFilterMember]; | ||
if (element?.rawFilterInfo) { | ||
if (!element.rawFilterInfo.key) | ||
element.rawFilterInfo.key = rawFilterMember; | ||
let theClass = target; | ||
while (theClass != null) { | ||
for (const rawFilterMember in theClass) { | ||
if (Object.prototype.hasOwnProperty.call(theClass, rawFilterMember)) { | ||
const element = target[rawFilterMember]; | ||
if (element?.rawFilterInfo) { | ||
if (!element.rawFilterInfo.key) | ||
element.rawFilterInfo.key = rawFilterMember; | ||
} | ||
} | ||
} | ||
theClass = Object.getPrototypeOf(theClass); | ||
} | ||
@@ -40,0 +44,0 @@ let factory = (remult) => { |
{ | ||
"name": "remult", | ||
"version": "0.27.15", | ||
"version": "0.27.16", | ||
"description": "A CRUD framework for full-stack TypeScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://remult.dev", |
@@ -38,10 +38,14 @@ "use strict"; | ||
return function (target, info) { | ||
for (var rawFilterMember in target) { | ||
if (Object.prototype.hasOwnProperty.call(target, rawFilterMember)) { | ||
var element = target[rawFilterMember]; | ||
if (element === null || element === void 0 ? void 0 : element.rawFilterInfo) { | ||
if (!element.rawFilterInfo.key) | ||
element.rawFilterInfo.key = rawFilterMember; | ||
var theClass = target; | ||
while (theClass != null) { | ||
for (var rawFilterMember in theClass) { | ||
if (Object.prototype.hasOwnProperty.call(theClass, rawFilterMember)) { | ||
var element = target[rawFilterMember]; | ||
if (element === null || element === void 0 ? void 0 : element.rawFilterInfo) { | ||
if (!element.rawFilterInfo.key) | ||
element.rawFilterInfo.key = rawFilterMember; | ||
} | ||
} | ||
} | ||
theClass = Object.getPrototypeOf(theClass); | ||
} | ||
@@ -48,0 +52,0 @@ var factory = function (remult) { |
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
4874928
54020