@aws-amplify/graphql-http-transformer
Advanced tools
Comparing version 1.2.12-rds.0 to 2.1.0
@@ -6,6 +6,8 @@ # Change Log | ||
## [1.2.12-rds.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@1.2.11...@aws-amplify/graphql-http-transformer@1.2.12-rds.0) (2023-08-07) | ||
# [2.1.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@1.2.11...@aws-amplify/graphql-http-transformer@2.1.0) (2023-08-09) | ||
**Note:** Version bump only for package @aws-amplify/graphql-http-transformer | ||
### Features | ||
- bump major version of transformer packages ([2458c84](https://github.com/aws-amplify/amplify-category-api/commit/2458c8426da5772aa669d37e11f99ee9c6c5ac2e)) | ||
## [1.2.11](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-http-transformer@1.2.10...@aws-amplify/graphql-http-transformer@1.2.11) (2023-07-21) | ||
@@ -12,0 +14,0 @@ |
@@ -128,3 +128,3 @@ "use strict"; | ||
const stack = context.stackManager.createStack(HTTP_DIRECTIVE_STACK); | ||
const env = context.stackManager.getParameter(graphql_transformer_common_1.ResourceConstants.PARAMETERS.Env); | ||
const env = context.synthParameters.amplifyEnvironmentName; | ||
const region = stack.region; | ||
@@ -145,3 +145,3 @@ stack.templateOptions.templateFormatVersion = '2010-09-09'; | ||
function createResolver(stack, dataSourceId, context, config) { | ||
const env = context.stackManager.getParameter(graphql_transformer_common_1.ResourceConstants.PARAMETERS.Env); | ||
const env = context.synthParameters.amplifyEnvironmentName; | ||
const region = stack.region; | ||
@@ -185,5 +185,6 @@ const { method, supportsBody } = config; | ||
if (authModes.includes(aws_appsync_1.AuthorizationType.IAM)) { | ||
const authRoleParameter = context.stackManager.getParameter(graphql_transformer_core_1.IAM_AUTH_ROLE_PARAMETER).valueAsString; | ||
const unauthRoleParameter = context.stackManager.getParameter(graphql_transformer_core_1.IAM_UNAUTH_ROLE_PARAMETER).valueAsString; | ||
requestTemplate.push((0, graphql_mapping_template_1.qref)(`$ctx.stash.put("authRole", "arn:aws:sts::${cdk.Stack.of(context.stackManager.rootStack).account}:assumed-role/${authRoleParameter}/CognitoIdentityCredentials")`), (0, graphql_mapping_template_1.qref)(`$ctx.stash.put("unauthRole", "arn:aws:sts::${cdk.Stack.of(context.stackManager.rootStack).account}:assumed-role/${unauthRoleParameter}/CognitoIdentityCredentials")`)); | ||
const authRole = context.synthParameters.authenticatedUserRoleName; | ||
const unauthRole = context.synthParameters.unauthenticatedUserRoleName; | ||
const account = cdk.Stack.of(context.stackManager.scope).account; | ||
requestTemplate.push((0, graphql_mapping_template_1.qref)(`$ctx.stash.put("authRole", "arn:aws:sts::${account}:assumed-role/${authRole}/CognitoIdentityCredentials")`), (0, graphql_mapping_template_1.qref)(`$ctx.stash.put("unauthRole", "arn:aws:sts::${account}:assumed-role/${unauthRole}/CognitoIdentityCredentials")`)); | ||
} | ||
@@ -190,0 +191,0 @@ requestTemplate.push((0, graphql_mapping_template_1.obj)({})); |
{ | ||
"name": "@aws-amplify/graphql-http-transformer", | ||
"version": "1.2.12-rds.0", | ||
"version": "2.1.0", | ||
"description": "Amplify GraphQL @http transformer", | ||
@@ -31,8 +31,11 @@ "repository": { | ||
"dependencies": { | ||
"@aws-amplify/graphql-transformer-core": "1.5.0-rds.0", | ||
"@aws-amplify/graphql-transformer-interfaces": "2.3.0", | ||
"@aws-amplify/graphql-transformer-core": "2.1.0", | ||
"@aws-amplify/graphql-transformer-interfaces": "3.1.0", | ||
"graphql": "^15.5.0", | ||
"graphql-mapping-template": "4.20.11", | ||
"graphql-transformer-common": "4.26.0-rds.0" | ||
"graphql-transformer-common": "4.25.0" | ||
}, | ||
"devDependencies": { | ||
"@aws-amplify/graphql-transformer-test-utils": "0.2.0" | ||
}, | ||
"peerDependencies": { | ||
@@ -67,3 +70,3 @@ "aws-cdk-lib": "^2.80.0", | ||
}, | ||
"gitHead": "ce50129f66540242a333df9b4ca76fb90cfc00ef" | ||
"gitHead": "de6751fd91228eecae518326515833f72509afa0" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
267
1
70355
1
+ Added@aws-amplify/graphql-transformer-core@2.1.0(transitive)
+ Added@aws-amplify/graphql-transformer-interfaces@3.1.0(transitive)
+ Addedgraphql-transformer-common@4.25.0(transitive)
- Removed@aws-amplify/graphql-transformer-core@1.5.0-rds.0(transitive)
- Removed@aws-amplify/graphql-transformer-interfaces@2.3.0(transitive)
- Removedgraphql-transformer-common@4.26.0-rds.0(transitive)