Skip to content

Commit

Permalink
Revert "chore: update snapshots and api category version (#11466)"
Browse files Browse the repository at this point in the history
This reverts commit dbc9dd2.
  • Loading branch information
aws-eddy authored Dec 6, 2022
1 parent dbc9dd2 commit 9f3314c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/amplify-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"node": ">=12.0.0"
},
"dependencies": {
"@aws-amplify/amplify-category-api": "4.0.10-4.0.9-function-mapping-patch.0",
"@aws-amplify/amplify-category-api": "^4.0.9",
"@aws-amplify/amplify-category-auth": "2.13.1",
"@aws-amplify/amplify-category-custom": "2.5.5",
"@aws-amplify/amplify-category-storage": "3.6.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-container-hosting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"test": "jest --logHeapUsage --coverage --passWithNoTests"
},
"dependencies": {
"@aws-amplify/amplify-category-api": "4.0.10-4.0.9-function-mapping-patch.0",
"@aws-amplify/amplify-category-api": "^4.0.9",
"amplify-cli-core": "3.4.0",
"fs-extra": "^8.1.0",
"inquirer": "^7.3.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ $util.unauthorized()
#set( $currentClaim1 = $util.defaultIfNull($ctx.identity.claims.get(\\"username\\"), $util.defaultIfNull($ctx.identity.claims.get(\\"cognito:username\\"), null)) )
#if( !$util.isNull($ownerClaim0) && !$util.isNull($currentClaim1) )
#set( $ownerClaim0 = \\"$ownerClaim0::$currentClaim1\\" )
#if( $isAuthorized && $util.isNull($ownerEntity0) && !$ctx.args.input.containsKey("owner") )
$util.qr($ctx.args.input.put("owner", $ownerClaim0))
#end
#if( !$isAuthorized )
#set( $ownerClaimsList0 = [] )
$util.qr($ownerClaimsList0.add($util.defaultIfNull($ctx.identity.claims.get(\\"sub\\"), null)))
Expand Down Expand Up @@ -76,9 +73,6 @@ $util.unauthorized()
#set( $currentClaim1 = $util.defaultIfNull($ctx.identity.claims.get(\\"username\\"), $util.defaultIfNull($ctx.identity.claims.get(\\"cognito:username\\"), null)) )
#if( !$util.isNull($ownerClaim0) && !$util.isNull($currentClaim1) )
#set( $ownerClaim0 = \\"$ownerClaim0::$currentClaim1\\" )
#if( $isAuthorized && $util.isNull($ownerEntity0) && !$ctx.args.input.containsKey("owner") )
$util.qr($ctx.args.input.put("owner", $ownerClaim0))
#end
#if( !$isAuthorized )
#set( $ownerClaimsList0 = [] )
$util.qr($ownerClaimsList0.add($util.defaultIfNull($ctx.identity.claims.get(\\"sub\\"), null)))
Expand Down Expand Up @@ -130,9 +124,6 @@ $util.unauthorized()
#set( $ownerClaim0 = $util.defaultIfNull($ctx.identity.claims.get(\\"username\\"), $util.defaultIfNull($ctx.identity.claims.get(\\"cognito:username\\"), null)) )
#if( !$util.isNull($ownerClaim0) )
#if( $isAuthorized && $util.isNull($ownerEntity0) && !$ctx.args.input.containsKey("owner") )
$util.qr($ctx.args.input.put("owner", $ownerClaim0))
#end
#if( !$isAuthorized )
#set( $ownerClaimsList0 = [] )
#set( $ownerAllowedFields0 = [\\"id\\",\\"content\\"] )
Expand Down Expand Up @@ -188,9 +179,6 @@ $util.unauthorized()
#set( $ownerClaim0 = $util.defaultIfNull($ctx.identity.claims.get(\\"username\\"), $util.defaultIfNull($ctx.identity.claims.get(\\"cognito:username\\"), null)) )
#if( !$util.isNull($ownerClaim0) )
#if( $isAuthorized && $util.isNull($ownerEntity0) && !$ctx.args.input.containsKey("owner") )
$util.qr($ctx.args.input.put("owner", $ownerClaim0))
#end
#if( !$isAuthorized )
#set( $ownerClaimsList0 = [] )
#set( $ownerAllowedFields0 = [\\"id\\",\\"content\\"] )
Expand Down

0 comments on commit 9f3314c

Please sign in to comment.