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

@aws-amplify/graphql-auth-transformer

Package Overview
Dependencies
Maintainers
10
Versions
434
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 3.3.1-alpha.1 to 3.3.1

6

CHANGELOG.md

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

## [3.3.1](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@3.3.0...@aws-amplify/graphql-auth-transformer@3.3.1) (2023-12-14)
### Bug Fixes
- Fix support for [@auth](https://github.com/auth) on fields with no [@model](https://github.com/model) ([79e4d83](https://github.com/aws-amplify/amplify-category-api/commit/79e4d83528d1581767265dae1006162c1a2110f6))
# [3.3.0](https://github.com/aws-amplify/amplify-category-api/compare/@aws-amplify/graphql-auth-transformer@3.2.3...@aws-amplify/graphql-auth-transformer@3.3.0) (2023-12-06)

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

2

lib/utils/validations.js

@@ -65,3 +65,3 @@ "use strict";

const rules = authDir.getArguments({ rules: [] }, (0, graphql_transformer_core_1.generateGetArgumentsInput)(transformParameters)).rules;
if (!isParentTypeBuiltinType && (0, graphql_transformer_core_1.isSqlModel)(context, parent.name.value)) {
if (!isParentTypeBuiltinType && parentHasModelDirective && (0, graphql_transformer_core_1.isSqlModel)(context, parent.name.value)) {
throw new graphql_transformer_core_1.InvalidDirectiveError(`@auth rules are not supported on fields on relational database models. Check field "${fieldName}" on type "${parent.name.value}". Please use @auth on the type instead.`);

@@ -68,0 +68,0 @@ }

{
"name": "@aws-amplify/graphql-auth-transformer",
"version": "3.3.1-alpha.1+edba38d57",
"version": "3.3.1",
"description": "Amplify GraphQL @auth transformer",

@@ -32,9 +32,9 @@ "repository": {

"dependencies": {
"@aws-amplify/graphql-model-transformer": "2.4.1-alpha.1+edba38d57",
"@aws-amplify/graphql-relational-transformer": "2.3.1-alpha.1+edba38d57",
"@aws-amplify/graphql-transformer-core": "2.4.1-alpha.1+edba38d57",
"@aws-amplify/graphql-transformer-interfaces": "3.3.3-alpha.1+edba38d57",
"@aws-amplify/graphql-model-transformer": "2.4.1",
"@aws-amplify/graphql-relational-transformer": "2.3.1",
"@aws-amplify/graphql-transformer-core": "2.4.1",
"@aws-amplify/graphql-transformer-interfaces": "3.3.2",
"graphql": "^15.5.0",
"graphql-mapping-template": "4.20.14-alpha.1+edba38d57",
"graphql-transformer-common": "4.27.1-alpha.1+edba38d57",
"graphql-mapping-template": "4.20.13",
"graphql-transformer-common": "4.27.0",
"lodash": "^4.17.21",

@@ -44,5 +44,5 @@ "md5": "^2.3.0"

"devDependencies": {
"@aws-amplify/graphql-index-transformer": "2.3.1-alpha.1+edba38d57",
"@aws-amplify/graphql-searchable-transformer": "2.4.1-alpha.1+edba38d57",
"@aws-amplify/graphql-transformer-test-utils": "0.4.0",
"@aws-amplify/graphql-index-transformer": "2.3.1",
"@aws-amplify/graphql-searchable-transformer": "2.4.1",
"@aws-amplify/graphql-transformer-test-utils": "0.4.1",
"@types/node": "^12.12.6"

@@ -81,3 +81,3 @@ },

},
"gitHead": "edba38d57f363191913c763e621d92d1aa9490f8"
"gitHead": "c5860ebe11e55e6f197f9dd24e322740b002741c"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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