graphql-transformer-core
Advanced tools
Comparing version 8.2.0-rds-1.0 to 8.2.0-rds-2.0
@@ -8,7 +8,7 @@ if (typeof Object.assign !== 'function') { | ||
} | ||
var output = Object(target); | ||
for (var index = 1; index < arguments.length; index++) { | ||
var source = arguments[index]; | ||
let output = Object(target); | ||
for (let index = 1; index < arguments.length; index++) { | ||
let source = arguments[index]; | ||
if (source !== undefined && source !== null) { | ||
for (var nextKey in source) { | ||
for (let nextKey in source) { | ||
if (source.hasOwnProperty(nextKey)) { | ||
@@ -15,0 +15,0 @@ output[nextKey] = source[nextKey]; |
@@ -86,3 +86,3 @@ "use strict"; | ||
case graphql_1.Kind.ENUM_TYPE_DEFINITION: | ||
case graphql_1.Kind.UNION_TYPE_DEFINITION: | ||
case graphql_1.Kind.UNION_TYPE_DEFINITION: { | ||
const typeDef = inputDef; | ||
@@ -93,2 +93,3 @@ if (!this.getType(typeDef.name.value)) { | ||
break; | ||
} | ||
case graphql_1.Kind.SCHEMA_DEFINITION: | ||
@@ -95,0 +96,0 @@ if (!this.getSchema()) { |
@@ -10,3 +10,2 @@ "use strict"; | ||
const graphql_1 = require("graphql"); | ||
const graphql_transformer_common_2 = require("graphql-transformer-common"); | ||
const stripDirectives_1 = require("./stripDirectives"); | ||
@@ -22,5 +21,5 @@ const SchemaResourceUtil_1 = require("./util/SchemaResourceUtil"); | ||
const resolversFunctionsAndSchema = this.collectResolversFunctionsAndSchema(ctx); | ||
const defaultDependencies = [graphql_transformer_common_2.ResourceConstants.RESOURCES.GraphQLSchemaLogicalID]; | ||
if (ctx.getResource(graphql_transformer_common_2.ResourceConstants.RESOURCES.NoneDataSource)) { | ||
defaultDependencies.push(graphql_transformer_common_2.ResourceConstants.RESOURCES.NoneDataSource); | ||
const defaultDependencies = [graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLSchemaLogicalID]; | ||
if (ctx.getResource(graphql_transformer_common_1.ResourceConstants.RESOURCES.NoneDataSource)) { | ||
defaultDependencies.push(graphql_transformer_common_1.ResourceConstants.RESOURCES.NoneDataSource); | ||
} | ||
@@ -31,6 +30,6 @@ const nestedStacks = (0, splitStack_1.default)({ | ||
defaultParameterValues: { | ||
[graphql_transformer_common_2.ResourceConstants.PARAMETERS.AppSyncApiId]: cloudform_types_1.Fn.GetAtt(graphql_transformer_common_2.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId'), | ||
[graphql_transformer_common_1.ResourceConstants.PARAMETERS.AppSyncApiId]: cloudform_types_1.Fn.GetAtt(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLAPILogicalID, 'ApiId'), | ||
}, | ||
defaultParameterDefinitions: { | ||
[graphql_transformer_common_2.ResourceConstants.PARAMETERS.AppSyncApiId]: new cloudform_types_1.StringParameter({ | ||
[graphql_transformer_common_1.ResourceConstants.PARAMETERS.AppSyncApiId]: new cloudform_types_1.StringParameter({ | ||
Description: `The id of the AppSync API associated with this project.`, | ||
@@ -40,6 +39,6 @@ }), | ||
deployment: { | ||
deploymentBucketParameterName: graphql_transformer_common_2.ResourceConstants.PARAMETERS.S3DeploymentBucket, | ||
deploymentKeyParameterName: graphql_transformer_common_2.ResourceConstants.PARAMETERS.S3DeploymentRootKey, | ||
deploymentBucketParameterName: graphql_transformer_common_1.ResourceConstants.PARAMETERS.S3DeploymentBucket, | ||
deploymentKeyParameterName: graphql_transformer_common_1.ResourceConstants.PARAMETERS.S3DeploymentRootKey, | ||
}, | ||
importExportPrefix: cloudform_types_1.Fn.Ref(graphql_transformer_common_2.ResourceConstants.PARAMETERS.AppSyncApiId), | ||
importExportPrefix: cloudform_types_1.Fn.Ref(graphql_transformer_common_1.ResourceConstants.PARAMETERS.AppSyncApiId), | ||
defaultDependencies, | ||
@@ -93,3 +92,3 @@ }); | ||
const schemaResource = this.schemaResourceUtil.makeAppSyncSchema(); | ||
ctx.setResource(graphql_transformer_common_2.ResourceConstants.RESOURCES.GraphQLSchemaLogicalID, schemaResource); | ||
ctx.setResource(graphql_transformer_common_1.ResourceConstants.RESOURCES.GraphQLSchemaLogicalID, schemaResource); | ||
return SDL; | ||
@@ -96,0 +95,0 @@ } |
@@ -245,3 +245,3 @@ "use strict"; | ||
const { directory, upload } = opts; | ||
var fileNames = glob_1.default.sync('**/*', { | ||
let fileNames = glob_1.default.sync('**/*', { | ||
cwd: directory, | ||
@@ -415,3 +415,3 @@ nodir: true, | ||
} | ||
case 'AWS::AppSync::GraphQLSchema': | ||
case 'AWS::AppSync::GraphQLSchema': { | ||
const alteredResource = { ...resource }; | ||
@@ -433,2 +433,3 @@ alteredResource.Properties.DefinitionS3Location = { | ||
break; | ||
} | ||
default: | ||
@@ -435,0 +436,0 @@ break; |
{ | ||
"name": "graphql-transformer-core", | ||
"version": "8.2.0-rds-1.0", | ||
"version": "8.2.0-rds-2.0", | ||
"description": "A framework to transform from GraphQL SDL to AWS cloudFormation.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"graphql": "^15.5.0", | ||
"graphql-transformer-common": "4.26.0-rds-1.0", | ||
"graphql-transformer-common": "4.26.0-rds-2.0", | ||
"lodash": "^4.17.21" | ||
@@ -64,3 +64,3 @@ }, | ||
}, | ||
"gitHead": "223cc16f30e64ab18ac1eda6a31c68db7606c8b8" | ||
"gitHead": "b0257bd87b199069cb66625d6554377dc65c4c8a" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
488320
4357
+ Addedgraphql-mapping-template@4.20.13-rds-2.0(transitive)
+ Addedgraphql-transformer-common@4.26.0-rds-2.0(transitive)
- Removedgraphql-mapping-template@4.20.11(transitive)
- Removedgraphql-transformer-common@4.26.0-rds-1.0(transitive)