coralite-plugin-aggregation 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coralite-plugin-aggregation",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Build database free coralite websites",
5
5
  "scripts": {
6
6
  "build": "coralite -t tests/fixtures/templates -p tests/fixtures/pages -o dist",
@@ -38,7 +38,7 @@
38
38
  "@playwright/test": "^1.52.0",
39
39
  "@stylistic/eslint-plugin-js": "^4.2.0",
40
40
  "@stylistic/eslint-plugin-plus": "^4.2.0",
41
- "coralite": "^0.12.0",
41
+ "coralite": "^0.13.0",
42
42
  "sirv-cli": "^3.0.1"
43
43
  },
44
44
  "dependencies": {
@@ -46,6 +46,6 @@
46
46
  "htmlparser2": "^10.0.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "coralite": "^0.12.0"
49
+ "coralite": "^0.13.0"
50
50
  }
51
51
  }
package/src/index.js CHANGED
@@ -294,7 +294,7 @@ export default createPlugin({
294
294
 
295
295
  return result
296
296
  },
297
- async onPageCreate ({ elements, values, data }) {
297
+ async onPageSet ({ elements, values, data }) {
298
298
  // loop through all children of the root element to process metadata in <head> tags.
299
299
  for (let i = 0; i < elements.root.children.length; i++) {
300
300
  const rootNode = elements.root.children[i]