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

node-queue-bus

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-queue-bus - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

42

lib/sections/publish.js

@@ -1,6 +0,8 @@

var utils = require(__dirname + '/utils.js');
var uuid = require('node-uuid');
var os = require('os');
var child_process = require('child_process');
var utils = require(__dirname + '/utils.js');
var uuid = require('node-uuid');
var os = require('os');
var system_timezone = require('system-timezone');
var systemTimezone = system_timezone();
var publish = function(eventType, args, callback){

@@ -79,34 +81,2 @@ var self = this;

var getSystemTimezone = function(){
// THIS IS TERRIBLE, but there is no way to get this from node directly...
// This only works on *nix hosts
// shelling out is slow
var command = '';
command += 'if [ -f /etc/timezone ]; then\n';
command += ' cat /etc/timezone\n';
command += 'elif [ -h /etc/localtime ]; then\n';
command += ' readlink /etc/localtime | sed "s/\\/usr\\/share\\/zoneinfo\\///"\n';
command += 'else';
command += ' checksum=\`md5sum /etc/localtime | cut -d\' \' -f1\`\n';
command += ' find /usr/share/zoneinfo/ -type f -exec md5sum {} \\; | grep "^$checksum" | sed "s/.*\\/usr\\/share\\/zoneinfo\\///" | head -n 1\n';
command += 'fi';
if(child_process.execSync){
try{
var stdout = child_process.execSync(command).toString();
return stdout.replace(/\n/g, '');
}catch(e){
console.log(e);
throw(e);
}
}else{
child_process.exec(command, function(error, stdout, stderr){
if(error){ throw(error); }
if(stderr){ throw(new Error(stderr)); }
systemTimezone = stdout.replace(/\n/g, '');
});
}
};
var systemTimezone = getSystemTimezone();
exports.publish = publish;

@@ -113,0 +83,0 @@ exports.publishAt = publishAt;

9

package.json

@@ -5,7 +5,7 @@ {

"description": "an implementation of queuebus in node",
"version": "0.1.0",
"homepage": "http://github.com/queuebus/node-queue-bus",
"version": "0.1.1",
"homepage": "http://github.com/queue-bus/node-queue-bus",
"repository": {
"type": "git",
"url": "git://github.com/queuebus/node-queue-bus.git"
"url": "git://github.com/queue-bus/node-queue-bus.git"
},

@@ -29,3 +29,4 @@ "main": "index.js",

"node-resque": "1.0.1",
"node-uuid": "1.x.x"
"node-uuid": "1.x.x",
"system-timezone": "0.0.2"
},

@@ -32,0 +33,0 @@ "devDependencies": {

@@ -5,3 +5,3 @@ # node-queue-bus

[![Build Status](https://travis-ci.org/queue-bus/node-queue-bus.png?branch=master)](https://travis-ci.org/queue-bus/node-queuebus)
[![Build Status](https://travis-ci.org/queue-bus/node-queue-bus.png?branch=master)](https://travis-ci.org/queue-bus/node-queue-bus)

@@ -8,0 +8,0 @@ ## Acknowledgments

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