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

borland

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

borland - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

.toolbagrc.js

3

lib/index.js

@@ -11,2 +11,4 @@ 'use strict';

options.report = options.report || function () {};
// auth succeeds, we just need credentials object with client Id for the filter later

@@ -16,2 +18,3 @@ server.auth.scheme('custom', Auth);

server.auth.default('default');
server.bind(options);

@@ -18,0 +21,0 @@ server.route(Routes);

16

lib/routes.js

@@ -20,2 +20,3 @@ 'use strict';

handler: function (request, reply) {
const info = request.payload.info;
registered[request.auth.credentials.clientId] = {

@@ -26,2 +27,5 @@ info: request.payload.info,

const source = (info && (info.hostname + '-' + info.pid)) || 'unknown';
this.report(source, 'register', info);
reply({ clientId: request.connection.clientId });

@@ -37,7 +41,11 @@ }

handler: function (request, reply) {
// TODO: Process client data in request.payload
if (request.payload.type !== 'stats') {
console.log(request.payload);
}
const payload = request.payload.payload || request.payload;
const client = registered[request.auth.credentials.clientId] || {};
const source = (client.info && (client.info.hostname + '-' + client.info.pid)) || 'unknown';
const types = Object.keys(payload);
types.forEach((type) => {
this.report(source, type, payload[type]);
});
reply();

@@ -44,0 +52,0 @@ }

{
"name": "borland",
"version": "0.0.1",
"version": "0.1.0",
"description": "hapi plugin for working with toolbox",
"author": "",
"main": "lib/index.js",
"scripts": {
"test": "lab"
},
"homepage": "https://github.com/continuationlabs/borland",
"repository": {

@@ -13,23 +12,32 @@ "type": "git",

},
"keywords": [
"hapi",
"plugin"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/continuationlabs/borland/issues"
},
"homepage": "https://github.com/continuationlabs/borland#readme",
"license": "MIT",
"scripts": {
"start": "node -r ./node_modules/toolbag dev/server.js",
"test": "belly-button && lab"
},
"engines": {
"node": ">=4.0.0"
},
"dependencies": {
"joi": "7.2.2",
"joi": "8.0.4",
"node-uuid": "1.4.7"
},
"devDependencies": {
"belly-button": "1.0.0",
"code": "2.1.0",
"hapi": "12.1.0",
"lab": "8.1.0",
"nes": "2.2.0"
}
"belly-button": "2.x.x",
"code": "2.x.x",
"hapi": "13.x.x",
"inert": "3.x.x",
"influx": "4.1.0",
"lab": "10.x.x",
"nes": "4.x.x",
"toolbag": "1.x.x"
},
"keywords": [
"hapi",
"plugin",
"toolbag"
]
}
# borland
hapi plugin for working with toolbag
[![Current Version](https://img.shields.io/npm/v/borland.svg)](https://www.npmjs.org/package/borland)
[![Build Status via Travis CI](https://travis-ci.org/continuationlabs/borland.svg?branch=master)](https://travis-ci.org/continuationlabs/borland)
![Dependencies](http://img.shields.io/david/continuationlabs/borland.svg)
hapi plugin for working with [toolbag](https://www.npmjs.com/package/toolbag).
<img src="https://raw.github.com/continuationlabs/borland/master/images/al-borland.png" />
## Usage
**To be added**
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