Skip to content

Commit

Permalink
Merge pull request #187 from mapbox/xmldom-update
Browse files Browse the repository at this point in the history
Update xmldom to @xmldom/xmldom
  • Loading branch information
tristen authored Sep 27, 2023
2 parents 44d83fd + 1c0b18d commit 3377f15
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 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 @@ -37,7 +37,7 @@
},
"license": "BSD-2-Clause",
"dependencies": {
"xmldom": "~0.6.0",
"@xmldom/xmldom": "^0.8.10",
"concat-stream": "~2.0.0",
"minimist": "1.2.8"
},
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var test = require('tape').test,
tj = require('../');

if (!process.browser) {
var xmldom = require('xmldom');
var xmldom = require('@xmldom/xmldom');
}

function kmlFixtureEqual(t, file) {
Expand Down
2 changes: 1 addition & 1 deletion togeojson
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var tj = require('./'),
argv = require('minimist')(process.argv.slice(2)),
concat = require('concat-stream'),
fs = require('fs'),
xmldom = new (require('xmldom').DOMParser)();
xmldom = new (require('@xmldom/xmldom').DOMParser)();

var filename = argv._[0] || '',
filetype = (argv.f || 'kml');
Expand Down
2 changes: 1 addition & 1 deletion togeojson.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ var toGeoJSON = (function() {
var isNodeEnv = (typeof process === 'object' && !process.browser);
var isTitaniumEnv = (typeof Titanium === 'object');
if (typeof exports === 'object' && (isNodeEnv || isTitaniumEnv)) {
serializer = new (require('xmldom').XMLSerializer)();
serializer = new (require('@xmldom/xmldom').XMLSerializer)();
} else {
throw new Error('Unable to initialize serializer');
}
Expand Down

0 comments on commit 3377f15

Please sign in to comment.