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

@fonoster/grpc-health-check

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fonoster/grpc-health-check - npm Package Compare versions

Comparing version 3.1.3 to 3.1.5

2

dist/health-service.d.ts

@@ -1,2 +0,2 @@

import type * as grpc from "@grpc/grpc-js";
import * as grpc from "@grpc/grpc-js";
import { HealthCheckRequest__Output as HealthCheckRequest } from "./proto/grpc/health/v1/HealthCheckRequest";

@@ -3,0 +3,0 @@ import { _grpc_health_v1_HealthCheckResponse_ServingStatus as ServingStatus, HealthCheckResponse } from "./proto/grpc/health/v1/HealthCheckResponse";

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.HealthCheck = void 0;
const grpc_boom_1 = __importDefault(require("grpc-boom"));
const grpc = __importStar(require("@grpc/grpc-js"));
const HealthCheckResponse_1 = require("./proto/grpc/health/v1/HealthCheckResponse");

@@ -23,3 +43,10 @@ class HealthCheck {

if (!status) {
callback(grpc_boom_1.default.notFound(`Unknown service: ${service}`), undefined);
const notFoundError = {
name: "Error",
message: `Unknown service: ${service}`,
code: grpc.status.NOT_FOUND,
details: "Service not found",
metadata: new grpc.Metadata()
};
callback(notFoundError, undefined);
}

@@ -26,0 +53,0 @@ else {

{
"name": "@fonoster/grpc-health-check",
"version": "3.1.3",
"version": "3.1.5",
"description": "An implementation of gRPC health checks, written in typescript.",

@@ -26,14 +26,5 @@ "keywords": [

"dependencies": {
"google-protobuf": "^3.21.0",
"grpc-boom": "^3.0.12"
"google-protobuf": "^3.21.0"
},
"devDependencies": {
"@fonoster/logger": "^0.3.20",
"@grpc/grpc-js": "^1.8.4",
"@grpc/proto-loader": "^0.7.2",
"@types/google-protobuf": "^3.15.6",
"@types/jest": "^28.1.8",
"@types/node": "^18.6.1",
"jest": "^29.0.1",
"protobufjs": "^7.1.0",
"rimraf": "^3.0.2",

@@ -44,3 +35,3 @@ "typescript": "^4.7.4"

"@fonoster/logger": "^0.3.20",
"@grpc/grpc-js": "^1.8.4",
"@grpc/grpc-js": "^1.8.4 || ^1.9.12",
"@grpc/proto-loader": "^0.7.2"

@@ -47,0 +38,0 @@ },

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