graphql-transformer-core
Advanced tools
Comparing version 1.1.0-alpha.6b607efb to 1.1.0-alpha.6f17ecd4
@@ -6,2 +6,51 @@ # Change Log | ||
<a name="1.0.31"></a> | ||
## [1.0.31](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@1.0.12...graphql-transformer-core@1.0.31) (2018-11-02) | ||
### Bug Fixes | ||
* **graphql-transformer-core:** Fix Readme.md docs for the `[@auth](https://github.com/auth)` directive ([db6ff7a](https://github.com/aws-amplify/amplify-cli/commit/db6ff7a)) | ||
<a name="1.0.30"></a> | ||
## [1.0.30](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@1.0.30-beta.0...graphql-transformer-core@1.0.30) (2018-11-02) | ||
**Note:** Version bump only for package graphql-transformer-core | ||
<a name="1.0.30-beta.0"></a> | ||
## [1.0.30-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@1.0.12...graphql-transformer-core@1.0.30-beta.0) (2018-11-02) | ||
### Bug Fixes | ||
* **graphql-transformer-core:** Fix Readme.md docs for the `[@auth](https://github.com/auth)` directive ([db6ff7a](https://github.com/aws-amplify/amplify-cli/commit/db6ff7a)) | ||
<a name="1.0.29"></a> | ||
## [1.0.29](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@1.0.29-beta.0...graphql-transformer-core@1.0.29) (2018-10-23) | ||
**Note:** Version bump only for package graphql-transformer-core | ||
<a name="1.0.29-beta.0"></a> | ||
## [1.0.29-beta.0](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@1.0.12...graphql-transformer-core@1.0.29-beta.0) (2018-10-23) | ||
### Bug Fixes | ||
* **graphql-transformer-core:** Fix Readme.md docs for the `[@auth](https://github.com/auth)` directive ([db6ff7a](https://github.com/aws-amplify/amplify-cli/commit/db6ff7a)) | ||
<a name="1.0.28"></a> | ||
@@ -8,0 +57,0 @@ ## [1.0.28](https://github.com/aws-amplify/amplify-cli/compare/graphql-transformer-core@1.0.28-beta.0...graphql-transformer-core@1.0.28) (2018-10-18) |
@@ -175,3 +175,3 @@ "use strict"; | ||
return (__assign({}, acc, (_a = {}, _a[t.directive.name.value] = true, _a))); | ||
}, { aws_subscribe: true }); | ||
}, { aws_subscribe: true, aws_auth: true }); | ||
var allModelDefinitions = context.inputDocument.definitions.slice(); | ||
@@ -178,0 +178,0 @@ for (var _i = 0, _a = this.transformers; _i < _a.length; _i++) { |
@@ -66,3 +66,3 @@ "use strict"; | ||
var EXTRA_SCALARS_DOCUMENT = language_1.parse("\nscalar AWSDate\nscalar AWSTime\nscalar AWSDateTime\nscalar AWSTimestamp\nscalar AWSEmail\nscalar AWSJSON\nscalar AWSURL\nscalar AWSPhone\nscalar AWSIPAddress\nscalar BigInt\nscalar Double\n"); | ||
var EXTRA_DIRECTIVES_DOCUMENT = language_1.parse("\ndirective @aws_subscribe(mutations: [String!]!) on FIELD_DEFINITION\n"); | ||
var EXTRA_DIRECTIVES_DOCUMENT = language_1.parse("\ndirective @aws_subscribe(mutations: [String!]!) on FIELD_DEFINITION\ndirective @aws_auth(cognito_groups: [String!]!) on FIELD_DEFINITION\n"); | ||
function astBuilder(doc) { | ||
@@ -69,0 +69,0 @@ var nodeMap = doc.definitions |
{ | ||
"name": "graphql-transformer-core", | ||
"version": "1.1.0-alpha.6b607efb", | ||
"version": "1.1.0-alpha.6f17ecd4", | ||
"description": "A framework to transform from GraphQL SDL to AWS CloudFormation.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -191,3 +191,3 @@ import Template from 'cloudform/types/template' | ||
(acc: any, t: Transformer) => ({ ...acc, [t.directive.name.value]: true }), | ||
{ aws_subscribe: true } | ||
{ aws_subscribe: true, aws_auth: true } | ||
) | ||
@@ -263,3 +263,3 @@ let allModelDefinitions = [...context.inputDocument.definitions] | ||
def: ObjectTypeDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -294,3 +294,3 @@ ) { | ||
def: FieldDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -326,3 +326,3 @@ ) { | ||
arg: InputValueDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -353,3 +353,3 @@ ) { | ||
def: InterfaceTypeDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext) { | ||
@@ -382,3 +382,3 @@ for (const dir of def.directives) { | ||
def: ScalarTypeDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -409,3 +409,3 @@ ) { | ||
def: UnionTypeDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -436,3 +436,3 @@ ) { | ||
def: EnumTypeDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -467,3 +467,3 @@ ) { | ||
def: EnumValueDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -494,3 +494,3 @@ ) { | ||
def: InputObjectTypeDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -525,3 +525,3 @@ ) { | ||
def: InputValueDefinitionNode, | ||
validDirectiveNameMap: { [k: string]: boolean}, | ||
validDirectiveNameMap: { [k: string]: boolean }, | ||
context: TransformerContext | ||
@@ -528,0 +528,0 @@ ) { |
@@ -92,2 +92,3 @@ import { GraphQLScalarType } from 'graphql' | ||
directive @aws_subscribe(mutations: [String!]!) on FIELD_DEFINITION | ||
directive @aws_auth(cognito_groups: [String!]!) on FIELD_DEFINITION | ||
`) | ||
@@ -94,0 +95,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
215973
46419
3542