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

@aws-amplify/graphql-http-transformer

Package Overview
Dependencies
Maintainers
10
Versions
410
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/graphql-http-transformer - npm Package Compare versions

Comparing version 1.2.12-rds.0 to 2.1.0

6

CHANGELOG.md

@@ -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

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