@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 +13 -0
- package/dist/cjs/errors.js +1 -1
- package/dist/esm/errors.js +1 -1
- package/package.json +1 -1
package/changelog.md
ADDED
package/dist/cjs/errors.js
CHANGED
|
@@ -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
|
|
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 {
|
package/dist/esm/errors.js
CHANGED
|
@@ -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
|
|
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