Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bi-service-cli

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bi-service-cli - npm Package Compare versions

Comparing version 2.0.0-alpha to 2.0.0

5

CHANGELOG.md

@@ -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 @@

16

lib/routes/v1/serviceIntegrity.js

@@ -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) {

23

package.json
{
"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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc