UNPKG

mongoose-omit-common-fields

Version:

Array of common fields to emit for Mongoose toObject/toJSON (helpful for security)

130 lines (129 loc) 2.95 kB
{ "name": "mongoose-omit-common-fields", "description": "Array of common fields to emit for Mongoose toObject/toJSON (helpful for security)", "version": "0.0.6", "author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)", "bugs": { "url": "https://github.com/ladjs/mongoose-omit-common-fields/issues", "email": "niftylettuce@gmail.com" }, "contributors": [ "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com/)" ], "dependencies": { "camelcase": "^6.0.0" }, "devDependencies": { "@commitlint/cli": "^8.3.5", "@commitlint/config-conventional": "^8.3.4", "ava": "^3.8.2", "codecov": "^3.7.0", "cross-env": "^7.0.2", "eslint": "6.x", "eslint-config-prettier": "^6.11.0", "eslint-config-xo-lass": "^1.0.3", "eslint-plugin-prettier": "^3.1.3", "fixpack": "^3.0.6", "husky": "^4.2.5", "lint-staged": "^10.2.7", "lodash.isarray": "^4.0.0", "lodash.isobject": "^3.0.2", "nyc": "^15.0.1", "prettier": "^2.0.5", "remark-cli": "^8.0.0", "remark-preset-github": "^1.0.1", "xo": "0.25" }, "engines": { "node": ">=8.3" }, "homepage": "https://github.com/ladjs/mongoose-omit-common-fields", "keywords": [ "common", "fields", "helper", "hide", "json", "koa", "lad", "lass", "mongo", "mongoose", "object", "omit", "omitted", "remove", "security", "toJSON", "toObject" ], "license": "MIT", "lint-staged": { "*.{js,jsx,mjs,ts,tsx,css,less,scss,json,graphql}": [ "prettier --write --single-quote --trailing-comma none", "git add" ], "*.md": [ "remark . -qfo", "git add" ] }, "main": "index.js", "nyc": { "check-coverage": true, "lines": 100, "functions": 100, "branches": 100, "reporter": [ "lcov", "html", "text" ] }, "remarkConfig": { "plugins": [ "preset-github" ] }, "repository": { "type": "git", "url": "https://github.com/ladjs/mongoose-omit-common-fields" }, "scripts": { "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "lint": "xo && remark . -qfo", "precommit": "lint-staged && npm test", "test": "npm run lint && npm run test-coverage", "test-coverage": "cross-env NODE_ENV=test nyc ava" }, "xo": { "extends": "prettier", "plugins": [ "prettier" ], "parserOptions": { "sourceType": "script" }, "rules": { "prettier/prettier": [ "error", { "singleQuote": true, "bracketSpacing": true, "trailingComma": "none" } ], "max-len": [ "error", { "code": 80, "ignoreUrls": true } ], "capitalized-comments": "off", "camelcase": "off", "no-warning-comments": "off" }, "space": true } }