We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c193d6 commit 9eb77e2Copy full SHA for 9eb77e2
lib/index.js
@@ -1,12 +1,12 @@
1
'use strict'
2
3
-const parser = require('fast-xml-parser')
+const { XMLParser } = require('fast-xml-parser')
4
const api = require('./api')
5
6
module.exports = function (word, opt) {
7
if (!opt) opt = {}
8
9
return api
10
.fetchTerm(word, opt)
11
- .then(xml => parser.parse(xml))
+ .then(xml => new XMLParser().parse(xml))
12
}
package.json
@@ -29,7 +29,7 @@
29
"license": "MIT",
30
"dependencies": {
31
"chalk": "^2.0.0",
32
- "fast-xml-parser": "^2.6.0",
+ "fast-xml-parser": "^4.2.4",
33
"meow": "^3.7.0",
34
"node-fetch": "^2.6.1",
35
"ora": "^1.3.0",
0 commit comments