@tricoteuses/senat 2.20.32 → 2.20.33

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 (2) hide show
  1. package/lib/loaders.js +5 -1
  2. package/package.json +1 -1
package/lib/loaders.js CHANGED
@@ -188,8 +188,12 @@ export function* iterLoadSenatDocuments(dataDir, session, documentType, options
188
188
  const lecturesSenat = lecture.lectures_assemblee.filter((lectureAssemblee) => lectureAssemblee.assemblee === "Sénat");
189
189
  for (const lectureSenat of lecturesSenat) {
190
190
  for (const document of lectureSenat[documentType]) {
191
+ const enrichedDocument = {
192
+ signet_dossier: dossierLegislatif["signet"],
193
+ ...document,
194
+ };
191
195
  const documentItem = {
192
- item: document,
196
+ item: enrichedDocument
193
197
  };
194
198
  if (document.url) {
195
199
  const documentName = path.parse(document.url).name;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tricoteuses/senat",
3
- "version": "2.20.32",
3
+ "version": "2.20.33",
4
4
  "description": "Handle French Sénat's open data",
5
5
  "keywords": [
6
6
  "France",