@nuvix/storage 0.1.0 → 1.0.0
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/README.md +125 -68
- package/dist/index.cjs.js +454 -428
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +38 -87
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +454 -429
- package/dist/index.esm.js.map +1 -1
- package/dist/src/device/local.d.ts +3 -3
- package/dist/src/device/local.d.ts.map +1 -1
- package/dist/src/device/minio.d.ts +16 -0
- package/dist/src/device/minio.d.ts.map +1 -0
- package/dist/src/device/s3.d.ts +14 -9
- package/dist/src/device/s3.d.ts.map +1 -1
- package/dist/src/device/wasabi.d.ts.map +1 -1
- package/dist/src/device.d.ts +3 -3
- package/dist/src/device.d.ts.map +1 -1
- package/dist/src/storage.d.ts +2 -1
- package/dist/src/storage.d.ts.map +1 -1
- package/dist/src/validator/file-ext.d.ts +0 -2
- package/dist/src/validator/file-ext.d.ts.map +1 -1
- package/dist/src/validator/file-name.d.ts +1 -17
- package/dist/src/validator/file-name.d.ts.map +1 -1
- package/dist/src/validator/file-size.d.ts +1 -13
- package/dist/src/validator/file-size.d.ts.map +1 -1
- package/dist/src/validator/file-type.d.ts +1 -9
- package/dist/src/validator/file-type.d.ts.map +1 -1
- package/dist/src/validator/file.d.ts +0 -16
- package/dist/src/validator/file.d.ts.map +1 -1
- package/dist/src/validator/upload.d.ts +0 -16
- package/dist/src/validator/upload.d.ts.map +1 -1
- package/dist/src/validator/validator.d.ts.map +1 -1
- package/package.json +7 -6
package/dist/src/device.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare abstract class Device {
|
|
|
61
61
|
* Upload file contents to desired destination in the selected disk.
|
|
62
62
|
* return number of chunks uploaded or 0 if it fails.
|
|
63
63
|
*/
|
|
64
|
-
abstract uploadData(data: string, path: string, contentType: string, chunk?: number, chunks?: number, metadata?: DeviceMetadata): Promise<number>;
|
|
64
|
+
abstract uploadData(data: string | Buffer, path: string, contentType: string, chunk?: number, chunks?: number, metadata?: DeviceMetadata): Promise<number>;
|
|
65
65
|
/**
|
|
66
66
|
* Abort Chunked Upload
|
|
67
67
|
*/
|
|
@@ -69,7 +69,7 @@ export declare abstract class Device {
|
|
|
69
69
|
/**
|
|
70
70
|
* Read file by given path.
|
|
71
71
|
*/
|
|
72
|
-
abstract read(path: string, offset?: number, length?: number): Promise<
|
|
72
|
+
abstract read(path: string, offset?: number, length?: number): Promise<Buffer>;
|
|
73
73
|
/**
|
|
74
74
|
* Transfer
|
|
75
75
|
* Transfer a file from current device to destination device.
|
|
@@ -78,7 +78,7 @@ export declare abstract class Device {
|
|
|
78
78
|
/**
|
|
79
79
|
* Write file by given path.
|
|
80
80
|
*/
|
|
81
|
-
abstract write(path: string, data: string, contentType: string): Promise<boolean>;
|
|
81
|
+
abstract write(path: string, data: string | Buffer, contentType: string): Promise<boolean>;
|
|
82
82
|
/**
|
|
83
83
|
* Move file from given source to given path, return true on success and false on failure.
|
|
84
84
|
*/
|
package/dist/src/device.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/device.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;
|
|
1
|
+
{"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/device.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,8BAAsB,MAAM;IAC1B;;OAEG;IACH,SAAS,CAAC,iBAAiB,EAAE,MAAM,CAAY;IAE/C;;OAEG;IACH,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAA2B;IAE1E;;OAEG;IACI,oBAAoB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIpD;;OAEG;IACI,oBAAoB,IAAI,MAAM;IAIrC;;;;OAIG;IACH,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zB,OAAO,CAAC,GAAG,EAAE,CAAC;IAEjB;;;;OAIG;IACI,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;cAmB5B,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAqE/D"}
|
package/dist/src/storage.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class Storage {
|
|
|
6
6
|
static readonly DEVICE_LOCAL = "local";
|
|
7
7
|
static readonly DEVICE_S3 = "s3";
|
|
8
8
|
static readonly DEVICE_WASABI = "wasabi";
|
|
9
|
+
static readonly DEVICE_MINIO = "minio";
|
|
9
10
|
/**
|
|
10
11
|
* Devices.
|
|
11
12
|
*
|
|
@@ -51,6 +52,6 @@ export declare class Storage {
|
|
|
51
52
|
* @param system
|
|
52
53
|
* @returns string
|
|
53
54
|
*/
|
|
54
|
-
static human(bytes: number, decimals?: number, system?:
|
|
55
|
+
static human(bytes: number, decimals?: number, system?: "binary" | "metric"): string;
|
|
55
56
|
}
|
|
56
57
|
//# sourceMappingURL=storage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,OAAO;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/storage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,qBAAa,OAAO;IAClB;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,YAAY,WAAW;IACvC,MAAM,CAAC,QAAQ,CAAC,SAAS,QAAQ;IAEjC,MAAM,CAAC,QAAQ,CAAC,aAAa,YAAY;IACzC,MAAM,CAAC,QAAQ,CAAC,YAAY,WAAW;IAIvC;;;;OAIG;IACH,OAAO,CAAC,MAAM,CAAC,OAAO,CAAkC;IAExD;;;;;;;;OAQG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIpD;;;;;;;;OAQG;IACH,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAQtC;;;;;;;OAOG;IACH,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIpC;;;;;;;;;OASG;IACH,MAAM,CAAC,KAAK,CACV,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,MAAU,EACpB,MAAM,GAAE,QAAQ,GAAG,QAAmB,GACrC,MAAM;CAYV"}
|
|
@@ -10,8 +10,6 @@ export declare class FileExt extends Validator {
|
|
|
10
10
|
constructor(allowed: string[]);
|
|
11
11
|
getDescription(): string;
|
|
12
12
|
isValid(filename: string): boolean;
|
|
13
|
-
isArray(): boolean;
|
|
14
|
-
getType(): string;
|
|
15
13
|
private getFileExtension;
|
|
16
14
|
}
|
|
17
15
|
//# sourceMappingURL=file-ext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-ext.d.ts","sourceRoot":"","sources":["../../../src/validator/file-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,OAAQ,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"file-ext.d.ts","sourceRoot":"","sources":["../../../src/validator/file-ext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,OAAQ,SAAQ,SAAS;IACpC,MAAM,CAAC,QAAQ,CAAC,SAAS,UAAU;IACnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAAS;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAAS;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAAS;IACjC,MAAM,CAAC,QAAQ,CAAC,SAAS,QAAQ;IACjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAAS;IAEjC,OAAO,CAAC,OAAO,CAAW;gBAEd,OAAO,EAAE,MAAM,EAAE;IAK7B,cAAc,IAAI,MAAM;IAIxB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAKlC,OAAO,CAAC,gBAAgB;CAIzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Validator } from
|
|
1
|
+
import { Validator } from "./validator";
|
|
2
2
|
export declare class FileName extends Validator {
|
|
3
3
|
/**
|
|
4
4
|
* Get Description
|
|
@@ -11,21 +11,5 @@ export declare class FileName extends Validator {
|
|
|
11
11
|
* @returns boolean indicating if the filename is valid
|
|
12
12
|
*/
|
|
13
13
|
isValid(name: any): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Is array
|
|
16
|
-
*
|
|
17
|
-
* Function will return true if object is array.
|
|
18
|
-
*
|
|
19
|
-
* @returns boolean
|
|
20
|
-
*/
|
|
21
|
-
isArray(): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Get Type
|
|
24
|
-
*
|
|
25
|
-
* Returns validator type.
|
|
26
|
-
*
|
|
27
|
-
* @returns string
|
|
28
|
-
*/
|
|
29
|
-
getType(): string;
|
|
30
14
|
}
|
|
31
15
|
//# sourceMappingURL=file-name.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-name.d.ts","sourceRoot":"","sources":["../../../src/validator/file-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,QAAS,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"file-name.d.ts","sourceRoot":"","sources":["../../../src/validator/file-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACH,cAAc,IAAI,MAAM;IAIxB;;;;;OAKG;IACH,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO;CAe5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Validator } from
|
|
1
|
+
import { Validator } from "./validator";
|
|
2
2
|
export declare class FileSize extends Validator {
|
|
3
3
|
private max;
|
|
4
4
|
/**
|
|
@@ -13,17 +13,5 @@ export declare class FileSize extends Validator {
|
|
|
13
13
|
* Finds whether a file size is smaller than required limit.
|
|
14
14
|
*/
|
|
15
15
|
isValid(fileSize: any): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Is array
|
|
18
|
-
*
|
|
19
|
-
* Function will return true if object is array.
|
|
20
|
-
*/
|
|
21
|
-
isArray(): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Get Type
|
|
24
|
-
*
|
|
25
|
-
* Returns validator type.
|
|
26
|
-
*/
|
|
27
|
-
getType(): string;
|
|
28
16
|
}
|
|
29
17
|
//# sourceMappingURL=file-size.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-size.d.ts","sourceRoot":"","sources":["../../../src/validator/file-size.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,QAAS,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"file-size.d.ts","sourceRoot":"","sources":["../../../src/validator/file-size.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,QAAS,SAAQ,SAAS;IACrC,OAAO,CAAC,GAAG,CAAS;IAEpB;;OAEG;gBACS,GAAG,EAAE,MAAM;IAKvB;;OAEG;IACH,cAAc,IAAI,MAAM;IAIxB;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,GAAG,GAAG,OAAO;CAWhC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Validator } from
|
|
1
|
+
import { Validator } from "./validator";
|
|
2
2
|
export declare class FileType extends Validator {
|
|
3
3
|
/**
|
|
4
4
|
* File Types Constants.
|
|
@@ -23,13 +23,5 @@ export declare class FileType extends Validator {
|
|
|
23
23
|
* Binary check to finds whether a file is of valid type
|
|
24
24
|
*/
|
|
25
25
|
isValid(path: string): Promise<boolean>;
|
|
26
|
-
/**
|
|
27
|
-
* Is array
|
|
28
|
-
*/
|
|
29
|
-
isArray(): boolean;
|
|
30
|
-
/**
|
|
31
|
-
* Get Type
|
|
32
|
-
*/
|
|
33
|
-
getType(): string;
|
|
34
26
|
}
|
|
35
27
|
//# sourceMappingURL=file-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-type.d.ts","sourceRoot":"","sources":["../../../src/validator/file-type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,QAAS,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"file-type.d.ts","sourceRoot":"","sources":["../../../src/validator/file-type.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,QAAS,SAAQ,SAAS;IACrC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,cAAc,UAAU;IACxC,MAAM,CAAC,QAAQ,CAAC,aAAa,SAAS;IACtC,MAAM,CAAC,QAAQ,CAAC,aAAa,SAAS;IACtC,MAAM,CAAC,QAAQ,CAAC,cAAc,QAAQ;IAEtC;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,KAAK,CAKpB;IAEF,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAW;gBAEvB,OAAO,EAAE,MAAM,EAAE;IAY7B;;OAEG;IACH,cAAc,IAAI,MAAM;IAIxB;;;;OAIG;IACG,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAyB9C"}
|
|
@@ -10,21 +10,5 @@ export declare class File extends Validator {
|
|
|
10
10
|
* @return boolean
|
|
11
11
|
*/
|
|
12
12
|
isValid(name: any): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* Is array
|
|
15
|
-
*
|
|
16
|
-
* Function will return true if object is array.
|
|
17
|
-
*
|
|
18
|
-
* @return boolean
|
|
19
|
-
*/
|
|
20
|
-
isArray(): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Get Type
|
|
23
|
-
*
|
|
24
|
-
* Returns validator type.
|
|
25
|
-
*
|
|
26
|
-
* @return string
|
|
27
|
-
*/
|
|
28
|
-
getType(): string;
|
|
29
13
|
}
|
|
30
14
|
//# sourceMappingURL=file.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../src/validator/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,IAAK,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../src/validator/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,IAAK,SAAQ,SAAS;IAC1B,cAAc,IAAI,MAAM;IAI/B;;;;;;;OAOG;IACI,OAAO,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO;CAGnC"}
|
|
@@ -11,21 +11,5 @@ export declare class Upload extends Validator {
|
|
|
11
11
|
* @returns Promise that resolves to true if valid upload file, false otherwise
|
|
12
12
|
*/
|
|
13
13
|
isValid(path: unknown): Promise<boolean>;
|
|
14
|
-
/**
|
|
15
|
-
* Is array
|
|
16
|
-
*
|
|
17
|
-
* Function will return true if object is array.
|
|
18
|
-
*
|
|
19
|
-
* @returns false - this validator doesn't handle arrays
|
|
20
|
-
*/
|
|
21
|
-
isArray(): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Get Type
|
|
24
|
-
*
|
|
25
|
-
* Returns validator type.
|
|
26
|
-
*
|
|
27
|
-
* @returns The validator type
|
|
28
|
-
*/
|
|
29
|
-
getType(): string;
|
|
30
14
|
}
|
|
31
15
|
//# sourceMappingURL=upload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/validator/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,qBAAa,MAAO,SAAQ,SAAS;
|
|
1
|
+
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../src/validator/upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,qBAAa,MAAO,SAAQ,SAAS;IACnC;;OAEG;IACH,cAAc,IAAI,MAAM;IAIxB;;;;;OAKG;IACG,OAAO,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CAY/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../src/validator/validator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../src/validator/validator.ts"],"names":[],"mappings":"AAAA,8BAAsB,SAAS;IAC7B,MAAM,CAAC,WAAW,SAAY;IAC9B,MAAM,CAAC,UAAU,SAAW;IAC5B,MAAM,CAAC,YAAY,SAAa;IAChC,MAAM,CAAC,YAAY,SAAa;IAEhC,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;CACzD"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvix/storage",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "S3-compatible storage library for Nuvix BaaS platform",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "S3-compatible storage library for Nuvix BaaS platform with support for AWS S3, Wasabi, MinIO, and local storage",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
7
7
|
"module": "dist/index.esm.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"s3",
|
|
55
55
|
"baas",
|
|
56
56
|
"wasabi",
|
|
57
|
+
"minio",
|
|
57
58
|
"cloud-storage",
|
|
58
59
|
"file-upload",
|
|
59
60
|
"typescript",
|
|
@@ -67,10 +68,10 @@
|
|
|
67
68
|
},
|
|
68
69
|
"repository": {
|
|
69
70
|
"type": "git",
|
|
70
|
-
"url": "https://github.com/nuvix/storage.git"
|
|
71
|
+
"url": "https://github.com/nuvix-tech/storage.git"
|
|
71
72
|
},
|
|
72
73
|
"bugs": {
|
|
73
|
-
"url": "https://github.com/nuvix/storage/issues"
|
|
74
|
+
"url": "https://github.com/nuvix-tech/storage/issues"
|
|
74
75
|
},
|
|
75
|
-
"homepage": "https://github.com/nuvix/storage#readme"
|
|
76
|
-
}
|
|
76
|
+
"homepage": "https://github.com/nuvix-tech/storage#readme"
|
|
77
|
+
}
|