@jtff/miztemplate-lib 2.0.1 → 2.0.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.
@@ -394,13 +394,13 @@ class MizTemplateCI{
394
394
  }
395
395
 
396
396
  publishMizFiles(credentials) {
397
+ const configObject = this.config;
397
398
  const jwtClient = new google.auth.JWT(
398
399
  credentials.client_email,
399
400
  null,
400
401
  credentials.private_key,
401
- this.config.google.scopes
402
+ configObject.google.scopes
402
403
  );
403
- const configObject = this.config;
404
404
  jwtClient.authorize(function (err, tokens) {
405
405
  if (err) {
406
406
  console.log(err);
@@ -411,7 +411,7 @@ class MizTemplateCI{
411
411
  fs.readdirSync(configObject.general.missionFolder)
412
412
  .filter(file => file.endsWith('.pub.json'))
413
413
  .map(file => {
414
- // console.log(this.config.general.missionFolder+'/'+file);
414
+ // console.log(configObject.general.missionFolder+'/'+file);
415
415
  fs.readFile(configObject.general.missionFolder + '/' + file, function (err, data) {
416
416
  if (err) throw err;
417
417
  data = JSON.parse(data.toString());
@@ -464,7 +464,6 @@ class MizTemplateCI{
464
464
  }
465
465
  });
466
466
  }
467
-
468
467
  }
469
468
 
470
469
  module.exports = MizTemplateCI;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [