Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sailthru-client

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sailthru-client - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

.tool-versions

7

lib/sailthru.js

@@ -27,3 +27,3 @@ (function() {

exports.VERSION = '5.0.0';
exports.VERSION = '5.0.1';

@@ -301,2 +301,3 @@

json_payload = this._json_payload(data);
json_payload_to_log = json_payload;

@@ -306,2 +307,3 @@ for (param in binary_data) {

json_payload[param] = value;
json_payload_to_log[param] = '[TRUNCATED]';
}

@@ -322,3 +324,4 @@

this.log2('MultiPart Request');
this.log2('JSON Payload: ' + JSON.stringify(json_payload));
this.log2('JSON Payload: ' + JSON.stringify(json_payload_to_log));
return rest.post(

@@ -325,0 +328,0 @@ _url.href + action,

{
"name": "sailthru-client",
"description": "Node.js client for Sailthru API",
"version": "5.0.0",
"version": "5.0.1",
"author": {

@@ -6,0 +6,0 @@ "name": "George Liao",

@@ -453,2 +453,9 @@ (function() {

exports.processJobWithFile = function(test) {
var SailthruClientWithMockLog2Function = require('../lib/sailthru').createSailthruClient('abcd12345', '1324qwerty');
SailthruClientWithMockLog2Function.log2 = function(string) {
if (/json payload/i.test(string)) {
test.ok(/TRUNCATED/.test(string));
}
}
nock(/.*sailthru.com.*/)

@@ -459,3 +466,3 @@ .post(/.*/, function(q) {

test.expect(1);
test.expect(2);

@@ -470,3 +477,3 @@ var callback = function(err, res) {

};
SailthruClient.processJob('import', options, 'report@example.com', 'http://example.com/post.php', ['file'], callback);
SailthruClientWithMockLog2Function.processJob('import', options, 'report@example.com', 'http://example.com/post.php', ['file'], callback);
};

@@ -473,0 +480,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