@ejfdelgado/ejflab-common 1.10.5 → 1.11.0
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/package.json
CHANGED
package/src/MyConstants.js
CHANGED
|
@@ -121,6 +121,16 @@ class MyConstants {
|
|
|
121
121
|
}
|
|
122
122
|
return keyNameXs;
|
|
123
123
|
}
|
|
124
|
+
|
|
125
|
+
static overwriteEnvVariables() {
|
|
126
|
+
MyConstants.EMAIL_SENDER = process.env.EMAIL_SENDER;
|
|
127
|
+
MyConstants.BUCKET.PUBLIC = process.env.BUCKET_PUBLIC;
|
|
128
|
+
MyConstants.BUCKET.PRIVATE = process.env.BUCKET_PRIVATE;
|
|
129
|
+
|
|
130
|
+
console.log(`EMAIL_SENDER=${MyConstants.EMAIL_SENDER}`);
|
|
131
|
+
console.log(`BUCKET_PUBLIC=${MyConstants.BUCKET_PUBLIC}`);
|
|
132
|
+
console.log(`BUCKET_PRIVATE=${MyConstants.BUCKET_PRIVATE}`);
|
|
133
|
+
}
|
|
124
134
|
}
|
|
125
135
|
|
|
126
136
|
try {
|
|
@@ -13,6 +13,8 @@ const { StepCheckSrc } = require("./steps/StepCheckSrc");
|
|
|
13
13
|
|
|
14
14
|
const { CommandInc } = require("./steps/CommandInc");
|
|
15
15
|
const { CommandSet } = require("./steps/CommandSet");
|
|
16
|
+
const { CommandTic } = require("./steps/CommandTic");
|
|
17
|
+
const { CommandToc } = require("./steps/CommandToc");
|
|
16
18
|
const { StepReadSrc } = require('./steps/StepReadSrc');
|
|
17
19
|
const { StepTimeLineEnds } = require('./steps/StepTimeLineEnds');
|
|
18
20
|
const { StepTimeLineHasMore } = require('./steps/StepTimeLineHasMore');
|
|
@@ -67,6 +69,8 @@ class FlowChartExec {
|
|
|
67
69
|
// Nodes
|
|
68
70
|
this.registry["inc"] = CommandInc;
|
|
69
71
|
this.registry["set"] = CommandSet;
|
|
72
|
+
this.registry["tic"] = CommandTic;
|
|
73
|
+
this.registry["toc"] = CommandToc;
|
|
70
74
|
this.registry["timeline"] = CommandTimeline;
|
|
71
75
|
this.registry["timelineNext"] = CommandTimelineNext;
|
|
72
76
|
this.registry["milvus"] = CommandMilvus;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const { CommandBasic } = require("./CommandBasic");
|
|
2
|
+
|
|
3
|
+
class CommandTic extends CommandBasic {
|
|
4
|
+
async computation() {
|
|
5
|
+
const path = this.args[0];
|
|
6
|
+
const val = new Date().getTime();
|
|
7
|
+
this.writeArgument(`${path}.tic`, val);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
CommandTic
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const { CommandBasic } = require("./CommandBasic");
|
|
2
|
+
|
|
3
|
+
class CommandToc extends CommandBasic {
|
|
4
|
+
async computation() {
|
|
5
|
+
const path = this.args[0];
|
|
6
|
+
const val = new Date().getTime();
|
|
7
|
+
const tic = this.resolveArgument(`${path}.tic`);
|
|
8
|
+
this.writeArgument(`${path}.toc`, val);
|
|
9
|
+
if (typeof tic == "number") {
|
|
10
|
+
this.writeArgument(`${path}.gap`, val - tic);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
module.exports = {
|
|
16
|
+
CommandToc
|
|
17
|
+
};
|