Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const { decorators, localDecorators } = require('metaschema').default.options;
const { LogStatusDecorator: LogStatus } = require('../log');
class Decorator {
constructor(def) {
Object.assign(this, def);
}
}
class RelationDecorator extends Decorator {
constructor(def) {
if (typeof def === 'string') {
def = { category: def };
}
super(def);
}
}