testilo 7.0.11 → 7.1.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.
Files changed (2) hide show
  1. package/merge.js +4 -2
  2. package/package.json +1 -1
package/merge.js CHANGED
@@ -5,8 +5,9 @@
5
5
  0. base of name of script located in process.env.SCRIPTDIR.
6
6
  1. base of name of batch located in process.env.BATCHDIR.
7
7
  2. email address to be notified of completion.
8
- Usage example:
8
+ Usage examples:
9
9
  node call merge ts25 weborgs developer@w3.org
10
+ node call merge ts25 weborgs
10
11
  Note: The subdirectory for jobs will be created if it does not exist.
11
12
  */
12
13
 
@@ -24,11 +25,12 @@ const {aim} = require('./aim');
24
25
  const scriptDir = process.env.SCRIPTDIR || 'scripts';
25
26
  const batchDir = process.env.BATCHDIR || 'batches';
26
27
  const jobDir = process.env.JOBDIR || 'watch';
28
+ const stdRequester = process.env.REQUESTER;
27
29
 
28
30
  // ########## FUNCTIONS
29
31
 
30
32
  // Merges a batch into a script and writes jobs.
31
- exports.merge = async (scriptName, batchName, requester) => {
33
+ exports.merge = async (scriptName, batchName, requester = stdRequester) => {
32
34
  // Get the script and the batch.
33
35
  const scriptJSON = await fs.readFile(`${scriptDir}/${scriptName}.json`, 'utf8');
34
36
  const batchJSON = await fs.readFile(`${batchDir}/${batchName}.json`, 'utf8');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testilo",
3
- "version": "7.0.11",
3
+ "version": "7.1.0",
4
4
  "description": "Client that scores and digests Testaro reports",
5
5
  "main": "aim.js",
6
6
  "scripts": {