From dff22bc92b8ea260abcbb379996323f02a3dd828 Mon Sep 17 00:00:00 2001 From: LoneRifle Date: Thu, 11 Jun 2020 19:52:11 +0800 Subject: [PATCH] fix(deps): downgrade to 0.13.0 - last known working ver --- lib/crypto.js | 2 +- package-lock.json | 13 +++++++++---- package.json | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/lib/crypto.js b/lib/crypto.js index f12579f..8e6a776 100644 --- a/lib/crypto.js +++ b/lib/crypto.js @@ -11,7 +11,7 @@ module.exports = (serviceProvider) => { rsa_pub: serviceProvider.pubKey, pem: serviceProvider.cert, encryptionAlgorithm: 'http://www.w3.org/2001/04/xmlenc#aes256-cbc', - keyEncryptionAlgorithm: 'http://www.w3.org/2001/04/xmlenc#rsa-1_5', + keyEncryptionAlgorighm: 'http://www.w3.org/2001/04/xmlenc#rsa-1_5', } const apexBaseString = function apexBaseString({ diff --git a/package-lock.json b/package-lock.json index 5f589e0..2fd0f6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1851,6 +1851,11 @@ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=" }, + "ejs": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-2.7.4.tgz", + "integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==" + }, "emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -6034,11 +6039,11 @@ } }, "xml-encryption": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/xml-encryption/-/xml-encryption-1.2.0.tgz", - "integrity": "sha512-J3NjGMY8jf6bTo15jURTYBLtsisbnyCeM+MuxtfiAkZEZBnSZpNKjUUORhiOScKvSi6tMOAaZ3r7bZOXOni+Ew==", + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/xml-encryption/-/xml-encryption-0.13.0.tgz", + "integrity": "sha512-eekB2WQOhJVoQLG7LgEXAFqex9jWmu62Gnhe1z805H75yWvf0HIll/uS731JFQnoiP5yy870BF7vJAdO8/JAcw==", "requires": { - "escape-html": "^1.0.3", + "ejs": "^2.5.6", "node-forge": "^0.7.0", "xmldom": "~0.1.15", "xpath": "0.0.27" diff --git a/package.json b/package.json index 63681ac..ec8d04a 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "node-jose": "^1.1.4", "uuid": "^8.0.0", "xml-crypto": "^1.3.0", - "xml-encryption": "^1.2.0", + "xml-encryption": "^0.13.0", "xmldom": "^0.3.0", "xpath": "0.0.27" },