wirejs-deploy-amplify-basic 0.0.49 → 0.0.51

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.
@@ -3,6 +3,6 @@
3
3
  "dependencies": {
4
4
  "jsdom": "^25.0.1",
5
5
  "wirejs-dom": "^1.0.38",
6
- "wirejs-resources": "^0.1.17"
6
+ "wirejs-resources": "^0.1.19"
7
7
  }
8
8
  }
package/dist/index.js CHANGED
@@ -43,6 +43,7 @@ export class FileService extends Resource {
43
43
  async *list({ prefix = '' } = {}) {
44
44
  const Prefix = `${this.absoluteId}/${prefix}`;
45
45
  let Marker = undefined;
46
+ console.log('FILE LIST', this.absoluteId, Prefix);
46
47
  while (true) {
47
48
  const command = new ListObjectsCommand({
48
49
  Bucket,
@@ -52,11 +53,14 @@ export class FileService extends Resource {
52
53
  });
53
54
  const result = await s3.send(command);
54
55
  Marker = result.Marker;
56
+ const keys = [];
55
57
  for (const o of result.Contents || []) {
56
58
  if (o.Key) {
57
- yield o.Key;
59
+ keys.push(o.Key);
60
+ yield o.Key.slice(0, `${this.absoluteId.length}/`.length);
58
61
  }
59
62
  }
63
+ console.log('Yielded keys', keys);
60
64
  if (!Marker)
61
65
  break;
62
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wirejs-deploy-amplify-basic",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "recursive-copy": "^2.0.14",
31
31
  "rimraf": "^6.0.1",
32
32
  "wirejs-dom": "^1.0.38",
33
- "wirejs-resources": "^0.1.17"
33
+ "wirejs-resources": "^0.1.19"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@aws-amplify/backend": "^1.14.0",