Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@master4n/decorators

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master4n/decorators - npm Package Compare versions

Comparing version
1.1.2
to
1.1.3
+1
-1
package.json
{
"name": "@master4n/decorators",
"version": "1.1.2",
"version": "1.1.3",
"description": "Common Decorators Library",

@@ -5,0 +5,0 @@ "main": "./commonjs/index.cjs",

+13
-14
# @master4n/decorators
![Owner Badge](https://img.shields.io/badge/Owner-Master4Novice-orange?style=flat)
![Package Version](https://img.shields.io/github/package-json/v/Master4Novice/common?filename=packages%2Fdecorators%2Fpackage.json&color=green)
![Package License](https://img.shields.io/npm/l/%40master4n%2Fdecorators)

@@ -21,3 +20,3 @@ ![Package Downloads](https://img.shields.io/npm/dm/%40master4n%2Fdecorators)

```js
const { Value } = require('@master4n/decorators')
const { Value } = require("@master4n/decorators");
```

@@ -28,3 +27,3 @@

```ts
import { Value } from '@master4n/decorators'
import { Value } from "@master4n/decorators";
```

@@ -34,4 +33,4 @@

class Token {
@Value('fix.token')
fixToken: string
@Value("fix.token")
fixToken: string;
}

@@ -45,4 +44,4 @@ ```

```json
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
```

@@ -52,9 +51,9 @@

|Decorator|Type|Description|
|---|---|---|
|Value|Class Property|Read the value from yaml file and assigned it to class property|
|GenerateID|Class Property|Assigne unique UUID value to class property|
|NotNull|Method Parameter|Check if parameter is not null and undefined|
|Counter|Static Property Parameter|Create static counter|
|Log|Method Parameter|Log in and out of method|
| Decorator | Type | Description |
| ---------- | ------------------------- | --------------------------------------------------------------- |
| Value | Class Property | Read the value from yaml file and assigned it to class property |
| GenerateID | Class Property | Assigne unique UUID value to class property |
| NotNull | Method Parameter | Check if parameter is not null and undefined |
| Counter | Static Property Parameter | Create static counter |
| Log | Method Parameter | Log in and out of method |

@@ -61,0 +60,0 @@ ## Credits