fast-cocos 1.1.14 → 1.1.15
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/dist/audio/src/index.js +2 -1
- package/dist/utils.js +8 -0
- package/package.json +1 -1
package/dist/audio/src/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const commander_1 = require("commander");
|
|
13
13
|
const audio_1 = require("./audio");
|
|
14
|
+
const utils_1 = require("../../utils");
|
|
14
15
|
/**
|
|
15
16
|
* 解析音频导出命令参数,并启动音频配置生成流程。
|
|
16
17
|
*/
|
|
@@ -32,7 +33,7 @@ function main() {
|
|
|
32
33
|
output: options.output,
|
|
33
34
|
script: options.script,
|
|
34
35
|
bundle: options.bundle,
|
|
35
|
-
special: JSON.parse(options.special),
|
|
36
|
+
special: JSON.parse(utils_1.utils.decodeBase64(options.special)),
|
|
36
37
|
});
|
|
37
38
|
});
|
|
38
39
|
}
|
package/dist/utils.js
CHANGED
|
@@ -246,4 +246,12 @@ var utils;
|
|
|
246
246
|
return template;
|
|
247
247
|
}
|
|
248
248
|
utils.stringFormat = stringFormat;
|
|
249
|
+
function decodeBase64(base64) {
|
|
250
|
+
return Buffer.from(base64, "base64").toString("utf-8");
|
|
251
|
+
}
|
|
252
|
+
utils.decodeBase64 = decodeBase64;
|
|
253
|
+
function encodeBase64(str) {
|
|
254
|
+
return Buffer.from(str).toString("base64");
|
|
255
|
+
}
|
|
256
|
+
utils.encodeBase64 = encodeBase64;
|
|
249
257
|
})(utils || (exports.utils = utils = {}));
|