Socket
Socket
Sign inDemoInstall

@grpc/grpc-js

Package Overview
Dependencies
Maintainers
3
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grpc/grpc-js - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

2

build/src/call-stream.js

@@ -433,3 +433,3 @@ "use strict";

else {
if (this.internalError.errno === os.constants.errno.ECONNRESET) {
if (this.internalError.code === 'ECONNRESET') {
code = constants_1.Status.UNAVAILABLE;

@@ -436,0 +436,0 @@ details = this.internalError.message;

@@ -29,2 +29,5 @@ "use strict";

const CALL_INVOCATION_TRANSFORMER_SYMBOL = Symbol();
function isFunction(arg) {
return Object.prototype.toString.call(arg) === '[object Function]';
}
/**

@@ -97,6 +100,6 @@ * A generic gRPC client. Primarily useful as a base class for all generated

checkOptionalUnaryResponseArguments(arg1, arg2, arg3) {
if (arg1 instanceof Function) {
if (isFunction(arg1)) {
return { metadata: new metadata_1.Metadata(), options: {}, callback: arg1 };
}
else if (arg2 instanceof Function) {
else if (isFunction(arg2)) {
if (arg1 instanceof metadata_1.Metadata) {

@@ -112,3 +115,3 @@ return { metadata: arg1, options: {}, callback: arg2 };

arg2 instanceof Object &&
arg3 instanceof Function)) {
isFunction(arg3))) {
throw new Error('Incorrect arguments passed');

@@ -115,0 +118,0 @@ }

@@ -25,3 +25,3 @@ "use strict";

const verbosityString = (_b = (_a = process.env.GRPC_NODE_VERBOSITY) !== null && _a !== void 0 ? _a : process.env.GRPC_VERBOSITY) !== null && _b !== void 0 ? _b : '';
switch (verbosityString) {
switch (verbosityString.toUpperCase()) {
case 'DEBUG':

@@ -28,0 +28,0 @@ _logVerbosity = constants_1.LogVerbosity.DEBUG;

@@ -446,3 +446,2 @@ "use strict";

channel_1.ConnectivityState.CONNECTING,
channel_1.ConnectivityState.IDLE,
channel_1.ConnectivityState.READY,

@@ -449,0 +448,0 @@ ], channel_1.ConnectivityState.TRANSIENT_FAILURE);

{
"name": "@grpc/grpc-js",
"version": "1.3.0",
"version": "1.3.1",
"description": "gRPC Library for Node - pure JS implementation",

@@ -5,0 +5,0 @@ "homepage": "https://grpc.io/",

@@ -592,3 +592,3 @@ /*

} else {
if (this.internalError.errno === os.constants.errno.ECONNRESET) {
if (this.internalError.code === 'ECONNRESET') {
code = Status.UNAVAILABLE;

@@ -595,0 +595,0 @@ details = this.internalError.message;

@@ -58,2 +58,6 @@ /*

function isFunction<ResponseType>(arg: Metadata | CallOptions | UnaryCallback<ResponseType> | undefined): arg is UnaryCallback<ResponseType>{
return Object.prototype.toString.call(arg) === '[object Function]'
}
export interface UnaryCallback<ResponseType> {

@@ -202,5 +206,5 @@ (err: ServiceError | null, value?: ResponseType): void;

} {
if (arg1 instanceof Function) {
if (isFunction(arg1)) {
return { metadata: new Metadata(), options: {}, callback: arg1 };
} else if (arg2 instanceof Function) {
} else if (isFunction(arg2)) {
if (arg1 instanceof Metadata) {

@@ -216,3 +220,3 @@ return { metadata: arg1, options: {}, callback: arg2 };

arg2 instanceof Object &&
arg3 instanceof Function
isFunction(arg3)
)

@@ -677,1 +681,2 @@ ) {

}

@@ -25,3 +25,3 @@ /*

switch (verbosityString) {
switch (verbosityString.toUpperCase()) {
case 'DEBUG':

@@ -28,0 +28,0 @@ _logVerbosity = LogVerbosity.DEBUG;

@@ -601,3 +601,2 @@ /*

ConnectivityState.CONNECTING,
ConnectivityState.IDLE,
ConnectivityState.READY,

@@ -604,0 +603,0 @@ ],

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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