@adobe/helix-shared-indexer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,8 @@ | ||
# [@adobe/helix-shared-indexer-v1.0.1](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-indexer-v1.0.0...@adobe/helix-shared-indexer-v1.0.1) (2022-06-11) | ||
### Bug Fixes | ||
* add back innerHTML ([#694](https://github.com/adobe/helix-shared/issues/694)) ([5965a44](https://github.com/adobe/helix-shared/commit/5965a44cd2cf13e88b0616bf63a60511dbff2282)) | ||
# [@adobe/helix-shared-indexer-v1.0.0](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-indexer-v0.5.1...@adobe/helix-shared-indexer-v1.0.0) (2022-06-05) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@adobe/helix-shared-indexer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Shared modules of the Helix Project - Indexer", | ||
@@ -32,2 +32,3 @@ "main": "src/index.js", | ||
"hast-util-select": "5.0.2", | ||
"hast-util-to-html": "8.0.3", | ||
"hast-util-to-text": "3.1.1", | ||
@@ -34,0 +35,0 @@ "jsep": "1.3.6", |
@@ -17,2 +17,3 @@ /* | ||
import { toText } from 'hast-util-to-text'; | ||
import { toHtml } from 'hast-util-to-html'; | ||
import { unified } from 'unified'; | ||
@@ -49,2 +50,3 @@ | ||
textContent: (elements) => elements.map((el) => toText(el)), | ||
innerHTML: (elements) => elements.map((el) => el.children.map((child) => toHtml(child)).join('')), | ||
match: (elements, re) => { | ||
@@ -51,0 +53,0 @@ // todo: maybe base on function ? |
42132
277
8
+ Addedhast-util-to-html@8.0.3
+ Addedccount@2.0.1(transitive)
+ Addedcharacter-entities-html4@2.1.0(transitive)
+ Addedcharacter-entities-legacy@3.0.0(transitive)
+ Addedhast-util-to-html@8.0.3(transitive)
+ Addedhtml-void-elements@2.0.1(transitive)
+ Addedstringify-entities@4.0.4(transitive)