Socket
Socket
Sign inDemoInstall

squiss-jobs

Package Overview
Dependencies
45
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

15

index.js

@@ -7,3 +7,3 @@ const Consumer = require('sqs-consumer')

always, bind, compose, curryN, dissoc, identity, merge,
mergeAll, nAry, partial
mergeAll, nAry, once, partial, tap
} = require('ramda')

@@ -46,8 +46,11 @@

const processJob = ({ type, payload }, done) => {
const details = mergeAll([ options, { type, payload }, timeoutErr ]),
logTimeout = partial(timeoutLogger, [ details ]),
timeout = setTimeout(logTimeout, visibilityTimeout * 1000),
finish = compose(partial(clearTimeout, [ timeout ]), done)
const processJob = ({ type, payload }, callback) => {
const done = once(callback)
details = mergeAll([ options, { type, payload }, timeoutErr ]),
logTimeout = partial(timeoutLogger, [ details ]),
handleTimeout = compose(partial(done, [ new Error(timeoutErr.error) ]), tap(logTimeout))
timeout = setTimeout(handleTimeout, visibilityTimeout * 1000),
finish = compose(tap(partial(clearTimeout, [ timeout ])), done)
return Promise.resolve(payload)

@@ -54,0 +57,0 @@ .then(handlerFor(type))

2

package.json
{
"name": "squiss-jobs",
"version": "1.0.1",
"version": "1.0.2",
"description": "SQS-backed job queue",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc