auto-component 0.0.14 → 0.0.15

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,13 +1,17 @@
1
1
  {
2
2
  "name": "auto-component",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "main": "src/auto-component.jsx",
5
5
  "peerDependencies": {
6
6
  "react": "*",
7
7
  "react-dom": "*"
8
8
  },
9
9
  "dependencies": {
10
- "js-beautify": "*"
10
+ "js-beautify": "^1.14.10",
11
+ "config-chain": "^1.1.13",
12
+ "editorconfig": "^1.0.3",
13
+ "glob": "^10.3.3",
14
+ "nopt": "^7.2.0"
11
15
  },
12
16
  "files": [
13
17
  "src"
@@ -1,5 +1,5 @@
1
1
  import { useState, useEffect } from 'react'
2
- import { html as beautifyHtml } from 'js-beautify'
2
+ import beautify 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 beautifyHtml(html, {
43
+ return beautify.html(html, {
44
44
  indent_size: 2,
45
45
  wrap_line_length: 80,
46
46
  max_preserve_newlines: 1,