Skip to content

Commit 4fde829

Browse files
nqvstsjanuary
authored andcommitted
Make use of module.exports/exports consistent (#465)
1 parent 0ad5a48 commit 4fde829

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ var latencyReport = function() {
9898
max: latencyData.max,
9999
avg: latencyData.total / latencyData.count,
100100
};
101-
exports.emit('eventloop', { time: Date.now(), latency: latency });
101+
module.exports.emit('eventloop', { time: Date.now(), latency: latency });
102102
latencyData.count = 0;
103103
latencyData.min = 1 * 60 * 1000;
104104
latencyData.max = 0;
@@ -124,7 +124,7 @@ if (global.Appmetrics) {
124124
global.Appmetrics.VERSION +
125125
'.\n'
126126
);
127-
module.exports = global.Appmetrics;
127+
exports = module.exports = global.Appmetrics;
128128
} else {
129129
global.Appmetrics = module.exports;
130130
module.exports.VERSION = VERSION;

0 commit comments

Comments
 (0)