@silenteer/natsu-type
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1975
3