seneca-transport
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "seneca-transport", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Seneca transport", | ||
"main": "transport.js", | ||
"scripts": { | ||
"lint": "lab -P test -L -d", | ||
"test": "lab -P test -v -m 3000 -t 80 -L", | ||
"build": "./build.sh", | ||
"bench": "node bench", | ||
"annotate": "docco transport.js -o doc" | ||
}, | ||
"license": "MIT", | ||
"author": "Richard Rodger (http://richardrodger.com)", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/rjrodger/seneca-transport.git" | ||
"url": "git+https://github.com/senecajs/seneca-transport.git" | ||
}, | ||
@@ -22,4 +17,10 @@ "keywords": [ | ||
], | ||
"author": "Richard Rodger (http://richardrodger.com)", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "lab -v -L -P test -t 82 -m 5000 $LAB_FLAGS", | ||
"test:node6": "LAB_FLAGS='--leaks' && npm test", | ||
"test-report": "lab -v -L -P test -t 82 -m 5000 -r html > test/report.html; open test/report.html", | ||
"bench": "node bench", | ||
"coveralls": "lab -s -P test -r lcov | coveralls", | ||
"annotate": "docco transport.js -o doc; open doc/transport.html" | ||
}, | ||
"dependencies": { | ||
@@ -29,19 +30,11 @@ "eraro": "0.4.x", | ||
"jsonic": "0.2.x", | ||
"lodash": "4.5.1", | ||
"lru-cache": "3.2.x", | ||
"lodash": "4.13.x", | ||
"lru-cache": "4.0.x", | ||
"ndjson": "1.4.x", | ||
"nid": "0.3.2", | ||
"patrun": "0.5.x", | ||
"qs": "5.2.0", | ||
"reconnect-core": "1.1.x", | ||
"qs": "6.1.x", | ||
"reconnect-core": "1.2.x", | ||
"wreck": "6.3.x" | ||
}, | ||
"files": [ | ||
"README.md", | ||
"LICENSE.txt", | ||
"transport.js", | ||
"lib/transport-utils.js", | ||
"lib/http.js", | ||
"lib/tcp.js" | ||
], | ||
"devDependencies": { | ||
@@ -51,2 +44,3 @@ "async": "1.5.x", | ||
"code": "1.x.x", | ||
"coveralls": "^2.11.9", | ||
"docco": "0.7.x", | ||
@@ -57,4 +51,5 @@ "eslint-config-seneca": "1.x.x", | ||
"seneca": "plugin", | ||
"seneca-entity": "1.2.x", | ||
"seneca-transport-test": "0.2.x" | ||
} | ||
} |
@@ -5,5 +5,9 @@ ![Seneca](http://senecajs.org/files/assets/seneca-logo.png) | ||
# seneca-transport | ||
[![npm version][npm-badge]][npm-url] | ||
[![Build Status][travis-badge]][travis-url] | ||
[![Dependency Status][david-badge]][david-url] | ||
[![Gitter][gitter-badge]][gitter-url] | ||
## Description | ||
This plugin provides the HTTP/HTTPS and TCP transport channels for | ||
@@ -16,3 +20,3 @@ micro-service messages. It's a built-in dependency of the Seneca | ||
- running `npm run annotate` | ||
- viewing [./doc/transport.html]() locally | ||
- viewing [./doc/transport.html](./doc/transport.html) locally | ||
@@ -28,4 +32,7 @@ If you're using this module, and need help, you can: | ||
### Install | ||
### Seneca compatibility | ||
Supports Seneca versions **1.x** - **3.x** | ||
## Install | ||
This plugin module is included in the main Seneca module, | ||
@@ -53,3 +60,3 @@ | ||
function _color_ to define the name of the plugin (see [How to write a | ||
Seneca plugin](http://senecajs.org)). | ||
Seneca plugin](http://senecajs.org/tutorials/how-to-write-a-plugin.html)). | ||
@@ -170,3 +177,3 @@ ```js | ||
plugin names and tags, see [How to write a Seneca | ||
plugin](http://senecajs.org). | ||
plugin](http://senecajs.org/tutorials/how-to-write-a-plugin.html). | ||
@@ -193,3 +200,3 @@ The next field (also known as the _case_) is either <code>IN</code> or | ||
```sh | ||
``` | ||
node readme-color.js --seneca.log=type:act,regex:color:red \ | ||
@@ -452,2 +459,17 @@ --seneca.log=plugin:color,case:ADD | ||
To communicate with a Seneca instance over TCP you can send from command line a message that Seneca understands: | ||
```sh | ||
# call the color:red action pattern | ||
echo '{"id":"w91/enj","kind":"act","origin":"h5x/146/..77/-","act":{"color":"red"},"sync":true}' | nc 127.0.0.1 10201 | ||
``` | ||
Seneca answers with a message like: | ||
```sh | ||
{"id":"w91/enj","kind":"res","origin":"h5x/146/..77/-","accept":"bj../14../..47/-","time":{"client_sent":..,"listen_recv":..,"listen_sent":..},"sync":true,"res":{"hex":"#FF0000"}} | ||
# the produced result is in the "res" field | ||
``` | ||
HTTP and TCP are not the only transport mechanisms available. Of | ||
@@ -685,4 +707,4 @@ course, in true Seneca-style, the other mechanisms are available as | ||
* [transport.js](https://github.com/senecajs/seneca-transport/blob/master/transport.js): disconnected or point-to-point | ||
* [redis-transport.js](https://github.com/senecajs/seneca-redis-transport/blob/master/redis-transport.js): publish/subscribe | ||
* [beanstalk-transport.js](https://github.com/senecajs/seneca-beanstalk-transport/blob/master/beanstalk-transport.js): message queue | ||
* [redis-transport.js](https://github.com/rjrodger/seneca-redis-transport/blob/master/lib/index.js): publish/subscribe | ||
* [beanstalk-transport.js](https://github.com/rjrodger/seneca-beanstalk-transport/blob/master/lib/index.js): message queue | ||
@@ -799,3 +821,3 @@ Choose a _type_ for your transport, say "foo". You will need to | ||
defining options (see [How to Write a | ||
Plugin](http://senecajs.org/write-a-plugin.html#wp-options)), you can | ||
Plugin](http://senecajs.org/tutorials/how-to-write-a-plugin.html#wp-options)), you can | ||
also supply options via arguments to the <code>client</code> or | ||
@@ -920,8 +942,21 @@ <code>listen</code> methods, and via the type name of the transport | ||
## Contributing | ||
The [Senecajs org][] encourage open participation. If you feel you can help in any way, be it with | ||
documentation, examples, extra testing, or new features please get in touch. | ||
## Test | ||
To run tests, simply use npm: | ||
```sh | ||
npm run test | ||
``` | ||
## License | ||
Copyright Richard Rodger and other contributors 2015, Licensed under [MIT][]. | ||
Copyright (c) 2013-2016, Richard Rodger and other contributors. | ||
Licensed under [MIT][]. | ||
[npm-badge]: https://img.shields.io/npm/v/seneca-transport.svg | ||
[npm-url]: https://npmjs.com/package/seneca-transport | ||
[travis-badge]: https://travis-ci.org/senecajs/seneca-transport.svg | ||
@@ -931,3 +966,4 @@ [travis-url]: https://travis-ci.org/senecajs/seneca-transport | ||
[gitter-url]: https://gitter.im/senecajs/seneca | ||
[david-badge]: https://david-dm.org/senecajs/seneca-transport.svg | ||
[david-url]: https://david-dm.org/senecajs/seneca-transport | ||
[MIT]: ./LICENSE | ||
@@ -934,0 +970,0 @@ [Senecajs org]: https://github.com/senecajs/ |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
116419
44
2447
965
11
7
5
+ Addedbackoff@2.5.0(transitive)
+ Addedlodash@4.13.1(transitive)
+ Addedlru-cache@4.0.2(transitive)
+ Addedprecond@0.2.3(transitive)
+ Addedqs@6.1.2(transitive)
+ Addedreconnect-core@1.2.0(transitive)
+ Addedyallist@2.1.2(transitive)
- Removedbackoff@2.3.0(transitive)
- Removedlodash@4.5.1(transitive)
- Removedlru-cache@3.2.0(transitive)
- Removedqs@5.2.0(transitive)
- Removedreconnect-core@1.1.0(transitive)
Updatedlodash@4.13.x
Updatedlru-cache@4.0.x
Updatedqs@6.1.x
Updatedreconnect-core@1.2.x