New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@istex/istex-merge

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@istex/istex-merge - npm Package Compare versions

Comparing version

to
2.2.5

{
"name": "@istex/istex-merge",
"version": "2.2.4",
"version": "2.2.5",
"description": "Library to build merged documents and generate Hal TEIs from them.",

@@ -28,13 +28,15 @@ "main": "index.js",

"chai": "^4.3.4",
"eslint": "^7.32.0",
"eslint-config-semistandard": "^16.0.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.1",
"eslint-plugin-standard": "^5.0.0",
"eslint": "^8.17.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-n": "^15.2.2",
"eslint-plugin-promise": "^6.0.0",
"fs-extra": "^10.1.0",
"mocha": "^9.1.3",
"rewire": "^3.0.2"
},
"volta": {
"node": "14.19.3",
"npm": "8.12.1"
}
}

@@ -164,2 +164,6 @@ const { create } = require('xmlbuilder2');

// An author must have surname+forename, or a halId or a halAuthorId
// cf page 10 of https://github.com/CCSDForge/HAL/blob/master/Sword/SWORD_import_HAL.pdf
if (_.isEmpty(author.forename) && _.isEmpty(author.surname) && _.isEmpty(author.halAuthorId) && _.isEmpty(author.idHal)) return;
// Role

@@ -169,6 +173,8 @@ halAuthor['@role'] = 'aut';

// Name
halAuthor.persName = {
forename: { '@type': 'first', '#': author.forename },
surname: author.surname,
};
if (!_.isEmpty(author.forename) && !_.isEmpty(author.surname)) {
halAuthor.persName = {
forename: { '@type': 'first', '#': author.forename },
surname: author.surname,
};
}

@@ -175,0 +181,0 @@ // idRef