@lab-anssi/lib 2.1.0 → 2.1.3
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.
|
@@ -58,9 +58,9 @@ class CrispMarkdown {
|
|
|
58
58
|
},
|
|
59
59
|
renderer(token) {
|
|
60
60
|
const elementPiste = token.lienPisteSousTitres
|
|
61
|
-
? `<track kind='captions' src='${token.lienPisteSousTitres}' srclang='fr' default />`
|
|
61
|
+
? `<track kind='captions' src='${token.lienPisteSousTitres}' srclang='fr' label='Français' default />`
|
|
62
62
|
: '';
|
|
63
|
-
return `<div class='conteneur-video'><video src='${token.text}'
|
|
63
|
+
return `<div class='conteneur-video'><video controls crossorigin='anonymous'><source src='${token.text}' type='video/mp4' />${elementPiste}</video><p class='legende'>${token.legende}</p></div>`;
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
// Source d'inspiration pour la gestion des sections :
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lab-anssi/lib",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/betagouv/lab-anssi-lib.git"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"homepage": "https://github.com/betagouv/lab-anssi-lib#readme",
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc",
|
|
15
|
-
"test": "node --
|
|
15
|
+
"test": "node --require tsx/cjs --test './tests/**/*.spec.ts'"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"express-ipfilter": "^1.3.2",
|
|
39
39
|
"express-rate-limit": "^7.5.1",
|
|
40
|
-
"axios": "^1.
|
|
40
|
+
"axios": "^1.12.0",
|
|
41
41
|
"html-entities": "^2.6.0",
|
|
42
42
|
"marked": "^13.0.3"
|
|
43
43
|
},
|