From d63c1000110aea07dded54dd0cad7c45f26a6717 Mon Sep 17 00:00:00 2001 From: mernxl Date: Sat, 11 Aug 2018 10:57:13 +0100 Subject: [PATCH] fix: truncate support for `mongoose` to exclude those with vulnerabilities @see https://www.npmjs.com/advisories/599 --- README.md | 3 ++- package.json | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7972606..9229398 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/package.json b/package.json index 4867be7..9b6163f 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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"