@flystorage/file-storage 0.0.1 → 0.0.2

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.
@@ -32,7 +32,7 @@ class ChecksumIsNotAvailable extends FlystorageError {
32
32
  exports.ChecksumIsNotAvailable = ChecksumIsNotAvailable;
33
33
  class UnableToGetChecksum extends FlystorageError {
34
34
  code = 'flystorage.unable_to_get_checksum';
35
- static because = (reason, { context = {}, cause = undefined }) => new UnableToWriteFile(`Unable to write the file. Reason: ${reason}`, context, cause);
35
+ static because = (reason, { context = {}, cause = undefined }) => new UnableToGetChecksum(`Unable to write the file. Reason: ${reason}`, context, cause);
36
36
  }
37
37
  exports.UnableToGetChecksum = UnableToGetChecksum;
38
38
  class UnableToWriteFile extends FlystorageError {
@@ -32,7 +32,7 @@ class ChecksumIsNotAvailable extends FlystorageError {
32
32
  exports.ChecksumIsNotAvailable = ChecksumIsNotAvailable;
33
33
  class UnableToGetChecksum extends FlystorageError {
34
34
  code = 'flystorage.unable_to_get_checksum';
35
- static because = (reason, { context = {}, cause = undefined }) => new UnableToWriteFile(`Unable to write the file. Reason: ${reason}`, context, cause);
35
+ static because = (reason, { context = {}, cause = undefined }) => new UnableToGetChecksum(`Unable to write the file. Reason: ${reason}`, context, cause);
36
36
  }
37
37
  exports.UnableToGetChecksum = UnableToGetChecksum;
38
38
  class UnableToWriteFile extends FlystorageError {
@@ -29,7 +29,7 @@ export declare class UnableToGetChecksum extends FlystorageError {
29
29
  static because: (reason: string, { context, cause }: {
30
30
  context?: ErrorContext | undefined;
31
31
  cause?: unknown;
32
- }) => UnableToWriteFile;
32
+ }) => UnableToGetChecksum;
33
33
  }
34
34
  export declare class UnableToWriteFile extends FlystorageError {
35
35
  readonly code = "flystorage.unable_to_write_file";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flystorage/file-storage",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "File-storage abstraction: multiple filesystems, one API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/types/index.d.ts",