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

getrepos

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

getrepos - npm Package Compare versions

Comparing version 5.2.0 to 5.2.1-next.1589170378.3de25f0d9346f91bd2b1e3a22bc3a7e42072535d

11

edition-browsers/index.js

@@ -6,5 +6,10 @@ /* eslint camelcase:0 */

const ghapi = process.env.GITHUB_API || 'https://api.github.com'
function halt(time) {
export function halt(milliseconds) {
if (milliseconds < 1000) {
console.warn(
'halt accepts milliseconds, you may have attempted to send it seconds, as you sent a value below 1000 milliseconds'
)
}
return new Promise(function (resolve, reject) {
setTimeout(resolve, time)
setTimeout(resolve, milliseconds)
})

@@ -28,3 +33,3 @@ }

)
await halt(60)
await halt(60 * 1000)
return getRepo(repoFullName)

@@ -31,0 +36,0 @@ }

@@ -13,7 +13,13 @@ 'use strict'

const ghapi = process.env.GITHUB_API || 'https://api.github.com'
function halt(time) {
function halt(milliseconds) {
if (milliseconds < 1000) {
console.warn(
'halt accepts milliseconds, you may have attempted to send it seconds, as you sent a value below 1000 milliseconds'
)
}
return new Promise(function (resolve, reject) {
setTimeout(resolve, time)
setTimeout(resolve, milliseconds)
})
}
exports.halt = halt
// =================================

@@ -35,3 +41,3 @@ // Fetch Repository

)
await halt(60)
await halt(60 * 1000)
return getRepo(repoFullName)

@@ -38,0 +44,0 @@ }

# History
## v5.2.1 2020 May 11
- Fixed 429 delay, had 60 milliseconds instead of 60 seconds
## v5.2.0 2020 May 11

@@ -4,0 +8,0 @@

{
"title": "Get Repositories",
"name": "getrepos",
"version": "5.2.0",
"version": "5.2.1-next.1589170378.3de25f0d9346f91bd2b1e3a22bc3a7e42072535d",
"description": "Fetch the specified repositories, or those that match a particular github user or search query",

@@ -6,0 +6,0 @@ "homepage": "https://github.com/bevry/getrepos",

@@ -76,3 +76,3 @@ <!-- TITLE/ -->

<script type="module">
import * as pkg from '//cdn.pika.dev/getrepos/^5.2.0'
import * as pkg from '//cdn.pika.dev/getrepos/^5.2.1'
</script>

@@ -85,3 +85,3 @@ ```

<script type="module">
import * as pkg from '//unpkg.com/getrepos@^5.2.0'
import * as pkg from '//unpkg.com/getrepos@^5.2.1'
</script>

@@ -94,3 +94,3 @@ ```

<script type="module">
import * as pkg from '//dev.jspm.io/getrepos@5.2.0'
import * as pkg from '//dev.jspm.io/getrepos@5.2.1'
</script>

@@ -97,0 +97,0 @@ ```

@@ -10,5 +10,10 @@ /* eslint camelcase:0 */

function halt(time: number) {
export function halt(milliseconds: number) {
if (milliseconds < 1000) {
console.warn(
'halt accepts milliseconds, you may have attempted to send it seconds, as you sent a value below 1000 milliseconds'
)
}
return new Promise(function (resolve, reject) {
setTimeout(resolve, time)
setTimeout(resolve, milliseconds)
})

@@ -239,3 +244,3 @@ }

)
await halt(60)
await halt(60 * 1000)
return getRepo(repoFullName)

@@ -242,0 +247,0 @@ }

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