UNPKG

mongoose-patch-history

Version:

Mongoose plugin that saves a history of JSON patch operations for all documents belonging to a schema in an associated 'patches' collection

82 lines (81 loc) 2.02 kB
{ "name": "mongoose-patch-history", "version": "2.0.0", "description": "Mongoose plugin that saves a history of JSON patch operations for all documents belonging to a schema in an associated 'patches' collection", "main": "lib/index.js", "author": "Christoph Werner <christoph@codepunkt.de>", "contributors": [ "Robin Weinreich <robin.weinreich@posteo.de>", "Brett Ausmeier <brett@ausmeier.co.za>", "Ava Johnson <ava.johnson@zohomail.com>" ], "license": "MIT", "dependencies": { "fast-json-patch": "^2.2.1", "humps": "^2.0.1", "lodash": "^4.17.20", "mongoose": "^5.6.2" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-preset-es2015": "^6.22.0", "bluebird": "^3.5.1", "coveralls": "^3.0.0", "istanbul": "^0.4.5", "mocha": "^8.1.1", "pre-commit": "^1.2.2", "prettier": "^2.1.1" }, "scripts": { "addCompile": "git add lib/", "coverage": "istanbul cover _mocha -- --require babel-register", "compile": "rm -rf lib/ && babel -d lib/ src/", "prepublish": "npm run compile", "prettier": "prettier --no-semi --single-quote --trailing-comma es5 --write src/**/*.js", "test": "mocha --require babel-register" }, "pre-commit": { "run": "prettier, test, compile, addCompile", "silent": true }, "repository": { "type": "git", "url": "git://github.com/gonsfx/mongoose-patch-history" }, "bugs": "https://github.com/gonsfx/mongoose-patch-history/issues", "keywords": [ "mongo", "Mongo", "MONGO", "mongodb", "Mongodb", "MONGODB", "mongoose", "Mongoose", "MONGOOSE", "plugin", "Plugin", "PLUGIN", "history", "History", "HISTORY", "versioning", "Versioning", "VERSIONING", "rollback", "Rollback", "ROLLBACK", "json", "Json", "JSON", "jsonpatch", "JsonPatch", "JSONPATCH", "json-patch", "Json-Patch", "JSON-PATCH", "json patch", "Json Patch", "JSON PATCH" ] }