Skip to content
Open
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
4 changes: 2 additions & 2 deletions jxon.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* bugfixes and code cleanup by user @laubstein
* https://github.com/tyrasd/jxon/pull/32
*
* adapted for nodejs and npm by @tyrasd (Martin Raifer <tyr.asd@gmail.com>)
* adapted for nodejs and npm by @tyrasd (Martin Raifer <tyr.asd@gmail.com>)
*/

(function(root, factory) {
Expand All @@ -38,7 +38,7 @@
// only CommonJS-like environments that support module.exports,
// like Node.

module.exports = factory(require('xmldom'), true);
module.exports = factory(require('@xmldom/xmldom'), true);
}
} else {
// Browser globals (root is window)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"license": "GPL v3",
"dependencies": {
"xmldom": "^0.1.21"
"@xmldom/xmldom": "^0.7.5"
},
"devDependencies": {
"browserify": "^13.0.0",
Expand Down
4 changes: 3 additions & 1 deletion test/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
<body>
<div id='mocha'></div>
<script src='../node_modules/mocha/mocha.js'></script>
<script>mocha.setup('bdd')</script>
<script src='../node_modules/chai/chai.js'></script>
<script>mocha.ui('bdd')</script>
<script>expect = chai.expect</script>
<script src='spec.browserify.js'></script>
<script>
window.mocha.run();
Expand Down