chore: use ES6 exports

Modified the file to use 'export default' instead of 'module.exports'
so that I don't get errors stating that there is no default export.
This commit is contained in:
Joel Knott 2021-08-24 14:48:46 -05:00 committed by Nico Rehwaldt
parent d27ae8f808
commit 8d90d4dc63

View File

@ -1,21 +1,20 @@
'use strict'; import {
reduce,
keys,
forEach
} from 'min-dash';
var reduce = require('min-dash').reduce, import {
keys = require('min-dash').keys, is,
forEach = require('min-dash').forEach, getBusinessObject
is = require('../../../util/ModelUtil').is, } from '../../../util/ModelUtil';
getBusinessObject = require('../../../util/ModelUtil').getBusinessObject;
export default function UpdateModdlePropertiesHandler(elementRegistry) {
function UpdateModdlePropertiesHandler(elementRegistry) {
this._elementRegistry = elementRegistry; this._elementRegistry = elementRegistry;
} }
UpdateModdlePropertiesHandler.$inject = ['elementRegistry']; UpdateModdlePropertiesHandler.$inject = ['elementRegistry'];
module.exports = UpdateModdlePropertiesHandler;
UpdateModdlePropertiesHandler.prototype.execute = function(context) { UpdateModdlePropertiesHandler.prototype.execute = function(context) {
var element = context.element, var element = context.element,