remove files which shouldn't be here

pull/2242/head
Audric Ackermann 3 years ago
parent 261940e978
commit f164302617
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -23,3 +23,4 @@ ts/**/*.js
**/ts/**/*.js
playwright.config.js
preload.js

@ -231,9 +231,9 @@ const { locale: localFromEnv } = config;
window.i18n = setupi18n(localFromEnv, localeMessages);
window.addEventListener('contextmenu', e => {
const editable = (e?.target).closest('textarea, input, [contenteditable="true"]');
const link = (e?.target).closest('a');
const selection = Boolean(window?.getSelection()?.toString());
const editable = e && e.target.closest('textarea, input, [contenteditable="true"]');
const link = e && e.target.closest('a');
const selection = Boolean(window && window.getSelection() && window.getSelection().toString());
if (!editable && !selection && !link) {
e.preventDefault();
}

@ -1,17 +0,0 @@
var import_test = require("@playwright/test");
var import_new_user = require("./new_user");
var import_open = require("./open");
let window;
(0, import_test.test)("Check Password", async () => {
window = await (0, import_open.openApp)("1");
await (0, import_new_user.newUser)(window, "userA");
await window.click("[data-testid=settings-section]");
await window.click('"Privacy"');
await window.click('"Set Password"');
await window.type("#password-modal-input", "123456");
await window.type("#password-modal-input-confirm", "123456");
await window.keyboard.press("Enter");
await window.fill("#password-lock-input", "123456");
await window.click('"OK"');
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL2NoZWNrX3Bhc3N3b3JkLnNwZWMudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB7IF9lbGVjdHJvbiwgUGFnZSwgdGVzdCB9IGZyb20gJ0BwbGF5d3JpZ2h0L3Rlc3QnO1xuaW1wb3J0IHsgbmV3VXNlciB9IGZyb20gJy4vbmV3X3VzZXInO1xuaW1wb3J0IHsgb3BlbkFwcCB9IGZyb20gJy4vb3Blbic7XG4vLyBPcGVuIGFwcFxubGV0IHdpbmRvdzogUGFnZSB8IHVuZGVmaW5lZDtcbnRlc3QoJ0NoZWNrIFB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QUFrQixZQUFZO0FBRWpDLFdBQVMsTUFBTSx5QkFBUSxHQUFHO0FBRTFCLFFBQU0sNkJBQVEsUUFBUSxPQUFPO0FBRTdCLFFBQU0sT0FBTyxNQUFNLGdDQUFnQztBQUVuRCxRQUFNLE9BQU8sTUFBTSxXQUFXO0FBRTlCLFFBQU0sT0FBTyxNQUFNLGdCQUFnQjtBQUVuQyxRQUFNLE9BQU8sS0FBSyx5QkFBeUIsUUFBUTtBQUVuRCxRQUFNLE9BQU8sS0FBSyxpQ0FBaUMsUUFBUTtBQUUzRCxRQUFNLE9BQU8sU0FBUyxNQUFNLE9BQU87QUFFbkMsUUFBTSxPQUFPLEtBQUssd0JBQXdCLFFBQVE7QUFFbEQsUUFBTSxPQUFPLE1BQU0sTUFBTTtBQUMzQixDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo=

@ -1,35 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var clean_up_exports = {};
__export(clean_up_exports, {
cleanUp: () => cleanUp
});
module.exports = __toCommonJS(clean_up_exports);
const cleanUp = /* @__PURE__ */ __name(async (window) => {
await window.click("[data-testid=settings-section]");
await window.click("text=Clear All Data");
await window.click("text=Entire Account");
await window.click("text=I am sure");
await window.waitForTimeout(1e4);
}, "cleanUp");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
cleanUp
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL2NsZWFuX3VwLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgeyBfZWxlY3Ryb24sIFBhZ2UgfSBmcm9tICdAcGxheXdyaWdodC90ZXN0JztcblxuZXhwb3J0IGNvbnN0IGNsZWFuVXAgPSBhc3luYyAod2luZG93OiBQYWdlKSA9PiB7XG4gIGF3YWl0IHdpbmRvdy5jbGljaygnW2RhdGEtdGVzdGlkPXNldHRpbmdzLXNlY3Rpb25dJyk7XG4gIGF3YWl0IHdpbmRvdy5jbGljaygndGV4dD1DbGVhciBBbGwgRGF0YScpO1xuICBhd2FpdCB3aW5kb3cuY2xpY2soJ3RleHQ9RW50aXJlIEFjY291bnQnKTtcbiAgYXdhaXQgd2luZG93LmNsaWNrKCd0ZXh0PUkgYW0gc3VyZScpO1xuICBhd2FpdCB3aW5kb3cud2FpdEZvclRpbWVvdXQoMTAwMDApO1xufTtcbiJdLAogICJtYXBwaW5ncyI6ICI7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFFTyxNQUFNLFVBQVUsOEJBQU8sV0FBaUI7QUFDN0MsUUFBTSxPQUFPLE1BQU0sZ0NBQWdDO0FBQ25ELFFBQU0sT0FBTyxNQUFNLHFCQUFxQjtBQUN4QyxRQUFNLE9BQU8sTUFBTSxxQkFBcUI7QUFDeEMsUUFBTSxPQUFPLE1BQU0sZ0JBQWdCO0FBQ25DLFFBQU0sT0FBTyxlQUFlLEdBQUs7QUFDbkMsR0FOdUI7IiwKICAibmFtZXMiOiBbXQp9Cg==

@ -1,27 +0,0 @@
var import_test = require("@playwright/test");
var import_new_user = require("./new_user");
var import_open = require("./open");
var import_send_message = require("./send_message");
const userADisplayName = "userA";
const userBDisplayName = "userB";
const userCDisplayName = "userC";
const testMessage = "Sending Test Message";
const testReply = "Sending Reply Test Message";
(0, import_test.test)("Create group", async () => {
const [windowA, windowB, windowC] = await Promise.all([(0, import_open.openApp)("1"), (0, import_open.openApp)("2"), (0, import_open.openApp)("3")]);
const userA = await (0, import_new_user.newUser)(windowA, userADisplayName);
const userB = await (0, import_new_user.newUser)(windowB, userBDisplayName);
const userC = await (0, import_new_user.newUser)(windowC, userCDisplayName);
await (0, import_send_message.sendMessage)(windowA, userB.sessionid, testMessage);
await (0, import_send_message.sendMessage)(windowB, userA.sessionid, testReply);
await (0, import_send_message.sendMessage)(windowA, userC.sessionid, testMessage);
await (0, import_send_message.sendMessage)(windowC, userA.sessionid, testReply);
await windowA.click('"New Closed Group"');
await windowA.fill(".session-id-editable", "Test Group");
await windowA.click(userBDisplayName);
await windowA.click(userCDisplayName);
await windowA.click('"Done"');
windowA.locator(`text=${userBDisplayName}, ${userCDisplayName} + 'You joined the group'`);
await windowA.fill("[data-testid=message-input] * textarea", testMessage);
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL2NyZWF0ZV9ncm91cC5zcGVjLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgeyBfZWxlY3Ryb24sIHRlc3QgfSBmcm9tICdAcGxheXdyaWdodC90ZXN0JztcbmltcG9ydCB7IG5ld1VzZXIgfSBmcm9tICcuL25ld191c2VyJztcbmltcG9ydCB7IG9wZW5BcHAgfSBmcm9tICcuL29wZW4nO1xuaW1wb3J0IHsgc2VuZE1lc3NhZ2UgfSBmcm9tICcuL3NlbmRfbWVzc2FnZSc7XG5cbmNvbnN0IHVzZXJBRGlzcGxheU5hbWUgPSAndXNlckEnO1xuY29uc3QgdXNlckJEaXNwbGF5TmFtZSA9ICd1c2VyQic7XG5jb25zdCB1c2VyQ0Rpc3BsYXlOYW1lID0gJ3VzZXJ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ogICJuYW1lcyI6IFtdCn0K

@ -1,19 +0,0 @@
var import_test = require("@playwright/test");
var import_new_user = require("./new_user");
var import_open = require("./open");
var import_Promise = require("../../session/utils/Promise");
let window;
(0, import_test.test)("Create User", async () => {
window = await (0, import_open.openApp)("1");
const userA = await (0, import_new_user.newUser)(window, "userA");
await window.click("[data-testid=leftpane-primary-avatar]");
await (0, import_Promise.sleepFor)(100);
(0, import_test.expect)(await window.innerText("[data-testid=your-profile-name]")).toBe(userA.userName);
(0, import_test.expect)(await window.innerText("[data-testid=your-session-id]")).toBe(userA.sessionid);
await window.click(".session-icon-button.small");
await window.click("[data-testid=settings-section]");
await window.click("text=Recovery Phrase");
(0, import_test.expect)(await window.innerText("[data-testid=recovery-phrase-seed-modal]")).toBe(userA.recoveryPhrase);
await window.click(".session-icon-button.small");
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL2VsZWN0cm9uX3Rlc3Quc3BlYy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgX2VsZWN0cm9uLCBleHBlY3QsIFBhZ2UsIHRlc3QgfSBmcm9tICdAcGxheXdyaWdodC90ZXN0JztcbmltcG9ydCB7IG5ld1VzZXIgfSBmcm9tICcuL25ld191c2VyJztcbmltcG9ydCB7IG9wZW5BcHAgfSBmcm9tICcuL29wZW4nO1xuaW1wb3J0IHsgc2xlZXBGb3IgfSBmcm9tICcuLi8uLi9zZXNzaW9uL3V0aWxzL1Byb21pc2UnO1xuXG4vLyBpbXBvcnQge2VtcHR5RGlyU3luY30gZnJvbSAnZnMtZXh0cmEnO1xuXG5sZXQgd2luZG93OiBQYWdlIHwgdW5kZWZpbmVkO1xuXG50ZXN0KCdDcmVhdGUgVXNlcicsIGFzeW5jICgpID0+IHtcbiAgLy8gTGF1bmNoIEVsZWN0cm9uIGFwcC5cbiAgd2luZG93ID0gYXdhaX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VxuICBhd2FpdCB3aW5kb3cuY2xpY2soJy5zZXNzaW9uLWljb24tYnV0dG9uLnNtYWxsJyk7XG59KTtcbiJdLAogICJtYXBwaW5ncyI6ICJBQUFBLGtCQUE4QztBQUM5QyxzQkFBd0I7QUFDeEIsa0JBQXdCO0FBQ3hCLHFCQUF5QjtBQUl6QixJQUFJO0FBRUosc0JBQUssZUFBZSxZQUFZO0FBRTlCLFdBQVMsTUFBTSx5QkFBUSxHQUFHO0FBRTFCLFFBQU0sUUFBUSxNQUFNLDZCQUFRLFFBQVEsT0FBTztBQUUzQyxRQUFNLE9BQU8sTUFBTSx1Q0FBdUM7QUFDMUQsUUFBTSw2QkFBUyxHQUFHO0FBRWxCLDBCQUFPLE1BQU0sT0FBTyxVQUFVLGlDQUFpQyxDQUFDLEVBQUUsS0FBSyxNQUFNLFFBQVE7QUFFckYsMEJBQU8sTUFBTSxPQUFPLFVBQVUsK0JBQStCLENBQUMsRUFBRSxLQUFLLE1BQU0sU0FBUztBQUVwRixRQUFNLE9BQU8sTUFBTSw0QkFBNEI7QUFFL0MsUUFBTSxPQUFPLE1BQU0sZ0NBQWdDO0FBQ25ELFFBQU0sT0FBTyxNQUFNLHNCQUFzQjtBQUV6QywwQkFBTyxNQUFNLE9BQU8sVUFBVSwwQ0FBMEMsQ0FBQyxFQUFFLEtBQ3pFLE1BQU0sY0FDUjtBQUVBLFFBQU0sT0FBTyxNQUFNLDRCQUE0QjtBQUNqRCxDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo=

@ -1,36 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var log_in_exports = {};
__export(log_in_exports, {
logIn: () => logIn
});
module.exports = __toCommonJS(log_in_exports);
var import_Promise = require("../../session/utils/Promise");
const logIn = /* @__PURE__ */ __name(async (window, userName, recoveryPhrase) => {
await window.click("[data-testid=restore-using-recovery");
await window.fill("[data-testid=recovery-phrase-input]", recoveryPhrase);
await window.fill("[data-testid=display-name-input]", userName);
await window.click("[data-testid=continue-session-button]");
await (0, import_Promise.sleepFor)(100);
}, "logIn");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
logIn
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL2xvZ19pbi50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgX2VsZWN0cm9uLCBQYWdlIH0gZnJvbSAnQHBsYXl3cmlnaHQvdGVzdCc7XG5pbXBvcnQgeyBzbGVlcEZvciB9IGZyb20gJy4uLy4uL3Nlc3Npb24vdXRpbHMvUHJvbWlzZSc7XG5cbmV4cG9ydCBjb25zdCBsb2dJbiA9IGFzeW5jICh3aW5kb3c6IFBhZ2UsIHVzZXJOYW1lOiBzdHJpbmcsIHJlY292ZXJ5UGhyYXNlOiBzdHJpbmcpID0+IHtcbiAgLy8gcmVzdG9yZSBhY2NvdW50XG4gIGF3YWl0IHdpbmRvdy5jbGljaygnW2RhdGEtdGVzdGlkPXJlc3RvcmUtdXNpbmctcmVjb3ZlcnknKTtcbiAgLy8gRW50ZXIgcmVjb3ZlcnkgcGhyYXNlXG4gIGF3YWl0IHdpbmRvdy5maWxsKCdbZGF0YS10ZXN0aWQ9cmVjb3ZlcnktcGhyYXNlLWlucHV0XScsIHJlY292ZXJ5UGhyYXNlKTtcbiAgLy8gRW50ZXIgZGlzcGxheSBuYW1lXG4gIGF3YWl0IHdpbmRvdy5maWxsKCdbZGF0YS10ZXN0aWQ9ZGlzcGxheS1uYW1lLWlucHV0XScsIHVzZXJOYW1lKTtcbiAgLy8gQ2xpY2sgY29udGludWUgeW91ciBzZXNzaW9uXG4gIGF3YWl0IHdpbmRvdy5jbGljaygnW2RhdGEtdGVzdGlkPWNvbnRpbnVlLXNlc3Npb24tYnV0dG9uXScpO1xuXG4gIGF3YWl0IHNsZWVwRm9yKDEwMCk7XG59O1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBLHFCQUF5QjtBQUVsQixNQUFNLFFBQVEsOEJBQU8sUUFBYyxVQUFrQixtQkFBMkI7QUFFckYsUUFBTSxPQUFPLE1BQU0scUNBQXFDO0FBRXhELFFBQU0sT0FBTyxLQUFLLHVDQUF1QyxjQUFjO0FBRXZFLFFBQU0sT0FBTyxLQUFLLG9DQUFvQyxRQUFRO0FBRTlELFFBQU0sT0FBTyxNQUFNLHVDQUF1QztBQUUxRCxRQUFNLDZCQUFTLEdBQUc7QUFDcEIsR0FYcUI7IiwKICAibmFtZXMiOiBbXQp9Cg==

@ -1,26 +0,0 @@
var import_test = require("@playwright/test");
var import_new_user = require("./new_user");
var import_open = require("./open");
var import_send_message = require("./send_message");
const userADisplayName = "userA";
const userBDisplayName = "userB";
const timeStamp = Date.now();
const testMessage = "Test-Message-";
const testReply = "Sending Reply Test Message";
(0, import_test.test)("Send message to new contact", async () => {
const [windowA, windowB] = await Promise.all([(0, import_open.openApp)("1"), (0, import_open.openApp)("2")]);
const userA = await (0, import_new_user.newUser)(windowA, userADisplayName);
const userB = await (0, import_new_user.newUser)(windowB, userBDisplayName);
await (0, import_send_message.sendMessage)(windowA, userB.sessionid, `${testMessage} + ${timeStamp}`);
windowA.locator(`${testMessage} > svg`).waitFor;
await windowA.isVisible("[data-testid=msg-status-outgoing]");
await windowA.waitForTimeout(5500);
await (0, import_send_message.sendMessage)(windowB, userA.sessionid, `${testReply} + ${timeStamp}`);
await windowA.waitForTimeout(5500);
await windowB.click("[data-testid=contact-section]");
await windowA.waitForTimeout(2500);
(0, import_test.expect)(await windowB.innerText(".module-conversation__user__profile-name")).toBe(userA.userName);
await windowA.click("[data-testid=contact-section]");
(0, import_test.expect)(await windowA.innerText(".module-conversation__user__profile-name")).toBe(userB.userName);
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL25ld19jb250YWN0X3Rlc3Quc3BlYy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgX2VsZWN0cm9uLCBleHBlY3QsIHRlc3QgfSBmcm9tICdAcGxheXdyaWdodC90ZXN0JztcbmltcG9ydCB7IG5ld1VzZXIgfSBmcm9tICcuL25ld191c2VyJztcbmltcG9ydCB7IG9wZW5BcHAgfSBmcm9tICcuL29wZW4nO1xuaW1wb3J0IHsgc2VuZE1lc3NhZ2UgfSBmcm9tICcuL3NlbmRfbWVzc2FnZSc7XG5cbmNvbnN0IHVzZXJBRGlzcGxheU5hbWUgPSAndXNlckEnO1xuY29uc3QgdXNlckJEaXNwbGF5TmFtZSA9ICd1c2VyQic7XG5cbmNvbnN0IHRpbWVTdGFtcCA9IERhdGUubm93KCk7XG5cbmNvbnN0IHRlc3RNZXNzYWdlID0gJ1Rlc3QtTWVzc2FnZS0nO1xuY29uc3QgdGVzdFJlcGx5ID0gJ1NlbmRpbmcgUmVwbHkgVGVzdCBNZXNzYWdlJztcblxuLy8gU2VuZCBtZXNzYWdlIGluIG9uZSB0byBvbmUgY29udmVyc2F0aW9uIHdpdGggbmV3IGNvbnRhY3RcbnRlc3QoJ1NlbmQgbWVzc2F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QUFRLFFBQVEsR0FBRyxtQkFBbUIsRUFBRTtBQUN4QyxRQUFNLFFBQVEsVUFBVSxtQ0FBbUM7QUFDM0QsUUFBTSxRQUFRLGVBQWUsSUFBSTtBQUVqQyxRQUFNLHFDQUFZLFNBQVMsTUFBTSxXQUFXLEdBQUcsZUFBZSxXQUFXO0FBQ3pFLFFBQU0sUUFBUSxlQUFlLElBQUk7QUFFakMsUUFBTSxRQUFRLE1BQU0sK0JBQStCO0FBQ25ELFFBQU0sUUFBUSxlQUFlLElBQUk7QUFDakMsMEJBQU8sTUFBTSxRQUFRLFVBQVUsMENBQTBDLENBQUMsRUFBRSxLQUFLLE1BQU0sUUFBUTtBQUUvRixRQUFNLFFBQVEsTUFBTSwrQkFBK0I7QUFDbkQsMEJBQU8sTUFBTSxRQUFRLFVBQVUsMENBQTBDLENBQUMsRUFBRSxLQUFLLE1BQU0sUUFBUTtBQUNqRyxDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo=

@ -1,40 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var new_user_exports = {};
__export(new_user_exports, {
newUser: () => newUser
});
module.exports = __toCommonJS(new_user_exports);
const newUser = /* @__PURE__ */ __name(async (window, userName) => {
await window.click("text=Create Session ID");
await window.waitForTimeout(1500);
const sessionid = await window.inputValue("[data-testid=session-id-signup]");
await window.click("text=Continue");
await window.fill("#session-input-floating-label", userName);
await window.click("text=Get Started");
await window.click("text=Reveal recovery phrase");
const recoveryPhrase = await window.innerText("[data-testid=recovery-phrase-seed-modal]");
await window.click(".session-icon-button.small");
return { userName, sessionid, recoveryPhrase };
}, "newUser");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
newUser
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL25ld191c2VyLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgeyBfZWxlY3Ryb24sIFBhZ2UgfSBmcm9tICdAcGxheXdyaWdodC90ZXN0JztcblxuZXhwb3J0IGNvbnN0IG5ld1VzZXIgPSBhc3luYyAod2luZG93OiBQYWdlLCB1c2VyTmFtZTogc3RyaW5nKSA9PiB7XG4gIC8vIENyZWF0ZSBVc2VyXG4gIGF3YWl0IHdpbmRvdy5jbGljaygndGV4dD1DcmVhdGUgU2Vzc2lvbiBJRCcpO1xuICAvLyBXYWl0IGZvciBhbmltYXRpb24gZm9yIGZpbmlzaCBjcmVhdGluZyBJRFxuICBhd2FpdCB3aW5kb3cud2FpdEZvclRpbWVvdXQoMTUwMCk7XG4gIC8vU2F2ZSBzZXNzaW9uIElEIHRvIGEgdmFyaWFibGVcbiAgY29uc3Qgc2Vzc2lvbmlkID0gYXdhaXQgd2luZG93LmlucHV0VmFsdWUoJ1tkYXRhLXRlc3RpZD1zZXNzaW9uLWlkLXNpZ251cF0nKTtcbiAgYXdhaXQgd2luZG93LmNsaWNrKCd0ZXh0PUNvbnRpbnVlJyk7XG4gIC8vIElucHV0IHVzZXJuYW1lID0gdGVzdHVzZXJcbiAgYXdhaXQgd2luZG93LmZpbGwoJyNzZXNzaW9uLWlucHV0LWZsb2F0aW5nLWxhYmVsJywgdXNlck5hbWUpO1xuICBhd2FpdCB3aW5kb3cuY2xpY2soJ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getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var open_exports = {};
__export(open_exports, {
getAppDataPath: () => getAppDataPath,
openApp: () => openApp
});
module.exports = __toCommonJS(open_exports);
var import_test = __toESM(require("@playwright/test"));
var import_fs = require("fs");
var path = __toESM(require("path"));
const NODE_ENV = "test-integration";
let appDataPath;
import_test.default.beforeAll(async () => {
appDataPath = await getAppDataPath();
});
const getDirectoriesOfSessionDataPath = /* @__PURE__ */ __name((source) => (0, import_fs.readdirSync)(source, { withFileTypes: true }).filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name).filter((n) => n.startsWith(`Session-${NODE_ENV}`)), "getDirectoriesOfSessionDataPath");
import_test.default.beforeEach(() => {
if (!appDataPath || !appDataPath.length) {
throw new Error("appDataPath unset");
}
const parentFolderOfAllDataPath = path.dirname(appDataPath);
if (!parentFolderOfAllDataPath || parentFolderOfAllDataPath.length < 20) {
throw new Error("parentFolderOfAllDataPath not found or invalid");
}
const allAppDataPath = getDirectoriesOfSessionDataPath(parentFolderOfAllDataPath);
allAppDataPath.map((folder) => {
if (!appDataPath) {
throw new Error("parentFolderOfAllDataPath unset");
}
const pathToRemove = path.join(parentFolderOfAllDataPath, folder);
(0, import_fs.rmdirSync)(pathToRemove, { recursive: true });
});
});
const getAppDataPath = /* @__PURE__ */ __name(async () => {
process.env.NODE_ENV = NODE_ENV;
const electronApp = await import_test._electron.launch({ args: ["main.js"] });
const appPath = await electronApp.evaluate(async ({ app }) => {
return app.getPath("userData");
});
const window = await electronApp.firstWindow();
await window.close();
return appPath;
}, "getAppDataPath");
const openApp = /* @__PURE__ */ __name(async (multi) => {
process.env.NODE_APP_INSTANCE = multi;
process.env.NODE_ENV = NODE_ENV;
const electronApp = await import_test._electron.launch({ args: ["main.js"] });
const window = await electronApp.firstWindow();
await window.reload();
return window;
}, "openApp");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
getAppDataPath,
openApp
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL29wZW4udHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB0ZXN0LCB7IF9lbGVjdHJvbiB9IGZyb20gJ0BwbGF5d3JpZ2h0L3Rlc3QnO1xuaW1wb3J0IHsgcmVhZGRpclN5bmMsIHJtZGlyU3luYyB9IGZyb20gJ2ZzJztcblxuaW1wb3J0ICogYXMgcGF0aCBmcm9tICdwYXRoJztcblxuY29uc3QgTk9ERV9FTlYgPSAndGVzdC1pbnRlZ3JhdGlvbic7XG5cbmxldCBhcHBEYXRhUGF0aDogdW5kZWZpbmVkIHwgc3RyaW5nO1xuXG50ZXN0LmJlZm9yZUFsbChhc3luYyAoKSA9PiB7XG4gIGFwcERhdGFQYXRoID0gYXdhaXQgZ2V0QXBwRGF0YVBhdGgoKTtcbn0pO1xuXG5jb25zdCBnZXREaXJlY3Rvcmllc09mU2Vzc2lvbkRhdGFQYXRoID0gKHNvdXJjZTogc3RyaW5nKSA9PlxuICByZWFkZGlyU3luYyhzb3VyY2UsI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4QyxVQUFRLElBQUksV0FBVztBQUN2QixRQUFNLGNBQWMsTUFBTSxzQkFBVSxPQUFPLEVBQUUsTUFBTSxDQUFDLFNBQVMsRUFBRSxDQUFDO0FBQ2hFLFFBQU0sVUFBVSxNQUFNLFlBQVksU0FBUyxPQUFPLEVBQUUsVUFBVTtBQUM1RCxXQUFPLElBQUksUUFBUSxVQUFVO0FBQUEsRUFDL0IsQ0FBQztBQUNELFFBQU0sU0FBUyxNQUFNLFlBQVksWUFBWTtBQUM3QyxRQUFNLE9BQU8sTUFBTTtBQUVuQixTQUFPO0FBQ1QsR0FWOEI7QUFZdkIsTUFBTSxVQUFVLDhCQUFPLFVBQWtCO0FBQzlDLFVBQVEsSUFBSSxvQkFBb0I7QUFDaEMsVUFBUSxJQUFJLFdBQVc7QUFDdkIsUUFBTSxjQUFjLE1BQU0sc0JBQVUsT0FBTyxFQUFFLE1BQU0sQ0FBQyxTQUFTLEVBQUUsQ0FBQztBQUVoRSxRQUFNLFNBQVMsTUFBTSxZQUFZLFlBQVk7QUFFN0MsUUFBTSxPQUFPLE9BQU87QUFDcEIsU0FBTztBQUNULEdBVHVCOyIsCiAgIm5hbWVzIjogW10KfQo=

@ -1,35 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var send_message_exports = {};
__export(send_message_exports, {
sendMessage: () => sendMessage
});
module.exports = __toCommonJS(send_message_exports);
const sendMessage = /* @__PURE__ */ __name(async (window, sessionid, message) => {
await window.click("[data-testid=new-conversation-button]");
await window.fill(".session-id-editable-textarea", sessionid);
await window.click("text=Next");
await window.fill("[data-testid=message-input] * textarea", message);
await window.click("[data-testid=send-message-button]");
}, "sendMessage");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
sendMessage
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC9hdXRvbWF0aW9uL3NlbmRfbWVzc2FnZS50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgX2VsZWN0cm9uLCBQYWdlIH0gZnJvbSAnQHBsYXl3cmlnaHQvdGVzdCc7XG5cbmV4cG9ydCBjb25zdCBzZW5kTWVzc2FnZSA9IGFzeW5jICh3aW5kb3c6IFBhZ2UsIHNlc3Npb25pZDogc3RyaW5nLCBtZXNzYWdlOiBzdHJpbmcpID0+IHtcbiAgYXdhaXQgd2luZG93LmNsaWNrKCdbZGF0YS10ZXN0aWQ9bmV3LWNvbnZlcnNhdGlvbi1idXR0b25dJyk7XG4gIC8vIEVudGVyIHNlc3Npb24gSUQgb2YgVVNFUiBCXG4gIGF3YWl0IHdpbmRvdy5maWxsKCcuc2Vzc2lvbi1pZC1lZGl0YWJsZS10ZXh0YXJlYScsIHNlc3Npb25pZCk7XG4gIC8vIGNsaWNrIG5leHRcbiAgYXdhaXQgd2luZG93LmNsaWNrKCd0ZXh0PU5leHQnKTtcbiAgLy8gdHlwZSBpbnRvIG1lc3NhZ2UgaW5wdXQgYm94XG4gIGF3YWl0IHdpbmRvdy5maWxsKCdbZGF0YS10ZXN0aWQ9bWVzc2FnZS1pbnB1dF0gKiB0ZXh0YXJlYScsIG1lc3NhZ2UpO1xuICAvLyBjbGljayB1cCBhcnJvdyAoc2VuZClcbiAgYXdhaXQgd2luZG93LmNsaWNrKCdbZGF0YS10ZXN0aWQ9c2VuZC1tZXNzYWdlLWJ1dHRvbl0nKTtcbn07XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBRU8sTUFBTSxjQUFjLDhCQUFPLFFBQWMsV0FBbUIsWUFBb0I7QUFDckYsUUFBTSxPQUFPLE1BQU0sdUNBQXVDO0FBRTFELFFBQU0sT0FBTyxLQUFLLGlDQUFpQyxTQUFTO0FBRTVELFFBQU0sT0FBTyxNQUFNLFdBQVc7QUFFOUIsUUFBTSxPQUFPLEtBQUssMENBQTBDLE9BQU87QUFFbkUsUUFBTSxPQUFPLE1BQU0sbUNBQW1DO0FBQ3hELEdBVjJCOyIsCiAgIm5hbWVzIjogW10KfQo=

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,33 +0,0 @@
var import_chai = require("chai");
var import_mocha = require("mocha");
var import_protobuf = require("../../../../protobuf");
var import_session = require("../../../../session");
var import_GroupInvitationMessage = require("../../../../session/messages/outgoing/visibleMessage/GroupInvitationMessage");
describe("GroupInvitationMessage", () => {
let message;
const timestamp = Date.now();
const url = "http://localhost";
const name = "test";
(0, import_mocha.beforeEach)(() => {
message = new import_GroupInvitationMessage.GroupInvitationMessage({
timestamp,
url,
name
});
});
it("dataMessage.groupInvitation has url, and serverName set", () => {
var _a, _b;
const plainText = message.plainTextBuffer();
const decoded = import_protobuf.SignalService.Content.decode(plainText);
(0, import_chai.expect)((_a = decoded.dataMessage) == null ? void 0 : _a.openGroupInvitation).to.have.property("url", url);
(0, import_chai.expect)((_b = decoded.dataMessage) == null ? void 0 : _b.openGroupInvitation).to.have.property("name", name);
});
it("correct ttl", () => {
(0, import_chai.expect)(message.ttl()).to.equal(import_session.Constants.TTL_DEFAULT.TTL_MAX);
});
it("has an identifier", () => {
(0, import_chai.expect)(message.identifier).to.not.equal(null, "identifier cannot be null");
(0, import_chai.expect)(message.identifier).to.not.equal(void 0, "identifier cannot be undefined");
});
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vdHMvdGVzdC9zZXNzaW9uL3VuaXQvbWVzc2FnZXMvR3JvdXBJbnZpdGF0aW9uTWVzc2FnZV90ZXN0LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgeyBleHBlY3QgfSBmcm9tICdjaGFpJztcbmltcG9ydCB7IGJlZm9yZUVhY2ggfSBmcm9tICdtb2NoYSc7XG5cbmltcG9ydCB7IFNpZ25hbFNlcnZpY2UgfSBmcm9tICcuLi8uLi8uLi8uLi9wcm90b2J1Zic7XG5pbXBvcnQgeyBDb25zdGFudHMgfSBmcm9tICcuLi8uLi8uLi8uLi9zZXNzaW9uJztcbmltcG9ydCB7IEdyb3VwSW52aXRhdGlvbk1lc3NhZ2UgfSBmcm9tICcuLi8uLi8uLi8uLi9zZXNzaW9uL21lc3NhZ2VzL291dGdvaW5nL3Zpc2libGVNZXNzYWdlL0dyb3VwSW52aXRhdGlvbk1lc3NhZ2UnO1xuXG5kZXNjcmliZSgnR3JvdXBJbnZpdGF0aW9uTWVzc2FnZScsICgpID0+IHtcbiAgbGV0IG1lc3NhZ2U6IEdyb3VwSW52aXRhdGlvbk1lc3NhZ2U7XG4gIGNvbnN0IHRpbWVzdGFtcCA9IERhdGUubm93KCk7XG4gIGNvbnN0IHVybCA9ICdodHRwOi8vbG9jYWxob3N0JztcbiAgY29uc3QgbmFtZSA9ICd0ZXN0JztcblxuICBiZWZvcmVFYWNoKCgpID0+IHtcbiAgICBtZXNzYWdlID0gbmV3IEdyb3VwSW52aXRhdGlvbk1lc3NhZ2Uoe1xuICAgICAgdGltZXN0YW1wLFxuICAgICAgdXJsLFxuICAgICAgbmFtZSxcbiAgICB9KTtcb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TtBQUNKLFFBQU0sWUFBWSxLQUFLLElBQUk7QUFDM0IsUUFBTSxNQUFNO0FBQ1osUUFBTSxPQUFPO0FBRWIsK0JBQVcsTUFBTTtBQUNmLGNBQVUsSUFBSSxxREFBdUI7QUFBQSxNQUNuQztBQUFBLE1BQ0E7QUFBQSxNQUNBO0FBQUEsSUFDRixDQUFDO0FBQUEsRUFDSCxDQUFDO0FBRUQsS0FBRywyREFBMkQsTUFBTTtBQXJCdEU7QUFzQkksVUFBTSxZQUFZLFFBQVEsZ0JBQWdCO0FBQzFDLFVBQU0sVUFBVSw4QkFBYyxRQUFRLE9BQU8sU0FBUztBQUV0RCw0QkFBTyxjQUFRLGdCQUFSLG1CQUFxQixtQkFBbUIsRUFBRSxHQUFHLEtBQUssU0FBUyxPQUFPLEdBQUc7QUFDNUUsNEJBQU8sY0FBUSxnQkFBUixtQkFBcUIsbUJBQW1CLEVBQUUsR0FBRyxLQUFLLFNBQVMsUUFBUSxJQUFJO0FBQUEsRUFDaEYsQ0FBQztBQUVELEtBQUcsZUFBZSxNQUFNO0FBQ3RCLDRCQUFPLFFBQVEsSUFBSSxDQUFDLEVBQUUsR0FBRyxNQUFNLHlCQUFVLFlBQVksT0FBTztBQUFBLEVBQzlELENBQUM7QUFFRCxLQUFHLHFCQUFxQixNQUFNO0FBQzVCLDRCQUFPLFFBQVEsVUFBVSxFQUFFLEdBQUcsSUFBSSxNQUFNLE1BQU0sMkJBQTJCO0FBQ3pFLDRCQUFPLFFBQVEsVUFBVSxFQUFFLEdBQUcsSUFBSSxNQUFNLFFBQVcsZ0NBQWdDO0FBQUEsRUFDckYsQ0FBQztBQUNILENBQUM7IiwKICAibmFtZXMiOiBbXQp9Cg==

@ -1,31 +0,0 @@
var import_chai = require("chai");
var import_mocha = require("mocha");
var import_protobuf = require("../../../../protobuf");
var import_lodash = require("lodash");
var import_session = require("../../../../session");
var import_ReadReceiptMessage = require("../../../../session/messages/outgoing/controlMessage/receipt/ReadReceiptMessage");
describe("ReceiptMessage", () => {
let readMessage;
let timestamps;
(0, import_mocha.beforeEach)(() => {
timestamps = [987654321, 123456789];
const timestamp = Date.now();
readMessage = new import_ReadReceiptMessage.ReadReceiptMessage({ timestamp, timestamps });
});
it("content of a read receipt is correct", () => {
var _a;
const plainText = readMessage.plainTextBuffer();
const decoded = import_protobuf.SignalService.Content.decode(plainText);
(0, import_chai.expect)(decoded.receiptMessage).to.have.property("type", 1);
const decodedTimestamps = (((_a = decoded.receiptMessage) == null ? void 0 : _a.timestamp) ?? []).map(import_lodash.toNumber);
(0, import_chai.expect)(decodedTimestamps).to.deep.equal(timestamps);
});
it("correct ttl", () => {
(0, import_chai.expect)(readMessage.ttl()).to.equal(import_session.Constants.TTL_DEFAULT.TTL_MAX);
});
it("has an identifier", () => {
(0, import_chai.expect)(readMessage.identifier).to.not.equal(null, "identifier cannot be null");
(0, import_chai.expect)(readMessage.identifier).to.not.equal(void 0, "identifier cannot be undefined");
});
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vdHMvdGVzdC9zZXNzaW9uL3VuaXQvbWVzc2FnZXMvUmVjZWlwdE1lc3NhZ2VfdGVzdC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgZXhwZWN0IH0gZnJvbSAnY2hhaSc7XG5pbXBvcnQgeyBiZWZvcmVFYWNoIH0gZnJvbSAnbW9jaGEnO1xuXG5pbXBvcnQgeyBTaWduYWxTZXJ2aWNlIH0gZnJvbSAnLi4vLi4vLi4vLi4vcHJvdG9idWYnO1xuaW1wb3J0IHsgdG9OdW1iZXIgfSBmcm9tICdsb2Rhc2gnO1xuaW1wb3J0IHsgQ29uc3RhbnRzIH0gZnJvbSAnLi4vLi4vLi4vLi4vc2Vzc2lvbic7XG5pbXBvcnQgeyBSZWFkUmVjZWlwdE1lc3NhZ2UgfSBmcm9tICcuLi8uLi8uLi8uLi9zZXNzaW9uL21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FBTSxVQUFVO0FBQUEsRUFDcEQsQ0FBQztBQUVELEtBQUcsZUFBZSxNQUFNO0FBQ3RCLDRCQUFPLFlBQVksSUFBSSxDQUFDLEVBQUUsR0FBRyxNQUFNLHlCQUFVLFlBQVksT0FBTztBQUFBLEVBQ2xFLENBQUM7QUFFRCxLQUFHLHFCQUFxQixNQUFNO0FBQzVCLDRCQUFPLFlBQVksVUFBVSxFQUFFLEdBQUcsSUFBSSxNQUFNLE1BQU0sMkJBQTJCO0FBQzdFLDRCQUFPLFlBQVksVUFBVSxFQUFFLEdBQUcsSUFBSSxNQUFNLFFBQVcsZ0NBQWdDO0FBQUEsRUFDekYsQ0FBQztBQUNILENBQUM7IiwKICAibmFtZXMiOiBbXQp9Cg==

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,22 +0,0 @@
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var import_chai = __toESM(require("chai"));
var import_mocha = require("mocha");
var import_chai_as_promised = __toESM(require("chai-as-promised"));
import_chai.default.use(import_chai_as_promised.default);
(0, import_mocha.describe)("ClosedGroupUpdates", () => {
});
//# sourceMapp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JvdXBOYW1lQ2hhbmdlZCcsICgpID0+IHtcbiAgLy8gICAvLyAgICAgaXQoJ2RvZXMgbm90IHRyaWdnZXIgYW4gdXBkYXRlIG9mIHRoZSBncm91cCBpZiB0aGUgbmFtZSBpcyB0aGUgc2FtZScsIGFzeW5jICgpID0+IHtcbiAgLy8gICAvLyAgICAgICAgIGNvbnN0IGVudmVsb3BlID0gZ2VuZXJhdGVFbnZlbG9wZVBsdXNDbG9zZWRHcm91cChncm91cElkLCBzZW5kZXIpO1xuICAvLyAgIC8vICAgICAgICAgY29uc3QgZ3JvdXBVcGRhdGUgPSBnZW5lcmF0ZUdyb3VwVXBkYXRlTmFtZUNoYW5nZShncm91cElkKTtcbiAgLy8gICAvLyAgICAgICAgIGF3YWl0IGhhbmRsZUNsb3NlZEdyb3VwQ29udHJvbE1lc3NhZ2UoZW52ZWxvcGUsIGdyb3VwVXBkYXRlKTtcbiAgLy8gICAvLyAgICAgfSk7XG4gIC8vICAgLy8gfSk7XG4gIC8vIH0pO1xufSk7XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7Ozs7QUFFQSxrQkFBaUI7QUFDakIsbUJBQXlCO0FBRXpCLDhCQUEyQjtBQUMzQixvQkFBSyxJQUFJLCtCQUFxQjtBQUc5QiwyQkFBUyxzQkFBc0IsTUFBTTtBQW1DckMsQ0FBQzsiLAogICJuYW1lcyI6IFtdCn0K

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,32 +0,0 @@
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var import_chai = __toESM(require("chai"));
var sinon = __toESM(require("sinon"));
var import_utils = require("../../../test-utils/utils");
var import_chai_as_promised = __toESM(require("chai-as-promised"));
import_chai.default.use(import_chai_as_promised.default);
describe("SyncUtils", () => {
const sandbox = sinon.createSandbox();
afterEach(() => {
sandbox.restore();
(0, import_utils.restoreStubs)();
});
describe("syncConfigurationIfNeeded", () => {
it("sync if last sync undefined", () => {
});
});
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vdHMvdGVzdC9zZXNzaW9uL3VuaXQvdXRpbHMvU3luY1V0aWxzX3Rlc3QudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbIi8vIHRzbGludDpkaXNhYmxlOiBuby1pbXBsaWNpdC1kZXBlbmRlbmNpZXNcbmltcG9ydCBjaGFpIGZyb20gJ2NoYWknO1xuaW1wb3J0ICogYXMgc2lub24gZnJvbSAnc2lub24nO1xuaW1wb3J0IHsgcmVzdG9yZVN0dWJzIH0gZnJvbSAnLi4vLi4vLi4vdGVzdC11dGlscy91dGlscyc7XG5cbmltcG9ydCBjaGFpQXNQcm9taXNlZCBmcm9tICdjaGFpLWFzLXByb21pc2VkJztcbmNoYWkudXNlKGNoYWlBc1Byb21pc2VkIGFzIGFueSk7XG5cbmRlc2NyaWJlKCdTeW5jVXRpbHMnLCAoKSA9PiB7XG4g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2hCLG1DQUFhO0FBQUEsRUFDZixDQUFDO0FBRUQsV0FBUyw2QkFBNkIsTUFBTTtBQUMxQyxPQUFHLCtCQUErQixNQUFNO0FBQUEsSUFNeEMsQ0FBQztBQUFBLEVBQ0gsQ0FBQztBQUNILENBQUM7IiwKICAibmFtZXMiOiBbXQp9Cg==

File diff suppressed because one or more lines are too long

@ -1,35 +0,0 @@
var import_chai = require("chai");
var import_isLinkPreviewDateValid = require("../../util/isLinkPreviewDateValid");
describe("isLinkPreviewDateValid", () => {
it("returns false for non-numbers", () => {
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(null));
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(void 0));
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(Date.now().toString()));
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(new Date()));
});
it("returns false for zero", () => {
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(0));
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(-0));
});
it("returns false for NaN", () => {
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(0 / 0));
});
it("returns false for any infinite value", () => {
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(Infinity));
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(-Infinity));
});
it("returns false for timestamps more than a day from now", () => {
const twoDays = 2 * 24 * 60 * 60 * 1e3;
import_chai.assert.isFalse((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(Date.now() + twoDays));
});
it("returns true for timestamps before tomorrow", () => {
import_chai.assert.isTrue((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(Date.now()));
import_chai.assert.isTrue((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(Date.now() + 123));
import_chai.assert.isTrue((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(Date.now() - 123));
import_chai.assert.isTrue((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(new Date(1995, 3, 20).valueOf()));
import_chai.assert.isTrue((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(new Date(1970, 3, 20).valueOf()));
import_chai.assert.isTrue((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(new Date(1969, 3, 20).valueOf()));
import_chai.assert.isTrue((0, import_isLinkPreviewDateValid.isLinkPreviewDateValid)(1));
});
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC90ZXN0LWVsZWN0cm9uL2lzTGlua1ByZXZpZXdEYXRlVmFsaWRfdGVzdC50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiaW1wb3J0IHsgYXNzZXJ0IH0gZnJvbSAnY2hhaSc7XG5cbmltcG9ydCB7IGlzTGlua1ByZXZpZXdEYXRlVmFsaWQgfSBmcm9tICcuLi8uLi91dGlsL2lzTGlua1ByZXZpZXdEYXRlVmFsaWQnO1xuXG5kZXNjcmliZSgnaXNMaW5rUHJldmlld0RhdGVWYWxpZCcsICgpID0+IHtcbiAgaXQoJ3JldHVybnMgZmFsc2UgZm9yIG5vbi1udW1iZXJzJywgKCkgPT4ge1xuICAgIGFzc2VydC5pc0ZhbHNlKGlzTGlua1ByZXZpZXdEYXRlVmFsaWQobnVsbCkpO1xuICAgIGFzc2VydC5pc0ZhbHNlKGlzTGlua1ByZXZpZXdEYXRlVmFsaWQodW5kZWZpbmVkKSk7XG4gICAgYXNzZXJ0LmlzRmFsc2UoaXNMaW5rUHJldmlld0RhdGVWYWxpZChEYXRlLm5vdygpLnRvU3RyaW5nKCkpKTtcbiAgICBhc3NlcnQuaXNGYWxzZShpc0xpbmtQcmV2aWV3RGF0ZVZhbGlkKG5ldyBEYXRlKCkpKTtcbiAgfSk7XG5cb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sS0FBRyx3Q0FBd0MsTUFBTTtBQUMvQyx1QkFBTyxRQUFRLDBEQUF1QixRQUFRLENBQUM7QUFDL0MsdUJBQU8sUUFBUSwwREFBdUIsU0FBUyxDQUFDO0FBQUEsRUFDbEQsQ0FBQztBQUVELEtBQUcseURBQXlELE1BQU07QUFDaEUsVUFBTSxVQUFVLElBQUksS0FBSyxLQUFLLEtBQUs7QUFDbkMsdUJBQU8sUUFBUSwwREFBdUIsS0FBSyxJQUFJLElBQUksT0FBTyxDQUFDO0FBQUEsRUFDN0QsQ0FBQztBQUVELEtBQUcsK0NBQStDLE1BQU07QUFDdEQsdUJBQU8sT0FBTywwREFBdUIsS0FBSyxJQUFJLENBQUMsQ0FBQztBQUNoRCx1QkFBTyxPQUFPLDBEQUF1QixLQUFLLElBQUksSUFBSSxHQUFHLENBQUM7QUFDdEQsdUJBQU8sT0FBTywwREFBdUIsS0FBSyxJQUFJLElBQUksR0FBRyxDQUFDO0FBQ3RELHVCQUFPLE9BQU8sMERBQXVCLElBQUksS0FBSyxNQUFNLEdBQUcsRUFBRSxFQUFFLFFBQVEsQ0FBQyxDQUFDO0FBQ3JFLHVCQUFPLE9BQU8sMERBQXVCLElBQUksS0FBSyxNQUFNLEdBQUcsRUFBRSxFQUFFLFFBQVEsQ0FBQyxDQUFDO0FBQ3JFLHVCQUFPLE9BQU8sMERBQXVCLElBQUksS0FBSyxNQUFNLEdBQUcsRUFBRSxFQUFFLFFBQVEsQ0FBQyxDQUFDO0FBQ3JFLHVCQUFPLE9BQU8sMERBQXVCLENBQUMsQ0FBQztBQUFBLEVBQ3pDLENBQUM7QUFDSCxDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo=

@ -1,34 +0,0 @@
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var test_utils_exports = {};
__export(test_utils_exports, {
Stubs: () => Stubs,
TestUtils: () => TestUtils
});
module.exports = __toCommonJS(test_utils_exports);
var TestUtils = __toESM(require("./utils"));
var Stubs = __toESM(require("./stubs"));
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Stubs,
TestUtils
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgKiBhcyBUZXN0VXRpbHMgZnJvbSAnLi91dGlscyc7XG5pbXBvcnQgKiBhcyBTdHVicyBmcm9tICcuL3N0dWJzJztcblxuZXhwb3J0IHsgVGVzdFV0aWxzLCBTdHVicyB9O1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQSxnQkFBMkI7QUFDM0IsWUFBdUI7IiwKICAibmFtZXMiOiBbXQp9Cg==

@ -1,18 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var stubs_exports = {};
module.exports = __toCommonJS(stubs_exports);
__reExport(stubs_exports, require("./sending"), module.exports);
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL3N0dWJzL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJleHBvcnQgKiBmcm9tICcuL3NlbmRpbmcnO1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUEsMEJBQWMsc0JBQWQ7IiwKICAibmFtZXMiOiBbXQp9Cg==

@ -1,44 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var PendingMessageCacheStub_exports = {};
__export(PendingMessageCacheStub_exports, {
PendingMessageCacheStub: () => PendingMessageCacheStub
});
module.exports = __toCommonJS(PendingMessageCacheStub_exports);
var import_sending = require("../../../../session/sending");
class PendingMessageCacheStub extends import_sending.PendingMessageCache {
constructor(dbData = []) {
super();
this.dbData = dbData;
}
getCache() {
return this.cache;
}
async getFromStorage() {
return this.dbData;
}
async saveToDB() {
return;
}
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
PendingMessageCacheStub
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL3N0dWJzL3NlbmRpbmcvUGVuZGluZ01lc3NhZ2VDYWNoZVN0dWIudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImltcG9ydCB7IFBlbmRpbmdNZXNzYWdlQ2FjaGUgfSBmcm9tICcuLi8uLi8uLi8uLi9zZXNzaW9uL3NlbmRpbmcnO1xuaW1wb3J0IHsgUmF3TWVzc2FnZSB9IGZyb20gJy4uLy4uLy4uLy4uL3Nlc3Npb24vdHlwZXMnO1xuXG5leHBvcnQgY2xhc3MgUGVuZGluZ01lc3NhZ2VDYWNoZVN0dWIgZXh0ZW5kcyBQZW5kaW5nTWVzc2FnZUNhY2hlIHtcbiAgcHVibGljIGRiRGF0YTogQXJyYXk8UmF3TWVzc2FnZT47XG4gIGNvbnN0cnVjdG9yKGRiRGF0YTogQXJyYXk8UmF3TWVzc2FnZT4gPSBbXSkge1xuICAgIHN1cGVyKCk7XG4gICAgdGhpcy5kYkRhdGEgPSBkYkRhdGE7XG4gIH1cblxuICBwdWJsaWMgZ2V0Q2FjaGUoKTogUmVhZG9ubHk8QXJyYXk8UmF3TWVzc2FnZT4+IHtcbiAgICByZXR1cm4gdGhpcy5jYWNoZTtcbiAgfVxuXG4gIHByb3RlY3RlZCBhc3luYyBnZXRGcm9tU3RvcmFnZSgpIHtcbiAgICByZXR1cm4gdGhpcy5kYkRhdGE7XG4gIH1cblxuICBwcm90ZWN0ZWQgYXN5bmMgc2F2ZVRvREIoKSB7XG4gICAgcmV0dXJuO1xuICB9XG59XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEscUJBQW9DO0FBRzdCLE1BQU0sZ0NBQWdDLG1DQUFvQjtBQUFBLEVBRS9ELFlBQVksU0FBNEIsQ0FBQyxHQUFHO0FBQzFDLFVBQU07QUFDTixTQUFLLFNBQVM7QUFBQSxFQUNoQjtBQUFBLEVBRU8sV0FBd0M7QUFDN0MsV0FBTyxLQUFLO0FBQUEsRUFDZDtBQUFBLFFBRWdCLGlCQUFpQjtBQUMvQixXQUFPLEtBQUs7QUFBQSxFQUNkO0FBQUEsUUFFZ0IsV0FBVztBQUN6QjtBQUFBLEVBQ0Y7QUFDRjtBQWxCTyIsCiAgIm5hbWVzIjogW10KfQo=

@ -1,18 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var sending_exports = {};
module.exports = __toCommonJS(sending_exports);
__reExport(sending_exports, require("./PendingMessageCacheStub"), module.exports);
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL3N0dWJzL3NlbmRpbmcvaW5kZXgudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCAqIGZyb20gJy4vUGVuZGluZ01lc3NhZ2VDYWNoZVN0dWInO1xuIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUEsNEJBQWMsc0NBQWQ7IiwKICAibmFtZXMiOiBbXQp9Cg==

@ -1,61 +0,0 @@
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var envelope_exports = {};
__export(envelope_exports, {
generateEnvelopePlus: () => generateEnvelopePlus,
generateEnvelopePlusClosedGroup: () => generateEnvelopePlusClosedGroup
});
module.exports = __toCommonJS(envelope_exports);
var import_protobuf = require("../../../protobuf");
var import_uuid = __toESM(require("uuid"));
function generateEnvelopePlusClosedGroup(groupId, sender) {
const envelope = {
senderIdentity: sender,
receivedAt: Date.now(),
timestamp: Date.now() - 2e3,
id: (0, import_uuid.default)(),
type: import_protobuf.SignalService.Envelope.Type.CLOSED_GROUP_MESSAGE,
source: groupId,
content: new Uint8Array(),
toJSON: () => ["fake"]
};
return envelope;
}
function generateEnvelopePlus(sender) {
const envelope = {
receivedAt: Date.now(),
timestamp: Date.now() - 2e3,
id: (0, import_uuid.default)(),
type: import_protobuf.SignalService.Envelope.Type.SESSION_MESSAGE,
source: sender,
senderIdentity: sender,
content: new Uint8Array(),
toJSON: () => ["fake"]
};
return envelope;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
generateEnvelopePlus,
generateEnvelopePlusClosedGroup
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL3V0aWxzL2VudmVsb3BlLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgeyBFbnZlbG9wZVBsdXMgfSBmcm9tICcuLi8uLi8uLi9yZWNlaXZlci90eXBlcyc7XG5pbXBvcnQgeyBTaWduYWxTZXJ2aWNlIH0gZnJvbSAnLi4vLi4vLi4vcHJvdG9idWYnO1xuXG5pbXBvcnQgdXVpZCBmcm9tICd1dWlkJztcblxuZXhwb3J0IGZ1bmN0aW9uIGdlbmVyYXRlRW52ZWxvcGVQbHVzQ2xvc2VkR3JvdXAoZ3JvdXBJZDogc3RyaW5nLCBzZW5kZXI6IHN0cmluZyk6IEVudmVsb3BlUGx1cyB7XG4gIGNvbnN0IGVudmVsb3BlOiBFbnZlbG9wZVBsdXMgPSB7XG4gICAgc2VuZGVySWRlbnRpdHk6IHNlbmRlcixcbiAgICByZWNlaXZlZEF0OiBEYXRlLm5vdygpLFxuICAgIHRpbWVzdGFtcDogRGF0ZS5ub3coKSAtIDIwMDAsXG4gICAgaWQ6IHV1aWQoKSxcbiAgICB0eXBlOiBTaWduYWxTZXJ2aWNlLkVudmVsb3BlLlR5cGUuQ0xPU0VEX0dST1VQX01FU1NBR0UsXG4gICAgc291cmNlOiBncm91cElkLFxuICAgIGN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UFNLENBQUMsTUFBTTtBQUFBLEVBQ3ZCO0FBRUEsU0FBTztBQUNUO0FBYmdCLEFBZVQsOEJBQThCLFFBQThCO0FBQ2pFLFFBQU0sV0FBeUI7QUFBQSxJQUM3QixZQUFZLEtBQUssSUFBSTtBQUFBLElBQ3JCLFdBQVcsS0FBSyxJQUFJLElBQUk7QUFBQSxJQUN4QixJQUFJLHlCQUFLO0FBQUEsSUFDVCxNQUFNLDhCQUFjLFNBQVMsS0FBSztBQUFBLElBQ2xDLFFBQVE7QUFBQSxJQUNSLGdCQUFnQjtBQUFBLElBQ2hCLFNBQVMsSUFBSSxXQUFXO0FBQUEsSUFDeEIsUUFBUSxNQUFNLENBQUMsTUFBTTtBQUFBLEVBQ3ZCO0FBRUEsU0FBTztBQUNUO0FBYmdCIiwKICAibmFtZXMiOiBbXQp9Cg==

@ -1,22 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var utils_exports = {};
module.exports = __toCommonJS(utils_exports);
__reExport(utils_exports, require("./timeout"), module.exports);
__reExport(utils_exports, require("./stubbing"), module.exports);
__reExport(utils_exports, require("./pubkey"), module.exports);
__reExport(utils_exports, require("./message"), module.exports);
__reExport(utils_exports, require("./envelope"), module.exports);
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL3V0aWxzL2luZGV4LnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJleHBvcnQgKiBmcm9tICcuL3RpbWVvdXQnO1xuZXhwb3J0ICogZnJvbSAnLi9zdHViYmluZyc7XG5leHBvcnQgKiBmcm9tICcuL3B1YmtleSc7XG5leHBvcnQgKiBmcm9tICcuL21lc3NhZ2UnO1xuZXhwb3J0ICogZnJvbSAnLi9lbnZlbG9wZSc7XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQSwwQkFBYyxzQkFBZDtBQUNBLDBCQUFjLHVCQURkO0FBRUEsMEJBQWMscUJBRmQ7QUFHQSwwQkFBYyxzQkFIZDtBQUlBLDBCQUFjLHVCQUpkOyIsCiAgIm5hbWVzIjogW10KfQo=

File diff suppressed because one or more lines are too long

@ -1,88 +0,0 @@
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var pubkey_exports = {};
__export(pubkey_exports, {
generateFakeECKeyPair: () => generateFakeECKeyPair,
generateFakePubKey: () => generateFakePubKey,
generateFakePubKeyStr: () => generateFakePubKeyStr,
generateFakePubKeys: () => generateFakePubKeys,
generateFakeSnode: () => generateFakeSnode,
generateFakeSnodeWithEdKey: () => generateFakeSnodeWithEdKey,
generateFakeSnodes: () => generateFakeSnodes
});
module.exports = __toCommonJS(pubkey_exports);
var crypto = __toESM(require("crypto"));
var import_lodash = __toESM(require("lodash"));
var import_keypairs = require("../../../receiver/keypairs");
var import_types = require("../../../session/types");
function generateFakePubKey() {
const numBytes = import_types.PubKey.PUBKEY_LEN / 2 - 1;
const hexBuffer = crypto.randomBytes(numBytes).toString("hex");
const pubkeyString = `05${hexBuffer}`;
return new import_types.PubKey(pubkeyString);
}
function generateFakePubKeyStr() {
const numBytes = import_types.PubKey.PUBKEY_LEN / 2 - 1;
const hexBuffer = crypto.randomBytes(numBytes).toString("hex");
const pubkeyString = `05${hexBuffer}`;
return pubkeyString;
}
function generateFakeECKeyPair() {
const pubkey = generateFakePubKey().toArray();
const privKey = new Uint8Array(crypto.randomBytes(64));
return new import_keypairs.ECKeyPair(pubkey, privKey);
}
function generateFakePubKeys(amount) {
const numPubKeys = amount > 0 ? Math.floor(amount) : 0;
return new Array(numPubKeys).fill(0).map(() => generateFakePubKey());
}
function generateFakeSnode() {
return {
ip: `136.243.${Math.random() * 255}.${Math.random() * 255}`,
port: 22116,
pubkey_x25519: generateFakePubKeyStr(),
pubkey_ed25519: generateFakePubKeyStr()
};
}
function generateFakeSnodeWithEdKey(ed25519Pubkey) {
return {
ip: `136.243.${Math.random() * 255}.${Math.random() * 255}`,
port: 22116,
pubkey_x25519: generateFakePubKeyStr(),
pubkey_ed25519: ed25519Pubkey
};
}
function generateFakeSnodes(amount) {
const ar = import_lodash.default.times(amount, generateFakeSnode);
return ar;
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
generateFakeECKeyPair,
generateFakePubKey,
generateFakePubKeyStr,
generateFakePubKeys,
generateFakeSnode,
generate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BQU87QUFDVDtBQUhnQiIsCiAgIm5hbWVzIjogW10KfQo=

@ -1,71 +0,0 @@
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var stubbing_exports = {};
__export(stubbing_exports, {
restoreStubs: () => restoreStubs,
stubData: () => stubData,
stubWindow: () => stubWindow,
stubWindowLog: () => stubWindowLog
});
module.exports = __toCommonJS(stubbing_exports);
var sinon = __toESM(require("sinon"));
const globalAny = global;
const sandbox = sinon.createSandbox();
const Data = require("../../../../ts/data/data");
function stubData(fn) {
return sandbox.stub(Data, fn);
}
function stubWindow(fn, value) {
if (typeof globalAny.window === "undefined") {
globalAny.window = {};
}
const set = /* @__PURE__ */ __name((newValue) => {
globalAny.window[fn] = newValue;
}, "set");
const get = /* @__PURE__ */ __name(() => {
return globalAny.window[fn];
}, "get");
globalAny.window[fn] = value;
return {
get,
set
};
}
function restoreStubs() {
globalAny.window = void 0;
sandbox.restore();
}
const stubWindowLog = /* @__PURE__ */ __name(() => {
stubWindow("log", {
info: (args) => console.info(args),
warn: (args) => console.warn(args),
error: (args) => console.error(args)
});
}, "stubWindowLog");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
restoreStubs,
stubData,
stubWindow,
stubWindowLog
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL3V0aWxzL3N0dWJiaW5nLnRzIl0sCiAgInNvdXJjZXNDb250ZW50IjogWyJpbXBvcnQgKiBhcyBzaW5vbiBmcm9tICdzaW5vbic7XG5pbXBvcnQgKiBhcyBEYXRhU2hhcGUgZnJvbSAnLi4vLi4vLi4vLi4vdHMvZGF0YS9kYXRhJztcblxuY29uc3QgZ2xvYmFsQW55OiBhbnkgPSBnbG9iYWw7XG5jb25zdCBzYW5kYm94ID0gc2lub24uY3JlYXRlU2FuZGJveCgpO1xuXG4vLyBXZSBoYXZlIHRvIGRvIHRoaXMgaW4gYSB3ZWlyZCB3YXkgYmVjYXVzZSBEYXRhIHVzZXMgbW9kdWxlLmV4cG9ydHNcbi8vICB3aGljaCBkb2Vzbid0IHBsYXkgd2VsbCB3aXRoIHNpbm9uIG9yIEltcG9ydE1vY2tcbi8vIHRzbGludDpkaXNhYmxlLW5leHQtbGluZTogbm8tcmVxdWlyZS1pbXBvcnRzIG5vLXZhci1yZXF1aXJlc1xuY29uc3QgRGF0YSA9IHJlcXVpcmUoJy4uLy4uLy4uLy4uL3RzL2RhdGEvZGF0YScpO1xudHlwZSBEYXRhRnVuY3Rpb24gPSB0eXBlb2YgRGF0YVNoYXBlO1xuXG4vKipcbiAqIFN0dWIgYSBmdW5jdGlvbiBpbnNpZGUgRGF0YS5cbiAqXG4gKiBOb3RlOiBUaGlzIHVzZXMgYSBjdXN0b20gc2FuZGJveC5cbiAqIFBsZWFzZSBjYWxsIGByZXN0b3JlU3R1YnMoKWAgb3IgYHN0dWIucmVzdG9yZSgpYCB0byByZXN0b3JlIG9yaWdpbmFsIGZ1bmN0aW9uYWxpdHkuXG4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QUFJWixRQUFNLE1BQU0sNkJBQU07QUFDaEIsV0FBTyxVQUFVLE9BQU87QUFBQSxFQUMxQixHQUZZO0FBSVosWUFBVSxPQUFPLE1BQU07QUFFdkIsU0FBTztBQUFBLElBQ0w7QUFBQSxJQUNBO0FBQUEsRUFDRjtBQUNGO0FBcEJnQixBQXNCVCx3QkFBd0I7QUFDN0IsWUFBVSxTQUFTO0FBQ25CLFVBQVEsUUFBUTtBQUNsQjtBQUhnQixBQUtULE1BQU0sZ0JBQWdCLDZCQUFNO0FBQ2pDLGFBQVcsT0FBTztBQUFBLElBR2hCLE1BQU0sQ0FBQyxTQUFjLFFBQVEsS0FBSyxJQUFJO0FBQUEsSUFDdEMsTUFBTSxDQUFDLFNBQWMsUUFBUSxLQUFLLElBQUk7QUFBQSxJQUN0QyxPQUFPLENBQUMsU0FBYyxRQUFRLE1BQU0sSUFBSTtBQUFBLEVBQzFDLENBQUM7QUFDSCxHQVI2QjsiLAogICJuYW1lcyI6IFtdCn0K

@ -1,31 +0,0 @@
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var timeout_exports = {};
__export(timeout_exports, {
timeout: () => timeout
});
module.exports = __toCommonJS(timeout_exports);
async function timeout(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
timeout
});
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vdHMvdGVzdC90ZXN0LXV0aWxzL3V0aWxzL3RpbWVvdXQudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImV4cG9ydCBhc3luYyBmdW5jdGlvbiB0aW1lb3V0KG1zOiBudW1iZXIpOiBQcm9taXNlPHZvaWQ+IHtcbiAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lIG5vLXN0cmluZy1iYXNlZC1zZXQtdGltZW91dFxuICByZXR1cm4gbmV3IFByb21pc2UocmVzb2x2ZSA9PiBzZXRUaW1lb3V0KHJlc29sdmUsIG1zKSk7XG59XG4iXSwKICAibWFwcGluZ3MiOiAiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsdUJBQThCLElBQTJCO0FBRXZELFNBQU8sSUFBSSxRQUFRLGFBQVcsV0FBVyxTQUFTLEVBQUUsQ0FBQztBQUN2RDtBQUhzQiIsCiAgIm5hbWVzIjogW10KfQo=

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,3 @@
// {
// "extends": "../tsconfig.json",
// "compilerOptions": {
// "module": "esnext"
// }
// }
{
"extends": "../tsconfig.json"
}

Loading…
Cancel
Save