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

find-free-ports

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

find-free-ports - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

index.js
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -8,0 +9,0 @@ });

{
"name": "find-free-ports",
"version": "1.1.0",
"version": "1.1.1",
"description": "Find multiple free ports on localhost",

@@ -12,3 +12,3 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/OrionGroup/node-find-free-ports.git"
"url": "git+https://github.com/samvv/node-find-free-ports.git"
},

@@ -24,14 +24,14 @@ "keywords": [

"bugs": {
"url": "https://github.com/OrionGroup/node-find-free-ports/issues"
"url": "https://github.com/samvv/node-find-free-ports/issues"
},
"homepage": "https://github.com/OrionGroup/node-find-free-ports#readme",
"homepage": "https://github.com/samvv/node-find-free-ports#readme",
"devDependencies": {
"@types/chai": "^4.2.0",
"@types/chai": "^4.2.11",
"@types/chai-as-promised": "^7.1.2",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.3",
"@types/mocha": "^7.0.2",
"@types/node": "^13.13.5",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"mocha": "^6.2.0"
"mocha": "^7.1.2"
}
}
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -29,6 +30,6 @@ });

describe('a free port finder', () => {
it('crashes properly when there are not enough free ports', () => __awaiter(this, void 0, void 0, function* () {
it('crashes properly when there are not enough free ports', () => __awaiter(void 0, void 0, void 0, function* () {
expect(index_1.default(10, { startPort: 65530 })).to.eventually.be.rejectedWith(Error);
}));
it('can find some free ports', () => __awaiter(this, void 0, void 0, function* () {
it('can find some free ports', () => __awaiter(void 0, void 0, void 0, function* () {
for (let i = 0; i < 10; i++) {

@@ -35,0 +36,0 @@ const ports = yield index_1.default(PORT_COUNT);

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