@rr0/cms 0.3.11 → 0.3.13

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.
@@ -51,7 +51,7 @@ export class DefaultContentVisitor {
51
51
  const container = context.file.document.createElement("p");
52
52
  const eventContext = context.clone();
53
53
  const eventTime = eventContext.time.date = event.time;
54
- assert.ok(eventTime, `Event of type "${event.type}" has no time`);
54
+ assert.ok(eventTime, `Event of type "${event.type}" has no time for paragraph`);
55
55
  container.dataset.time = eventTime.toString();
56
56
  const timeEl = this.timeElementFactory.create(eventContext, context);
57
57
  return { eventP: container, timeEl };
@@ -11,7 +11,7 @@ export class EventReplacer {
11
11
  return replacement;
12
12
  }
13
13
  async sourceFromFile(context, container, href) {
14
- const data = await this.dataService.getFromDir(href, ["sighting"], ["index.json"]);
14
+ const data = await this.dataService.getFromDir(href, ["event"], ["index.json"]);
15
15
  if (data.length <= 0) {
16
16
  throw new Error("Could not find metadata in " + href);
17
17
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@rr0/cms",
3
3
  "type": "module",
4
4
  "author": "Jérôme Beau <rr0@rr0.org> (https://rr0.org)",
5
- "version": "0.3.11",
5
+ "version": "0.3.13",
6
6
  "description": "RR0 Content Management System (CMS)",
7
7
  "exports": "./dist/index.js",
8
8
  "types": "./dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@javarome/fileutil": "^0.3.6",
32
32
  "@rr0/common": "^1.1.3",
33
- "@rr0/data": "^0.3.9",
33
+ "@rr0/data": "^0.3.11",
34
34
  "@rr0/lang": "^0.1.12",
35
35
  "@rr0/place": "^0.5.2",
36
36
  "@rr0/time": "^0.10.0",
@@ -46,9 +46,9 @@
46
46
  "@javarome/testscript": "^0.13.1",
47
47
  "@types/jsdom": "^21.1.7",
48
48
  "@types/node": "^22.7.4",
49
- "tsx": "4.17.0",
50
- "typescript": "^5.6.3",
51
- "vite": "^6.1.0"
49
+ "tsx": "4.19.3",
50
+ "typescript": "^5.7.3",
51
+ "vite": "^6.1.1"
52
52
  },
53
53
  "keywords": [
54
54
  "cms",