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 1.2.4 to 1.2.5

3

CHANGELOG.md
# Change Log
## [1.2.5]
- Removed plain request
## [1.2.4]

@@ -4,0 +7,0 @@ - `loadConfiguration` now accepts object

2

package.json
{
"name": "residue",
"version": "1.2.4",
"version": "1.2.5",
"description": "Library to interact with residue server seamlessly.",

@@ -5,0 +5,0 @@ "main": "src/residue.js",

# Residue Node.js Client
A very simple, secure Node.js library to interact with residue seamlessly.
This module provides interface for connecting and interacting with residue server seamlessly, means, once you are connected this module takes care of expired tokens and clients and keep itself updated with latest tokens and ping server when needed to stay alive.
[![Version](https://img.shields.io/npm/v/residue.svg)](https://www.npmjs.com/package/residue)

@@ -12,2 +9,6 @@ [![GitHub license](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/muflihun/residue-node/blob/master/LICENSE)

A very simple, secure Node.js library to interact with residue seamlessly.
This module provides interface for connecting and interacting with residue server seamlessly, means, once you are connected this module takes care of expired tokens and clients and keep itself updated with latest tokens and ping server when needed to stay alive.
## Native API

@@ -14,0 +15,0 @@ This library depends on following native modules, without them library will not work:

@@ -107,3 +107,2 @@ //

ALLOW_DEFAULT_ACCESS_CODE: 4,
ALLOW_PLAIN_LOG_REQUEST: 8,
ALLOW_BULK_LOG_REQUEST: 16,

@@ -155,9 +154,6 @@ COMPRESSION: 256

// the server
sendRequest: (request, socket, nolock /* = false */, sendPlain /* = false */, compress /* = false */) => {
sendRequest: (request, socket, nolock /* = false */, compress /* = false */) => {
if (typeof nolock === 'undefined') {
nolock = false;
}
if (typeof sendPlain === 'undefined') {
sendPlain = false;
}
if (typeof compress === 'undefined') {

@@ -169,3 +165,3 @@ compress = false;

Utils.debugLog('Sending request via callback');
Utils.sendRequest(request, socket, false, sendPlain, compress);
Utils.sendRequest(request, socket, false, compress);
});

@@ -178,8 +174,3 @@ return;

}
let encryptedRequest;
if (!sendPlain) {
encryptedRequest = Utils.encrypt(finalRequest);
} else {
encryptedRequest = finalRequest + PACKET_DELIMITER;
}
const encryptedRequest = Utils.encrypt(finalRequest);
Utils.vLog(9, 'Payload (Plain): ' + encryptedRequest);

@@ -657,6 +648,3 @@ Utils.vLog(8, 'Locking ' + socket.address().port);

}
if (Params.options.plain_request) {
request.client_id = Params.connection.client_id;
}
Utils.sendRequest(request, Params.logging_socket, false, Params.options.plain_request && Utils.hasFlag(Flag.ALLOW_PLAIN_LOG_REQUEST), Utils.hasFlag(Flag.COMPRESSION));
Utils.sendRequest(request, Params.logging_socket, false, Utils.hasFlag(Flag.COMPRESSION));
}

@@ -663,0 +651,0 @@

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