apollo-codegen-typescript
Advanced tools
Comparing version 0.21.0 to 0.22.0
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
107186
1938
+ Addedapollo-codegen-core@0.22.0(transitive)
- Removedapollo-codegen-core@0.21.0(transitive)
Updatedapollo-codegen-core@^0.22.0