@proconnect-gouv/proconnect.core 1.1.0 → 1.1.1
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/CHANGELOG.md +6 -0
- package/dist/data/index.cjs +3 -71
- package/dist/data/index.js +3 -71
- package/dist/most-used-free-email-domains-CrvjmNqk.cjs +73 -0
- package/dist/most-used-free-email-domains-Cwn0UpRs.js +71 -0
- package/dist/security/index.cjs +7640 -7635
- package/dist/security/index.d.ts +12 -3
- package/dist/security/index.d.ts.map +1 -1
- package/dist/security/index.js +7637 -7634
- package/dist/services/email/index.cjs +2 -2
- package/dist/services/email/index.js +1 -1
- package/dist/services/suggestion/index.cjs +5 -6
- package/dist/services/suggestion/index.js +2 -3
- package/package.json +1 -6
- package/src/data/diceware-wordlist-fr-alt.ts +7625 -7625
- package/src/security/generate-diceware-phrase.test.ts +25 -0
- package/src/security/generate-diceware-phrase.ts +18 -0
- package/src/security/get-trusted-referrer-path-from-request.test.ts +81 -0
- package/src/security/get-trusted-referrer-path-from-request.ts +24 -0
- package/src/security/index.ts +3 -1
- package/src/security/normalize-diceware-words.test.ts +20 -0
- package/src/security/normalize-diceware-words.ts +8 -0
- package/src/services/email/is-a-free-domain.ts +1 -1
- package/src/services/suggestion/did-you-mean.ts +3 -3
- package/src/security/generate-diceware-password.test.ts +0 -26
- package/src/security/generate-diceware-password.ts +0 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @proconnect-gouv/proconnect.core
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2313](https://github.com/proconnect-gouv/proconnect-identite/pull/2313) [`3209f59`](https://github.com/proconnect-gouv/proconnect-identite/commit/3209f59646da2171eb8ddad48f8e1d75d996f5d4) Thanks [@douglasduteil](https://github.com/douglasduteil)! - 🐛 les listes de domaines sont de nouveau incluses dans le build : depuis la 1.0.1, `services/email` et `services/suggestion` chargeaient les fichiers `.ts` de `src/data`, ce qui cassait les projets qui les importent
|
|
8
|
+
|
|
3
9
|
## 1.1.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/data/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var mostUsedFreeEmailDomains = require('../most-used-free-email-domains-CrvjmNqk.cjs');
|
|
4
|
+
|
|
3
5
|
var gouvfrDomains = [
|
|
4
6
|
"academie.def.gouv.fr",
|
|
5
7
|
"afa.gouv.fr",
|
|
@@ -239,76 +241,6 @@ var gouvfrDomains = [
|
|
|
239
241
|
"yvelines.gouv.fr"
|
|
240
242
|
];
|
|
241
243
|
|
|
242
|
-
var mostUsedFreeEmailDomains = [
|
|
243
|
-
"9business.fr",
|
|
244
|
-
"9online.fr",
|
|
245
|
-
"adeli.biz",
|
|
246
|
-
"akeonet.com",
|
|
247
|
-
"aliceadsl.fr",
|
|
248
|
-
"alsatis.net",
|
|
249
|
-
"aol.com",
|
|
250
|
-
"aricia.fr",
|
|
251
|
-
"bbox.fr",
|
|
252
|
-
"bouyguestelecom.fr",
|
|
253
|
-
"cegetel.net",
|
|
254
|
-
"club-internet.fr",
|
|
255
|
-
"club.fr",
|
|
256
|
-
"evc.net",
|
|
257
|
-
"free.fr",
|
|
258
|
-
"gmail.com",
|
|
259
|
-
"gmail.fr",
|
|
260
|
-
"gmx.com",
|
|
261
|
-
"gmx.fr",
|
|
262
|
-
"gmx.net",
|
|
263
|
-
"googlemail.com",
|
|
264
|
-
"hotmail.com",
|
|
265
|
-
"hotmail.fr",
|
|
266
|
-
"icloud.com",
|
|
267
|
-
"idyle-telecom.com",
|
|
268
|
-
"laposte.net",
|
|
269
|
-
"lgtel.fr",
|
|
270
|
-
"live.com",
|
|
271
|
-
"live.fr",
|
|
272
|
-
"mail.com",
|
|
273
|
-
"mailo.com",
|
|
274
|
-
"mailoo.org",
|
|
275
|
-
"mcom.fr",
|
|
276
|
-
"me.com",
|
|
277
|
-
"msn.com",
|
|
278
|
-
"netcourrier.com",
|
|
279
|
-
"neuf.fr",
|
|
280
|
-
"nordnet.fr",
|
|
281
|
-
"numericable.com",
|
|
282
|
-
"numericable.fr",
|
|
283
|
-
"online.fr",
|
|
284
|
-
"orange-business.fr",
|
|
285
|
-
"orange.fr",
|
|
286
|
-
"outlook.com",
|
|
287
|
-
"outlook.fr",
|
|
288
|
-
"ovh.fr",
|
|
289
|
-
"ovh.net",
|
|
290
|
-
"ozone.net",
|
|
291
|
-
"pagesperso-orange.fr",
|
|
292
|
-
"proton.me",
|
|
293
|
-
"protonmail.com",
|
|
294
|
-
"rtvc.fr",
|
|
295
|
-
"sfr.fr",
|
|
296
|
-
"telwan.fr",
|
|
297
|
-
"tubeo.eu",
|
|
298
|
-
"tutanota.com",
|
|
299
|
-
"tv-com.net",
|
|
300
|
-
"vialis.net",
|
|
301
|
-
"voila.fr",
|
|
302
|
-
"wanadoo.fr",
|
|
303
|
-
"west-telecom.com",
|
|
304
|
-
"wibox.fr",
|
|
305
|
-
"yahoo.com",
|
|
306
|
-
"yahoo.fr",
|
|
307
|
-
"yandex.com",
|
|
308
|
-
"ymail.com",
|
|
309
|
-
"zoho.com"
|
|
310
|
-
];
|
|
311
|
-
|
|
312
244
|
var otherGouvDomains = [
|
|
313
245
|
"conseiller-numerique.fr",
|
|
314
246
|
"justice.fr",
|
|
@@ -345,6 +277,6 @@ var otherGouvDomains = [
|
|
|
345
277
|
"ac-montpellier.fr"
|
|
346
278
|
];
|
|
347
279
|
|
|
280
|
+
exports.mostUsedFreeEmailDomains = mostUsedFreeEmailDomains.mostUsedFreeEmailDomains;
|
|
348
281
|
exports.gouvfrDomains = gouvfrDomains;
|
|
349
|
-
exports.mostUsedFreeEmailDomains = mostUsedFreeEmailDomains;
|
|
350
282
|
exports.otherGouvDomains = otherGouvDomains;
|
package/dist/data/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { m as mostUsedFreeEmailDomains } from '../most-used-free-email-domains-Cwn0UpRs.js';
|
|
2
|
+
|
|
1
3
|
var gouvfrDomains = [
|
|
2
4
|
"academie.def.gouv.fr",
|
|
3
5
|
"afa.gouv.fr",
|
|
@@ -237,76 +239,6 @@ var gouvfrDomains = [
|
|
|
237
239
|
"yvelines.gouv.fr"
|
|
238
240
|
];
|
|
239
241
|
|
|
240
|
-
var mostUsedFreeEmailDomains = [
|
|
241
|
-
"9business.fr",
|
|
242
|
-
"9online.fr",
|
|
243
|
-
"adeli.biz",
|
|
244
|
-
"akeonet.com",
|
|
245
|
-
"aliceadsl.fr",
|
|
246
|
-
"alsatis.net",
|
|
247
|
-
"aol.com",
|
|
248
|
-
"aricia.fr",
|
|
249
|
-
"bbox.fr",
|
|
250
|
-
"bouyguestelecom.fr",
|
|
251
|
-
"cegetel.net",
|
|
252
|
-
"club-internet.fr",
|
|
253
|
-
"club.fr",
|
|
254
|
-
"evc.net",
|
|
255
|
-
"free.fr",
|
|
256
|
-
"gmail.com",
|
|
257
|
-
"gmail.fr",
|
|
258
|
-
"gmx.com",
|
|
259
|
-
"gmx.fr",
|
|
260
|
-
"gmx.net",
|
|
261
|
-
"googlemail.com",
|
|
262
|
-
"hotmail.com",
|
|
263
|
-
"hotmail.fr",
|
|
264
|
-
"icloud.com",
|
|
265
|
-
"idyle-telecom.com",
|
|
266
|
-
"laposte.net",
|
|
267
|
-
"lgtel.fr",
|
|
268
|
-
"live.com",
|
|
269
|
-
"live.fr",
|
|
270
|
-
"mail.com",
|
|
271
|
-
"mailo.com",
|
|
272
|
-
"mailoo.org",
|
|
273
|
-
"mcom.fr",
|
|
274
|
-
"me.com",
|
|
275
|
-
"msn.com",
|
|
276
|
-
"netcourrier.com",
|
|
277
|
-
"neuf.fr",
|
|
278
|
-
"nordnet.fr",
|
|
279
|
-
"numericable.com",
|
|
280
|
-
"numericable.fr",
|
|
281
|
-
"online.fr",
|
|
282
|
-
"orange-business.fr",
|
|
283
|
-
"orange.fr",
|
|
284
|
-
"outlook.com",
|
|
285
|
-
"outlook.fr",
|
|
286
|
-
"ovh.fr",
|
|
287
|
-
"ovh.net",
|
|
288
|
-
"ozone.net",
|
|
289
|
-
"pagesperso-orange.fr",
|
|
290
|
-
"proton.me",
|
|
291
|
-
"protonmail.com",
|
|
292
|
-
"rtvc.fr",
|
|
293
|
-
"sfr.fr",
|
|
294
|
-
"telwan.fr",
|
|
295
|
-
"tubeo.eu",
|
|
296
|
-
"tutanota.com",
|
|
297
|
-
"tv-com.net",
|
|
298
|
-
"vialis.net",
|
|
299
|
-
"voila.fr",
|
|
300
|
-
"wanadoo.fr",
|
|
301
|
-
"west-telecom.com",
|
|
302
|
-
"wibox.fr",
|
|
303
|
-
"yahoo.com",
|
|
304
|
-
"yahoo.fr",
|
|
305
|
-
"yandex.com",
|
|
306
|
-
"ymail.com",
|
|
307
|
-
"zoho.com"
|
|
308
|
-
];
|
|
309
|
-
|
|
310
242
|
var otherGouvDomains = [
|
|
311
243
|
"conseiller-numerique.fr",
|
|
312
244
|
"justice.fr",
|
|
@@ -343,4 +275,4 @@ var otherGouvDomains = [
|
|
|
343
275
|
"ac-montpellier.fr"
|
|
344
276
|
];
|
|
345
277
|
|
|
346
|
-
export { gouvfrDomains,
|
|
278
|
+
export { gouvfrDomains, otherGouvDomains };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var mostUsedFreeEmailDomains = [
|
|
4
|
+
"9business.fr",
|
|
5
|
+
"9online.fr",
|
|
6
|
+
"adeli.biz",
|
|
7
|
+
"akeonet.com",
|
|
8
|
+
"aliceadsl.fr",
|
|
9
|
+
"alsatis.net",
|
|
10
|
+
"aol.com",
|
|
11
|
+
"aricia.fr",
|
|
12
|
+
"bbox.fr",
|
|
13
|
+
"bouyguestelecom.fr",
|
|
14
|
+
"cegetel.net",
|
|
15
|
+
"club-internet.fr",
|
|
16
|
+
"club.fr",
|
|
17
|
+
"evc.net",
|
|
18
|
+
"free.fr",
|
|
19
|
+
"gmail.com",
|
|
20
|
+
"gmail.fr",
|
|
21
|
+
"gmx.com",
|
|
22
|
+
"gmx.fr",
|
|
23
|
+
"gmx.net",
|
|
24
|
+
"googlemail.com",
|
|
25
|
+
"hotmail.com",
|
|
26
|
+
"hotmail.fr",
|
|
27
|
+
"icloud.com",
|
|
28
|
+
"idyle-telecom.com",
|
|
29
|
+
"laposte.net",
|
|
30
|
+
"lgtel.fr",
|
|
31
|
+
"live.com",
|
|
32
|
+
"live.fr",
|
|
33
|
+
"mail.com",
|
|
34
|
+
"mailo.com",
|
|
35
|
+
"mailoo.org",
|
|
36
|
+
"mcom.fr",
|
|
37
|
+
"me.com",
|
|
38
|
+
"msn.com",
|
|
39
|
+
"netcourrier.com",
|
|
40
|
+
"neuf.fr",
|
|
41
|
+
"nordnet.fr",
|
|
42
|
+
"numericable.com",
|
|
43
|
+
"numericable.fr",
|
|
44
|
+
"online.fr",
|
|
45
|
+
"orange-business.fr",
|
|
46
|
+
"orange.fr",
|
|
47
|
+
"outlook.com",
|
|
48
|
+
"outlook.fr",
|
|
49
|
+
"ovh.fr",
|
|
50
|
+
"ovh.net",
|
|
51
|
+
"ozone.net",
|
|
52
|
+
"pagesperso-orange.fr",
|
|
53
|
+
"proton.me",
|
|
54
|
+
"protonmail.com",
|
|
55
|
+
"rtvc.fr",
|
|
56
|
+
"sfr.fr",
|
|
57
|
+
"telwan.fr",
|
|
58
|
+
"tubeo.eu",
|
|
59
|
+
"tutanota.com",
|
|
60
|
+
"tv-com.net",
|
|
61
|
+
"vialis.net",
|
|
62
|
+
"voila.fr",
|
|
63
|
+
"wanadoo.fr",
|
|
64
|
+
"west-telecom.com",
|
|
65
|
+
"wibox.fr",
|
|
66
|
+
"yahoo.com",
|
|
67
|
+
"yahoo.fr",
|
|
68
|
+
"yandex.com",
|
|
69
|
+
"ymail.com",
|
|
70
|
+
"zoho.com"
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
exports.mostUsedFreeEmailDomains = mostUsedFreeEmailDomains;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
var mostUsedFreeEmailDomains = [
|
|
2
|
+
"9business.fr",
|
|
3
|
+
"9online.fr",
|
|
4
|
+
"adeli.biz",
|
|
5
|
+
"akeonet.com",
|
|
6
|
+
"aliceadsl.fr",
|
|
7
|
+
"alsatis.net",
|
|
8
|
+
"aol.com",
|
|
9
|
+
"aricia.fr",
|
|
10
|
+
"bbox.fr",
|
|
11
|
+
"bouyguestelecom.fr",
|
|
12
|
+
"cegetel.net",
|
|
13
|
+
"club-internet.fr",
|
|
14
|
+
"club.fr",
|
|
15
|
+
"evc.net",
|
|
16
|
+
"free.fr",
|
|
17
|
+
"gmail.com",
|
|
18
|
+
"gmail.fr",
|
|
19
|
+
"gmx.com",
|
|
20
|
+
"gmx.fr",
|
|
21
|
+
"gmx.net",
|
|
22
|
+
"googlemail.com",
|
|
23
|
+
"hotmail.com",
|
|
24
|
+
"hotmail.fr",
|
|
25
|
+
"icloud.com",
|
|
26
|
+
"idyle-telecom.com",
|
|
27
|
+
"laposte.net",
|
|
28
|
+
"lgtel.fr",
|
|
29
|
+
"live.com",
|
|
30
|
+
"live.fr",
|
|
31
|
+
"mail.com",
|
|
32
|
+
"mailo.com",
|
|
33
|
+
"mailoo.org",
|
|
34
|
+
"mcom.fr",
|
|
35
|
+
"me.com",
|
|
36
|
+
"msn.com",
|
|
37
|
+
"netcourrier.com",
|
|
38
|
+
"neuf.fr",
|
|
39
|
+
"nordnet.fr",
|
|
40
|
+
"numericable.com",
|
|
41
|
+
"numericable.fr",
|
|
42
|
+
"online.fr",
|
|
43
|
+
"orange-business.fr",
|
|
44
|
+
"orange.fr",
|
|
45
|
+
"outlook.com",
|
|
46
|
+
"outlook.fr",
|
|
47
|
+
"ovh.fr",
|
|
48
|
+
"ovh.net",
|
|
49
|
+
"ozone.net",
|
|
50
|
+
"pagesperso-orange.fr",
|
|
51
|
+
"proton.me",
|
|
52
|
+
"protonmail.com",
|
|
53
|
+
"rtvc.fr",
|
|
54
|
+
"sfr.fr",
|
|
55
|
+
"telwan.fr",
|
|
56
|
+
"tubeo.eu",
|
|
57
|
+
"tutanota.com",
|
|
58
|
+
"tv-com.net",
|
|
59
|
+
"vialis.net",
|
|
60
|
+
"voila.fr",
|
|
61
|
+
"wanadoo.fr",
|
|
62
|
+
"west-telecom.com",
|
|
63
|
+
"wibox.fr",
|
|
64
|
+
"yahoo.com",
|
|
65
|
+
"yahoo.fr",
|
|
66
|
+
"yandex.com",
|
|
67
|
+
"ymail.com",
|
|
68
|
+
"zoho.com"
|
|
69
|
+
];
|
|
70
|
+
|
|
71
|
+
export { mostUsedFreeEmailDomains as m };
|