@adobe/helix-html-pipeline 6.17.5 → 6.17.7
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 +14 -0
- package/package.json +3 -3
- package/src/utils/json-filter.js +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.17.7](https://github.com/adobe/helix-html-pipeline/compare/v6.17.6...v6.17.7) (2025-01-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **deps:** update dependency @adobe/mdast-util-gridtables to v4.0.9 ([#791](https://github.com/adobe/helix-html-pipeline/issues/791)) ([1acbd0a](https://github.com/adobe/helix-html-pipeline/commit/1acbd0ab0953f1634bec22b1c9b3441fcfa91348))
|
|
7
|
+
|
|
8
|
+
## [6.17.6](https://github.com/adobe/helix-html-pipeline/compare/v6.17.5...v6.17.6) (2025-01-07)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* return columns as well ([#785](https://github.com/adobe/helix-html-pipeline/issues/785)) ([691314e](https://github.com/adobe/helix-html-pipeline/commit/691314e20f93c92e2abc831db8781bb16ee03e66))
|
|
14
|
+
|
|
1
15
|
## [6.17.5](https://github.com/adobe/helix-html-pipeline/compare/v6.17.4...v6.17.5) (2025-01-06)
|
|
2
16
|
|
|
3
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/helix-html-pipeline",
|
|
3
|
-
"version": "6.17.
|
|
3
|
+
"version": "6.17.7",
|
|
4
4
|
"description": "Helix HTML Pipeline",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@adobe/helix-markdown-support": "7.1.9",
|
|
46
46
|
"@adobe/helix-shared-utils": "3.0.2",
|
|
47
|
-
"@adobe/mdast-util-gridtables": "4.0.
|
|
47
|
+
"@adobe/mdast-util-gridtables": "4.0.9",
|
|
48
48
|
"@adobe/remark-gridtables": "3.0.8",
|
|
49
49
|
"github-slugger": "2.0.0",
|
|
50
50
|
"hast-util-raw": "9.1.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"esmock": "2.6.9",
|
|
84
84
|
"husky": "9.1.7",
|
|
85
85
|
"js-yaml": "4.1.0",
|
|
86
|
-
"jsdom": "
|
|
86
|
+
"jsdom": "26.0.0",
|
|
87
87
|
"junit-report-builder": "5.1.1",
|
|
88
88
|
"lint-staged": "15.3.0",
|
|
89
89
|
"mocha": "11.0.1",
|
package/src/utils/json-filter.js
CHANGED
|
@@ -36,12 +36,16 @@ export default function jsonFilter(state, res, query) {
|
|
|
36
36
|
function filter(dataStruct) {
|
|
37
37
|
const len = Math.min(limit, dataStruct.data.length - offset);
|
|
38
38
|
const filtered = dataStruct.data.slice(offset, offset + len);
|
|
39
|
-
|
|
39
|
+
const ret = {
|
|
40
40
|
total: dataStruct.total,
|
|
41
41
|
offset,
|
|
42
42
|
limit: filtered.length,
|
|
43
43
|
data: filtered,
|
|
44
44
|
};
|
|
45
|
+
if (dataStruct.columns) {
|
|
46
|
+
ret.columns = dataStruct.columns;
|
|
47
|
+
}
|
|
48
|
+
return ret;
|
|
45
49
|
}
|
|
46
50
|
|
|
47
51
|
const { data, sourceBus } = state.content;
|