Skip to content

Commit

Permalink
Update xmldom to 0.7.0 (#236)
Browse files Browse the repository at this point in the history
The package is now scoped under @xmldom. See xmldom/xmldom#278
This fixes security vulnerability CVE-2021-32796
  • Loading branch information
forty authored and LoneRifle committed Aug 20, 2021
1 parent 6f63436 commit 69abad6
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Example:

`````javascript
var select = require('xml-crypto').xpath
, dom = require('xmldom').DOMParser
, dom = require('@xmldom/xmldom').DOMParser
, SignedXml = require('xml-crypto').SignedXml
, FileKeyInfo = require('xml-crypto').FileKeyInfo
, fs = require('fs')
Expand Down
2 changes: 1 addition & 1 deletion example/example.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var select = require('xml-crypto').xpath
, dom = require('xmldom').DOMParser
, dom = require('@xmldom/xmldom').DOMParser
, SignedXml = require('xml-crypto').SignedXml
, FileKeyInfo = require('xml-crypto').FileKeyInfo
, fs = require('fs')
Expand Down
2 changes: 1 addition & 1 deletion lib/signed-xml.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var xpath = require('xpath')
, Dom = require('xmldom').DOMParser
, Dom = require('@xmldom/xmldom').DOMParser
, utils = require('./utils')
, c14n = require('./c14n-canonicalization')
, execC14n = require('./exclusive-canonicalization')
Expand Down
10 changes: 5 additions & 5 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 @@ -10,8 +10,8 @@
"LoneRifle <[email protected]>"
],
"dependencies": {
"xmldom": "^0.6.0",
"xpath": "0.0.27"
"@xmldom/xmldom": "^0.7.0",
"xpath": "0.0.32"
},
"devDependencies": {
"ejs": "2.6.1",
Expand Down
4 changes: 2 additions & 2 deletions test/c14n-non-exclusive-unit-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var C14nCanonicalization = require("../lib/c14n-canonicalization").C14nCanonicalization
, Dom = require('xmldom').DOMParser
, Dom = require('@xmldom/xmldom').DOMParser
, select = require('xpath').select
, findAncestorNs = require('../lib/signed-xml').SignedXml.findAncestorNs

Expand Down Expand Up @@ -175,4 +175,4 @@ exports["C14n: Don't redeclare an attribute's namespace prefix if already in sco
var expected = '<child2 xmlns:aaa="bbb" aaa:foo="bar"></child2>';

test_C14nCanonicalization(test, xml, xpath, expected);
}
}
2 changes: 1 addition & 1 deletion test/c14nWithComments-unit-tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var c14nWithComments = require("../lib/exclusive-canonicalization").ExclusiveCanonicalizationWithComments
, Dom = require('xmldom').DOMParser
, Dom = require('@xmldom/xmldom').DOMParser
, select = require('xpath').select
, SignedXml = require('../lib/signed-xml.js').SignedXml

Expand Down
2 changes: 1 addition & 1 deletion test/canonicalization-unit-tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var ExclusiveCanonicalization = require("../lib/exclusive-canonicalization").ExclusiveCanonicalization
, Dom = require('xmldom').DOMParser
, Dom = require('@xmldom/xmldom').DOMParser
, select = require('xpath').select
, SignedXml = require('../lib/signed-xml.js').SignedXml

Expand Down
2 changes: 1 addition & 1 deletion test/document-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var crypto = require('../index');
var xpath = require('xpath');
var xmldom = require('xmldom');
var xmldom = require('@xmldom/xmldom');
var fs = require('fs');

exports['test with a document '] = function (test) {
Expand Down
2 changes: 1 addition & 1 deletion test/hmac-tests.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var crypto = require('../index');
var xpath = require('xpath');
var xmldom = require('xmldom');
var xmldom = require('@xmldom/xmldom');
var fs = require('fs');

exports['test validating HMAC signature'] = function (test) {
Expand Down
2 changes: 1 addition & 1 deletion test/saml-response-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var crypto = require('../index');
var xpath = require('xpath');
var xmldom = require('xmldom');
var xmldom = require('@xmldom/xmldom');
var fs = require('fs');

exports['test validating SAML response'] = function (test) {
Expand Down
2 changes: 1 addition & 1 deletion test/signature-integration-tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var xpath = require('xpath')
, Dom = require('xmldom').DOMParser
, Dom = require('@xmldom/xmldom').DOMParser
, SignedXml = require('../lib/signed-xml.js').SignedXml
, fs = require('fs')
, crypto = require('../index')
Expand Down
2 changes: 1 addition & 1 deletion test/signature-unit-tests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var select = require('xpath').select
, dom = require('xmldom').DOMParser
, dom = require('@xmldom/xmldom').DOMParser
, SignedXml = require('../lib/signed-xml.js').SignedXml
, FileKeyInfo = require('../lib/signed-xml.js').FileKeyInfo
, fs = require('fs')
Expand Down
2 changes: 1 addition & 1 deletion test/wsfed-metadata-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var crypto = require('../index');
var xpath = require('xpath');
var xmldom = require('xmldom');
var xmldom = require('@xmldom/xmldom');
var fs = require('fs');

exports['test validating WS-Fed Metadata'] = function (test) {
Expand Down

0 comments on commit 69abad6

Please sign in to comment.