Skip to content

Commit

Permalink
fix: update codegen ui version and add processFile util function
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Shih committed May 22, 2023
1 parent 83156de commit b4c0a7b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/amplify-util-uibuilder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"dependencies": {
"@aws-amplify/amplify-cli-core": "4.0.5",
"@aws-amplify/amplify-prompts": "2.7.0",
"@aws-amplify/codegen-ui": "2.13.1",
"@aws-amplify/codegen-ui-react": "2.13.1",
"@aws-amplify/codegen-ui": "2.14.0",
"@aws-amplify/codegen-ui-react": "2.14.0",
"amplify-codegen": "^3.4.3",
"aws-sdk": "^2.1354.0",
"fs-extra": "^8.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('can create a ui builder component', () => {
it('calls the renderManager for utils file w/ validation, formatter, and fetchByPath helpers if there is a form', () => {
generateAmplifyUiBuilderUtilFile(context, { hasForms: true, hasViews: false });
expect(new codegenMock.StudioTemplateRendererManager().renderSchemaToTemplate).toBeCalledWith(
expect.arrayContaining(['validation', 'formatter', 'fetchByPath']),
expect.arrayContaining(['validation', 'formatter', 'fetchByPath', 'processFile']),
);
});
it('calls the renderManager for utils file w/ formatter helper if there is a view', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ export const generateAmplifyUiBuilderUtilFile = (context: $TSContext, { hasForms
utils.add('validation');
utils.add('formatter');
utils.add('fetchByPath');
utils.add('processFile');
}

if (hasViews) {
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,21 @@
dependencies:
"@aws-amplify/core" "4.3.11"

"@aws-amplify/codegen-ui-react@2.13.1":
version "2.13.1"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui-react/-/codegen-ui-react-2.13.1.tgz#afaf78ed60d5bfae108d5d2d55f8b493fd5c2c99"
integrity sha512-69DpPuIrCfd6HWrrorH/0NnIn/XlBW7M/f6lXLn0NLnUWcn0sGIFIqt08HJccISt+ZlqmGLxAf+a8abZPW4Pmw==
"@aws-amplify/codegen-ui-react@2.14.0":
version "2.14.0"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui-react/-/codegen-ui-react-2.14.0.tgz#dac58a5ca5f8285ef624b66719a63eab137da416"
integrity sha512-N74sPdxsqgjc6kPDFI+JdLEg3gogF3p16yPWrUsMnpxmrGVsaNptjAgydGnS0qlJ3kQOY4FKD+kOnMj6hXQV/g==
dependencies:
"@aws-amplify/codegen-ui" "2.13.1"
"@aws-amplify/codegen-ui" "2.14.0"
"@typescript/vfs" "~1.3.5"
typescript "<=4.5.0"
optionalDependencies:
prettier "2.3.2"

"@aws-amplify/codegen-ui@2.13.1":
version "2.13.1"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui/-/codegen-ui-2.13.1.tgz#5ea375cee4b81c60fa3378a55f565055297021e3"
integrity sha512-E348akzfNse6vtYMWW1ZFJwmI5km4TUzr7zW+mhw3/7gqqCE5ARG2gy6voL9+w8oC+XAg0g7H3GstpxdLhCVKA==
"@aws-amplify/codegen-ui@2.14.0":
version "2.14.0"
resolved "https://registry.npmjs.org/@aws-amplify/codegen-ui/-/codegen-ui-2.14.0.tgz#c6b052e1ad53952ada6ce4817b1a2324228c8366"
integrity sha512-1Y3kFelapwshlOjNoPALjam3YctKc1UbeFcfR1M1BdmA6jiBsmekTsgYy9MauVq76PpiU8xyda+PUESTbZ4FQQ==
dependencies:
change-case "^4.1.2"
yup "^0.32.11"
Expand Down

0 comments on commit b4c0a7b

Please sign in to comment.