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

seneca-transport

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

seneca-transport - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

15

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

17

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'],

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