graphql-function-transformer
Advanced tools
Comparing version 3.3.66-iam-auth-with-identityPool-provider-1.0 to 3.3.66
@@ -6,3 +6,3 @@ # Change Log | ||
## [3.3.66-iam-auth-with-identityPool-provider-1.0](https://github.com/aws-amplify/amplify-category-api/compare/graphql-function-transformer@3.3.65...graphql-function-transformer@3.3.66-iam-auth-with-identityPool-provider-1.0) (2024-03-15) | ||
## [3.3.66](https://github.com/aws-amplify/amplify-category-api/compare/graphql-function-transformer@3.3.65...graphql-function-transformer@3.3.66) (2024-03-28) | ||
@@ -9,0 +9,0 @@ **Note:** Version bump only for package graphql-function-transformer |
@@ -5,4 +5,6 @@ "use strict"; | ||
const graphql_transformer_core_1 = require("graphql-transformer-core"); | ||
const graphql_directives_1 = require("@aws-amplify/graphql-directives"); | ||
const graphql_mapping_template_1 = require("graphql-mapping-template"); | ||
const graphql_transformer_common_1 = require("graphql-transformer-common"); | ||
const graphql_1 = require("graphql"); | ||
const cloudform_types_1 = require("cloudform-types"); | ||
@@ -13,9 +15,7 @@ const lambdaArns_1 = require("./lambdaArns"); | ||
constructor() { | ||
super('FunctionTransformer', (0, graphql_transformer_core_1.gql) ` | ||
directive @function(name: String!, region: String) repeatable on FIELD_DEFINITION | ||
`); | ||
super('FunctionTransformer', (0, graphql_1.parse)(graphql_directives_1.FunctionDirectiveV1.definition)); | ||
this.field = (parent, definition, directive, ctx) => { | ||
const { name, region } = (0, graphql_transformer_core_1.getDirectiveArguments)(directive); | ||
if (!name) { | ||
throw new graphql_transformer_core_1.TransformerContractError(`Must supply a 'name' to @function.`); | ||
throw new graphql_transformer_core_1.TransformerContractError(`Must supply a 'name' to @${graphql_directives_1.FunctionDirectiveV1.name}.`); | ||
} | ||
@@ -22,0 +22,0 @@ const iamRoleKey = graphql_transformer_common_1.FunctionResourceIDs.FunctionIAMRoleID(name, region); |
{ | ||
"name": "graphql-function-transformer", | ||
"version": "3.3.66-iam-auth-with-identityPool-provider-1.0", | ||
"version": "3.3.66", | ||
"description": "Implements the @function directive.", | ||
@@ -29,5 +29,5 @@ "repository": { | ||
"graphql": "^15.5.0", | ||
"graphql-mapping-template": "4.20.16-iam-auth-with-identityPool-provider-1.0", | ||
"graphql-transformer-common": "4.28.2-iam-auth-with-identityPool-provider-1.0", | ||
"graphql-transformer-core": "8.2.8-iam-auth-with-identityPool-provider-1.0" | ||
"graphql-mapping-template": "4.20.15", | ||
"graphql-transformer-common": "4.29.0", | ||
"graphql-transformer-core": "8.2.8" | ||
}, | ||
@@ -68,3 +68,3 @@ "jest": { | ||
}, | ||
"gitHead": "dafa4bb5ea5cec5dc90b722bf138064897f4f24a" | ||
"gitHead": "ac8990dd06d7b6a29c079e84a7c1e23ec5708fc1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
76948
+ Addedgraphql-mapping-template@4.20.15(transitive)
+ Addedgraphql-transformer-common@4.29.0(transitive)
+ Addedgraphql-transformer-core@8.2.8(transitive)
- Removedgraphql-mapping-template@4.20.16-iam-auth-with-identityPool-provider-1.0(transitive)
- Removedgraphql-transformer-common@4.28.2-iam-auth-with-identityPool-provider-1.0(transitive)
- Removedgraphql-transformer-core@8.2.8-iam-auth-with-identityPool-provider-1.0(transitive)