@jtff/miztemplate-lib 3.0.0-rc5 → 3.0.0-rc7
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 +2 -2
- package/lib/jtff-lib-ci.js +2 -2
- package/lib/mizlib.js +6 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const MizTemplateCI = require("./lib/jtff-lib-ci.js");
|
|
2
|
-
const
|
|
2
|
+
const Mizlib = require("./lib/mizlib.js");
|
|
3
3
|
const build = require("./scripts/build.js");
|
|
4
4
|
const clean = require("./scripts/clean.js");
|
|
5
5
|
const ftpupload = require("./scripts/ftpupload.js");
|
|
@@ -13,6 +13,7 @@ const templateUpdate = require("./scripts/template-update.js");
|
|
|
13
13
|
|
|
14
14
|
module.exports = {
|
|
15
15
|
MizTemplateCI: MizTemplateCI,
|
|
16
|
+
Mizlib: Mizlib,
|
|
16
17
|
build:build,
|
|
17
18
|
clean:clean,
|
|
18
19
|
ftpupload:ftpupload,
|
|
@@ -24,5 +25,4 @@ module.exports = {
|
|
|
24
25
|
nextversionPrepare:nextversionPrepare,
|
|
25
26
|
release:release,
|
|
26
27
|
templateUpdate:templateUpdate,
|
|
27
|
-
mizlib: mizlib,
|
|
28
28
|
};
|
package/lib/jtff-lib-ci.js
CHANGED
|
@@ -4,12 +4,12 @@ const fs = require("fs");
|
|
|
4
4
|
const path = require("path");
|
|
5
5
|
const { google } = require("googleapis");
|
|
6
6
|
const ftpClient = require('ftp');
|
|
7
|
-
const {
|
|
7
|
+
const {Mizlib} = require("../index");
|
|
8
8
|
|
|
9
9
|
class MizTemplateCI{
|
|
10
10
|
constructor(config) {
|
|
11
11
|
this.config = config;
|
|
12
|
-
this.mizlib = new
|
|
12
|
+
this.mizlib = new Mizlib();
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
getVersion() {
|
package/lib/mizlib.js
CHANGED
|
@@ -7,7 +7,11 @@ const {promisify} = require("util");
|
|
|
7
7
|
const fs = require("fs");
|
|
8
8
|
const lstat = promisify(fs.lstat);
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class Mizlib {
|
|
11
|
+
constructor() {
|
|
12
|
+
// no need for initialization
|
|
13
|
+
}
|
|
14
|
+
|
|
11
15
|
injectLuaScriptsInMissionObject(tObject, trObject, mrObject, strTitle, scriptFilesArray, timingInSeconds, hexColor) {
|
|
12
16
|
let nextIndex = Object.keys(trObject).length + 1;
|
|
13
17
|
if (nextIndex === 1) {
|
|
@@ -314,4 +318,4 @@ class mizlib {
|
|
|
314
318
|
}
|
|
315
319
|
}
|
|
316
320
|
|
|
317
|
-
module.exports =
|
|
321
|
+
module.exports = Mizlib
|