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

@silenteer/natsu-type

Package Overview
Dependencies
Maintainers
2
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@silenteer/natsu-type - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

24

dist/index.d.ts

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

export declare type NatsService<TSubject extends string, TRequest, TResponse> = {
export type NatsService<TSubject extends string, TRequest, TResponse> = {
subject: TSubject;

@@ -6,3 +6,3 @@ request: TRequest;

};
export declare type NatsChannel<TSubject extends string, TRequest, TResponse> = {
export type NatsChannel<TSubject extends string, TRequest, TResponse> = {
subject: TSubject;

@@ -12,3 +12,3 @@ request: TRequest;

};
export declare type NatsRequest<TBody = unknown> = {
export type NatsRequest<TBody = unknown> = {
headers: {

@@ -19,3 +19,3 @@ [key: string]: unknown;

};
export declare type NatsResponse = {
export type NatsResponse = {
headers: {

@@ -27,14 +27,14 @@ [key: string]: unknown;

};
export declare type NatsPortRequest<TBody = unknown> = {
export type NatsPortRequest<TBody = unknown> = {
data?: TBody;
};
export declare type NatsPortResponse<TBody = unknown> = {
export type NatsPortResponse<TBody = unknown> = {
code: 200;
body?: TBody;
};
export declare type NatsPortErrorResponse = {
code: 400 | 401 | 403 | 404 | 500;
export type NatsPortErrorResponse = {
code: 400 | 401 | 403 | 404 | 500 | 503;
body?: unknown;
};
export declare type NatsPortWSRequest<TSubject = string, TBody = unknown> = {
export type NatsPortWSRequest<TSubject = string, TBody = unknown> = {
subject: TSubject;

@@ -47,3 +47,3 @@ action: 'subscribe' | 'unsubscribe';

};
export declare type NatsPortWSResponse<TSubject = string, TBody = unknown> = {
export type NatsPortWSResponse<TSubject = string, TBody = unknown> = {
subject: TSubject;

@@ -53,6 +53,6 @@ code: 200;

};
export declare type NatsPortWSErrorResponse<TSubject = string> = {
export type NatsPortWSErrorResponse<TSubject = string> = {
subject: TSubject;
code: 400 | 401 | 403 | 404 | 500;
code: 400 | 401 | 403 | 404 | 500 | 503;
body?: unknown;
};
{
"name": "@silenteer/natsu-type",
"version": "0.0.12",
"version": "0.0.13",
"license": "MIT",

@@ -15,3 +15,4 @@ "private": false,

"scripts": {
"build": "rm -rf dist && tsc"
"build": "rm -rf dist && tsc",
"test": "echo \"no tests\""
},

@@ -22,4 +23,4 @@ "devDependencies": {

"tslib": "2.3.1",
"typescript": "4.4.3"
"typescript": "4.9.5"
}
}
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