document-ir 0.0.13 → 0.0.14

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.
@@ -827,6 +827,9 @@ export class IdentityTransformer {
827
827
  if (node.hidden) {
828
828
  result.hidden = node.hidden;
829
829
  }
830
+ if (node.readingDifficultyMultiplier) {
831
+ result.readingDifficultyMultiplier = node.readingDifficultyMultiplier;
832
+ }
830
833
  return result;
831
834
  }
832
835
  async transform(node) {
package/esm/types.d.ts CHANGED
@@ -326,6 +326,7 @@ export interface DocumentMeta {
326
326
  date?: string;
327
327
  url: string;
328
328
  contentDigest?: string;
329
+ readingDifficultyMultiplier?: number;
329
330
  }
330
331
  export interface DocumentHierarchy {
331
332
  headerText: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "module": "./esm/index.js",
3
3
  "main": "./script/index.js",
4
4
  "name": "document-ir",
5
- "version": "0.0.13",
5
+ "version": "0.0.14",
6
6
  "description": "Intermediate representation and transformers for documents",
7
7
  "license": "MIT",
8
8
  "repository": {
@@ -830,6 +830,9 @@ class IdentityTransformer {
830
830
  if (node.hidden) {
831
831
  result.hidden = node.hidden;
832
832
  }
833
+ if (node.readingDifficultyMultiplier) {
834
+ result.readingDifficultyMultiplier = node.readingDifficultyMultiplier;
835
+ }
833
836
  return result;
834
837
  }
835
838
  async transform(node) {
package/script/types.d.ts CHANGED
@@ -326,6 +326,7 @@ export interface DocumentMeta {
326
326
  date?: string;
327
327
  url: string;
328
328
  contentDigest?: string;
329
+ readingDifficultyMultiplier?: number;
329
330
  }
330
331
  export interface DocumentHierarchy {
331
332
  headerText: string;