Comparing version 2.2.3 to 2.2.4
# Change Log | ||
## [2.2.2] | ||
## [2.2.4] | ||
- Introduced native binding | ||
@@ -5,0 +5,0 @@ - Added `version()` |
@@ -67,7 +67,14 @@ // | ||
const connect = (json) => { | ||
if (typeof json === 'object') { | ||
loadConfiguration(json); | ||
} | ||
residue_native.connect(); | ||
}; | ||
exports.version = residue_native.version; | ||
exports.loadConfiguration = loadConfiguration; | ||
exports.connect = residue_native.connect; | ||
exports.connect = connect; | ||
exports.disconnect = residue_native.disconnect; | ||
exports.isConnected = residue_native.is_connected; | ||
exports.getLogger = (id) => (new Logger(id)); |
{ | ||
"name": "residue", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Library to interact with residue server seamlessly.", | ||
@@ -5,0 +5,0 @@ "main": "lib/residue.js", |
@@ -13,12 +13,2 @@ ﷽ | ||
## Native API | ||
This library depends on following native modules, without them library will not work: | ||
* [Path Module](https://nodejs.org/api/path.html) | ||
* [File System Module](https://nodejs.org/api/fs.html) | ||
* [Crypto Module](https://nodejs.org/api/crypto.html) | ||
* [ZLib Module](https://nodejs.org/api/zlib.html) | ||
* [Net Module](https://nodejs.org/api/net.html) | ||
* [Util Module](https://nodejs.org/api/util.html) | ||
## API | ||
@@ -65,2 +55,7 @@ #### `connect(options)` | ||
// or | ||
// residue.loadConfiguration({ url: ... }) | ||
// or | ||
// residue.loadConfiguration('{ url: ... }') | ||
// ALTERNATIVELY | ||
@@ -91,2 +86,11 @@ residue.connect({ | ||
## Native Binding | ||
Residue Node.js also comes with native binding that uses [C++ client library](https://github.com/muflihun/residue-cpp) to manage connections and asyncronous requests | ||
API for this module is same as `residue` The only difference is: include `residue/lib/native` instead of `residue` | ||
``` | ||
const residue = require('residue/lib/native'); | ||
``` | ||
## Sample | ||
@@ -93,0 +97,0 @@ You can check out [sample client apps](https://github.com/muflihun/residue-node/blob/master/samples) for practical use of this 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
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
35654
677
117