fca-project-orion 1.1.17 → 1.1.19
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 +11 -11
- package/package.json +1 -1
package/index.js
CHANGED
@@ -118,25 +118,25 @@ try {
|
|
118
118
|
let All_Variable = Boolean_Fca.concat(String_Fca,Number_Fca,Object_Fca);
|
119
119
|
|
120
120
|
|
121
|
-
if (!global.Fca.Require.fs.existsSync(process.cwd() + '/
|
122
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
121
|
+
if (!global.Fca.Require.fs.existsSync(process.cwd() + '/FastConfigFca.json')) {
|
122
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(global.Fca.Data.ObjFastConfig, null, "\t"));
|
123
123
|
process.exit(1);
|
124
124
|
}
|
125
125
|
|
126
126
|
try {
|
127
|
-
var Data_Setting = require(process.cwd() + "/
|
127
|
+
var Data_Setting = require(process.cwd() + "/FastConfigFca.json");
|
128
128
|
}
|
129
129
|
catch (e) {
|
130
|
-
global.Fca.Require.logger.Error('Detect Your /
|
131
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
130
|
+
global.Fca.Require.logger.Error('Detect Your /FastConfigFca.json Settings Invalid!, Carry out default restoration');
|
131
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(global.Fca.Data.ObjFastConfig, null, "\t"));
|
132
132
|
process.exit(1)
|
133
133
|
}
|
134
|
-
if (global.Fca.Require.fs.existsSync(process.cwd() + '/
|
134
|
+
if (global.Fca.Require.fs.existsSync(process.cwd() + '/FastConfigFca.json')) {
|
135
135
|
|
136
136
|
for (let i of All_Variable) {
|
137
137
|
if (Data_Setting[i] == undefined) {
|
138
138
|
Data_Setting[i] = global.Fca.Data.ObjFastConfig[i];
|
139
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
139
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t"));
|
140
140
|
}
|
141
141
|
else continue;
|
142
142
|
} //Check Variable
|
@@ -157,7 +157,7 @@ catch (e) {
|
|
157
157
|
else if (Object_Fca.includes(i)) {
|
158
158
|
if (global.Fca.Require.utils.getType(Data_Setting[i]) != "Object") {
|
159
159
|
Data_Setting[i] = global.Fca.Data.ObjFastConfig[i];
|
160
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
160
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t"));
|
161
161
|
}
|
162
162
|
else continue;
|
163
163
|
}
|
@@ -169,7 +169,7 @@ catch (e) {
|
|
169
169
|
for (let i of Mission.Data_Path) {
|
170
170
|
if (Data_Setting[Mission.Main_Path] == undefined) {
|
171
171
|
Data_Setting[Mission.Main_Path] = global.Fca.Data.ObjFastConfig[Mission.Main_Path];
|
172
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
172
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t"));
|
173
173
|
}
|
174
174
|
const User_Data = (utils.getData_Path(Data_Setting[Mission.Main_Path], i, 0))
|
175
175
|
const User_Data_Type = utils.getType(User_Data);
|
@@ -177,7 +177,7 @@ catch (e) {
|
|
177
177
|
const Mission_Path = User_Data == 0 ? i : i.slice(0, User_Data);
|
178
178
|
const Mission_Obj = utils.getData_Path(global.Fca.Data.ObjFastConfig[Mission.Main_Path], Mission_Path, 0);
|
179
179
|
Data_Setting[Mission.Main_Path] = utils.setData_Path(Data_Setting[Mission.Main_Path], Mission_Path, Mission_Obj)
|
180
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
180
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t"));
|
181
181
|
}
|
182
182
|
}
|
183
183
|
}
|
@@ -357,7 +357,7 @@ module.exports = function(loginData, options, callback) {
|
|
357
357
|
else {
|
358
358
|
log.warn("[ FCA-UPDATE ] •", "Error Stable Version, Please Check Your Stable Version in FastConfig.json, Automatically turn off Stable Version!");
|
359
359
|
global.Fca.Require.FastConfig.Stable_Version.Accept = false;
|
360
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
360
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t"));
|
361
361
|
process.exit(1);
|
362
362
|
}
|
363
363
|
}
|