UNPKG

@natlibfi/melinda-record-match-validator

Version:

Validates if two records matched by melinda-record-matching can be merged and sets merge priority

108 lines (107 loc) 3.11 kB
{ "name": "@natlibfi/melinda-record-match-validator", "version": "2.4.0-alpha.9", "description": "Validates if two records matched by melinda-record-matching can be merged and sets merge priority", "main": "dist/index.js", "repository": { "type": "git", "url": "git+https://github.com/NatLibFi/melinda-record-match-validator.git" }, "keywords": [ "Melinda", "Marc", "Merge" ], "author": "The National Library of Finland", "license": "MIT", "bugs": { "url": "https://github.com/NatLibFi/melinda-record-match-validator/issues" }, "homepage": "https://github.com/NatLibFi/melinda-record-match-validator#readme", "engines": { "node": ">=18" }, "publishConfig": { "access": "public" }, "scripts": { "prepare": "npm run build", "cli": "node dist/cli.js", "lint": "eslint src", "lint:dev": "eslint --fix src", "test:base": "cross-env NODE_ENV=test nyc mocha --require @babel/register", "test": "npm run lint && npm run test:base -- --recursive test", "test:dev": "npm run lint:dev && DEBUG='@natlibfi/*' npm run test:base -- --recursive test && npm run coverage", "test:dev:collect": "npm run lint:dev && DEBUG='@natlibfi/*' npm run test:base -- test/collectRecordValues.spec.js && npm run coverage", "test:dev:compare": "npm run lint:dev && DEBUG='@natlibfi/*' npm run test:base -- test/compareRecordValues.spec.js && npm run coverage", "coverage": "nyc check-coverage --per-file", "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist", "watch:test": "cross-env NODE_ENV=test nodemon -w src -w test-fixtures --exec 'npm run test:dev'" }, "dependencies": { "@natlibfi/marc-record": "^9.1.6", "@natlibfi/melinda-commons": "^13.2.0-alpha.2", "debug": "^4.4.1", "isbn3": "^1.2.13", "moment": "^2.30.1" }, "devDependencies": { "@babel/cli": "^7.28.0", "@babel/core": "^7.28.0", "@babel/node": "^7.28.0", "@babel/preset-env": "^7.28.0", "@babel/register": "^7.27.1", "@babel/runtime": "^7.28.2", "@natlibfi/eslint-config-melinda-backend": "^3.0.6", "@natlibfi/fixugen": "^2.0.15", "@natlibfi/fixura": "^3.0.14", "babel-plugin-istanbul": "^7.0.0", "babel-plugin-rewire": "^1.2.0", "chai": "^4.5.0", "chai-as-promised": "^7.1.2", "cross-env": "^7.0.3", "eslint": "^8.57.1", "mocha": "^11.7.1", "nodemon": "^3.1.10", "nyc": "^17.1.0" }, "eslintConfig": { "extends": "@natlibfi/melinda-backend" }, "babel": { "presets": [ [ "@babel/preset-env", { "targets": "maintained node versions" } ] ], "env": { "test": { "plugins": [ "istanbul", "rewire" ] } } }, "nyc": { "exclude": [ "*/*.spec.js", "*/**/*.spec.js" ], "reporter": [ "text" ], "require": [ "@babel/register" ], "sourceMap": false, "instrument": false, "lines": 80, "statements": 80, "functions": 80, "branches": 80 } }