From 9f3314ca3074659d5ed1478fac95619abf157e81 Mon Sep 17 00:00:00 2001 From: Eddy Varela Date: Tue, 6 Dec 2022 11:27:21 -0600 Subject: [PATCH] Revert "chore: update snapshots and api category version (#11466)" This reverts commit dbc9dd254b488d57ce58cac9fc7558b12ba3044f. --- packages/amplify-cli/package.json | 2 +- packages/amplify-container-hosting/package.json | 2 +- .../src/__tests__/__snapshots__/api_10.test.ts.snap | 12 ------------ 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/packages/amplify-cli/package.json b/packages/amplify-cli/package.json index 6c82b97cccc..ab19ca80170 100644 --- a/packages/amplify-cli/package.json +++ b/packages/amplify-cli/package.json @@ -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", diff --git a/packages/amplify-container-hosting/package.json b/packages/amplify-container-hosting/package.json index eeb93a1ce00..74d7d59a837 100644 --- a/packages/amplify-container-hosting/package.json +++ b/packages/amplify-container-hosting/package.json @@ -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", diff --git a/packages/amplify-e2e-tests/src/__tests__/__snapshots__/api_10.test.ts.snap b/packages/amplify-e2e-tests/src/__tests__/__snapshots__/api_10.test.ts.snap index bba5e8afe4e..c75e68820a5 100644 --- a/packages/amplify-e2e-tests/src/__tests__/__snapshots__/api_10.test.ts.snap +++ b/packages/amplify-e2e-tests/src/__tests__/__snapshots__/api_10.test.ts.snap @@ -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))) @@ -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))) @@ -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\\"] ) @@ -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\\"] )