@sprucelabs/spruce-file-utils 16.0.6 → 16.0.7

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.
@@ -47,14 +47,15 @@ export default class MockChunkingUploader extends AbstractEventEmitter {
47
47
  const { fileName } = options;
48
48
  this.lastUploadOptions = options;
49
49
  this.currentResponse++;
50
- this.lastUploadResponse = this.getCurrentResponse(fileName);
50
+ const response = this.getCurrentResponse(fileName);
51
+ this.lastUploadResponse = response;
51
52
  if (this.nameToSlow === fileName) {
52
53
  yield new Promise((r) => {
53
54
  MockChunkingUploader.setTimeout(() => r(undefined), 500);
54
55
  });
55
56
  }
56
57
  return {
57
- file: this.lastUploadResponse,
58
+ file: response,
58
59
  };
59
60
  });
60
61
  }
@@ -39,14 +39,15 @@ class MockChunkingUploader extends mercury_event_emitter_1.AbstractEventEmitter
39
39
  const { fileName } = options;
40
40
  this.lastUploadOptions = options;
41
41
  this.currentResponse++;
42
- this.lastUploadResponse = this.getCurrentResponse(fileName);
42
+ const response = this.getCurrentResponse(fileName);
43
+ this.lastUploadResponse = response;
43
44
  if (this.nameToSlow === fileName) {
44
45
  await new Promise((r) => {
45
46
  MockChunkingUploader.setTimeout(() => r(undefined), 500);
46
47
  });
47
48
  }
48
49
  return {
49
- file: this.lastUploadResponse,
50
+ file: response,
50
51
  };
51
52
  }
52
53
  getCurrentResponse(fileName) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-file-utils",
3
3
  "description": "Utils for working with files and Sprucebot.",
4
- "version": "16.0.6",
4
+ "version": "16.0.7",
5
5
  "skill": {
6
6
  "namespace": "files"
7
7
  },