UNPKG

@kth/api-call

Version:

Node.js module to make JSON calls against APIs.

77 lines (76 loc) 2.02 kB
{ "name": "@kth/api-call", "version": "4.1.0", "description": "Node.js module to make JSON calls against APIs.", "main": "index.js", "repository": { "type": "git", "url": "https://github.com/KTH/kth-node-api-call" }, "author": { "name": "KTH", "email": "infosys@kth.se", "url": "https://github.com/KTH" }, "license": "MIT", "scripts": { "test": "jest", "jest": "jest", "jest:watch": "jest --watch", "jest:watch-update": "jest --watch -u", "build": "./build.sh", "prepare": "if [ -f ./node_modules/.bin/husky ]; then husky install; fi", "prettier:all": "prettier --write \"**/*.js\"" }, "keywords": [ "api", "kth", "json" ], "dependencies": { "form-data": "^4.0.0", "node-fetch": "^2.6.7", "url-join": "^4.0.1", "uuid": "^8.3.2" }, "devDependencies": { "@kth/eslint-config-kth": "^3.0.10", "@moebius/http-graceful-shutdown": "^1.1.0", "@types/jest": "^29.0.2", "body-parser": "^1.20.0", "eslint": "^8.23.1", "express": "^4.18.1", "express-form-data": "^2.0.18", "husky": "^8.0.1", "jest": "^29.0.3", "jest-extended": "^3.1.0", "prettier": "^2.7.1", "pretty-quick": "^3.1.3", "redis-mock": "^0.56.3" }, "// (prettier)": "configuration version 2020-06-15 - might also reside in .prettierrc.json", "prettier": { "arrowParens": "avoid", "printWidth": 120, "semi": false, "singleQuote": true, "trailingComma": "es5" }, "// (jest)": "configuration version 2020-06-15 (API+NPM) - might also reside as module.exports in jest.config.js", "jest": { "clearMocks": true, "globalSetup": "./test/mock-api/server.js", "globalTeardown": "./test/mock-api/teardown.js", "notifyMode": "failure-change", "setupFilesAfterEnv": [ "jest-extended/all" ], "testEnvironment": "node", "verbose": true, "coveragePathIgnorePatterns": [ "/node_modules/", "/test-utils/", "/test/mock-api/" ] } }