auto-component 0.0.12 → 0.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-component",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "main": "src/auto-component.jsx",
5
5
  "peerDependencies": {
6
6
  "react": "*",
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect } from 'react'
2
- const beautify = require('js-beautify');
2
+ import { html as beautifyHtml } from 'js-beautify'
3
3
 
4
4
  import './auto-component.css'
5
5
 
@@ -40,7 +40,7 @@ const AutoComponent = () => {
40
40
 
41
41
  // format html for display (breaks/indentation)
42
42
  const formatHtml = (html) => {
43
- return beautify.html(html, {
43
+ return beautifyHtml(html, {
44
44
  indent_size: 2,
45
45
  wrap_line_length: 80,
46
46
  max_preserve_newlines: 1,