@tricoteuses/senat 2.5.5 → 2.5.6
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/README.md +15 -0
- package/lib/model/agenda.js +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -97,3 +97,18 @@ for (const { item: question } of iterLoadSenatQuestions("../senat-data", 17)) {
|
|
|
97
97
|
```bash
|
|
98
98
|
npm run data:generate_schemas ../senat-data
|
|
99
99
|
```
|
|
100
|
+
|
|
101
|
+
## Publishing
|
|
102
|
+
|
|
103
|
+
To publish a new version of this package onto npm, bump the package version and publish.
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
npm version x.y.z # Bumps version in package.json and creates a new tag x.y.z
|
|
107
|
+
npm publish
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The Docker image will be automatically built during a CI Workflow if you push the tag to the remote repository.
|
|
111
|
+
|
|
112
|
+
```bash
|
|
113
|
+
git push --tags
|
|
114
|
+
```
|
package/lib/model/agenda.js
CHANGED
|
@@ -49,12 +49,12 @@ function getStartAndEndTimes(timeStr) {
|
|
|
49
49
|
if (timeMatches?.groups) {
|
|
50
50
|
const { startTime, endTime } = timeMatches.groups;
|
|
51
51
|
return {
|
|
52
|
-
startTime: startTime ? DateTime.fromFormat(startTime, "H'h'mm"
|
|
53
|
-
endTime: endTime ? DateTime.fromFormat(endTime, "H'h'mm"
|
|
52
|
+
startTime: startTime ? DateTime.fromFormat(startTime, "H'h'mm", { zone: FR_TZ }).toISOTime() : null,
|
|
53
|
+
endTime: endTime ? DateTime.fromFormat(endTime, "H'h'mm", { zone: FR_TZ }).toISOTime() : null,
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
-
startTime: normalizedTime ? DateTime.fromFormat(normalizedTime, "H'h'mm"
|
|
57
|
+
startTime: normalizedTime ? DateTime.fromFormat(normalizedTime, "H'h'mm", { zone: FR_TZ }).toISOTime() : null,
|
|
58
58
|
endTime: null,
|
|
59
59
|
};
|
|
60
60
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tricoteuses/senat",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
4
4
|
"description": "Handle French Sénat's open data",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"France",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"data:convert_data": "tsx src/scripts/convert_data.ts",
|
|
46
46
|
"data:download": "bash -c 'npm run data:retrieve_open_data -- $@ && npm run data:convert_data -- $@' bash",
|
|
47
47
|
"data:generate_schemas": "tsx src/scripts/retrieve_open_data.ts --schema",
|
|
48
|
-
"data:retrieve_agenda": "tsx src/scripts/retrieve_agenda.ts",
|
|
48
|
+
"data:retrieve_agenda": "TZ='Etc/UTC' tsx src/scripts/retrieve_agenda.ts",
|
|
49
49
|
"data:retrieve_documents": "tsx src/scripts/retrieve_documents.ts",
|
|
50
50
|
"data:retrieve_open_data": "tsx src/scripts/retrieve_open_data.ts --all",
|
|
51
51
|
"data:retrieve_senateurs_photos": "tsx src/scripts/retrieve_senateurs_photos.ts --fetch",
|