Comparing version 5.2.0 to 5.2.1-next.1589170378.3de25f0d9346f91bd2b1e3a22bc3a7e42072535d
@@ -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 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38496
499
1