UNPKG

mongoose_patch_history_v1

Version:

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

77 lines (76 loc) 1.92 kB
{ "name": "mongoose_patch_history_v1", "version": "0.0.6", "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> updated by Cris Naranjo <cristunaranjo@gmail.com>", "license": "MIT", "dependencies": { "fast-json-patch": "^2.0.4", "humps": "^2.0.1", "lodash": "^4.17.5", "mongoose": "^5.4.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": "^5.0.5", "pre-commit": "^1.2.2", "prettier": "^1.11.1" }, "scripts": { "addCompile": "git add lib/", "coverage": "istanbul cover _mocha -- --compilers js: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 --compilers js: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" ] }