Skip to content

Commit

Permalink
chore: update data deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilch committed Oct 12, 2023
1 parent 6e944f7 commit 33564a4
Show file tree
Hide file tree
Showing 10 changed files with 189 additions and 182 deletions.
2 changes: 1 addition & 1 deletion packages/amplify-cli-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@aws-amplify/amplify-cli-logger": "1.3.6",
"@aws-amplify/amplify-function-plugin-interface": "1.11.0",
"@aws-amplify/amplify-prompts": "2.8.4",
"@aws-amplify/graphql-transformer-interfaces": "^3.2.0",
"@aws-amplify/graphql-transformer-interfaces": "^3.2.1",
"@aws-sdk/util-arn-parser": "^3.310.0",
"@yarnpkg/lockfile": "^1.1.0",
"ajv": "^6.12.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@aws-amplify/amplify-app": "5.0.20",
"@aws-amplify/amplify-category-analytics": "5.0.21",
"@aws-amplify/amplify-category-api": "^5.7.2",
"@aws-amplify/amplify-category-api": "^5.7.5",
"@aws-amplify/amplify-category-auth": "3.7.0",
"@aws-amplify/amplify-category-custom": "3.1.9",
"@aws-amplify/amplify-category-function": "5.6.0",
Expand Down Expand Up @@ -66,7 +66,7 @@
"@aws-amplify/amplify-util-mock": "5.7.0",
"@aws-amplify/amplify-util-uibuilder": "1.12.0",
"@aws-cdk/cloudformation-diff": "~2.68.0",
"amplify-codegen": "^4.7.0",
"amplify-codegen": "^4.7.1",
"amplify-dotnet-function-runtime-provider": "2.0.14",
"amplify-go-function-runtime-provider": "2.3.32",
"amplify-java-function-runtime-provider": "2.3.32",
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 @@ -26,7 +26,7 @@
"extract-api": "ts-node ../../scripts/extract-api.ts"
},
"dependencies": {
"@aws-amplify/amplify-category-api": "^5.7.2",
"@aws-amplify/amplify-category-api": "^5.7.5",
"@aws-amplify/amplify-cli-core": "4.2.9",
"@aws-amplify/amplify-environment-parameters": "1.9.0",
"fs-extra": "^8.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-e2e-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@aws-amplify/amplify-cli-core": "4.2.9",
"@aws-amplify/amplify-e2e-core": "5.4.0",
"@aws-amplify/amplify-opensearch-simulator": "1.7.0",
"@aws-amplify/graphql-transformer-core": "^2.2.1",
"@aws-amplify/graphql-transformer-core": "^2.2.3",
"@aws-sdk/client-appsync": "^3.303.0",
"@aws-sdk/client-dynamodb": "^3.303.0",
"@aws-sdk/client-s3": "^3.303.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/amplify-provider-awscloudformation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
"@aws-amplify/amplify-prompts": "2.8.4",
"@aws-amplify/amplify-util-import": "2.8.1",
"@aws-amplify/cli-extensibility-helper": "3.0.19",
"@aws-amplify/graphql-transformer-core": "^2.2.1",
"@aws-amplify/graphql-transformer-interfaces": "^3.2.0",
"amplify-codegen": "^4.7.0",
"@aws-amplify/graphql-transformer-core": "^2.2.3",
"@aws-amplify/graphql-transformer-interfaces": "^3.2.1",
"amplify-codegen": "^4.7.1",
"archiver": "^5.3.0",
"aws-cdk-lib": "~2.80.0",
"aws-sdk": "^2.1464.0",
Expand Down Expand Up @@ -71,7 +71,7 @@
"xstate": "^4.14.0"
},
"devDependencies": {
"@aws-amplify/graphql-transformer-interfaces": "^3.2.0",
"@aws-amplify/graphql-transformer-interfaces": "^3.2.1",
"@types/columnify": "^1.5.0",
"@types/deep-diff": "^1.0.0",
"@types/folder-hash": "^4.0.1",
Expand Down
28 changes: 14 additions & 14 deletions packages/amplify-util-mock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@aws-amplify/amplify-prompts": "2.8.4",
"@aws-amplify/amplify-provider-awscloudformation": "8.7.0",
"@hapi/topo": "^5.0.0",
"amplify-codegen": "^4.7.0",
"amplify-codegen": "^4.7.1",
"amplify-dynamodb-simulator": "2.9.4",
"amplify-storage-simulator": "1.11.1",
"chokidar": "^3.5.3",
Expand All @@ -55,20 +55,20 @@
},
"devDependencies": {
"@aws-amplify/amplify-function-plugin-interface": "^1.11.0",
"@aws-amplify/graphql-auth-transformer": "^3.1.5",
"@aws-amplify/graphql-default-value-transformer": "^2.1.5",
"@aws-amplify/graphql-function-transformer": "^2.1.4",
"@aws-amplify/graphql-http-transformer": "^2.1.4",
"@aws-amplify/graphql-index-transformer": "^2.1.5",
"@aws-amplify/graphql-maps-to-transformer": "^3.2.2",
"@aws-amplify/graphql-model-transformer": "^2.2.1",
"@aws-amplify/graphql-predictions-transformer": "^2.1.4",
"@aws-amplify/graphql-relational-transformer": "^2.1.5",
"@aws-amplify/graphql-searchable-transformer": "^2.2.1",
"@aws-amplify/graphql-auth-transformer": "^3.1.8",
"@aws-amplify/graphql-default-value-transformer": "^2.1.7",
"@aws-amplify/graphql-function-transformer": "^2.1.6",
"@aws-amplify/graphql-http-transformer": "^2.1.6",
"@aws-amplify/graphql-index-transformer": "^2.1.7",
"@aws-amplify/graphql-maps-to-transformer": "^3.2.4",
"@aws-amplify/graphql-model-transformer": "^2.2.3",
"@aws-amplify/graphql-predictions-transformer": "^2.1.6",
"@aws-amplify/graphql-relational-transformer": "^2.1.7",
"@aws-amplify/graphql-searchable-transformer": "^2.2.3",
"@aws-amplify/graphql-transformer": "^1.1.0",
"@aws-amplify/graphql-transformer-core": "^2.2.1",
"@aws-amplify/graphql-transformer-interfaces": "^3.2.0",
"@aws-amplify/graphql-transformer-migrator": "^2.2.4",
"@aws-amplify/graphql-transformer-core": "^2.2.3",
"@aws-amplify/graphql-transformer-interfaces": "^3.2.1",
"@aws-amplify/graphql-transformer-migrator": "^2.2.6",
"@types/detect-port": "^1.3.0",
"@types/jest": "^29.0.0",
"@types/lodash": "^4.14.149",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AppSyncAuthConfiguration, TransformerPluginProvider, TransformerLogLevel } from '@aws-amplify/graphql-transformer-interfaces';
import type { TransformParameters } from '@aws-amplify/graphql-transformer-interfaces';
import type { SynthParameters, TransformParameters } from '@aws-amplify/graphql-transformer-interfaces';
import {
DatasourceType,
GraphQLTransform,
Expand All @@ -19,6 +19,7 @@ export type TestTransformParameters = {
stackMapping?: Record<string, string>;
modelToDatasourceMap?: Map<string, DatasourceType>;
datasourceSecretParameterLocations?: Map<string, RDSConnectionSecrets>;
synthParameters?: Partial<SynthParameters>;
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jest.mock('@aws-amplify/amplify-prompts');

describe('admin roles query checks', () => {
const ADMIN_UI_ROLE = 'us-fake-1_uuid_Full-access/CognitoIdentityCredentials';
const MOCK_BEFORE_TEMPLATE = `$util.qr($ctx.stash.put("adminRoles", ["${ADMIN_UI_ROLE}"]))`;

let vtlTemplate: VelocityTemplateSimulator;
let transformer: TestTransform;
const adminFullAccessRequest: AppSyncGraphQLExecutionContext = {
Expand All @@ -38,6 +40,7 @@ describe('admin roles query checks', () => {
testTransform({
schema,
authConfig,
synthParameters: { adminRoles: [ADMIN_UI_ROLE] },
transformers: [
new ModelTransformer(),
new AuthTransformer({
Expand All @@ -61,7 +64,7 @@ describe('admin roles query checks', () => {
const out = transformer.transform(validSchema);

// field resolver
const secretValueTemplate = out.resolvers['Student.secretValue.req.vtl'];
const secretValueTemplate = [MOCK_BEFORE_TEMPLATE, out.resolvers['Student.secretValue.req.vtl']].join('\n');
const iamFieldContext: AppSyncVTLContext = {
source: {
secretValue: 'secretValue001',
Expand All @@ -76,7 +79,7 @@ describe('admin roles query checks', () => {
expect(secretValueResponse.result).toEqual('secretValue001');

// mutation resolver
const createStudentTemplate = out.resolvers['Mutation.createStudent.auth.1.req.vtl'];
const createStudentTemplate = [MOCK_BEFORE_TEMPLATE, out.resolvers['Mutation.createStudent.auth.1.req.vtl']].join('\n');
const iamCreateContext: AppSyncVTLContext = {
arguments: {
input: {
Expand All @@ -100,6 +103,8 @@ describe('admin roles query checks', () => {
describe('identity claim feature flag disabled', () => {
describe('admin roles query checks', () => {
const ADMIN_UI_ROLE = 'us-fake-1_uuid_Full-access/CognitoIdentityCredentials';
const MOCK_BEFORE_TEMPLATE = `$util.qr($ctx.stash.put("adminRoles", ["${ADMIN_UI_ROLE}"]))`;

let vtlTemplate: VelocityTemplateSimulator;
let transformer: TestTransform;
const adminFullAccessRequest: AppSyncGraphQLExecutionContext = {
Expand All @@ -124,6 +129,7 @@ describe('identity claim feature flag disabled', () => {
testTransform({
schema,
authConfig,
synthParameters: { adminRoles: [ADMIN_UI_ROLE] },
transformers: [
new ModelTransformer(),
new AuthTransformer({
Expand All @@ -147,7 +153,7 @@ describe('identity claim feature flag disabled', () => {
const out = transformer.transform(validSchema);

// field resolver
const secretValueTemplate = out.resolvers['Student.secretValue.req.vtl'];
const secretValueTemplate = [MOCK_BEFORE_TEMPLATE, out.resolvers['Student.secretValue.req.vtl']].join('\n');
const iamFieldContext: AppSyncVTLContext = {
source: {
secretValue: 'secretValue001',
Expand All @@ -162,7 +168,7 @@ describe('identity claim feature flag disabled', () => {
expect(secretValueResponse.result).toEqual('secretValue001');

// mutation resolver
const createStudentTemplate = out.resolvers['Mutation.createStudent.auth.1.req.vtl'];
const createStudentTemplate = [MOCK_BEFORE_TEMPLATE, out.resolvers['Mutation.createStudent.auth.1.req.vtl']].join('\n');
const iamCreateContext: AppSyncVTLContext = {
arguments: {
input: {
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify-util-uibuilder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"access": "public"
},
"dependencies": {
"@aws-amplify/amplify-category-api": "^5.7.2",
"@aws-amplify/amplify-category-api": "^5.7.5",
"@aws-amplify/amplify-cli-core": "4.2.9",
"@aws-amplify/amplify-prompts": "2.8.4",
"@aws-amplify/codegen-ui": "2.14.2",
"@aws-amplify/codegen-ui-react": "2.14.2",
"amplify-codegen": "^4.7.0",
"amplify-codegen": "^4.7.1",
"aws-sdk": "^2.1464.0",
"fs-extra": "^8.1.0",
"node-fetch": "^2.6.7",
Expand Down
Loading

0 comments on commit 33564a4

Please sign in to comment.