Skip to content

Commit

Permalink
chore: bump bunde size
Browse files Browse the repository at this point in the history
  • Loading branch information
israx committed Jun 7, 2024
1 parent 80e5892 commit f680dca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@
"name": "[Storage] list (S3)",
"path": "./dist/esm/storage/index.mjs",
"import": "{ list }",
"limit": "14.94 kB"
"limit": "15.04 kB"
},
{
"name": "[Storage] remove (S3)",
Expand Down
10 changes: 7 additions & 3 deletions packages/storage/src/providers/s3/apis/internal/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ const _listAllWithPath = async ({

return {
items: listResult,
...(subpaths.length > 0 ? { subpaths } : {}),
...getOptionWithSubpaths(subpaths),
};
};

Expand Down Expand Up @@ -233,7 +233,7 @@ const _listWithPath = async ({
if (!Contents) {
return {
items: [],
...(subpaths && subpaths.length > 0 ? { subpaths } : {}),
...getOptionWithSubpaths(subpaths),
};
}

Expand All @@ -245,7 +245,7 @@ const _listWithPath = async ({
size: item.Size,
})),
nextToken: NextContinuationToken,
...(subpaths && subpaths.length > 0 ? { subpaths } : {}),
...getOptionWithSubpaths(subpaths),
};
};

Expand All @@ -266,3 +266,7 @@ function mapCommonPrefixesToSubpaths(

return mappedSubpaths as Subpath[] | undefined;
}

function getOptionWithSubpaths(subpaths?: Subpath[]) {
return subpaths && subpaths.length > 0 ? { subpaths } : {};
}

0 comments on commit f680dca

Please sign in to comment.