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

nice-grpc

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nice-grpc - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

4

lib/utils/KnownKeys.d.ts

@@ -7,5 +7,5 @@ /**

export declare type KnownKeys<T> = {
[K in keyof T]: string extends K ? never : number extends K ? never : K;
[K in keyof T]: string extends K ? never : K;
} extends {
[_ in keyof T]: infer U;
} ? U : never;
} ? U & string : never;
{
"name": "nice-grpc",
"version": "0.1.2",
"version": "0.1.3",
"description": "A gRPC library that is nice to you",

@@ -43,3 +43,3 @@ "keywords": [

"ts-jest": "^26.4.1",
"typescript": "^4.0.3"
"typescript": "~4.2.0"
},

@@ -46,0 +46,0 @@ "dependencies": {

@@ -160,2 +160,5 @@ # nice-grpc [![npm version][npm-image]][npm-url]

See [gRPC docs](https://grpc.github.io/grpc/core/md_doc_statuscodes.html) for
the correct usage of status codes.
```ts

@@ -480,3 +483,3 @@ import {status} from '@grpc/grpc-js';

if (authorization == null) {
throw new ServiceError(
throw new ServerError(
grpc.status.UNAUTHENTICATED,

@@ -490,3 +493,3 @@ 'Missing Authorization metadata',

if (parts.length !== 2 || parts[0] !== 'Bearer') {
throw new ServiceError(
throw new ServerError(
grpc.status.UNAUTHENTICATED,

@@ -501,3 +504,3 @@ 'Invalid Authorization metadata format. Expected "Bearer <token>"',

if (error instanceof JOSEError) {
throw new ServiceError(grpc.status.UNAUTHENTICATED, error.message);
throw new ServerError(grpc.status.UNAUTHENTICATED, error.message);
} else {

@@ -504,0 +507,0 @@ throw error;

@@ -7,3 +7,5 @@ /**

export type KnownKeys<T> = {
[K in keyof T]: string extends K ? never : number extends K ? never : K
} extends { [_ in keyof T]: infer U } ? U : never;
[K in keyof T]: string extends K ? never : K;
} extends {[_ in keyof T]: infer U}
? U & string
: never;

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