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

resource-race

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resource-race - npm Package Compare versions

Comparing version

to
1.1.1

test/race-test.js

9

package.json
{
"name": "resource-race",
"version": "1.1.0",
"version": "1.1.1",
"description": "Find the fastest resource amongst a group",
"main": "dist/race.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha"
},

@@ -28,7 +28,10 @@ "repository": {

"devDependencies": {
"chai": "^3.3.0",
"chai-as-promised": "^5.1.0",
"eslint": "^1.6.0",
"gulp": "^3.9.0",
"gulp-babel": "^5.2.1",
"gulp-concat": "^2.6.0"
"gulp-concat": "^2.6.0",
"mocha": "^2.3.3"
}
}

@@ -9,3 +9,2 @@

## Installing

@@ -17,3 +16,2 @@

## Using

@@ -24,8 +22,12 @@

const urls = ['https://cdn1.com/img.png','https://cdn2.com/img.png', 'https://cdn3.com/img.png'];
const urls = [
'https://cdn1.com/img.png',
'https://cdn2.com/img.png',
'https://cdn3.com/img.png'
];
race(urls).then((winner) => {
console.log(`${winner} won the race!`);
})
});
```