From 8d90d4dc6391b49f9dbf6a5c8ae3ac0db8024f06 Mon Sep 17 00:00:00 2001 From: Joel Knott Date: Tue, 24 Aug 2021 14:48:46 -0500 Subject: [PATCH] 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. --- .../cmd/UpdateModdlePropertiesHandler.js | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js b/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js index 18e1cee0..023f13ca 100644 --- a/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js +++ b/lib/features/modeling/cmd/UpdateModdlePropertiesHandler.js @@ -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, @@ -88,4 +87,4 @@ function getAllDataObjectReferences(dataObject, elementRegistry) { getBusinessObject(element).dataObjectRef === dataObject ); }); -} \ No newline at end of file +}