@xmobitea/gn-server 2.4.4 → 2.4.5
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.
|
@@ -562,6 +562,6 @@ const pushNotification = new CloudScriptPushNotification();
|
|
|
562
562
|
database.init(dbConnection.url, dbConnection.dbName, dbConnection.options);
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
-
const handlers: Record<string, (args
|
|
565
|
+
const handlers: Record<string, (args: any, context: { userId: string; customTags: { [k: string]: any } }, log: (log: any) => void) => any> = {};
|
|
566
566
|
|
|
567
567
|
//$replaceScript
|
|
@@ -466,7 +466,7 @@ interface CloudScriptRequest {
|
|
|
466
466
|
parameters: {};
|
|
467
467
|
encrypted: boolean;
|
|
468
468
|
};
|
|
469
|
-
log
|
|
469
|
+
log: (log: any) => void;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
interface CloudScriptResponse {
|
|
@@ -787,12 +787,12 @@ const pushNotification = new CloudScriptPushNotification();
|
|
|
787
787
|
database.init(dbConnection.url, dbConnection.dbName, dbConnection.options);
|
|
788
788
|
}
|
|
789
789
|
|
|
790
|
-
const preHandlers: Record<string, (request: any, secretInfo: SecretInfo, operationRequest: OperationRequest, log
|
|
790
|
+
const preHandlers: Record<string, (request: any, secretInfo: SecretInfo, operationRequest: OperationRequest, log: (log: any) => void) => Promise<OperationResponse | null>> = {};
|
|
791
791
|
|
|
792
|
-
const postHandlers: Record<string, (request: any, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log
|
|
792
|
+
const postHandlers: Record<string, (request: any, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => Promise<OperationResponse>> = {};
|
|
793
793
|
|
|
794
|
-
const systemHandlers: Record<string, (log
|
|
794
|
+
const systemHandlers: Record<string, (log: (log: any) => void) => Promise<void>> = {};
|
|
795
795
|
|
|
796
|
-
const systemMatchmakingHandlers: Record<string, (gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch, log
|
|
796
|
+
const systemMatchmakingHandlers: Record<string, (gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch, log: (log: any) => void) => Promise<{ success: boolean }>> = {};
|
|
797
797
|
|
|
798
798
|
//$replaceScript
|
package/dist/index.js
CHANGED
|
@@ -75630,7 +75630,7 @@ class CloudScriptService {
|
|
|
75630
75630
|
let fullScriptTs = fs_1.default.readFileSync(templateFullScriptPathTs).toString().replace("//$replaceScript", script);
|
|
75631
75631
|
fs_1.default.writeFileSync(filePathTempTs, fullScriptTs);
|
|
75632
75632
|
let filePathTemp = __dirname + "/./GN-startup/cloudScript";
|
|
75633
|
-
yield (0, child_process_1.execSync)("npx tsc " + filePathTempTs + " --noImplicitAny --allowJs --outDir " + filePathTemp);
|
|
75633
|
+
yield (0, child_process_1.execSync)("npx tsc " + filePathTempTs + " --noImplicitAny --allowJs --skipLibCheck --outDir " + filePathTemp);
|
|
75634
75634
|
let filePathTempJs = __dirname + "/./GN-startup/cloudScript/temp.js";
|
|
75635
75635
|
fullScriptJs = fs_1.default.readFileSync(filePathTempJs).toString();
|
|
75636
75636
|
if (canExecute) {
|
|
@@ -76419,7 +76419,7 @@ class EventCallbackCloudScriptService {
|
|
|
76419
76419
|
let fullScriptTs = fs_1.default.readFileSync(templateFullScriptPathTs).toString().replace("//$replaceScript", finalScript);
|
|
76420
76420
|
fs_1.default.writeFileSync(filePathTempTs, fullScriptTs);
|
|
76421
76421
|
let filePathTemp = __dirname + "/./GN-startup/cloudScript";
|
|
76422
|
-
yield (0, child_process_1.execSync)("npx tsc " + filePathTempTs + " --noImplicitAny --allowJs --esModuleInterop --outDir " + filePathTemp);
|
|
76422
|
+
yield (0, child_process_1.execSync)("npx tsc " + filePathTempTs + " --noImplicitAny --allowJs --skipLibCheck --esModuleInterop --outDir " + filePathTemp);
|
|
76423
76423
|
let filePathTempJs = __dirname + "/./GN-startup/cloudScript/temp2.js";
|
|
76424
76424
|
fullScriptJs = fs_1.default.readFileSync(filePathTempJs).toString();
|
|
76425
76425
|
let finalVersion = cloudFunction.type + "_" + cloudFunction.version;
|