@aws-amplify/graphql-auth-transformer
Advanced tools
Comparing version 0.5.8 to 0.5.9-beta.1
@@ -6,2 +6,24 @@ # Change Log | ||
## [0.5.9-beta.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.5.8...@aws-amplify/graphql-auth-transformer@0.5.9-beta.1) (2022-01-19) | ||
### Bug Fixes | ||
* parse dynamic groups custom claim to list ([#9466](https://github.com/aws-amplify/amplify-cli/issues/9466)) ([80d692b](https://github.com/aws-amplify/amplify-cli/commit/80d692bfb38f0efde2d6d32b63b1c60ad4148849)) | ||
## [0.5.9-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.5.8...@aws-amplify/graphql-auth-transformer@0.5.9-beta.0) (2022-01-19) | ||
### Bug Fixes | ||
* parse dynamic groups custom claim to list ([#9466](https://github.com/aws-amplify/amplify-cli/issues/9466)) ([80d692b](https://github.com/aws-amplify/amplify-cli/commit/80d692bfb38f0efde2d6d32b63b1c60ad4148849)) | ||
## [0.5.8](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/graphql-auth-transformer@0.5.7...@aws-amplify/graphql-auth-transformer@0.5.8) (2022-01-13) | ||
@@ -8,0 +30,0 @@ |
@@ -30,2 +30,3 @@ "use strict"; | ||
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, helpers_1.getIdentityClaimExp)((0, graphql_mapping_template_1.str)(role.claim), (0, graphql_mapping_template_1.list)([]))), | ||
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isString`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)), (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isList`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)])))), | ||
entityIsList | ||
@@ -32,0 +33,0 @@ ? (0, graphql_mapping_template_1.forEach)((0, graphql_mapping_template_1.ref)('userGroup'), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), [ |
@@ -104,2 +104,3 @@ "use strict"; | ||
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, helpers_1.getIdentityClaimExp)((0, graphql_mapping_template_1.str)(role.claim), (0, graphql_mapping_template_1.list)([]))), | ||
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isString`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)), (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isList`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)])))), | ||
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupAllowedFields${idx}`), (0, graphql_mapping_template_1.raw)(JSON.stringify(role.allowedFields))), | ||
@@ -106,0 +107,0 @@ (0, graphql_mapping_template_1.forEach)((0, graphql_mapping_template_1.ref)('userGroup'), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), [ |
@@ -82,2 +82,3 @@ "use strict"; | ||
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, helpers_1.getIdentityClaimExp)((0, graphql_mapping_template_1.str)(role.claim), (0, graphql_mapping_template_1.list)([]))), | ||
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isString`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)), (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isList`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)])))), | ||
(0, graphql_mapping_template_1.forEach)((0, graphql_mapping_template_1.ref)('userGroup'), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), [ | ||
@@ -84,0 +85,0 @@ (0, graphql_mapping_template_1.iff)(entityIsList |
@@ -124,2 +124,3 @@ "use strict"; | ||
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupNullAllowedFields${idx}`), (0, graphql_mapping_template_1.raw)(JSON.stringify(role.nullAllowedFields))), | ||
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isString`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)), (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isList`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)(`groupClaim${idx}`)])))), | ||
(0, graphql_mapping_template_1.forEach)((0, graphql_mapping_template_1.ref)('userGroup'), (0, graphql_mapping_template_1.ref)(`groupClaim${idx}`), [ | ||
@@ -126,0 +127,0 @@ (0, graphql_mapping_template_1.iff)(entityIsList |
@@ -131,2 +131,3 @@ "use strict"; | ||
(0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`role${idx}`), (0, helpers_1.getIdentityClaimExp)((0, graphql_mapping_template_1.str)(role.claim), (0, graphql_mapping_template_1.list)([]))), | ||
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isString`), (0, graphql_mapping_template_1.ref)(`role${idx}`)), (0, graphql_mapping_template_1.ifElse)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.isList`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`role${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`role${idx}`), (0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`util.parseJson`), (0, graphql_mapping_template_1.ref)(`role${idx}`))), (0, graphql_mapping_template_1.set)((0, graphql_mapping_template_1.ref)(`role${idx}`), (0, graphql_mapping_template_1.list)([(0, graphql_mapping_template_1.ref)(`role${idx}`)])))), | ||
(0, graphql_mapping_template_1.iff)((0, graphql_mapping_template_1.not)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)(`role${idx}.isEmpty`))), (0, graphql_mapping_template_1.qref)((0, graphql_mapping_template_1.methodCall)((0, graphql_mapping_template_1.ref)('authFilter.add'), (0, graphql_mapping_template_1.raw)(`{ "${role.entity}": { "in": $role${idx} } }`)))), | ||
@@ -133,0 +134,0 @@ ]); |
{ | ||
"name": "@aws-amplify/graphql-auth-transformer", | ||
"version": "0.5.8", | ||
"version": "0.5.9-beta.1", | ||
"description": "Amplify GraphQL @auth Transformer", | ||
@@ -30,4 +30,4 @@ "repository": { | ||
"dependencies": { | ||
"@aws-amplify/graphql-model-transformer": "0.10.6", | ||
"@aws-amplify/graphql-transformer-core": "0.15.5", | ||
"@aws-amplify/graphql-model-transformer": "0.10.7-beta.1", | ||
"@aws-amplify/graphql-transformer-core": "0.15.6-beta.1", | ||
"@aws-amplify/graphql-transformer-interfaces": "1.12.6", | ||
@@ -46,3 +46,4 @@ "@aws-cdk/aws-appsync": "~1.124.0", | ||
"devDependencies": { | ||
"@aws-amplify/graphql-searchable-transformer": "0.10.6", | ||
"@aws-amplify/graphql-index-transformer": "0.8.7-beta.1", | ||
"@aws-amplify/graphql-searchable-transformer": "0.10.7-beta.1", | ||
"@types/node": "^12.12.6" | ||
@@ -66,3 +67,3 @@ }, | ||
}, | ||
"gitHead": "8c2e0124818cfe9cc7851c66319cc4faff7c816b" | ||
"gitHead": "6e1b6237686aa4ba767b46710063750c6d7b03b0" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
411003
3073
3
+ Added@aws-amplify/graphql-model-transformer@0.10.7-beta.1(transitive)
+ Added@aws-amplify/graphql-transformer-core@0.15.6-beta.1(transitive)
- Removed@aws-amplify/graphql-model-transformer@0.10.6(transitive)
- Removed@aws-amplify/graphql-transformer-core@0.15.5(transitive)