New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-amplify/graphql-function-transformer

Package Overview
Dependencies
Maintainers
10
Versions
418
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 2.1.11 to 2.1.12

6

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [2.1.12](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.11...@aws-amplify/graphql-function-transformer@2.1.12) (2023-12-06)
### Bug Fixes
- add adminRoles to stash ([#2062](https://github.com/aws-amplify/amplify-category-api/issues/2062)) ([bb90353](https://github.com/aws-amplify/amplify-category-api/commit/bb90353a673b5c57c87f6d6083769ec7e1298036))
## [2.1.11](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-function-transformer@2.1.10...@aws-amplify/graphql-function-transformer@2.1.11) (2023-11-22)

@@ -8,0 +14,0 @@

@@ -69,2 +69,3 @@ "use strict";

resolverFns.forEach((config) => {
var _a;
const dataSourceId = graphql_transformer_common_1.FunctionResourceIDs.FunctionDataSourceID(config.name, config.region, config.accountId);

@@ -115,2 +116,8 @@ if (!createdResources.has(dataSourceId)) {

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")`));
const identityPoolId = context.synthParameters.identityPoolId;
if (identityPoolId) {
requestTemplate.push((0, graphql_mapping_template_1.qref)(`$ctx.stash.put("identityPoolId", "${identityPoolId}")`));
}
const adminRoles = (_a = context.synthParameters.adminRoles) !== null && _a !== void 0 ? _a : [];
requestTemplate.push((0, graphql_mapping_template_1.qref)(`$ctx.stash.put("adminRoles", ${JSON.stringify(adminRoles)})`));
}

@@ -117,0 +124,0 @@ requestTemplate.push((0, graphql_mapping_template_1.obj)({}));

18

package.json
{
"name": "@aws-amplify/graphql-function-transformer",
"version": "2.1.11",
"version": "2.1.12",
"description": "Amplify GraphQL @function transformer",

@@ -31,10 +31,10 @@ "repository": {

"dependencies": {
"@aws-amplify/graphql-transformer-core": "2.3.3",
"@aws-amplify/graphql-transformer-interfaces": "3.3.1",
"@aws-amplify/graphql-transformer-core": "2.4.0",
"@aws-amplify/graphql-transformer-interfaces": "3.3.2",
"graphql": "^15.5.0",
"graphql-mapping-template": "4.20.12",
"graphql-transformer-common": "4.26.2"
"graphql-mapping-template": "4.20.13",
"graphql-transformer-common": "4.27.0"
},
"devDependencies": {
"@aws-amplify/graphql-transformer-test-utils": "0.3.3"
"@aws-amplify/graphql-transformer-test-utils": "0.4.0"
},

@@ -66,2 +66,6 @@ "peerDependencies": {

},
"coverageReporters": [
"clover",
"text"
],
"modulePathIgnorePatterns": [

@@ -71,3 +75,3 @@ "overrides"

},
"gitHead": "5256b5955ee204dd56f8074a43406852f8206c54"
"gitHead": "6e450d037cf84098b51ce787a99d6023cbc0e39d"
}

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