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

doublescore

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doublescore - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

lib/close.js

@@ -48,3 +48,3 @@ 'use strict';

} else if ( arguments.length > 1 ) {
cb( null, data );
cb.apply( {}, arguments );
} else {

@@ -51,0 +51,0 @@ cb( null );

@@ -5,3 +5,3 @@ {

"author": "Anthony Hildoer <anthony@bluerival.com>",
"version": "0.3.0",
"version": "0.3.1",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -20,2 +20,5 @@ 'use strict';

cb( null, 200, 300, 400 );
assert.strictEqual( args, 4 );
cb( false, 200 );

@@ -33,2 +36,5 @@ assert.strictEqual( args, 2 );

cb( new Error( 'hi' ), 200, 300, 400 );
assert.strictEqual( args, 1 );
cb( new Error( 'hi' ) );

@@ -35,0 +41,0 @@ assert.strictEqual( args, 1 );

@@ -8,3 +8,3 @@ "use strict";

describe( 'timer', function() {
it( 'should measure time delta with <= 0.1% error', function( done ) {
it( 'should measure time delta with <= 0.5% error', function( done ) {

@@ -23,3 +23,3 @@ var timer = __.timer();

try {
assert( errorRate <= 0.1 );
assert( errorRate <= 0.5 );
done();

@@ -36,3 +36,3 @@ } catch ( e ) {

it( 'should take intervals with <= 0.1% error per interval', function( done ) {
it( 'should take intervals with <= 0.5% error per interval', function( done ) {

@@ -58,3 +58,3 @@ var timer = __.timer();

try {
assert( errorRate <= (i * 0.1) );
assert( errorRate <= (i * 0.5) );
done();

@@ -71,3 +71,3 @@ } catch ( e ) {

it( 'should reset intervals with <= 0.1% error per interval', function( done ) {
it( 'should reset intervals with <= 0.5% error per interval', function( done ) {

@@ -88,3 +88,3 @@ var timer = __.timer();

try {
assert( errorRate <= 0.1 );
assert( errorRate <= 0.5 );

@@ -91,0 +91,0 @@ done();

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