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

result-tsk

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

result-tsk - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

6

CHANGELOG.md

@@ -88,1 +88,7 @@ # Changelog

- Feature to add metadata to result response was added
## [2.1.1] — 2022-02-10
### Updated
- Fix function name

2

lib/generic/Result.d.ts

@@ -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 @@

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