@pact-foundation/pact-node
Advanced tools
Comparing version 4.5.0 to 4.5.1
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95923