Socket
Socket
Sign inDemoInstall

@pact-foundation/pact-node

Package Overview
Dependencies
Maintainers
5
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pact-foundation/pact-node - npm Package Compare versions

Comparing version 10.13.5 to 10.13.6

standalone/pact-1.88.65-linux-x86_64.tar.gz.checksum

9

CHANGELOG.md

@@ -5,2 +5,11 @@ # Changelog

### [10.13.6](https://github.com/pact-foundation/pact-node/compare/v10.13.5...v10.13.6) (2021-09-08)
### Fixes and Improvements
* Allow the user to specify the timeout (Fixes [#298](https://github.com/pact-foundation/pact-node/issues/298), backported from 4c77ddb) ([c1fd849](https://github.com/pact-foundation/pact-node/commit/c1fd8493069a4571a68a25b1cfbd62ab5f412f4e))
* Fix an issue that caused ENOENT on some platforms ([76e2fa1](https://github.com/pact-foundation/pact-node/commit/76e2fa10b89be7f8d7b81a94d7bd6d0adc1e30e9))
* update standalone to 1.88.65 ([#319](https://github.com/pact-foundation/pact-node/issues/319)) ([9c20478](https://github.com/pact-foundation/pact-node/commit/9c20478163abb68506fb334174d443e2944f5902))
### [10.13.5](https://github.com/pact-foundation/pact-node/compare/v10.13.4...v10.13.5) (2021-09-06)

@@ -7,0 +16,0 @@

2

package.json
{
"version": "10.13.5",
"version": "10.13.6",
"name": "@pact-foundation/pact-node",

@@ -4,0 +4,0 @@ "description": "Core of @pact-foundation/pact. You almost certainly don't want to depend on this directly.",

@@ -408,2 +408,3 @@ <img src="https://raw.githubusercontent.com/pact-foundation/pact-logo/master/media/logo-black.png" width="200">

| cors | false | boolean | Allow CORS OPTION requests to be accepted, defaults to 'false' |
| timeout | false | number | How long to wait for the stub server to start up (in milliseconds). Defaults to 30000 (30 seconds) |

@@ -410,0 +411,0 @@ ### Message Pacts

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

var deferred = q.defer();
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.brokerPath, [
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.brokerFullPath, [
{ cliVerb: 'can-i-deploy' }

@@ -92,0 +92,0 @@ ].concat(CanDeploy.convertForSpawnBinary(this.options)), this.__argMapping);

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

var _a = this.options, pactFileWriteMode = _a.pactFileWriteMode, content = _a.content, restOptions = __rest(_a, ["pactFileWriteMode", "content"]);
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.messagePath, [{ pactFileWriteMode: pactFileWriteMode }, restOptions], this.__argMapping);
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.messageFullPath, [{ pactFileWriteMode: pactFileWriteMode }, restOptions], this.__argMapping);
var output = [];

@@ -76,0 +76,0 @@ instance.stdout.on('data', function (l) { return output.push(l); });

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

var deferred = q.defer();
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.brokerPath, [{ cliVerb: 'publish' }, this.options], this.__argMapping);
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.brokerFullPath, [{ cliVerb: 'publish' }, this.options], this.__argMapping);
var output = [];

@@ -69,0 +69,0 @@ instance.stdout.on('data', function (l) { return output.push(l); });

@@ -23,3 +23,4 @@ import { AbstractService, LogLevel } from './service';

logLevel?: LogLevel;
timeout?: number;
pactFileWriteMode?: 'overwrite' | 'update' | 'merge';
}

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

}
_this = _super.call(this, pact_standalone_1.default.mockServicePath, options, {
_this = _super.call(this, pact_standalone_1.default.mockServiceFullPath, options, {
port: '--port',

@@ -74,0 +74,0 @@ host: '--host',

@@ -38,2 +38,3 @@ /// <reference types="node" />

logLevel?: LogLevel;
timeout?: number;
}

@@ -40,0 +41,0 @@ export declare type LogLevel = 'debug' | 'info' | 'warn' | 'error';

@@ -26,5 +26,9 @@ "use strict";

var setTimeout = global.setTimeout;
var CHECKTIME = 500;
var RETRY_AMOUNT = 60;
var PROCESS_TIMEOUT = 30000;
var getTimeout = function (options) {
return options.timeout || 30000;
};
var getRetryTickTime = function (options) {
return Math.round(getTimeout(options) / RETRY_AMOUNT);
};
var AbstractService = (function (_super) {

@@ -136,3 +140,3 @@ __extends(AbstractService, _super);

return this.__waitForServiceUp()
.timeout(PROCESS_TIMEOUT, "Couldn't start Pact with PID: " + this.__instance.pid)
.timeout(getTimeout(this.options), "Couldn't start Pact with PID: " + this.__instance.pid)
.then(function () {

@@ -149,3 +153,3 @@ _this.__running = true;

.then(function () { return _this.__waitForServiceDown(); })
.timeout(PROCESS_TIMEOUT, "Couldn't stop Pact with PID '" + pid + "'")
.timeout(getTimeout(this.options), "Couldn't stop Pact with PID '" + pid + "'")
.then(function () {

@@ -175,3 +179,3 @@ _this.__running = false;

}
setTimeout(check.bind(_this), CHECKTIME);
setTimeout(check.bind(_this), getRetryTickTime(_this.options));
};

@@ -202,3 +206,3 @@ var check = function () {

}
setTimeout(check, CHECKTIME);
setTimeout(check, getRetryTickTime(_this.options));
}, function () { return deferred.resolve(); });

@@ -205,0 +209,0 @@ }

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

checkTypes.assert.not.emptyArray(options.pactUrls);
_this = _super.call(this, "" + pact_standalone_1.default.stubPath, options, {
_this = _super.call(this, pact_standalone_1.default.stubFullPath, options, {
pactUrls: spawn_1.DEFAULT_ARG,

@@ -34,0 +34,0 @@ port: '--port',

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

var deferred = q.defer();
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.verifierPath, this.options, this.__argMapping);
var instance = spawn_1.default.spawnBinary(pact_standalone_1.default.verifierFullPath, this.options, this.__argMapping);
var output = [];

@@ -180,0 +180,0 @@ instance.stdout.on('data', function (l) { return output.push(l); });

@@ -1,2 +0,2 @@

export declare const PACT_STANDALONE_VERSION = "1.88.63";
export declare const PACT_STANDALONE_VERSION = "1.88.65";
export declare function createConfig(location?: string): Config;

@@ -3,0 +3,0 @@ export declare function getBinaryEntry(platform?: string, arch?: string): BinaryEntry;

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

}
exports.PACT_STANDALONE_VERSION = '1.88.63';
exports.PACT_STANDALONE_VERSION = '1.88.65';
var PACT_DEFAULT_LOCATION = "https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v" + exports.PACT_STANDALONE_VERSION + "/";

@@ -33,0 +33,0 @@ var HTTP_REGEX = /^http(s?):\/\//;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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