@secrecy/lib 1.0.0-dev.27 → 1.0.0-dev.28

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.
Files changed (154) hide show
  1. package/dist/BaseClient.d.ts +274 -0
  2. package/dist/BaseClient.js +2227 -0
  3. package/dist/PopupTools.d.ts +17 -0
  4. package/dist/PopupTools.js +213 -0
  5. package/dist/ZeusThunder.d.ts +2 -0
  6. package/dist/ZeusThunder.js +113 -0
  7. package/dist/cache.d.ts +7 -0
  8. package/dist/cache.js +5 -0
  9. package/dist/client/admin/index.d.ts +11 -0
  10. package/dist/client/admin/index.js +198 -0
  11. package/dist/client/convert/file.d.ts +5 -0
  12. package/dist/client/convert/file.js +39 -0
  13. package/dist/client/convert/folder.d.ts +8 -0
  14. package/dist/client/convert/folder.js +264 -0
  15. package/dist/client/convert/mail.d.ts +3 -0
  16. package/dist/client/convert/mail.js +46 -0
  17. package/dist/client/convert/vFile.d.ts +5 -0
  18. package/dist/client/convert/vFile.js +164 -0
  19. package/dist/client/helpers.d.ts +23 -0
  20. package/dist/client/helpers.js +114 -0
  21. package/dist/client/index.d.ts +172 -0
  22. package/dist/client/index.js +6169 -0
  23. package/dist/client/storage.d.ts +7 -0
  24. package/dist/client/storage.js +12 -0
  25. package/dist/client/types/File.d.ts +21 -0
  26. package/dist/client/types/File.js +3 -0
  27. package/dist/client/types/FilesOnUsersOnApplications.d.ts +9 -0
  28. package/dist/client/types/FilesOnUsersOnApplications.js +3 -0
  29. package/dist/client/types/Folder.d.ts +68 -0
  30. package/dist/client/types/Folder.js +7 -0
  31. package/dist/client/types/Inputs.d.ts +21 -0
  32. package/dist/client/types/Inputs.js +3 -0
  33. package/dist/client/types/UserAppNotifications.d.ts +6 -0
  34. package/dist/client/types/UserAppNotifications.js +3 -0
  35. package/dist/client/types/UserAppSettings.d.ts +7 -0
  36. package/dist/client/types/UserAppSettings.js +3 -0
  37. package/dist/client/types/VFile.d.ts +62 -0
  38. package/dist/client/types/VFile.js +4 -0
  39. package/dist/client/types/index.d.ts +154 -0
  40. package/dist/client/types/index.js +10 -0
  41. package/dist/client/types/queries.d.ts +535 -0
  42. package/dist/client/types/queries.js +192 -0
  43. package/dist/crypto/file.d.ts +14 -0
  44. package/dist/crypto/file.js +291 -0
  45. package/dist/crypto/index.d.ts +12 -0
  46. package/dist/crypto/index.js +45 -0
  47. package/dist/error.d.ts +30 -0
  48. package/dist/error.js +3 -0
  49. package/dist/index.d.ts +13 -3857
  50. package/dist/index.js +42 -255
  51. package/dist/minify/index.d.ts +2 -0
  52. package/dist/minify/index.js +28 -0
  53. package/dist/minify/lz4.d.ts +5 -0
  54. package/dist/minify/lz4.js +633 -0
  55. package/dist/sodium.d.ts +3 -0
  56. package/dist/sodium.js +28 -0
  57. package/dist/utils/store-buddy.d.ts +14 -0
  58. package/dist/utils/store-buddy.js +69 -0
  59. package/dist/utils/time.d.ts +10 -0
  60. package/dist/utils/time.js +22 -0
  61. package/dist/utils.d.ts +4 -0
  62. package/dist/utils.js +188 -0
  63. package/dist/worker/__mock__/sodium.worker.d.ts +19 -0
  64. package/dist/worker/__mock__/sodium.worker.js +46 -0
  65. package/dist/worker/md5.d.ts +1 -0
  66. package/dist/worker/md5.js +43 -0
  67. package/dist/worker/sodium.d.ts +3 -0
  68. package/dist/worker/sodium.js +155 -0
  69. package/dist/worker/workerCodes.d.ts +2 -0
  70. package/dist/worker/workerCodes.js +3 -0
  71. package/dist/zeus/const.d.ts +2 -0
  72. package/dist/zeus/const.js +2267 -0
  73. package/dist/zeus/index.d.ts +4043 -0
  74. package/dist/zeus/index.js +549 -0
  75. package/package.json +23 -14
  76. package/__tests__/client/client.test.ts +0 -81
  77. package/__tests__/client/folder.test.ts +0 -302
  78. package/__tests__/client/mail.test.ts +0 -476
  79. package/__tests__/client/timing.test.ts +0 -35
  80. package/__tests__/client/utils.ts +0 -41
  81. package/__tests__/client/vFile.test.ts +0 -207
  82. package/__tests__/index.test.ts +0 -171
  83. package/commitlint.config.cjs +0 -3
  84. package/dist/index.js.map +0 -1
  85. package/dist/index.mjs +0 -255
  86. package/dist/index.mjs.map +0 -1
  87. package/docs/assets/css/main.css +0 -2660
  88. package/docs/assets/images/icons.png +0 -0
  89. package/docs/assets/images/icons@2x.png +0 -0
  90. package/docs/assets/images/widgets.png +0 -0
  91. package/docs/assets/images/widgets@2x.png +0 -0
  92. package/docs/assets/js/main.js +0 -248
  93. package/docs/assets/js/search.js +0 -1
  94. package/docs/classes/baseclient.baseclient-1.html +0 -1165
  95. package/docs/classes/client.secrecyclient.html +0 -2527
  96. package/docs/enums/index.sodium.base64_variants.html +0 -205
  97. package/docs/index.html +0 -198
  98. package/docs/interfaces/client_types.draftmail.html +0 -335
  99. package/docs/interfaces/client_types.filecontentbase.html +0 -231
  100. package/docs/interfaces/client_types.filecontentcloud.html +0 -244
  101. package/docs/interfaces/client_types.filecontentreceivedmail.html +0 -244
  102. package/docs/interfaces/client_types.filecontentsentmail.html +0 -230
  103. package/docs/interfaces/client_types.receivedmail.html +0 -363
  104. package/docs/interfaces/client_types.sentmail.html +0 -335
  105. package/docs/interfaces/crypto.keypair.html +0 -202
  106. package/docs/interfaces/index.sodium.cryptobox.html +0 -185
  107. package/docs/interfaces/index.sodium.cryptokx.html +0 -185
  108. package/docs/interfaces/index.sodium.keypair.html +0 -199
  109. package/docs/interfaces/index.sodium.messagetag.html +0 -185
  110. package/docs/interfaces/index.sodium.secretbox.html +0 -185
  111. package/docs/interfaces/index.sodium.stateaddress.html +0 -171
  112. package/docs/interfaces/index.sodium.stringcryptobox.html +0 -185
  113. package/docs/interfaces/index.sodium.stringcryptokx.html +0 -185
  114. package/docs/interfaces/index.sodium.stringkeypair.html +0 -199
  115. package/docs/interfaces/index.sodium.stringmessagetag.html +0 -185
  116. package/docs/interfaces/index.sodium.stringsecretbox.html +0 -185
  117. package/docs/interfaces/utils_store_buddy.storebuddy.html +0 -333
  118. package/docs/modules/baseclient.html +0 -929
  119. package/docs/modules/cache.html +0 -185
  120. package/docs/modules/client.html +0 -207
  121. package/docs/modules/client_convert_file.html +0 -216
  122. package/docs/modules/client_convert_folder.html +0 -303
  123. package/docs/modules/client_convert_vfile.html +0 -216
  124. package/docs/modules/client_helpers.html +0 -311
  125. package/docs/modules/client_storage.html +0 -167
  126. package/docs/modules/client_types.html +0 -1227
  127. package/docs/modules/client_types_file.html +0 -233
  128. package/docs/modules/client_types_filesonusersonapplications.html +0 -168
  129. package/docs/modules/client_types_folder.html +0 -383
  130. package/docs/modules/client_types_inputs.html +0 -263
  131. package/docs/modules/client_types_mail.html +0 -181
  132. package/docs/modules/client_types_queries.html +0 -199
  133. package/docs/modules/client_types_userappsettings.html +0 -163
  134. package/docs/modules/client_types_vfile.html +0 -364
  135. package/docs/modules/crypto.html +0 -366
  136. package/docs/modules/crypto_file.html +0 -344
  137. package/docs/modules/index.html +0 -779
  138. package/docs/modules/index.sodium.html +0 -6039
  139. package/docs/modules/minify.html +0 -183
  140. package/docs/modules/minify_lz4.html +0 -279
  141. package/docs/modules/popuptools.html +0 -259
  142. package/docs/modules/sodium.html +0 -167
  143. package/docs/modules/utils.html +0 -219
  144. package/docs/modules/utils_store_buddy.html +0 -208
  145. package/docs/modules/utils_time.html +0 -330
  146. package/docs/modules/worker_md5.html +0 -156
  147. package/docs/modules/worker_sodium.html +0 -231
  148. package/docs/modules/worker_workercodes.html +0 -157
  149. package/docs/modules.html +0 -235
  150. package/index.html +0 -21
  151. package/jest.config.ts +0 -27
  152. package/jest.setup.ts +0 -6
  153. package/release.config.cjs +0 -15
  154. package/tsup.config.ts +0 -26
