mongoose-update-if-current
Advanced tools
Comparing version 0.1.0 to 1.0.0
{ | ||
"name": "mongoose-update-if-current", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "Optimistic concurrency (OCC) plugin for mongoose", | ||
@@ -13,2 +13,5 @@ "main": "dist/index.js", | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"scripts": { | ||
@@ -48,21 +51,24 @@ "build": "webpack || echo not ok", | ||
"devDependencies": { | ||
"@types/jest": "^20.0.7", | ||
"@types/mongoose": "^4.7.28", | ||
"@types/node": "^8.0.24", | ||
"browserify": "^14.4.0", | ||
"@types/jest": "^22.0.0", | ||
"@types/mongoose": "^4.7.32", | ||
"@types/node": "^8.5.5", | ||
"browserify": "^15.0.0", | ||
"delete-empty": "^1.0.1", | ||
"dts-bundle": "^0.7.3", | ||
"jest": "^20.0.4", | ||
"mongoose": "^4.8.0", | ||
"standard-version": "^4.2.0", | ||
"ts-jest": "^20.0.10", | ||
"ts-loader": "^2.3.3", | ||
"tslint": "^5.6.0", | ||
"jest": "^22.0.4", | ||
"mongoose": ">=4.8.0", | ||
"standard-version": "^4.3.0", | ||
"ts-jest": "^22.0.1", | ||
"ts-loader": "^3.2.0", | ||
"tslint": "^5.8.0", | ||
"tslint-config-airbnb": "^5.4.2", | ||
"tslint-loader": "^3.5.3", | ||
"typescript": "2.4.2", | ||
"webpack": "3.5.5", | ||
"typescript": "^2.6.2", | ||
"webpack": "^3.10.0", | ||
"webpack-node-externals": "^1.6.0" | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"mongoose": ">=4.8.0" | ||
}, | ||
"jest": { | ||
@@ -69,0 +75,0 @@ "transform": { |
# mongoose-update-if-current | ||
[![Build Status](https://travis-ci.org/eoin-obrien/mongoose-update-if-current.svg?branch=master)](https://travis-ci.org/eoin-obrien/mongoose-update-if-current) | ||
[![NPM version](https://img.shields.io/npm/v/mongoose-update-if-current.svg)](https://www.npmjs.com/package/mongoose-update-if-current) | ||
[![Node version](https://img.shields.io/node/v/mongoose-update-if-current.svg?style=flat)](https://www.npmjs.com/package/mongoose-update-if-current) | ||
[![Build Status](https://travis-ci.org/eoin-obrien/mongoose-update-if-current.svg?branch=master)](https://travis-ci.org/eoin-obrien/mongoose-update-if-current) | ||
[![Dependencies](https://david-dm.org/eoin-obrien/mongoose-update-if-current.svg)](https://david-dm.org/eoin-obrien/mongoose-update-if-current) | ||
[![DevDependencies](https://david-dm.org/eoin-obrien/mongoose-update-if-current/dev-status.svg)](https://david-dm.org/eoin-obrien/mongoose-update-if-current?type=dev) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/beece5b98159623e813a/maintainability)](https://codeclimate.com/github/eoin-obrien/mongoose-update-if-current/maintainability) | ||
@@ -13,2 +16,4 @@ [![Test Coverage](https://api.codeclimate.com/v1/badges/beece5b98159623e813a/test_coverage)](https://codeclimate.com/github/eoin-obrien/mongoose-update-if-current/test_coverage) | ||
Inspired by [this issue](https://github.com/Automattic/mongoose/issues/4004) in the mongoose repo. | ||
See the `__tests__` directory for examples. | ||
@@ -18,3 +23,3 @@ | ||
```bash | ||
``` | ||
$ npm install --save mongoose-update-if-current | ||
@@ -47,10 +52,8 @@ ``` | ||
```bash | ||
npm run build # build the library files | ||
npm run test # run the tests | ||
npm run test:watch # run the tests (watch-mode) | ||
npm run coverage # run the tests with coverage | ||
npm run coverage:watch # run the tests with coverage (watch-mode) | ||
``` | ||
npm run build # build the library files | ||
npm run test # run the tests | ||
npm run coverage # run the tests with coverage | ||
npm run prepare # build the library, make sure the tests passes, and then pack the library (creates .tgz) | ||
npm run release # prepare package for next release | ||
npm run release # prepare package for next release | ||
``` | ||
@@ -57,0 +60,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
61
8726
1
7