seneca-transport
Advanced tools
Comparing version 0.6.0 to 0.6.1
{ | ||
"name": "seneca-transport", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Seneca transport", | ||
"main": "transport.js", | ||
"scripts": { | ||
"test": "./test.sh" | ||
"test": "./test.sh", | ||
"build": "./build.sh" | ||
}, | ||
@@ -25,6 +26,6 @@ "repository": { | ||
"connect-timeout": "~1.1.1", | ||
"gex": "~0.1.4", | ||
"jsonic": "^0.1.1", | ||
"gex": "~0.2.0", | ||
"jsonic": "~0.1.1", | ||
"lru-cache": "~2.5.0", | ||
"needle": "^0.7.10", | ||
"needle": "~0.7.10", | ||
"nid": "~0.3.2", | ||
@@ -35,6 +36,2 @@ "patrun": "~0.4.2", | ||
}, | ||
"devDependencies": { | ||
"mocha": "~1.20.1", | ||
"seneca-transport-test": "~0.1.2" | ||
}, | ||
"files": [ | ||
@@ -41,0 +38,0 @@ "README.md", |
seneca-transport - a [Seneca](http://senecajs.org) plugin | ||
====================================================== | ||
========================================================= | ||
@@ -11,18 +11,21 @@ ## Seneca Transport Plugin | ||
[![Gitter chat](https://badges.gitter.im/rjrodger/seneca-transport.png)](https://gitter.im/rjrodger/seneca-transport) | ||
Current Version: 0.6.1 | ||
Tested on: Seneca 0.6.0, Node 0.10.35 | ||
[![Build Status](https://travis-ci.org/rjrodger/seneca-transport.png?branch=master)](https://travis-ci.org/rjrodger/seneca-transport) | ||
[![NPM](https://nodei.co/npm/seneca-transport.png)](https://nodei.co/npm/seneca-transport/) | ||
[![NPM](https://nodei.co/npm-dl/seneca-transport.png)](https://nodei.co/npm-dl/seneca-transport/) | ||
For a gentle introduction to Seneca itself, see the | ||
[senecajs.org](http://senecajs.org) site. | ||
[Annotated Source](http://rjrodger.github.io/seneca-transport/doc/transport.html) | ||
If you're using this plugin module, feel free to contact me on twitter if you | ||
have any questions! :) [@rjrodger](http://twitter.com/rjrodger) | ||
Current Version: 0.2.6 | ||
Tested on: Seneca 0.5.20, Node 0.10.31 | ||
### Install | ||
@@ -29,0 +32,0 @@ |
/* Copyright (c) 2013-2015 Richard Rodger, MIT License */ | ||
/* jshint node:true, asi:true, eqnull:true */ | ||
"use strict"; | ||
@@ -25,2 +26,4 @@ | ||
module.exports = function( options ) { | ||
/* jshint validthis:true */ | ||
var seneca = this | ||
@@ -305,10 +308,10 @@ var plugin = 'transport' | ||
if( '' == jsonstr ) { | ||
if( '' === jsonstr ) { | ||
return done(); | ||
} | ||
var data = parseJSON( seneca, 'stream', jsonstr ) | ||
var outdata = parseJSON( seneca, 'stream', jsonstr ) | ||
if( data ) { | ||
this.push(data) | ||
if( outdata ) { | ||
this.push(outdata) | ||
} | ||
@@ -518,5 +521,5 @@ } | ||
if( res ) { | ||
data.id = res.headers['seneca-id'], | ||
data.origin = res.headers['seneca-origin'], | ||
data.accept = res.headers['seneca-accept'], | ||
data.id = res.headers['seneca-id'] | ||
data.origin = res.headers['seneca-origin'] | ||
data.accept = res.headers['seneca-accept'] | ||
data.time = { | ||
@@ -523,0 +526,0 @@ client_sent: res.headers['seneca-time-client-sent'], |
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
53045
0
742
827
+ Addedgex@0.2.2(transitive)
- Removedgex@0.1.4(transitive)
- Removedunderscore@1.6.0(transitive)
Updatedgex@~0.2.0
Updatedjsonic@~0.1.1
Updatedneedle@~0.7.10