New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sealsystems/consul

Package Overview
Dependencies
Maintainers
4
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sealsystems/consul - npm Package Compare versions

Comparing version 3.5.12 to 3.6.0

.circleci/config.yml

12

package.json
{
"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
[![CircleCI](https://circleci.com/gh/sealsystems/node-consul.svg?style=svg)](https://circleci.com/gh/sealsystems/node-consul)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/3y40yyflrpw10hao?svg=true)](https://ci.appveyor.com/project/Plossys/seal-consul)
[![AppVeyor](https://ci.appveyor.com/api/projects/status/9b2db9vds6i2msoy?svg=true)](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

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