x3d-tidy 1.0.52 → 1.0.54

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/bin/x3d-tidy.js CHANGED
@@ -7,8 +7,6 @@ const { spawn } = require ("child_process")
7
7
 
8
8
  process .chdir (path .resolve (__dirname, ".."))
9
9
 
10
- console .log (process .cwd ())
11
-
12
10
  const p = spawn (os .platform () === "win32" ? "npm.cmd" : "npm", ["start", "--silent", "--", ... process .argv .slice (2)])
13
11
 
14
12
  p .stdout .pipe (process .stdout)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x3d-tidy",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "X3D Converter, Beautifier and Minimizer",
5
5
  "bin": {
6
6
  "x3d-tidy": "bin/x3d-tidy.js"
package/src/convert.js CHANGED
@@ -46,7 +46,7 @@ async function convert (argv)
46
46
  .command ("x3d-tidy", "X3D converter, beautifier and minimizer")
47
47
  .fail ((msg, error, yargs) =>
48
48
  {
49
- process .stderr .write (msg)
49
+ console .log (msg)
50
50
  process .exit (1)
51
51
  })
52
52
  .option ("input",
@@ -96,13 +96,6 @@ async function convert (argv)
96
96
  .help ()
97
97
  .alias ("help", "h") .argv;
98
98
 
99
- if (!DEBUG)
100
- {
101
- console .log = Function .prototype
102
- console .warn = Function .prototype
103
- console .error = Function .prototype
104
- }
105
-
106
99
  const
107
100
  Browser = X3D .createBrowser () .browser,
108
101
  input = path .resolve (process .cwd (), args .input)
@@ -137,11 +130,11 @@ async function convert (argv)
137
130
  if (path .extname (output))
138
131
  fs .writeFileSync (output, getContents ({ ...options, type: path .extname (output) }))
139
132
  else
140
- process .stdout .write (getContents ({ ...options, type: path .basename (output) }))
133
+ console .log (getContents ({ ...options, type: path .basename (output) }))
141
134
  }
142
135
  else
143
136
  {
144
- process .stdout .write (getContents ({ ...options, type: path .extname (input) }))
137
+ console .log (getContents ({ ...options, type: path .extname (input) }))
145
138
  }
146
139
  }
147
140