New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

celery-client

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celery-client - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

celery-client.js

@@ -65,3 +65,3 @@ 'use strict';

Client.prototype.putTask = function(task, args, kwargs, taskOptions, callback, onResultCallback) {
Client.prototype.putTask = function(name, args, kwargs, taskOptions, callback, onResultCallback) {
var self = this;

@@ -77,3 +77,3 @@

self._backendHandler.onResult(mergedTaskOptions.id, onResultCallback || nope);
self._brokerHandler.putTask(task, args, kwargs, mergedTaskOptions, callback || nope);
self._brokerHandler.putTask(name, args, kwargs, mergedTaskOptions, callback || nope);
};

@@ -80,0 +80,0 @@

@@ -25,3 +25,4 @@ 'use strict';

};
var body = JSON.stringify([args, kwargs, embed]);
var message = JSON.stringify([args, kwargs, embed])
var body = new Buffer(message).toString('base64');

@@ -45,5 +46,7 @@ var message = {

],
'origin' : taskOptions.origin, // Senders name
'origin': taskOptions.origin, // Senders name
'extra' : taskOptions.extra,
},
'properties': {
'body_encoding' : 'base64', // [Fixed value] Body encoding
'priority' : taskOptions.priority, // Task priority

@@ -60,3 +63,3 @@ 'correlation_id': taskOptions.id, // Same to `headers.id`

'content-type' : 'application/json', // [Fixed value] Content type
'content-encoding': 'utf-8' // [Fixed value] Content encoding
'content-encoding': 'utf-8', // [Fixed value] Content encoding
};

@@ -88,6 +91,6 @@

RedisHandler.prototype.putTask = function(task, args, kwargs, taskOptions, callback) {
RedisHandler.prototype.putTask = function(name, args, kwargs, taskOptions, callback) {
var self = this;
var message = self.createMessage(task, args, kwargs, taskOptions);
var message = self.createMessage(name, args, kwargs, taskOptions);

@@ -147,3 +150,3 @@ var targetQueue = message.properties.delivery_info.routing_key;

result[i] = JSON.parse(result[i]);
result[i].body = result[i].body ? JSON.parse(result[i].body) : null;
result[i].body = JSON.parse(new Buffer(result[i].body, 'base64').toString());
}

@@ -169,3 +172,3 @@

var t = JSON.parse(taskMap[taskId])[0];
t.body = t.body ? JSON.parse(t.body) : null;
t.body = JSON.parse(new Buffer(t.body, 'base64').toString());

@@ -172,0 +175,0 @@ result.push(t);

{
"name": "celery-client",
"version": "0.1.2",
"version": "0.1.3",
"description": "A client for Celery",

@@ -5,0 +5,0 @@ "main": "celery-client.js",

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