Socket
Socket
Sign inDemoInstall

apollo-codegen-typescript

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-codegen-typescript - npm Package Compare versions

Comparing version 0.21.0 to 0.22.0

15

lib/language.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const printing_1 = require("apollo-codegen-core/lib/utilities/printing");
const graphql_1 = require("apollo-codegen-core/lib/utilities/graphql");

@@ -19,4 +20,4 @@ const helpers_1 = require("./helpers");

typeAlias.leadingComments = [{
type: 'CommentLine',
value: ` ${description.replace(new RegExp('\n', 'g'), ' ')}`
type: 'CommentBlock',
value: printing_1.commentBlockContent(description)
}];

@@ -41,4 +42,4 @@ }

inputType.leadingComments = [{
type: 'CommentLine',
value: ` ${description}`
type: 'CommentBlock',
value: printing_1.commentBlockContent(description || "")
}];

@@ -52,5 +53,5 @@ return inputType;

if (description) {
propertySignatureType.trailingComments = [{
type: 'CommentLine',
value: ` ${description.replace(new RegExp('\n', 'g'), ' ')}`
propertySignatureType.leadingComments = [{
type: 'CommentBlock',
value: printing_1.commentBlockContent(description)
}];

@@ -57,0 +58,0 @@ }

{
"name": "apollo-codegen-typescript",
"description": "TypeScript generator module for Apollo Codegen",
"version": "0.21.0",
"version": "0.22.0",
"main": "./lib/index.js",

@@ -15,3 +15,3 @@ "scripts": {

"type": "git",
"url": "apollographql/apollo-codegen"
"url": "apollographql/apollo-cli"
},

@@ -35,3 +35,3 @@ "author": "Martijn Walraven <martijn@martijnwalraven.com>",

"dependencies": {
"apollo-codegen-core": "^0.21.0",
"apollo-codegen-core": "^0.22.0",
"change-case": "^3.0.1",

@@ -38,0 +38,0 @@ "inflected": "^2.0.3"

@@ -10,2 +10,3 @@ import {

import { commentBlockContent } from 'apollo-codegen-core/lib/utilities/printing';

@@ -59,5 +60,5 @@ import {

typeAlias.leadingComments = [{
type: 'CommentLine',
value: ` ${description.replace(new RegExp('\n', 'g'), ' ')}`
} as t.CommentLine];
type: 'CommentBlock',
value: commentBlockContent(description)
} as t.CommentBlock];
}

@@ -86,5 +87,5 @@

inputType.leadingComments = [{
type: 'CommentLine',
value: ` ${description}`
} as t.CommentLine]
type: 'CommentBlock',
value: commentBlockContent(description || "")
} as t.CommentBlock]

@@ -110,6 +111,6 @@ return inputType;

if (description) {
propertySignatureType.trailingComments = [{
type: 'CommentLine',
value: ` ${description.replace(new RegExp('\n', 'g'), ' ')}`
} as t.CommentLine]
propertySignatureType.leadingComments = [{
type: 'CommentBlock',
value: commentBlockContent(description)
} as t.CommentBlock]
}

@@ -116,0 +117,0 @@

Sorry, the diff of this file is not supported yet

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