arxiv-api-wrapper 2.1.0 → 2.1.1
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 +2 -2
- package/src/oaiParser.ts +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arxiv-api-wrapper",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Provides functions wrapping the arXiv API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arxiv"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"docs:serve": "npx serve docs"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"fast-xml-parser": "^5.
|
|
29
|
+
"fast-xml-parser": "^5.5.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^25.0.0",
|
package/src/oaiParser.ts
CHANGED
|
@@ -22,6 +22,9 @@ const parser = new XMLParser({
|
|
|
22
22
|
removeNSPrefix: true,
|
|
23
23
|
trimValues: true,
|
|
24
24
|
parseTagValue: false,
|
|
25
|
+
processEntities: {
|
|
26
|
+
maxTotalExpansions: 0, // 0 disables the limit; arXiv OAI is a trusted source
|
|
27
|
+
},
|
|
25
28
|
});
|
|
26
29
|
|
|
27
30
|
const VALID_ERROR_CODES: OaiErrorCode[] = [
|