make-mp-data 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -23,11 +23,12 @@ const { makeName, md5, clone, tracker, uid } = require('ak-tools');
|
|
|
23
23
|
const NOW = dayjs().unix();
|
|
24
24
|
let VERBOSE = false;
|
|
25
25
|
let isCLI = false;
|
|
26
|
+
const { version } = require('./package.json');
|
|
26
27
|
|
|
27
28
|
const metrics = tracker("make-mp-data", "db99eb8f67ae50949a13c27cacf57d41");
|
|
28
|
-
function track() {
|
|
29
|
+
function track(name, props, ...rest) {
|
|
29
30
|
if (process.env.NODE_ENV === 'test') return;
|
|
30
|
-
metrics
|
|
31
|
+
metrics(name, props, ...rest);
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
/** @typedef {import('./types.d.ts').Config} Config */
|
|
@@ -82,7 +83,8 @@ async function main(config) {
|
|
|
82
83
|
token,
|
|
83
84
|
region,
|
|
84
85
|
writeToDisk,
|
|
85
|
-
isCLI
|
|
86
|
+
isCLI,
|
|
87
|
+
version
|
|
86
88
|
});
|
|
87
89
|
log(`------------------SETUP------------------`);
|
|
88
90
|
log(`\nyour data simulation will heretofore be known as: \n\n\t${simulationName.toUpperCase()}...\n`);
|
|
@@ -383,7 +385,8 @@ async function main(config) {
|
|
|
383
385
|
token,
|
|
384
386
|
region,
|
|
385
387
|
writeToDisk,
|
|
386
|
-
isCLI
|
|
388
|
+
isCLI,
|
|
389
|
+
version
|
|
387
390
|
});
|
|
388
391
|
return {
|
|
389
392
|
import: importResults,
|