find-free-ports
Advanced tools
Comparing version 1.1.0 to 1.1.1
"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); |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11843
217
0
0
1
1