x3d-tidy 2.0.6 → 2.0.7
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 +4 -4
- package/src/main.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x3d-tidy",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "X3D Converter, Beautifier and Minimizer",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"colors": "^1.4.0",
|
|
57
|
-
"x_ite": "^10.5.
|
|
58
|
-
"x_ite-node": "^1.0.
|
|
59
|
-
"x3d-traverse": "^1.0.
|
|
57
|
+
"x_ite": "^10.5.15",
|
|
58
|
+
"x_ite-node": "^1.0.17",
|
|
59
|
+
"x3d-traverse": "^1.0.6",
|
|
60
60
|
"yargs": "^17.7.2"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
package/src/main.js
CHANGED
|
@@ -96,6 +96,9 @@ async function convert ()
|
|
|
96
96
|
if (args .help)
|
|
97
97
|
return;
|
|
98
98
|
|
|
99
|
+
// Fixes an issue with URL, if it matches a drive letter.
|
|
100
|
+
args .input = args .input .replace (/^([A-Za-z]:)/, "file://$1");
|
|
101
|
+
|
|
99
102
|
const
|
|
100
103
|
Browser = X3D .createBrowser () .browser,
|
|
101
104
|
input = new URL (args .input, url .pathToFileURL (path .join (process .cwd (), "/")));
|