Socket
Socket
Sign inDemoInstall

residue

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

residue - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

2

CHANGELOG.md
# 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.

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