Socket
Socket
Sign inDemoInstall

@pact-foundation/pact-node

Package Overview
Dependencies
Maintainers
4
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.11.8 to 10.11.9

.mocharc.js

7

CHANGELOG.md

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

### [10.11.9](https://github.com/pact-foundation/pact-node/compare/v10.11.8...v10.11.9) (2021-02-24)
### Fixes and Improvements
* 🐛 only download binary if PACT_SKIP_BINARY_INSTALL is true ([69cbba0](https://github.com/pact-foundation/pact-node/commit/69cbba0f4800da79e01d594e5b1e0c3556c09551))
### [10.11.8](https://github.com/pact-foundation/pact-node/compare/v10.11.7...v10.11.8) (2021-02-09)

@@ -7,0 +14,0 @@

2

download-checksums.js

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

require("./standalone/install").downloadChecksums();
require('./standalone/install').downloadChecksums();
{
"name": "@pact-foundation/pact-node",
"version": "10.11.8",
"version": "10.11.9",
"description": "A wrapper for the Ruby version of Pact to work within Node",

@@ -53,5 +53,5 @@ "main": "src/index.js",

"dependencies": {
"@types/pino": "^6.3.5",
"@types/q": "1.0.7",
"@types/request": "2.48.2",
"@types/pino": "^6.3.5",
"chalk": "2.3.1",

@@ -83,2 +83,3 @@ "check-types": "7.3.0",

"@types/express": "4.11.1",
"@types/jest": "^25.2.3",
"@types/mkdirp": "^0.5.2",

@@ -105,2 +106,3 @@ "@types/mocha": "2.2.48",

"express": "4.16.2",
"jest": "^25.5.4",
"mocha": "^7.1.1",

@@ -112,2 +114,3 @@ "nodemon": "^2.0.4",

"standard-version": "^9.1.0",
"ts-jest": "^25.5.1",
"ts-node": "8.3.0",

@@ -127,3 +130,3 @@ "typescript": "3.5.3"

"pretest": "npm run prettier:check && npm run lint && npm run build && npm run download-checksums && npm run install:current",
"test": "cross-env LOGLEVEL=debug PACT_DO_NOT_TRACK=true mocha -r ts-node/register -t 30000 -s 5000 --check-leaks --exit \"{src,test,bin,standalone}/**/*.spec.ts\"",
"test": "cross-env LOGLEVEL=debug PACT_DO_NOT_TRACK=true mocha \"{src,test,bin,standalone}/**/*.spec.ts\" && jest",
"dev": "npm run lint --force && npm test && node .",

@@ -130,0 +133,0 @@ "watch": "nodemon -e ts,json --ignore '**/*.d.ts' -x npm run dev",

@@ -5,3 +5,3 @@ export declare const PACT_STANDALONE_VERSION = "1.88.37";

export declare function downloadChecksums(): Promise<void>;
declare const _default: (platform?: string | undefined, arch?: string | undefined) => Promise<void>;
declare const _default: (platform?: string | undefined, arch?: string | undefined) => Promise<Data>;
export default _default;

@@ -25,2 +25,5 @@ export interface PackageConfig {

platformFolderPath?: string;
binaryInstallSkipped?: boolean;
binaryAlreadyDownloaded?: boolean;
binaryAlreadyInstalled?: boolean;
}

@@ -27,0 +30,0 @@ export interface BinaryEntry {

"use strict";
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -168,3 +179,3 @@ var Request = require("request");

console.log(chalk_1.default.yellow('Binary already downloaded, skipping...'));
resolve(data);
resolve(__assign({}, data, { binaryAlreadyDownloaded: true }));
return;

@@ -223,3 +234,3 @@ }

if (fs.existsSync(data.platformFolderPath)) {
return Promise.resolve();
return Promise.resolve(__assign({}, data, { binaryAlreadyInstalled: true }));
}

@@ -265,2 +276,3 @@ if (!fs.existsSync(data.checksumFilepath)) {

'\n\n');
return Promise.resolve(data);
})

@@ -312,10 +324,15 @@ .catch(function (e) {

exports.default = (function (platform, arch) {
if (process.env.PACT_SKIP_BINARY_INSTALL) {
if (process.env.PACT_SKIP_BINARY_INSTALL === 'true') {
console.log(chalk_1.default.yellow("Skipping binary installation. Env var 'PACT_SKIP_BINARY_INSTALL' was found."));
return Promise.resolve();
return Promise.resolve({
binaryInstallSkipped: true,
});
}
return setup(platform, arch)
.then(function (d) { return download(d); })
.then(function (d) { return extract(d); })
.then(function () { return console.log(chalk_1.default.green('Pact Standalone Binary is ready.')); })
.then(download)
.then(extract)
.then(function (d) {
console.log(chalk_1.default.green('Pact Standalone Binary is ready.'));
return __assign({}, d, { binaryInstallSkipped: false });
})
.catch(function (e) {

@@ -322,0 +339,0 @@ return throwError("Postinstalled Failed Unexpectedly: " + e);

@@ -16,2 +16,3 @@ {

"noImplicitThis": true,
"skipLibCheck": true,
"strictNullChecks": true,

@@ -22,4 +23,4 @@ "strict": true,

"include": ["**/*.ts"],
"exclude": ["node_modules"],
"exclude": ["node_modules", "**/*.spec.ts", "**/__mocks__"],
"compileOnSave": false
}

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