@sprucelabs/spruce-image-utils 8.0.1 → 8.0.3

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.
@@ -1,11 +1,11 @@
1
1
  import { SpruceSchemas } from '@sprucelabs/spruce-test-fixtures';
2
2
  import { UploadedImage, ImageUploader, ImageUploadOptions } from '../../uploading/RemoteImageUploader';
3
3
  export default class FakeImageUploader implements ImageUploader {
4
- private static _lastUploadOptions;
4
+ private static _lastUploadOptions?;
5
5
  private static _isInitialized;
6
6
  private static _shouldThrow;
7
- static set lastUploadOptions(options: ImageUploadOptions);
8
- static get lastUploadOptions(): ImageUploadOptions;
7
+ static set lastUploadOptions(options: ImageUploadOptions | undefined);
8
+ static get lastUploadOptions(): ImageUploadOptions | undefined;
9
9
  static beforeEach(): void;
10
10
  static makeThrowWithInvalidImage(): void;
11
11
  private static fakeUploadedImage?;
@@ -17,6 +17,7 @@ class FakeImageUploader {
17
17
  static beforeEach() {
18
18
  this._isInitialized = true;
19
19
  this._shouldThrow = false;
20
+ this._lastUploadOptions = undefined;
20
21
  }
21
22
  static makeThrowWithInvalidImage() {
22
23
  this._shouldThrow = true;
@@ -1,11 +1,11 @@
1
1
  import { SpruceSchemas } from '@sprucelabs/spruce-test-fixtures';
2
2
  import { UploadedImage, ImageUploader, ImageUploadOptions } from '../../uploading/RemoteImageUploader';
3
3
  export default class FakeImageUploader implements ImageUploader {
4
- private static _lastUploadOptions;
4
+ private static _lastUploadOptions?;
5
5
  private static _isInitialized;
6
6
  private static _shouldThrow;
7
- static set lastUploadOptions(options: ImageUploadOptions);
8
- static get lastUploadOptions(): ImageUploadOptions;
7
+ static set lastUploadOptions(options: ImageUploadOptions | undefined);
8
+ static get lastUploadOptions(): ImageUploadOptions | undefined;
9
9
  static beforeEach(): void;
10
10
  static makeThrowWithInvalidImage(): void;
11
11
  private static fakeUploadedImage?;
@@ -20,6 +20,7 @@ class FakeImageUploader {
20
20
  static beforeEach() {
21
21
  this._isInitialized = true;
22
22
  this._shouldThrow = false;
23
+ this._lastUploadOptions = undefined;
23
24
  }
24
25
  static makeThrowWithInvalidImage() {
25
26
  this._shouldThrow = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-image-utils",
3
3
  "description": "Support for working with images and Sprucebot. 📈",
4
- "version": "8.0.1",
4
+ "version": "8.0.3",
5
5
  "skill": {
6
6
  "namespace": "images"
7
7
  },