@joyzl/eno 1.1.1 → 1.1.2

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/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -118,7 +118,7 @@ function replace(element, html) {
118
118
  if (element.style.cssText) {
119
119
  html.style.cssText += element.style.cssText;
120
120
  }
121
- element.parentElement.replaceChild(element, html);
121
+ element.parentElement.replaceChild(html, element);
122
122
  }
123
123
  }
124
124
  return html;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joyzl/eno",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Easy Node Object",
5
5
  "main": "index.js",
6
6
  "scripts": {