@aws-amplify/graphql-auth-transformer
Advanced tools
Comparing version 3.3.1-alpha.1 to 3.3.1
@@ -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 @@ |
@@ -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
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
637847
1
0
+ Added@aws-amplify/graphql-index-transformer@2.3.1(transitive)
+ Added@aws-amplify/graphql-model-transformer@2.4.1(transitive)
+ Added@aws-amplify/graphql-relational-transformer@2.3.1(transitive)
+ Added@aws-amplify/graphql-transformer-core@2.4.1(transitive)
+ Added@aws-amplify/graphql-transformer-interfaces@3.3.2(transitive)
+ Addedfs-extra@8.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedgraphql-mapping-template@4.20.13(transitive)
+ Addedgraphql-transformer-common@4.27.0(transitive)
+ Addedhjson@3.2.2(transitive)
+ Addedimmer@9.0.21(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedobject-hash@3.0.0(transitive)
+ Addedpluralize@8.0.0(transitive)
+ Addedts-dedent@2.2.0(transitive)
+ Addeduniversalify@0.1.2(transitive)