@adobe/helix-importer 2.5.16 → 2.6.0
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/importer/HTML2x.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.6.0](https://github.com/adobe/helix-importer/compare/v2.5.16...v2.6.0) (2023-01-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* transform can be async ([#88](https://github.com/adobe/helix-importer/issues/88)) ([9441e0e](https://github.com/adobe/helix-importer/commit/9441e0e8494d4f3c49a62712144e8082f85e2320))
|
|
7
|
+
|
|
1
8
|
## [2.5.16](https://github.com/adobe/helix-importer/compare/v2.5.15...v2.5.16) (2023-01-29)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/importer/HTML2x.js
CHANGED
|
@@ -79,7 +79,7 @@ async function html2x(
|
|
|
79
79
|
// for more advanced use cases, give access to the original dom with
|
|
80
80
|
// no preprocessing at all
|
|
81
81
|
if (transformer.preprocess) {
|
|
82
|
-
transformer.preprocess({
|
|
82
|
+
await transformer.preprocess({
|
|
83
83
|
url,
|
|
84
84
|
document: doc,
|
|
85
85
|
html: doc.documentElement.outerHTML,
|
|
@@ -99,7 +99,7 @@ async function html2x(
|
|
|
99
99
|
|
|
100
100
|
async process(document) {
|
|
101
101
|
if (transformer.transform) {
|
|
102
|
-
let results = transformer.transform({
|
|
102
|
+
let results = await transformer.transform({
|
|
103
103
|
url,
|
|
104
104
|
document,
|
|
105
105
|
html,
|