Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

consul

Package Overview
Dependencies
Maintainers
0
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consul - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

lib/agent/check.d.ts

@@ -32,3 +32,3 @@ import { CommonOptions, Consul } from "../consul";

name: string;
id?: string;
checkid?: string;
serviceid?: string;

@@ -35,0 +35,0 @@ http?: string;

@@ -296,10 +296,9 @@ "use strict";

* Corresponds to CheckType in Consul Agent Endpoint:
* https://github.com/hashicorp/consul/blob/master/command/agent/check.go#L43
* Corresponds to AgentServiceCheck in Consul Go API (which currently omits Notes):
* https://github.com/hashicorp/consul/blob/master/api/agent.go#L66
* Currently omits ID and Name fields:
* https://github.com/hashicorp/consul/issues/2223
* https://developer.hashicorp.com/consul/docs/services/usage/checks
*/
function _createServiceCheck(src) {
const dst = {};
if (src.hasOwnProperty("checkid")) dst.CheckID = src.checkid;
if (src.hasOwnProperty("name")) dst.Name = src.name;
if (src.hasOwnProperty("notes")) dst.Notes = src.notes;

@@ -306,0 +305,0 @@ if (

{
"name": "consul",
"version": "2.0.0",
"version": "2.0.1",
"description": "Consul client",

@@ -5,0 +5,0 @@ "main": "./lib",

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