Skip to content

Commit

Permalink
chore: change from the xmldom package to @xmldom/xmldom (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Aug 24, 2021
1 parent 478abb0 commit a2f5cb8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
"dependencies": {
"@babel/runtime": "^7.12.5",
"@videojs/vhs-utils": "^3.0.2",
"global": "^4.4.0",
"xmldom": "^0.5.0"
"@xmldom/xmldom": "^0.7.2",
"global": "^4.4.0"
},
"devDependencies": {
"@rollup/plugin-replace": "^2.3.4",
Expand Down
6 changes: 3 additions & 3 deletions scripts/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ const options = {
},
externals(defaults) {
defaults.module.push('@videojs/vhs-utils');
defaults.module.push('xmldom');
defaults.module.push('@xmldom/xmldom');
defaults.module.push('atob');
defaults.module.push('url-toolkit');
return defaults;
},
globals(defaults) {
defaults.browser.xmldom = 'window';
defaults.browser['@xmldom/xmldom'] = 'window';
defaults.browser.atob = 'window.atob';
defaults.test.xmldom = 'window';
defaults.test['@xmldom/xmldom'] = 'window';
defaults.test.atob = 'window.atob';
defaults.test.jsdom = '{JSDOM: function() { return {window: window}; }}';
return defaults;
Expand Down
2 changes: 1 addition & 1 deletion src/stringToMpdXml.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {DOMParser} from 'xmldom';
import {DOMParser} from '@xmldom/xmldom';
import errors from './errors';

export const stringToMpdXml = (manifestString) => {
Expand Down
2 changes: 1 addition & 1 deletion test/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { merge, values } from '../src/utils/object';
import { parseDuration } from '../src/utils/time';
import { flatten, range, from, findIndexes } from '../src/utils/list';
import { findChildren, getContent } from '../src/utils/xml';
import {DOMParser} from 'xmldom';
import {DOMParser} from '@xmldom/xmldom';
import {JSDOM} from 'jsdom';
import QUnit from 'qunit';

Expand Down

0 comments on commit a2f5cb8

Please sign in to comment.