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

@nestia/core

Package Overview
Dependencies
Maintainers
1
Versions
439
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestia/core - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

5

lib/executable/internal/CoreSetupWizard.js

@@ -211,3 +211,6 @@ "use strict";

});
if (!(typia === undefined)) return [3 /*break*/, 5];
if (typia === undefined)
plugins.push({
transform: "typia/lib/transform",
});
return [4 /*yield*/, fs_1.default.promises.writeFile("tsconfig.json", Comment.stringify(config, null, 2))];

@@ -214,0 +217,0 @@ case 4:

2

package.json
{
"name": "@nestia/core",
"version": "0.1.7",
"version": "0.1.8",
"description": "Super-fast validation decorators of NestJS",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -16,4 +16,5 @@ # Nestia Core

Furthremore, `@nestia/core` can use pure interface typed DTO with **only one line**. Therefore, it does not require any extra dedication like defining JSON schema (`@nestjs/swagger`) or using class definition with decorator function calls (`class-validator`). Just enjoy **super-easy** and **super-fast** through with pure TypeScript types.
Furthermore, `@nestia/core` can use pure interface typed DTO with **only one line**. Therefore, it does not require any extra dedication like defining JSON schema (`@nestjs/swagger`) or using class definition with decorator function calls (`class-validator`). Just enjoy **super-easy** and **super-fast** through with pure TypeScript types.
#### `BbsArticlesController.ts`
```typescript

@@ -44,2 +45,3 @@ import { Controller } from "@nestjs/common";

#### `IBbsArticle.ts`
```typescript

@@ -73,7 +75,6 @@ /**

#### `typia` vs. `class-validator`
![Benchmark](https://github.com/samchon/typia/raw/master/benchmark/results/11th%20Gen%20Intel(R)%20Core(TM)%20i5-1135G7%20%40%202.40GHz/images/is.svg)
> Measured on [Intel i5-1135g7, Surface Pro 8](https://github.com/samchon/typia/tree/master/benchmark/results/11th%20Gen%20Intel(R)%20Core(TM)%20i5-1135G7%20%40%202.40GHz#is)
>
> `@nestia/core` is providing super-easy and super-fast validator by wrapping [typia](https://github.com/samchon/typia)

@@ -241,13 +242,9 @@

/**
* `TypedRoute.Post()`: safe `JSON.stringify()` with type validation.
*
* Furthermore, its 10x times faster than native `JSON.stringify()` function.
* Store a new article.
*
* @param input content to store
* @returns new article
*/
@TypedRoute.Post()
public async store(
/**
* Super-fast request body validator through `TypedBody()`.
*
* It also requires only one line.
*/
@TypedBody() input: IBbsArticle.IStore

@@ -263,2 +260,8 @@ ): Promise<IBbsArticle>;

/**
* Store a new content.
*
* @param input content to store
* @returns new article
*/
export function store(

@@ -265,0 +268,0 @@ connection: api.IConnection,

@@ -131,6 +131,9 @@ import cp from "child_process";

if (typia === undefined)
await fs.promises.writeFile(
"tsconfig.json",
Comment.stringify(config, null, 2),
);
plugins.push({
transform: "typia/lib/transform",
} as any);
await fs.promises.writeFile(
"tsconfig.json",
Comment.stringify(config, null, 2),
);
}

@@ -137,0 +140,0 @@ if (temporary === true) remove(manager)("comment-json", false);

Sorry, the diff of this file is not supported yet

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