Socket
Socket
Sign inDemoInstall

ewd-feder8

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 2.1.0

5

examples/myFeder8Extension.js

@@ -23,4 +23,9 @@ function load() {

this.on('feder8-combined-response', function(params) {
console.log('**** combined-response has been created');
console.log('*** params = ' + JSON.stringify(params));
});
}
module.exports = load;

4

index.js
/*!
----------------------------------------------------------------------------
| ewd-feder8: ewd-xpress based module for federated HTTP/REST service |
| ewd-feder8: QEWD-based module for federated HTTP/REST service |
| |
| Copyright (c) 2016 M/Gateway Developments Ltd, |
| Copyright (c) 2016-17 M/Gateway Developments Ltd, |
| Reigate, Surrey UK. |

@@ -8,0 +8,0 @@ | All rights reserved. |

/*
----------------------------------------------------------------------------
| ewd-feder8: ewd-xpress based module for federated HTTP/REST service |
| ewd-feder8: QEWD-based module for federated HTTP/REST service |
| |
| Copyright (c) 2016 M/Gateway Developments Ltd, |
| Copyright (c) 2016-17 M/Gateway Developments Ltd, |
| Reigate, Surrey UK. |

@@ -29,7 +29,7 @@ | All rights reserved. |

var ewdXpress = require('ewd-xpress').master;
var qewd = require('qewd').master;
module.exports = {
start: function(config, feder8) {
var xp = ewdXpress.intercept();
var xp = qewd.intercept();
var params = {

@@ -46,7 +46,4 @@ route: ['/:destination/*', '/:destination'],

ewdXpress.start(config);
qewd.start(config);
}
};
/*
----------------------------------------------------------------------------
| ewd-feder8: ewd-xpress based module for federated HTTP/REST service |
| ewd-feder8: QEWD-based module for federated HTTP/REST service |
| |
| Copyright (c) 2016 M/Gateway Developments Ltd, |
| Copyright (c) 2016-17 M/Gateway Developments Ltd, |
| Reigate, Surrey UK. |

@@ -27,3 +27,3 @@ | All rights reserved. |

25 July 2016
25 January 2017
Thanks to Ward De Backer for enhancements and bug fixes

@@ -96,2 +96,3 @@

headers['content-type'] = headers['content-type'] || 'application/json'; // default to json content-type
delete headers['content-length']; // change: body content can contain null values, so force request() to recalculate content-length
var options = {

@@ -119,3 +120,4 @@ url: hostUrl,

if (params.responseObj && params.responseObj.responseSent) return; // if request error, response can be undefined
if (response.responseSent) return;
if (response && response.responseSent) return;
if (!body) body = {};
if (error) {

@@ -122,0 +124,0 @@ finished({error: error});

{
"name": "ewd-feder8",
"version": "1.1.0",
"description": "ewd-xpress based module for federated HTTP/REST service",
"version": "2.1.0",
"description": "QEWD-based module for federated HTTP/REST service",
"main": "index.js",

@@ -15,4 +15,4 @@ "scripts": {

"license": "Apache-2.0",
"peerDependencies": {
"ewd-xpress": "",
"dependencies": {
"qewd": "",
"request": ""

@@ -19,0 +19,0 @@ },

@@ -1,2 +0,2 @@

# ewd-feder8: ewd-xpress based module for federated HTTP/REST service
# ewd-feder8: QEWD-based module for federated HTTP/REST service

@@ -13,3 +13,3 @@ Rob Tweed <rtweed@mgateway.com>

This is a special module that extends ewd-xpress to create a federation platform for HTTP/REST services
This is a special module that extends QEWD to create a federation platform for HTTP/REST services

@@ -28,5 +28,5 @@ For more information on ewd-feder8:

Copyright (c) 2016 M/Gateway Developments Ltd,
Reigate, Surrey UK.
All rights reserved.
Copyright (c) 2016-17 M/Gateway Developments Ltd,
Reigate, Surrey UK.
All rights reserved.

@@ -33,0 +33,0 @@ http://www.mgateway.com

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc