@flystorage/file-storage 1.0.0 → 1.0.1

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.
package/changelog.md ADDED
@@ -0,0 +1,13 @@
1
+ # `@flystorage/file-storage`
2
+
3
+ ## 1.0.1
4
+
5
+ ### Fixes
6
+
7
+ - Corrected error message for `UnableToGetChecksum` error.
8
+
9
+ ## 1.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - First 1.0.0 release
@@ -35,7 +35,7 @@ class ChecksumIsNotAvailable extends FlystorageError {
35
35
  exports.ChecksumIsNotAvailable = ChecksumIsNotAvailable;
36
36
  class UnableToGetChecksum extends FlystorageError {
37
37
  code = 'flystorage.unable_to_get_checksum';
38
- static because = (reason, { context = {}, cause = undefined }) => new UnableToGetChecksum(`Unable to write the file. Reason: ${reason}`, context, cause);
38
+ static because = (reason, { context = {}, cause = undefined }) => new UnableToGetChecksum(`Unable to get checksum for file. Reason: ${reason}`, context, cause);
39
39
  }
40
40
  exports.UnableToGetChecksum = UnableToGetChecksum;
41
41
  class UnableToGetMimeType extends FlystorageError {
@@ -29,7 +29,7 @@ export class ChecksumIsNotAvailable extends FlystorageError {
29
29
  }
30
30
  export class UnableToGetChecksum extends FlystorageError {
31
31
  code = 'flystorage.unable_to_get_checksum';
32
- static because = (reason, { context = {}, cause = undefined }) => new UnableToGetChecksum(`Unable to write the file. Reason: ${reason}`, context, cause);
32
+ static because = (reason, { context = {}, cause = undefined }) => new UnableToGetChecksum(`Unable to get checksum for file. Reason: ${reason}`, context, cause);
33
33
  }
34
34
  export class UnableToGetMimeType extends FlystorageError {
35
35
  code = 'flystorage.unable_to_get_mimetype';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flystorage/file-storage",
3
3
  "type": "module",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "File-storage abstraction: multiple filesystems, one API.",
6
6
  "main": "./dist/cjs/index.js",
7
7
  "types": "./dist/types/index.d.ts",