Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function query( slug, id, options, clbk ) {
* @returns {void}
*/
function done( error, response ) {
var reset;
var info;
if ( arguments.length === 1 ) {
debug( 'No available rate limit information.' );
Expand All @@ -83,7 +84,9 @@ function query( slug, id, options, clbk ) {
info = ratelimit( response.headers );
debug( 'Rate limit: %d', info.limit );
debug( 'Rate limit remaining: %d', info.remaining );
debug( 'Rate limit reset: %s', (new Date( info.reset*1000 )).toISOString() );
reset = ( isFinite( info.reset ) ) ?
new Date( info.reset*1000 ) : new Date();
debug( 'Rate limit reset: %s', reset.toISOString() );

if ( error ) {
return clbk( error, info );
Expand Down
8 changes: 5 additions & 3 deletions lib/node_modules/@stdlib/symbol/async-iterator/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

// MODULES //

var hasAsyncIteratorSymbolSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' ); // eslint-disable-line id-length
var Symbol = require( '@stdlib/symbol/ctor' );
var hasSupport = require( '@stdlib/assert/has-async-iterator-symbol-support' );
var Sym = require( '@stdlib/symbol/ctor' );


// MAIN //
Expand All @@ -40,7 +40,9 @@ var Symbol = require( '@stdlib/symbol/ctor' );
* console.log( 'Environment does support Symbol.asyncIterator.' );
* }
*/
var AsyncIteratorSymbol = ( hasAsyncIteratorSymbolSupport() ) ? Symbol.asyncIterator : null; // eslint-disable-line max-len
var AsyncIteratorSymbol = ( hasSupport() ) ?
Object.getOwnPropertyDescriptor( Sym, 'asyncIterator' ).value :
null;


// EXPORTS //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function noop() {
}

console.log( constructorName( 'a' ) );
// => 'String'
// => undefined

console.log( constructorName( 5 ) );
// => 'Number'
Expand Down Expand Up @@ -148,7 +148,7 @@ console.log( constructorName( new Float64Array() ) );
console.log( constructorName( new ArrayBuffer() ) );
// => 'ArrayBuffer'

console.log( constructorName( new Buffer( 'beep' ) ) ); // eslint-disable-line no-buffer-constructor
console.log( constructorName( new Buffer( 'beep' ) ) );
// => 'Buffer'

console.log( constructorName( Math ) );
Expand Down