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

@silenteer/natsu

Package Overview
Dependencies
Maintainers
2
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@silenteer/natsu - npm Package Compare versions

Comparing version 1.0.19 to 1.0.20

4

dist/nats-client.js

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

const handleInjection = Object.assign(Object.assign({}, injection), { ok: (params) => {
const { headers, body } = params;
const { headers, body } = params || {};
return {

@@ -229,3 +229,3 @@ code: 'OK',

}, error: (params) => {
const { code = 500, errors } = params;
const { code = 500, errors } = params || {};
return {

@@ -232,0 +232,0 @@ code,

@@ -77,3 +77,3 @@ import type { Msg, NatsConnection, PublishOptions, RequestOptions } from 'nats';

ok: () => NatsValidationResult;
error: (params: {
error: (params?: {
code?: number;

@@ -85,3 +85,3 @@ errors: unknown;

ok: () => NatsAuthorizationResult;
error: (params: {
error: (params?: {
code?: number;

@@ -92,4 +92,4 @@ errors: unknown;

declare type NatsHandleInjection<TService extends NatsService<string, unknown, unknown>, TInjection extends Record<string, unknown> = Record<string, unknown>> = NatsInjection<TService, TInjection> & {
ok: (params: Pick<NatsHandleResult<TService>, 'headers' | 'body'>) => NatsHandleResult<TService>;
error: (params: {
ok: (params?: Pick<NatsHandleResult<TService>, 'headers' | 'body'>) => NatsHandleResult<TService>;
error: (params?: {
code?: number;

@@ -96,0 +96,0 @@ errors: unknown;

{
"name": "@silenteer/natsu",
"version": "1.0.19",
"version": "1.0.20",
"license": "MIT",

@@ -5,0 +5,0 @@ "private": false,

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