UNPKG

@natlibfi/sru-client

Version:
128 lines (127 loc) 2.82 kB
{ "name": "@natlibfi/sru-client", "description": "SRU Javascript client library", "author": { "name": "The National Library of Finland" }, "keywords": [ "sru", "library", "libraries", "marc", "code4lib" ], "homepage": "https://github.com/natlibfi/sru-client-js", "bugs": { "url": "https://github.com/natlibfi/sru-client-js/issues" }, "repository": { "type": "git", "url": "git@github.com:natlibfi/sru-client-js.git" }, "license": "MIT", "version": "6.1.0-alpha.2", "main": "dist/index.js", "engines": { "node": ">=22" }, "publishConfig": { "access": "public" }, "scripts": { "start": "node dist/index.js", "prepare": "npm run build", "build": "babel src --source-maps --copy-files --delete-dir-on-start --out-dir=dist", "lint": "eslint ./src", "lint:dev": "eslint --fix ./src", "test:base": "cross-env NODE_ENV=test nyc mocha --package ./package.json", "test": "npm run lint && npm run test:base && npm run coverage", "test:dev": "npm run lint:dev && npm run test:base && npm run coverage", "coverage": "nyc check-coverage --per-file", "watch:test": "cross-env DEBUG=@natlibfi/* NODE_ENV=test nodemon", "dev": "nodemon", "dev:debug": "cross-env LOG_LEVEL=debug DEBUG=@natlibfi/* NODE_ENV=test nodemon" }, "dependencies": { "@babel/runtime": "^7.27.1", "@natlibfi/marc-record": "^9.1.4", "@natlibfi/marc-record-serializers": "^10.1.5", "@natlibfi/melinda-backend-commons": "^2.3.7", "debug": "^4.4.0", "http-status": "^2.1.0", "node-fetch": "^2.7.0", "xml2js": "^0.6.2" }, "devDependencies": { "@babel/cli": "^7.26.4", "@babel/core": "^7.26.9", "@babel/node": "^7.26.0", "@babel/preset-env": "^7.26.9", "@babel/register": "^7.25.9", "@natlibfi/eslint-config-melinda-backend": "^3.0.5", "@natlibfi/fixugen-http-client": "^3.0.10", "@natlibfi/fixura": "^3.0.12", "babel-plugin-istanbul": "^7.0.0", "chai": "^4.5.0", "cross-env": "^7.0.3", "eslint": "^8.57.1", "mocha": "^11.1.0", "nodemon": "^3.1.9", "nyc": "^17.1.0" }, "eslintConfig": { "extends": "@natlibfi/melinda-backend" }, "babel": { "presets": [ [ "@babel/preset-env", { "targets": "maintained node versions" } ] ], "env": { "test": { "plugins": [ "istanbul" ] } } }, "mocha": { "spec": [ "src/*.spec.js", "src/**/*.spec.js" ], "require": [ "@babel/register" ], "inline-diffs": true, "maxDiffSize": 25000, "bail": true, "exit": true }, "nodemonConfig": { "exec": "npm run test:dev", "watch": [ "src/*", "test-fixtures/*" ] }, "nyc": { "exclude": [ "src/*.spec.js", "src/**/*.spec.js" ], "reporter": [ "text" ], "sourceMap": false, "instrument": false, "lines": 80, "statements": 80, "functions": 80, "branches": 80 } }