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

ghcrawler

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghcrawler - npm Package Compare versions

Comparing version 0.2.19 to 0.2.20

0

.eslintrc.json

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ {

@@ -0,0 +0,0 @@ // Place your settings in this file to overwrite default and user settings.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

32

lib/crawlerService.js

@@ -5,2 +5,3 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

const Q = require('q');
const Request = require('./request');

@@ -99,7 +100,7 @@ class CrawlerService {

for (let i = 0; i < count; i++) {
result.push(this.pop());
result.push(queue.pop());
}
return Q.all(result).then(requests => {
const filtered = requests.filter(request => request);
return Q.all(filtered.map(request => remove ? this.done(request) : this.abandon(request))).thenResolve(filtered);
return Q.all(filtered.map(request => remove ? queue.done(request) : queue.abandon(request))).thenResolve(filtered);
});

@@ -109,5 +110,30 @@ }

listDeadletters() {
return this.crawler.deadletters.listDocuments();
return this.crawler.deadletters.list();
}
getDeadletter(urn) {
return this.crawler.deadletters.get('deadletter', urn);
}
deleteDeadletter(urn) {
return this.crawler.deadletters.delete('deadletter', urn);
}
requeueDeadletter(url, queue) {
const self = this;
return this.getDeadletter(url)
.then(document => {
const request = Request.adopt(document).createRequeuable();
request.attemptCount = 0;
return self.crawler.queues.push([request], queue)
})
.then(() => {
return self.deleteDeadletter(url);
});
}
getDeadletterCount() {
return this.crawler.deadletters.count();
}
_reconfigure(current, changes) {

@@ -114,0 +140,0 @@ // if the loop count changed, make it so

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

2

package.json
{
"name": "ghcrawler",
"version": "0.2.19",
"version": "0.2.20",
"description": "A robust GitHub API crawler that walks a queue of GitHub entities retrieving and storing their contents.",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -0,0 +0,0 @@ ![Version](https://img.shields.io/npm/v/ghcrawler.svg)

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

@@ -0,0 +0,0 @@ // Copyright (c) Microsoft Corporation. All rights reserved.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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