nanomessage-rpc
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -9,2 +9,4 @@ # Changelog | ||
## 1.1.1 - 2020-03-13 [YANKED] | ||
## 1.1.0 - 2020-03-12 [YANKED] | ||
@@ -17,2 +19,2 @@ | ||
## 1.0.0 - 2020-03-11 [YANKED] | ||
[Unreleased]: https://github.com/geut/nanomessage-rpc/compare/v1.1.0...HEAD | ||
[Unreleased]: https://github.com/geut/nanomessage-rpc/compare/v1.1.1...HEAD |
@@ -15,3 +15,3 @@ const Emittery = require('emittery') | ||
class RPC { | ||
class NanomessageRPC { | ||
constructor (socket, opts = {}) { | ||
@@ -146,4 +146,4 @@ const { codec = jsonCodec } = opts | ||
module.exports = (...args) => new RPC(...args) | ||
module.exports.RPC = RPC | ||
module.exports = (...args) => new NanomessageRPC(...args) | ||
module.exports.NanomessageRPC = NanomessageRPC | ||
module.exports.errors = { ERR_ACTION_NAME_MISSING, ERR_ACTION_RESPONSE_ERROR } |
{ | ||
"name": "nanomessage-rpc", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Tiny rpc on top of nanomessage", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -18,6 +18,6 @@ # nanomessage-rpc | ||
```javascript | ||
const nanorpc = require('nanomessage-rpc') | ||
const nanomessagerpc = require('nanomessage-rpc') | ||
;(async () => { | ||
const rpc = nanorpc(socket, opts) | ||
const rpc = nanomessagerpc(socket, opts) | ||
@@ -38,3 +38,3 @@ await rpc | ||
;(async () => { | ||
const rpc = nanorpc(socket, opts) | ||
const rpc = nanomessagerpc(socket, opts) | ||
@@ -55,3 +55,3 @@ await rpc.open() | ||
```javascript | ||
const nanorpc = require('nanomessage-rpc') | ||
const nanomessagerpc = require('nanomessage-rpc') | ||
const nanoerror = require('nanoerror') | ||
@@ -62,3 +62,3 @@ | ||
;(async () => { | ||
const rpc = nanorpc(socket, opts) | ||
const rpc = nanomessagerpc(socket, opts) | ||
@@ -80,3 +80,3 @@ await rpc | ||
#### `const rpc = nanorpc(socket, options)` | ||
#### `const rpc = nanomessagerpc(socket, options)` | ||
@@ -83,0 +83,0 @@ Create a new nanomessage-rpc. |
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
11334