Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @xmldom/xmldom from 0.8.4 to 0.9.0 #776

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"vitest": "^2.0.2"
},
"dependencies": {
"@xmldom/xmldom": "^0.8.0",
"@xmldom/xmldom": "^0.9.0",
"cbor-js": "^0.1.0",
"eventemitter3": "^5.0.1",
"pngparse": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/urdf/UrdfModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import UrdfMaterial from './UrdfMaterial.js';
import UrdfLink from './UrdfLink.js';
import UrdfJoint from './UrdfJoint.js';
import { DOMParser } from '@xmldom/xmldom';
import { DOMParser, MIME_TYPE } from '@xmldom/xmldom';

// See https://developer.mozilla.org/docs/XPathResult#Constants
var XPATH_FIRST_ORDERED_NODE_TYPE = 9;
Expand All @@ -32,7 +32,7 @@ export default class UrdfModel {
if (string) {
// Parse the string
var parser = new DOMParser();
xmlDoc = parser.parseFromString(string, 'text/xml').documentElement;
xmlDoc = parser.parseFromString(string, MIME_TYPE.XML_TEXT).documentElement;
}
if (!xmlDoc) {
throw new Error('No URDF document parsed!');
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
"module": "Node16" /* Specify what module code is generated. */,
"module": "nodenext" /* Specify what module code is generated. */,
"rootDir": "./src" /* Specify the root folder within your source files. */,
"allowJs": true /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */,
"checkJs": true /* Enable error reporting in type-checked JavaScript files. */,
Expand All @@ -13,7 +13,7 @@
"strict": true /* Enable all strict type-checking options. */,
"noImplicitAny": false /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
"moduleResolution": "Node16",
"moduleResolution": "nodenext",
"types": ["@types/node"]
},
"include": ["src"]
Expand Down