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

graphql-function-transformer

Package Overview
Dependencies
Maintainers
12
Versions
821
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-function-transformer - npm Package Compare versions

Comparing version 3.3.66-iam-auth-with-identityPool-provider-1.0 to 3.3.66

2

CHANGELOG.md

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

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