Socket
Socket
Sign inDemoInstall

@nestjs/schematics

Package Overview
Dependencies
Maintainers
3
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/schematics - npm Package Compare versions

Comparing version 7.1.0 to 7.1.1

7

dist/lib/resource/files/ts/dto/create-__name@singular__.input.ts

@@ -1,4 +0,7 @@

<% if (type === 'graphql-code-first') { %>import { InputType } from '@nestjs/graphql';
<% if (type === 'graphql-code-first') { %>import { InputType, Int, Field } from '@nestjs/graphql';
@InputType()
export class Create<%= singular(classify(name)) %>Input {}<% } else { %>export class Create<%= singular(classify(name)) %>Input {}<% } %>
export class Create<%= singular(classify(name)) %>Input {
@Field(() => Int, { description: 'Example field (placeholder)' })
exampleField: number;
}<% } else { %>export class Create<%= singular(classify(name)) %>Input {}<% } %>

@@ -1,4 +0,7 @@

<% if (type === 'graphql-code-first') { %>import { ObjectType } from '@nestjs/graphql';
<% if (type === 'graphql-code-first') { %>import { ObjectType, Field, Int } from '@nestjs/graphql';
@ObjectType()
export class <%= singular(classify(name)) %> {}<% } else { %>export class <%= singular(classify(name)) %> {}<% } %>
export class <%= singular(classify(name)) %> {
@Field(() => Int, { description: 'Example field (placeholder)' })
exampleField: number;
}<% } else { %>export class <%= singular(classify(name)) %> {}<% } %>
{
"name": "@nestjs/schematics",
"version": "7.1.0",
"version": "7.1.1",
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)",

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

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