glossarist 0.1.4 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glossarist",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "JavaScript SDK for Glossarist GCR packages — read, write, validate, and manage terminology concepts",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -21,6 +21,10 @@ export class Citation extends GlossaristModel {
21
21
  }
22
22
  }
23
23
 
24
+ get isStructured() {
25
+ return typeof this.source === 'object' && this.source !== null;
26
+ }
27
+
24
28
  toString() {
25
29
  if (this.ref) return this.ref;
26
30
  if (typeof this.source === 'string') return this.source;
@@ -70,6 +70,7 @@ export class Citation extends GlossaristModel {
70
70
  readonly version: string | null;
71
71
  readonly clause: string | null;
72
72
  readonly link: string | null;
73
+ readonly isStructured: boolean;
73
74
  toString(): string;
74
75
  }
75
76