bi-service-cli
Advanced tools
Comparing version 2.0.0-alpha to 2.0.0
@@ -7,2 +7,7 @@ # Change Log | ||
## 2.0.0 | ||
* [CHANGED] - requires bi-service >= 1.0.0 | ||
* [ADDED] - `spread` query parameter to the GET `api/v1.0/integrity` route | ||
## 2.0.0-alpha | ||
@@ -9,0 +14,0 @@ |
@@ -22,2 +22,11 @@ var _ = require('lodash'); | ||
.respondsWith(ServiceConflictError) | ||
.validate({ | ||
properties: { | ||
spread: { | ||
type: 'boolean', | ||
$desc: 'Whether to spread integrity checks to dependent remote web services', | ||
default: true | ||
} | ||
} | ||
}, 'query') | ||
.main(function (req, res) { | ||
@@ -27,3 +36,8 @@ | ||
return resourceManager.inspectIntegrity().then(function() { | ||
return resourceManager.inspectIntegrity( | ||
//when spread==false, exclude 'bi-service' group of remote resources | ||
//aka. exclude resources which are tagged with 'bi-service' label | ||
req.query.spread ? undefined : 'bi-service', | ||
{mode: req.query.spread ? 'include' : 'exclude'} | ||
).then(function() { | ||
res.json({}); | ||
@@ -30,0 +44,0 @@ }).catch(ServiceError, function(err) { |
{ | ||
"name": "bi-service-cli", | ||
"version": "2.0.0-alpha", | ||
"version": "2.0.0", | ||
"description": "CLI plugin module for bi-service", | ||
@@ -21,3 +21,3 @@ "main": "./lib/index.js", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
"node": ">=6.4.0" | ||
}, | ||
@@ -28,22 +28,23 @@ "license": "GPL-3.0", | ||
"peerDependencies": { | ||
"bi-service": ">=1.0.0-alpha <2" | ||
"bi-service": "^1.0.0" | ||
}, | ||
"dependencies": { | ||
"bi-vantage": "^1.8.0", | ||
"easy-table": "^1.0.0", | ||
"chalk": "^1.1.3", | ||
"lodash": "^4.16.2" | ||
"easy-table": "1.1.0", | ||
"chalk": "~2.3.0", | ||
"lodash": "~4.17.4" | ||
}, | ||
"devDependencies": { | ||
"bi-service": ">=1.0.0-alpha <2", | ||
"bi-service": "^1.0.0", | ||
"bi-service-sdk": "^1.0.1", | ||
"chai": "^3.5.0", | ||
"chai-as-promised": "^5.3.0", | ||
"chai": "^4.1.2", | ||
"chai-as-promised": "^7.1.1", | ||
"istanbul": "^0.4.3", | ||
"mocha": "^2.5.3", | ||
"rewire": "^2.5.2", | ||
"mocha": "^3.5.3", | ||
"rewire": "^3.0.2", | ||
"sinon": "^1.17.3", | ||
"sinon-as-promised": "^4.0.0", | ||
"supertest": "^1.1.0", | ||
"sinon-chai": "^2.8.0" | ||
} | ||
} |
@@ -0,1 +1,3 @@ | ||
[![Build Status](https://travis-ci.org/BohemiaInteractive/bi-service-cli.svg?branch=master)](https://travis-ci.org/BohemiaInteractive/bi-service-cli) | ||
Provides a `bi-service` based `App` which spies on `AppManager`'s apps to provide | ||
@@ -2,0 +4,0 @@ integrity status of the running service. |
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
65162
762
1
57
11
+ Addedansi-styles@3.2.1(transitive)
+ Addedchalk@2.3.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedeasy-table@1.1.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
- Removedansi-regex@5.0.1(transitive)
- Removedeasy-table@1.2.0(transitive)
Updatedchalk@~2.3.0
Updatedeasy-table@1.1.0
Updatedlodash@~4.17.4