@@ -1,207 +0,0 @@
1
- import { chris } from "./utils.js";
2
- import { setup } from "../../src/index.js";
3
- // import { Rights } from "../../src/zeus/index.js";
4
- // import WorkerMock from "../../src/worker/__mock__/sodium.worker";
5
-
6
- beforeAll(setup);
7
-
8
- beforeAll(async () => {
9
- // await chris.emptyCloudTrash();
10
- // await dauph.emptyCloudTrash();
11
- // (self as Window & typeof globalThis).Worker = WorkerMock; // # Ca cest le bon type
12
- });
13
-
14
- describe("SecrecyClient - vFile", () => {
15
- test("wrong vFile", async () => {
16
- const vFile = await chris.vFile({
17
- id: "id"
18
- });
19
- expect(vFile).toBeNull();
20
- });
21
-
22
- test("upload and delete vFile", async () => {
23
- // //Root folder
24
- // const rootFolder = await chris.folder();
25
- // expect(rootFolder).not.toBeNull();
26
- // if (!rootFolder) {
27
- // throw new Error("empty or undefined value: rootFolder");
28
- // }
29
- // const cloudFolderSub = rootFolder.subfolders.find(f => f.name === "cloud");
30
- // expect(cloudFolderSub).not.toBeUndefined();
31
- // if (!cloudFolderSub) {
32
- // throw new Error("empty or undefined value: cloudFolder");
33
- // }
34
- // const cloudFolder = await chris.folder({
35
- // id: cloudFolderSub.id
36
- // });
37
- // if (!cloudFolder) {
38
- // throw new Error("empty or undefined value: cloudFolder");
39
- // }
40
- // // const uploadFile = await chris.uploadFileInCloud({
41
- // // file: new Uint8Array([1, 2, 3, 4, 5]),
42
- // // name: "testChris",
43
- // // folderId: cloudFolder.id
44
- // // });
45
- // //look for vFile
46
- // const vFileChris = await chris.vFile({ id: cloudFolder.vFiles[0].id });
47
- // expect(vFileChris).not.toBeNull();
48
- // if (!vFileChris) {
49
- // throw new Error("empty or undefined value: vFileChris");
50
- // }
51
- // //delete vFile
52
- // const deleteVFile = await chris.deleteVFile({
53
- // fileId: vFileChris.id
54
- // });
55
- // expect(deleteVFile).toBe(true);
56
- // //look for vFile deleted
57
- // const deletedVFile = await chris.vFile({ id: cloudFolder.vFiles[0].id });
58
- // expect(deletedVFile).not.toBeNull();
59
- // if (!deletedVFile) {
60
- // throw new Error("empty or undefined value: deletedVFile");
61
- // }
62
- // expect(deletedVFile.deletedAt).not.toBeNull();
63
- // //recover vFile
64
- // const recoveredFile = await chris.recoverFile({
65
- // fileId: vFileChris.id
66
- // });
67
- // //look for vFile recovered
68
- // expect(recoveredFile).toBe(true);
69
- // const vFileChrisRecovered = await chris.vFile({
70
- // id: vFileChris.id
71
- // });
72
- // expect(vFileChrisRecovered).not.toBeNull();
73
- // if (!vFileChrisRecovered) {
74
- // throw new Error("empty or undefined value: vFileChrisRecovered");
75
- // }
76
- // expect(vFileChrisRecovered.deletedAt).toBeNull();
77
- // const deletedVFileToDeleteFromTrash = await chris.deleteVFile({
78
- // fileId: uploadFile.id
79
- // });
80
- // expect(deletedVFileToDeleteFromTrash).toBe(true);
81
- // const deletedFromTrash = await chris.deleteVFileCloudTrash({
82
- // ids: [uploadFile.id]
83
- // });
84
- // expect(deletedFromTrash).toBe(true);
85
- });
86
-
87
- test("shareVFile", async () => {
88
- // //Root folder
89
- // const rootFolder = await chris.folder();
90
- // expect(rootFolder).not.toBeNull();
91
- // if (!rootFolder) {
92
- // throw new Error("empty or undefined value: rootFolder");
93
- // }
94
- // const cloudFolderSub = rootFolder.subfolders.find(f => f.name === "cloud");
95
- // expect(cloudFolderSub).not.toBeUndefined();
96
- // if (!cloudFolderSub) {
97
- // throw new Error("empty or undefined value: cloudFolder");
98
- // }
99
- // const cloudFolder = await chris.folder({
100
- // id: cloudFolderSub.id
101
- // });
102
- // if (!cloudFolder) {
103
- // throw new Error("empty or undefined value: cloudFolder");
104
- // }
105
- // // const uploadFile = await chris.uploadFileInCloud({
106
- // // file: new Uint8Array([1, 2, 3, 4, 5]),
107
- // // name: "testChris",
108
- // // folderId: cloudFolder.id
109
- // // });
110
- // //look for vFile
111
- // const vFileChris = await chris.vFile({ id: cloudFolder.vFiles[0].id });
112
- // expect(vFileChris).not.toBeNull();
113
- // if (!vFileChris) {
114
- // throw new Error("empty or undefined value: vFileChris");
115
- // }
116
- // //share vFile
117
- // const vFileSharing = await chris.shareVFile({
118
- // vFileId: vFileChris.id,
119
- // userId: dauphId,
120
- // rights: Rights.admin
121
- // });
122
- // expect(vFileSharing).toBe(true);
123
- // //look for shared vFile
124
- // const allVFilesShared = await chris.sharedVFiles();
125
- // const vFileShared = allVFilesShared.find(f => f.id === vFileChris.id);
126
- // if (!vFileShared) {
127
- // throw new Error("empty or undefined value: vFileShared");
128
- // }
129
- // expect(vFileShared.id).toBe(vFileChris.id);
130
- // //look for vFile shared w/ me
131
- // // const allVFilesSharedWithMe = await dauph.vFilesSharedWithMe();
132
- // // expect(allVFilesSharedWithMe).not.toBeNull();
133
- // // if (!allVFilesSharedWithMe) {
134
- // // throw new Error("empty or undefined value: allVFilesSharedWithMe");
135
- // // }
136
- // // const vFileSharedWithMe = allVFilesSharedWithMe.find(
137
- // // f => f.id === vFileChris.id
138
- // // );
139
- // // if (!vFileSharedWithMe) {
140
- // // throw new Error("empty or undefined value: vFileSharedWithMe");
141
- // // }
142
- // // expect(vFileSharedWithMe.id).toBe(vFileChris.id);
143
- // //delete vFile sharing
144
- // const deleteSharing = await chris.deleteVFileSharing({
145
- // vFileId: vFileChris.id,
146
- // userId: dauphId
147
- // });
148
- // expect(deleteSharing).toBe(true);
149
- // const allDeletedShraring = await chris.sharedVFiles();
150
- // const deletedSharing = allDeletedShraring.find(f => f.id === vFileChris.id);
151
- // expect(deletedSharing).toBeUndefined();
152
- // const deletedVFiles = await chris.deleteVFile({ fileId: uploadFile.id });
153
- // expect(deletedVFiles).toBe(true);
154
- // const deletedFromTrash = await chris.deleteVFileCloudTrash({
155
- // ids: [uploadFile.id]
156
- // });
157
- // expect(deletedFromTrash).toBe(true);
158
- });
159
-
160
- test("duplicate and update vFile", async () => {
161
- // //Root folder
162
- // const rootFolder = await chris.folder();
163
- // expect(rootFolder).not.toBeNull();
164
- // if (!rootFolder) {
165
- // throw new Error("empty or undefined value: rootFolder");
166
- // }
167
- // const cloudFolderSub = rootFolder.subfolders.find(f => f.name === "cloud");
168
- // expect(cloudFolderSub).not.toBeUndefined();
169
- // if (!cloudFolderSub) {
170
- // throw new Error("empty or undefined value: cloudFolder");
171
- // }
172
- // const cloudFolder = await chris.folder({
173
- // id: cloudFolderSub.id
174
- // });
175
- // if (!cloudFolder) {
176
- // throw new Error("empty or undefined value: cloudFolder");
177
- // }
178
- // //look for vFile
179
- // const vFileChris = await chris.vFile({ id: cloudFolder.vFiles[0].id });
180
- // expect(vFileChris).not.toBeNull();
181
- // if (!vFileChris) {
182
- // throw new Error("empty or undefined value: vFileChris");
183
- // }
184
- // // duplicate vFile
185
- // const duplicateVFile = await chris.duplicateVFile({
186
- // fileId: vFileChris.id
187
- // });
188
- // expect(duplicateVFile).toBe(true);
189
- // const vFileDuplicated = cloudFolder.vFiles.find(
190
- // f => f.filename === vFileChris.filename
191
- // );
192
- // expect(vFileDuplicated).not.toBeUndefined();
193
- // if (!vFileDuplicated) {
194
- // throw new Error("empty or undefined value: vFileDuplicated");
195
- // }
196
- // //delete duplicated vFile
197
- // const deleteDuplicatedVFile = await chris.deleteVFile({
198
- // fileId: vFileDuplicated.id
199
- // });
200
- // expect(deleteDuplicatedVFile).toBe(true);
201
- // //delete duplicated vFile
202
- // const deleteCloudTrashDuplicatedVFile = await chris.deleteVFileCloudTrash({
203
- // ids: [vFileDuplicated.id]
204
- // });
205
- // expect(deleteCloudTrashDuplicatedVFile).toBe(true);
206
- });
207
- });
@@ -1,171 +0,0 @@
1
- import type { KeyPair } from "../src/crypto/index.js";
2
- import {
3
- encryptCryptoBox,
4
- decryptCryptoBox,
5
- encryptAnonymous,
6
- decryptAnonymous,
7
- encryptSecretBox,
8
- decryptSecretBox,
9
- generateSecretBoxKey,
10
- generateCryptoBoxKeyPair
11
- } from "../src/crypto/index.js";
12
- import {
13
- secretstreamKeygen,
14
- encryptSecretstream,
15
- decryptSecretstream
16
- } from "../src/crypto/file.js";
17
- import { compress, uncompress } from "../src/minify/index.js";
18
- import { sodium, setup } from "../src/sodium.js";
19
-
20
- function random(seed: number): {
21
- seed: (s: number) => void;
22
- nextInt: () => number;
23
- nextFloat: () => number;
24
- } {
25
- function pSeed(s: number): void {
26
- if ((seed = (s | 0) % 2147483647) <= 0) {
27
- seed += 2147483646;
28
- }
29
- }
30
-
31
- function pNextInt(): number {
32
- return (seed = (seed * 48271) % 2147483647);
33
- }
34
-
35
- function pNextFLoat(): number {
36
- return (pNextInt() - 1) / 2147483646;
37
- }
38
-
39
- pSeed(seed);
40
-
41
- return {
42
- seed: pSeed,
43
- nextInt: pNextInt,
44
- nextFloat: pNextFLoat
45
- };
46
- }
47
-
48
- const { nextInt } = random(Date.now());
49
-
50
- const randomArray = (size: number, random = true): Uint8Array =>
51
- new Uint8Array([...Array(size).keys()].map(() => (random ? nextInt() : 0)));
52
-
53
- beforeAll(setup);
54
-
55
- let keyPair: KeyPair;
56
- let random1mo: Uint8Array;
57
- // let random10mo: Uint8Array;
58
- // let random100mo: Uint8Array;
59
- // let random1go: Uint8Array;
60
- // let random2go: Uint8Array;
61
- // let random4go: Uint8Array;
62
-
63
- const ONE_MO = 1_000_000;
64
-
65
- beforeAll(() => {
66
- keyPair = generateCryptoBoxKeyPair();
67
- random1mo = randomArray(ONE_MO);
68
- // random10mo = randomArray(ONE_MO * 10);
69
- // random100mo = randombytes_buf(ONE_MO * 100);
70
- // random1go = randombytes_buf(ONE_MO * 1024);
71
- // random2go = randombytes_buf(ONE_MO * 2048);
72
- // random4go = randombytes_buf(ONE_MO * 4096);
73
- });
74
-
75
- describe("lz4", () => {
76
- test("compress/decompress", () => {
77
- const data = randomArray(ONE_MO, false);
78
- const compressed = compress(data);
79
- // const l = data.byteLength;
80
- // const bl = compressed.byteLength;
81
- // console.log(
82
- // `original: ${l}, compressed: ${bl}, ${((bl / l) * 100).toFixed(2)}%`
83
- // );
84
- const dst = uncompress(compressed);
85
- expect(data).toEqual(dst);
86
- });
87
- test("impossible compress/decompress", () => {
88
- const data = new Uint8Array([0]);
89
- const compressed = compress(data);
90
- expect(compressed).toEqual(new Uint8Array([0, 0]));
91
- const dst = uncompress(compressed);
92
- expect(data).toEqual(dst);
93
- });
94
- });
95
-
96
- test("two encrypt with same keypair are different", () => {
97
- const crypt1 = encryptCryptoBox(
98
- random1mo,
99
- keyPair.publicKey,
100
- keyPair.privateKey
101
- );
102
- const crypt2 = encryptCryptoBox(
103
- random1mo,
104
- keyPair.publicKey,
105
- keyPair.privateKey
106
- );
107
- expect(crypt2).not.toEqual(crypt1);
108
- });
109
-
110
- describe("encrypt file benchmark", () => {
111
- // test("100mo", () => {
112
- // encryptFile(random100mo, key);
113
- // });
114
- // // test("1go", () => {
115
- // // encryptFile(random1go, key);
116
- // // });
117
- // // test("2go", () => {
118
- // // encryptFile(random2go, key);
119
- // // });
120
- // // test("4go", () => {
121
- // // encryptFile(random4go, key);
122
- // // });
123
- test("secretstream", async () => {
124
- const key = secretstreamKeygen();
125
- const { data: crypted } = await encryptSecretstream(key, random1mo);
126
- const decrypted = await decryptSecretstream(key, crypted);
127
- expect(random1mo).toEqual(decrypted);
128
- });
129
- test("decrypt crypto box", () => {
130
- const { privateKey } = generateCryptoBoxKeyPair();
131
- const privateKeyEncrypted = encryptCryptoBox(
132
- sodium.from_hex(privateKey),
133
- keyPair.publicKey,
134
- keyPair.privateKey
135
- );
136
- const priv = decryptCryptoBox(
137
- privateKeyEncrypted,
138
- keyPair.publicKey,
139
- keyPair.privateKey
140
- );
141
- expect(sodium.to_hex(priv)).toEqual(privateKey);
142
- });
143
- test("send crypto box", () => {
144
- const alice = generateCryptoBoxKeyPair();
145
- const bob = generateCryptoBoxKeyPair();
146
- const data = new Uint8Array([1, 2, 3, 4, 5]);
147
- const encryptedMessage = encryptCryptoBox(
148
- data,
149
- bob.publicKey,
150
- alice.privateKey
151
- );
152
- const decryptedMessage = decryptCryptoBox(
153
- encryptedMessage,
154
- alice.publicKey,
155
- bob.privateKey
156
- );
157
- expect(decryptedMessage).toEqual(data);
158
- });
159
- test("anonymous to recipient", () => {
160
- const alice = generateCryptoBoxKeyPair();
161
- const encryptedMessage = encryptAnonymous(random1mo, alice.publicKey);
162
- const decryptedMessage = decryptAnonymous(encryptedMessage, alice);
163
- expect(decryptedMessage).toEqual(random1mo);
164
- });
165
- test("secretbox", () => {
166
- const key = generateSecretBoxKey();
167
- const encryptedMessage = encryptSecretBox(random1mo, key);
168
- const decryptedMessage = decryptSecretBox(encryptedMessage, key);
169
- expect(decryptedMessage).toEqual(random1mo);
170
- });
171
- });
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- extends: ["@commitlint/config-conventional"]
3
- };