testilo 6.1.1 → 6.1.2
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/aim.js +0 -4
- package/package.json +1 -1
package/aim.js
CHANGED
|
@@ -16,8 +16,6 @@ const scriptDir = process.env.SCRIPTDIR || 'scripts';
|
|
|
16
16
|
|
|
17
17
|
// ########## FUNCTIONS
|
|
18
18
|
|
|
19
|
-
// Returns a string representing the date and time.
|
|
20
|
-
const nowString = () => (new Date()).toISOString().slice(0, 19);
|
|
21
19
|
// Returns a script, aimed at a host.
|
|
22
20
|
exports.aim = async (scriptName, host, requester) => {
|
|
23
21
|
// Copy the script.
|
|
@@ -41,8 +39,6 @@ exports.aim = async (scriptName, host, requester) => {
|
|
|
41
39
|
const timeStamp = Math.floor((Date.now() - Date.UTC(2022, 1)) / 2000).toString(36);
|
|
42
40
|
// Change the script id property to include the time stamp and the host ID.
|
|
43
41
|
script.id = `${timeStamp}-${script.id}-${host.id}`;
|
|
44
|
-
// Add the job-creation time to the script.
|
|
45
|
-
script.jobCreationTime = nowString();
|
|
46
42
|
// Return the host-specific script.
|
|
47
43
|
return script;
|
|
48
44
|
};
|