@sealsystems/consul
Advanced tools
Comparing version 3.5.12 to 3.6.0
{ | ||
"name": "@sealsystems/consul", | ||
"version": "3.5.12", | ||
"version": "3.6.0", | ||
"description": "@sealsystems/consul provides service discovery based on Consul.", | ||
@@ -13,7 +13,5 @@ "author": { | ||
"bot": "bot", | ||
"release": "bot release && npm publish", | ||
"release-minor": "bot release --type minor && npm publish", | ||
"release-major": "bot release --type major && npm publish", | ||
"release": "semantic-release --branch ${CIRCLE_BRANCH}", | ||
"test": "bot test-units", | ||
"coverage": "istanbul cover _mocha -- --recursive --ui tdd ", | ||
"coverage": "nyc --reporter=text --reporter=lcov mocha", | ||
"report": "npm run coverage && if [[ $OSTYPE == darwin* ]]; then open=open; else open=xdg-open; fi && $open coverage/lcov-report/index.html" | ||
@@ -39,2 +37,3 @@ }, | ||
"nodeenv": "1.0.0", | ||
"nyc": "13.0.1", | ||
"proxyquire": "1.8.0", | ||
@@ -49,2 +48,5 @@ "roboter": "0.16.0", | ||
}, | ||
"release": { | ||
"extends": "@sealsystems/semantic-release-config/node-module" | ||
}, | ||
"publishConfig": { | ||
@@ -51,0 +53,0 @@ "access": "public" |
# @sealsystems/consul | ||
[](https://circleci.com/gh/sealsystems/node-consul) | ||
[](https://ci.appveyor.com/project/Plossys/seal-consul) | ||
[](https://ci.appveyor.com/project/Plossys/node-consul) | ||
@@ -6,0 +6,0 @@ @sealsystems/consul provides service discovery based on Consul. |
@@ -41,6 +41,5 @@ 'use strict'; | ||
promisify: true, | ||
port: 1234, | ||
secure: true | ||
port: 1234 | ||
}); | ||
}); | ||
}); |
@@ -37,20 +37,2 @@ 'use strict'; | ||
test('sets token and TLS options.', async () => { | ||
keystore = {}; | ||
const options = await getConsulOptions({ | ||
consulUrl: 'https://foo', | ||
token: 'foo' | ||
}); | ||
assert.that(options).is.equalTo({ | ||
defaults: { | ||
token: 'foo' | ||
}, | ||
host: 'foo', | ||
promisify: true, | ||
secure: true | ||
}); | ||
}); | ||
suite('TLS parameter \'secure\'', () => { | ||
@@ -100,16 +82,17 @@ test('is set if TLS_UNPROTECTED is \'none\'.', async () => { | ||
suite('CA certificate', () => { | ||
test('is added.', async () => { | ||
keystore = { | ||
ca: 'ca', | ||
cert: 'cert', | ||
key: 'key' | ||
}; | ||
suite('a given CA certificate is added.', async () => { | ||
const restore = nodeenv('TLS_UNPROTECTED', 'none'); | ||
const options = await getConsulOptions({ consulUrl: 'https://foo' }); | ||
keystore = { | ||
ca: 'ca', | ||
cert: 'cert', | ||
key: 'key' | ||
}; | ||
assert.that(options.ca).is.equalTo(['ca']); | ||
assert.that(options.secure).is.true(); | ||
}); | ||
const options = await getConsulOptions({ consulUrl: 'https://foo' }); | ||
assert.that(options.ca).is.equalTo(['ca']); | ||
assert.that(options.secure).is.true(); | ||
restore(); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
58827
9
49
1644
4