@forsakringskassan/docs-generator 1.24.0 → 1.25.0

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/dist/generator.js CHANGED
@@ -81727,6 +81727,7 @@ function generateCode2(options) {
81727
81727
  <style>
81728
81728
  ${styleContent}
81729
81729
  </style>
81730
+ <!-- [html-validate-disable-next require-sri -- technical debt, should generate integrity but we don't know the hash of the compiled file yet] -->
81730
81731
  <script defer src="./${asset}"></script>
81731
81732
  `
81732
81733
  );
@@ -83380,8 +83381,10 @@ function searchProcessor() {
83380
83381
  const index = generateIndex(entries);
83381
83382
  const body = JSON.stringify(index);
83382
83383
  const fingerprint = getFingerprint(body);
83384
+ const integrity = getIntegrity(body);
83383
83385
  const outputName = `search-data-${fingerprint}.json`;
83384
83386
  context.setTemplateData("searchDataUrl", outputName);
83387
+ context.setTemplateData("searchDataIntegrity", integrity);
83385
83388
  context.addDocument({
83386
83389
  id: "search:data",
83387
83390
  name: "search-data",
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.43.0"
8
+ "packageVersion": "7.43.1"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-generator",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "Documentation generator",
5
5
  "keywords": [
6
6
  "documentation"
@@ -53,7 +53,7 @@
53
53
  "dependencies": {
54
54
  "livereload-js": "4.0.2",
55
55
  "nunjucks": "3.2.4",
56
- "piscina": "2.2.0",
56
+ "piscina": "4.4.0",
57
57
  "vue-docgen-api": "4.78.0"
58
58
  },
59
59
  "peerDependencies": {
@@ -34,7 +34,14 @@
34
34
  <!-- prettier-ignore -->
35
35
  {% container "head" %}
36
36
 
37
- <link rel="preload" href="{{ searchDataUrl | relative(doc) }}" as="fetch" crossorigin id="search-data" />
37
+ <link
38
+ rel="preload"
39
+ href="{{ searchDataUrl | relative(doc) }}"
40
+ as="fetch"
41
+ crossorigin
42
+ integrity="{{ searchDataIntegrity }}"
43
+ id="search-data"
44
+ />
38
45
  </head>
39
46
  <body>
40
47
  <!-- prettier-ignore -->
@@ -53,7 +60,11 @@
53
60
 
54
61
  <!-- prettier-ignore -->
55
62
  {%- for asset in vendors %}
56
- <script src="{{ asset.publicPath | relative(doc) }}"></script>
63
+ <script
64
+ src="{{ asset.publicPath | relative(doc) }}"
65
+ crossorigin
66
+ integrity="{{ asset.integrity }}"
67
+ ></script>
57
68
  {%- endfor %}
58
69
 
59
70
  <!-- prettier-ignore -->