Skip to content

Commit

Permalink
fix: truncate support for mongoose to exclude those with vulnerabil…
Browse files Browse the repository at this point in the history
  • Loading branch information
mernxl committed Aug 11, 2018
1 parent fe18a07 commit d63c100
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
[![npm](https://img.shields.io/npm/v/mongoose-id-assigner.svg)](https://www.npmjs.com/package/mongoose-id-assigner)
[![Build Status](https://travis-ci.org/mernxl/mongoose-id-assigner.svg?branch=master)](https://travis-ci.org/mernxl/mongoose-id-assigner)
[![codecov](https://codecov.io/gh/mernxl/mongoose-id-assigner/branch/master/graph/badge.svg)](https://codecov.io/gh/mernxl/mongoose-id-assigner)
![Dependencies State](https://david-dm.org/mernxl/mongoose-id-assigner.svg)
[![Dependencies State](https://david-dm.org/mernxl/mongoose-id-assigner.svg)](https://david-dm.org/mernxl/mongoose-id-assigner)
![TypeScript compatible](https://img.shields.io/badge/typescript-compatible-brightgreen.svg)
![FlowType compatible](https://img.shields.io/badge/flowtype-compatible-brightgreen.svg)
[![Code Style Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

A [Mongoose](http://mongoosejs.com) Plugin. Easily Manage fields that need an id(unique value) on your mongoose model. This plugin does the work of generating, incrementing, and assigning those values(unique) to those fields.
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"lib"
],
"scripts": {
"build": "yarn run prettier && yarn run clean && yarn run tsc -d && yarn run build-flow",
"build": "yarn run clean && yarn run tsc -d && yarn run build-flow",
"build-flow": "find ./src -name '*.js.flow' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`; done",
"tsc": "tsc",
"flow": "./node_modules/.bin/flow",
Expand All @@ -39,7 +39,7 @@
"event-to-promise": "^0.8.0"
},
"peerDependencies": {
"mongoose": ">=4.0.0 || >=5.0.0"
"mongoose": ">=4.3.6 || >=5.0.0"
},
"optionalDependencies": {
"uuid": ">=3.0.1"
Expand Down

0 comments on commit d63c100

Please sign in to comment.