X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FWorker.js;h=cc8358559c5ce29d4bbda526b8de402309203de6;hb=5933cbc8c16288268032886a14e03d47b8ce84f6;hp=db82e8215fd0dad8fca89da13431c36f3c5c195d;hpb=092756ae62c860117069eaf6ae483a589a0989c0;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Worker.js b/src/charging-station/Worker.js index db82e821..cc835855 100644 --- a/src/charging-station/Worker.js +++ b/src/charging-station/Worker.js @@ -1,9 +1,9 @@ -const Configuration = require('../utils/Configuration'); -const EventEmitter = require('events'); -const {Worker} = require('worker_threads'); -const Pool = require('worker-threads-pool'); +import Configuration from '../utils/Configuration.js'; +import EventEmitter from 'events'; +import Pool from 'worker-threads-pool'; +import {Worker} from 'worker_threads'; -class Wrk { +export default class Wrk { /** * Create a new `Wrk`. * @@ -82,5 +82,3 @@ class Wrk { return this._startWorker(); } } - -module.exports = Wrk;