File tree 6 files changed +23
-20
lines changed
6 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 9
9
"./src/RosLibNode.js" : " ./src/RosLib.js" ,
10
10
"canvas" : " ./src/util/shim/canvas.js" ,
11
11
"ws" : " ./src/util/shim/WebSocket.js" ,
12
- "xmldom" : " ./src/util/shim/xmldom.js" ,
12
+ "@ xmldom/xmldom " : " ./src/util/shim/@xmldom /xmldom.js" ,
13
13
"./src/util/decompressPng.js" : " ./src/util/shim/decompressPng.js"
14
14
},
15
15
"devDependencies" : {
33
33
"time-grunt" : " ^2.0.0"
34
34
},
35
35
"dependencies" : {
36
+ "@xmldom/xmldom" : " ^0.7.5" ,
36
37
"cbor-js" : " ^0.1.0" ,
37
38
"eventemitter2" : " ^6.4.0" ,
38
39
"object-assign" : " ^4.0.0" ,
39
40
"pngparse" : " ^2.0.0" ,
40
41
"socket.io" : " ^4.0.0" ,
41
42
"webworkify" : " ^1.5.0" ,
42
- "ws" : " ^8.0.0" ,
43
- "xmldom" : " ^0.6.0"
43
+ "ws" : " ^8.0.0"
44
44
},
45
45
"directories" : {
46
46
"example" : " examples" ,
Original file line number Diff line number Diff line change 1
1
/**
2
- * @fileOverview
2
+ * @fileOverview
3
3
* @author Benjamin Pitzer - ben.pitzer@gmail.com
4
4
* @author Russell Toris - rctoris@wpi.edu
5
5
*/
6
6
7
7
var UrdfMaterial = require ( './UrdfMaterial' ) ;
8
8
var UrdfLink = require ( './UrdfLink' ) ;
9
9
var UrdfJoint = require ( './UrdfJoint' ) ;
10
- var DOMParser = require ( 'xmldom' ) . DOMParser ;
10
+ var DOMParser = require ( '@xmldom/ xmldom' ) . DOMParser ;
11
11
12
12
// See https://developer.mozilla.org/docs/XPathResult#Constants
13
13
var XPATH_FIRST_ORDERED_NODE_TYPE = 9 ;
@@ -70,7 +70,7 @@ function UrdfModel(options) {
70
70
// Check for a material
71
71
for ( var j = 0 ; j < link . visuals . length ; j ++ )
72
72
{
73
- var mat = link . visuals [ j ] . material ;
73
+ var mat = link . visuals [ j ] . material ;
74
74
if ( mat !== null && mat . name ) {
75
75
if ( this . materials [ mat . name ] !== void 0 ) {
76
76
link . visuals [ j ] . material = this . materials [ mat . name ] ;
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
window . require = function require ( path ) {
2
2
switch ( path ) {
3
3
case 'eventemitter2' : return EventEmitter2 ;
4
- case 'xmldom' : return { DOMParser : DOMParser } ;
4
+ case '@xmldom/ xmldom' : return { DOMParser : DOMParser } ;
5
5
case 'cbor-js' : return CBOR ;
6
6
case '../src/util/cborTypedArrayTags.js' : return cborTypedArrayTagger ;
7
7
}
Original file line number Diff line number Diff line change 1
1
var expect = require ( 'chai' ) . expect ;
2
2
var ROSLIB = require ( '..' ) ;
3
3
4
- var DOMParser = require ( 'xmldom' ) . DOMParser ;
4
+ var DOMParser = require ( '@xmldom/ xmldom' ) . DOMParser ;
5
5
// See https://developer.mozilla.org/docs/XPathResult#Constants
6
6
var XPATH_FIRST_ORDERED_NODE_TYPE = 9 ;
7
7
You can’t perform that action at this time.
0 commit comments