@genoacms/adapter-gcp 0.7.1-fix.4 → 0.7.1-fix.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ const listDirectory = async ({ bucket, name }, listingParams = {}) => {
35
35
  const bucketInstance = getBucket(bucket);
36
36
  const options = {
37
37
  autoPaginate: false,
38
- prefix: join(name, '/'),
38
+ prefix: name ? join(name, '/') : '',
39
39
  maxResults: listingParams?.limit,
40
40
  startOffset: listingParams?.startAfter,
41
41
  delimiter: '/'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genoacms/adapter-gcp",
3
- "version": "0.7.1-fix.4",
3
+ "version": "0.7.1-fix.5",
4
4
  "type": "module",
5
5
  "description": "Implementation of abstraction layer of GenoaCMS for GCP",
6
6
  "repository": {
@@ -47,7 +47,7 @@ const listDirectory: Adapter['listDirectory'] = async ({ bucket, name }, listing
47
47
  const bucketInstance = getBucket(bucket)
48
48
  const options = {
49
49
  autoPaginate: false,
50
- prefix: join(name, '/'),
50
+ prefix: name ? join(name, '/') : '',
51
51
  maxResults: listingParams?.limit,
52
52
  startOffset: listingParams?.startAfter,
53
53
  delimiter: '/'