@tricoteuses/tisseuse 0.13.0 → 0.13.2

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/LICENSE.md CHANGED
@@ -8,7 +8,8 @@ By:
8
8
  - Emmanuel Raviart <mailto:emmanuel@raviart.com>
9
9
  - David Smadja <mailto:david.smadja@altatech.fr>
10
10
 
11
- Copyright © 2025, 2026 Emmanuel Raviart
11
+ Copyright © 2025 Emmanuel Raviart
12
+ Copyright © 2026 Assemblée nationale, Emmanuel Raviart & David Smadja
12
13
 
13
14
  https://git.tricoteuses.fr/logiciels/tricoteuses-juridique/src/branch/main/packages/tisseuse
14
15
 
package/dist/index.js CHANGED
@@ -296,7 +296,7 @@ async function _n(e, t, n) {
296
296
  return r === void 0 && (r = /* @__PURE__ */ new Map(), t.set("Document", r)), (await e`
297
297
  SELECT data, uid
298
298
  FROM assemblee.documents
299
- WHERE dossier_uid = ${n}
299
+ WHERE data ->> 'dossierRef' = ${n}
300
300
  `).map(({ data: e, uid: t }) => (r.set(t, e ?? null), e));
301
301
  }
302
302
  async function vn(e, t, n) {
package/dist/server.js CHANGED
@@ -20673,16 +20673,18 @@ function ft(e, t) {
20673
20673
  return U(r) && U(n) && e(n).parents("table").get(0) === r ? r : U(n) ? n : t;
20674
20674
  }
20675
20675
  function pt(e) {
20676
- let t = [], n = /* @__PURE__ */ new Set();
20677
- return e("a[id]").each((r, i) => {
20678
- let a = G(z(e(i).text()));
20679
- if (!a) return;
20680
- let o = e(i).attr("id");
20681
- !o || n.has(o) || (n.add(o), t.push({
20682
- id: o,
20683
- ...a,
20684
- element: i,
20685
- container: ft(e, i)
20676
+ let t = [], n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
20677
+ return e("a[id], span[id], h1[id], h2[id], h3[id], h4[id], h5[id], h6[id]").each((i, a) => {
20678
+ let o = G(z(e(a).text()));
20679
+ if (!o) return;
20680
+ let s = e(a).attr("id");
20681
+ if (!s || r.has(s)) return;
20682
+ let c = ft(e, a);
20683
+ n.has(c) || (r.add(s), n.add(c), t.push({
20684
+ id: s,
20685
+ ...o,
20686
+ element: a,
20687
+ container: c
20686
20688
  }));
20687
20689
  }), t;
20688
20690
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tricoteuses/tisseuse",
3
3
  "description": "Find links in/to French legislative documents",
4
- "version": "0.13.0",
4
+ "version": "0.13.2",
5
5
  "keywords": [
6
6
  "Assemblée nationale",
7
7
  "France",
@@ -13,7 +13,8 @@
13
13
  ],
14
14
  "author": "Emmanuel Raviart <emmanuel@raviart.com>",
15
15
  "contributors": [
16
- "Camille Moulin <public_commits@proton.me>"
16
+ "Camille Moulin <public_commits@proton.me>",
17
+ "David Smadja <david.smadja@altatech.fr>"
17
18
  ],
18
19
  "bugs": {
19
20
  "url": "https://git.tricoteuses.fr/logiciels/tricoteuses-juridique/issues"
@@ -63,7 +64,7 @@
63
64
  "test:unit": "vitest"
64
65
  },
65
66
  "devDependencies": {
66
- "@tricoteuses/assemblee": "^3.2.7",
67
+ "@tricoteuses/assemblee": "^3.2.10",
67
68
  "@tricoteuses/legifrance": "^0.18.7",
68
69
  "@tricoteuses/senat": "^3.1.11",
69
70
  "@types/fs-extra": "^11.0.4",