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
1 changed files with 11 additions and 12 deletions

View File

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