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

graphql-transformer-core

Package Overview
Dependencies
Maintainers
2
Versions
988
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-transformer-core - npm Package Compare versions

Comparing version 1.1.0-alpha.31da634f to 1.1.0-alpha.4c4e306e

2

lib/GraphQLTransform.js

@@ -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.31da634f",
"version": "1.1.0-alpha.4c4e306e",
"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

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