@api-client/core 0.19.15 → 0.19.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@api-client/core",
|
|
3
3
|
"description": "The API Client's core client library. Works in NodeJS and in a ES enabled browser.",
|
|
4
|
-
"version": "0.19.
|
|
4
|
+
"version": "0.19.16",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./browser.js": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"@pawel-up/csv": "^0.2.0",
|
|
93
93
|
"@pawel-up/data-mock": "^0.4.0",
|
|
94
94
|
"@pawel-up/jexl": "^4.0.1",
|
|
95
|
-
"@xmldom/xmldom": "^0.
|
|
95
|
+
"@xmldom/xmldom": "^0.9.9",
|
|
96
96
|
"chalk": "^5.4.1",
|
|
97
97
|
"console-table-printer": "^2.11.2",
|
|
98
98
|
"dompurify": "^3.2.6",
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"schema-org-json-schemas": "^2.1.4",
|
|
143
143
|
"sinon": "^21.0.0",
|
|
144
144
|
"ts-node-maintained": "^10.9.5",
|
|
145
|
-
"typescript": "^
|
|
145
|
+
"typescript": "^6.0.2",
|
|
146
146
|
"typescript-eslint": "^8.24.1"
|
|
147
147
|
},
|
|
148
148
|
"scripts": {
|
|
@@ -150,8 +150,7 @@
|
|
|
150
150
|
"build:ts": "tsc --project tsconfig.json",
|
|
151
151
|
"build:node": "tsc --project tsconfig.node.json",
|
|
152
152
|
"build": "npm run build:ts && npm run copy:assets",
|
|
153
|
-
"prepare": "husky && npm run
|
|
154
|
-
"fixes": "node scripts/fix-rollup-plugin.js",
|
|
153
|
+
"prepare": "husky && npm run build:ts",
|
|
155
154
|
"tsc": "tsc",
|
|
156
155
|
"tsc:tests": "tsc --project tsconfig.browser.json",
|
|
157
156
|
"tsc:watch": "tsc --watch --project tsconfig.json",
|
|
@@ -160,6 +159,7 @@
|
|
|
160
159
|
"test": "npm run test:node && npm run test:browser",
|
|
161
160
|
"test:coverage": "npm run test:node:coverage && npm run test:browser",
|
|
162
161
|
"test:node": "node --import ts-node-maintained/register/esm --enable-source-maps bin/test.ts",
|
|
162
|
+
"test:node:watch": "node --import ts-node-maintained/register/esm --enable-source-maps --watch bin/test.ts",
|
|
163
163
|
"test:node:coverage": "c8 --reporter lcov --reporter text node --import ts-node-maintained/register/esm --enable-source-maps bin/test.ts",
|
|
164
164
|
"copy:assets": "cp -f ./oauth-popup.html ./build/oauth-popup.html",
|
|
165
165
|
"start": "echo \"Use the npm run dev instead\"",
|
package/src/data/XmlReader.ts
CHANGED
|
@@ -100,15 +100,16 @@ export class XmlReader extends DataReader {
|
|
|
100
100
|
xResult = xpath.default.XPathResult
|
|
101
101
|
let errored = false
|
|
102
102
|
const parser = new DOMParser({
|
|
103
|
-
|
|
103
|
+
onError: (level, msg): void => {
|
|
104
|
+
console.error(`[${level}] ${msg}`)
|
|
104
105
|
errored = true
|
|
105
106
|
},
|
|
106
107
|
})
|
|
107
108
|
let dom: Document | undefined
|
|
108
109
|
try {
|
|
109
110
|
dom = parser.parseFromString(data, 'text/xml') as unknown as Document
|
|
110
|
-
} catch {
|
|
111
|
-
|
|
111
|
+
} catch (e) {
|
|
112
|
+
console.error(e)
|
|
112
113
|
}
|
|
113
114
|
if (!dom || errored) {
|
|
114
115
|
return undefined
|