From 64abf9395ef5ca4b0a5c290f46a5e4c98303007a Mon Sep 17 00:00:00 2001 From: Ivan Kerin Date: Tue, 4 Apr 2017 11:34:56 +0300 Subject: [PATCH] Convert to peer dependencies --- .eslintrc | 4 +++- package.json | 10 +++++++--- yarn.lock | 23 ++++++++++------------- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/.eslintrc b/.eslintrc index c27c9ac..2b8b4d6 100644 --- a/.eslintrc +++ b/.eslintrc @@ -29,6 +29,8 @@ "prefer-const": "warn", // keep it simple - "complexity": [ "warn", 10 ] + "complexity": [ "warn", 10 ], + + "import/no-extraneous-dependencies": "off" } } diff --git a/package.json b/package.json index 9f7ca67..bdd4b35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mongoose-subscriptions-braintree", - "version": "1.1.1", + "version": "1.1.2", "description": "Braintree processor for mongoose-subscriptions", "main": "src/index.js", "repository": "git@github.com:enhancv/mongoose-subscriptions-braintree.git", @@ -8,15 +8,19 @@ "license": "MIT", "dependencies": { "braintree": "^2.0.2", - "lodash": "^4.17.4", - "mongoose-subscriptions": "^1.1.0" + "lodash": "^4.17.4" }, "scripts": { "lint": "node node_modules/eslint/bin/eslint src", "coverage": "node node_modules/istanbul/lib/cli cover node_modules/mocha/bin/_mocha -- --recursive", "test": "node node_modules/mocha/bin/mocha --recursive" }, + "peerDependencies": { + "mongoose-subscriptions": "^1.2" + }, "devDependencies": { + "mongoose": "^4.8", + "mongoose-subscriptions": "^1.2.2", "dotenv": "^4.0.0", "eslint": "^3.18.0", "eslint-config-airbnb-base": "^11.1.1", diff --git a/yarn.lock b/yarn.lock index a6dfb9e..a52db96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -937,23 +937,20 @@ mongodb@2.2.25: mongodb-core "2.1.9" readable-stream "2.1.5" -mongoose-originals@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/mongoose-originals/-/mongoose-originals-1.0.0.tgz#2fda7cebc64831e684dc35d7f7294fb7cf69e81e" - dependencies: - mongoose "^4.8.4" +mongoose-originals@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/mongoose-originals/-/mongoose-originals-1.0.1.tgz#bd8c94cd87da474c64b303dee62e56c3f158df38" -mongoose-subscriptions@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mongoose-subscriptions/-/mongoose-subscriptions-1.1.0.tgz#312314726fb9274797ff4a2e413791dde3b6201a" +mongoose-subscriptions@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/mongoose-subscriptions/-/mongoose-subscriptions-1.2.2.tgz#1739a6dd2de5978cf9ca962f22684f2c8c06d1dc" dependencies: - mongoose "^4.8.4" - mongoose-originals "^1.0.0" + mongoose-originals "^1.0.1" shortid "^2.2.8" -mongoose@^4.8.4: - version "4.9.1" - resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-4.9.1.tgz#e621d9e7356f46d1e39980a71063857405fa9099" +mongoose@^4.8: + version "4.9.3" + resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-4.9.3.tgz#7e3ea176ed7d3d23940368704834890595aea040" dependencies: async "2.1.4" bson "~1.0.4"