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 4.5.0 to 4.5.1

2

package.json
{
"name": "@pact-foundation/pact-node",
"version": "4.5.0",
"version": "4.5.1",
"description": "A wrapper for the Ruby version of Pact to work within Node",

@@ -5,0 +5,0 @@ "main": "./src/pact.js",

@@ -62,2 +62,3 @@ 'use strict';

},
json: true,
body: data

@@ -80,3 +81,2 @@ }).fail(function (err) {

headers: {
'Accept': 'application/json',
'Content-Type': 'application/json'

@@ -118,4 +118,3 @@ }

'Accept': 'application/json'
},
json: true
}
}, config);

@@ -153,3 +152,4 @@

return callPact(options, {
uri: uri
uri: uri,
json: true
}).fail(function (err) {

@@ -200,3 +200,3 @@ return q.reject(new Error('Cannot GET ' + uri + '. Nested exception: ' + err.message))

return urlJoin(options.pactBroker, 'pacticipants', data.consumer.name, 'version', options.consumerVersion, 'tags', tag)
return urlJoin(options.pactBroker, 'pacticipants', data.consumer.name, 'versions', options.consumerVersion, 'tags', tag)
}

@@ -203,0 +203,0 @@

@@ -150,3 +150,3 @@ /* global describe:true, before:true, after:true, it:true, global:true, process:true */

var data = { 'consumer': { 'name': 'consumerName' } };
expect(constructTagUrl(options, 'test', data)).to.eq('http://foo/pacticipants/consumerName/version/1.0/tags/test');
expect(constructTagUrl(options, 'test', data)).to.eq('http://foo/pacticipants/consumerName/versions/1.0/tags/test');
});

@@ -153,0 +153,0 @@ });

@@ -57,5 +57,5 @@ var cors = require('cors'),

// Tagging
server.put('/pacticipants/:consumer/version/:version/tags/:tag', tagPactFunction);
server.put('/auth/pacticipants/:consumer/version/:version/tags/:tag', tagPactFunction);
server.put('/pacticipants/:consumer/versions/:version/tags/:tag', tagPactFunction);
server.put('/auth/pacticipants/:consumer/versions/:version/tags/:tag', tagPactFunction);
module.exports = server;
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