result-tsk
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -88,1 +88,7 @@ # Changelog | ||
- Feature to add metadata to result response was added | ||
## [2.1.1] — 2022-02-10 | ||
### Updated | ||
- Fix function name |
@@ -14,3 +14,3 @@ import { Metadata } from "../Result.interface"; | ||
getMetadata(): Metadata; | ||
hasMetaData(): boolean; | ||
hasMetadata(): boolean; | ||
setStatusCode(statusCode: number | string, success: boolean): void; | ||
@@ -17,0 +17,0 @@ setMessage(message: string, statusCode: number | string): void; |
@@ -32,3 +32,3 @@ "use strict"; | ||
} | ||
hasMetaData() { | ||
hasMetadata() { | ||
return !!__classPrivateFieldGet(this, _Result_metadata, "f") && Object.keys(__classPrivateFieldGet(this, _Result_metadata, "f")).length > 0; | ||
@@ -35,0 +35,0 @@ } |
@@ -12,3 +12,3 @@ import { Metadata, IResult } from "./Result.interface"; | ||
getMetadata(): Metadata; | ||
hasMetaData(): boolean; | ||
hasMetadata(): boolean; | ||
setStatusCode(statusCode: number | string, success: boolean): void; | ||
@@ -15,0 +15,0 @@ setMessage(message: string, statusCode: number | string): void; |
@@ -15,5 +15,5 @@ import { ResultDto } from "./ResultDto"; | ||
getMetadata(): Metadata; | ||
hasMetaData(): boolean; | ||
hasMetadata(): boolean; | ||
} | ||
export declare type IBaseResult = Omit<IResult, "toResultDto">; | ||
export { Metadata }; |
@@ -32,3 +32,3 @@ "use strict"; | ||
} | ||
hasMetaData() { | ||
hasMetadata() { | ||
return !!__classPrivateFieldGet(this, _Result_metadata, "f") && Object.keys(__classPrivateFieldGet(this, _Result_metadata, "f")).length > 0; | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "result-tsk", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "result tool for use with or without NodeTskeleton template project", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -128,3 +128,3 @@ # Result tool 🧰 | ||
// Verify if has metadata | ||
hasMetaData(): boolean; | ||
hasMetadata(): boolean; | ||
``` | ||
@@ -131,0 +131,0 @@ |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
18935
0