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

@backstroke/worker

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@backstroke/worker - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

.circleci/config.yml

8

package.json
{
"name": "@backstroke/worker",
"version": "1.1.0",
"dependencies": {

@@ -12,3 +13,5 @@ "bluebird": "^3.5.0",

"start": "node src/index.js",
"test": "NODE_ENV=test jest --watch"
"start:once": "node src/index.js --once",
"test": "NODE_ENV=test jest --watch",
"test-ci": "CI=true NODE_ENV=test jest"
},

@@ -18,4 +21,3 @@ "devDependencies": {

"sinon": "^3.2.1"
},
"version": "1.0.2"
}
}

@@ -105,18 +105,26 @@ const args = require('minimist')(process.argv.slice(2));

// Kick off the batch!
processBatch(
WebhookQueue,
WebhookStatusStore,
logger,
getForksForRepo,
{default: createPullRequest, mock: mockCreatePullRequest}[args.pr || 'default'],
didRepoOptOut,
githubPullRequestsCreate
).then(() => {
console.log('* Success!');
final();
}).catch(err => {
console.error('Error:');
console.error(err.stack);
final();
});
function go() {
processBatch(
WebhookQueue,
WebhookStatusStore,
logger,
getForksForRepo,
{default: createPullRequest, mock: mockCreatePullRequest}[args.pr || 'default'],
didRepoOptOut,
githubPullRequestsCreate
).then(() => {
console.log('* Success!');
final();
}).catch(err => {
console.error('Error:');
console.error(err.stack);
final();
});
}
if (args.once) {
go();
} else {
setInterval(go, process.env.WORKER_POLL_INTERVAL || 5000);
}
}
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