@nuvix/storage 1.0.1 → 2.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/README.md +154 -268
- package/dist/index.d.ts +14 -469
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -7360
- package/dist/src/device/local.d.ts +49 -0
- package/dist/src/device/local.d.ts.map +1 -0
- package/dist/src/device/minio.d.ts +22 -0
- package/dist/src/device/minio.d.ts.map +1 -0
- package/dist/src/device/s3.d.ts +101 -0
- package/dist/src/device/s3.d.ts.map +1 -0
- package/dist/src/device/wasabi.d.ts +26 -0
- package/dist/src/device/wasabi.d.ts.map +1 -0
- package/dist/src/device.d.ts +118 -0
- package/dist/src/device.d.ts.map +1 -0
- package/dist/src/errors.d.ts +15 -0
- package/dist/src/errors.d.ts.map +1 -0
- package/dist/src/storage.d.ts +44 -0
- package/dist/src/storage.d.ts.map +1 -0
- package/dist/src/validator/file-ext.d.ts +15 -0
- package/dist/src/validator/file-ext.d.ts.map +1 -0
- package/dist/src/validator/file-name.d.ts +15 -0
- package/dist/src/validator/file-name.d.ts.map +1 -0
- package/dist/src/validator/file-size.d.ts +17 -0
- package/dist/src/validator/file-size.d.ts.map +1 -0
- package/dist/src/validator/file-type.d.ts +23 -0
- package/dist/src/validator/file-type.d.ts.map +1 -0
- package/dist/src/validator/file.d.ts +14 -0
- package/dist/src/validator/file.d.ts.map +1 -0
- package/dist/src/validator/upload.d.ts +15 -0
- package/dist/src/validator/upload.d.ts.map +1 -0
- package/dist/src/validator/validator.d.ts +8 -0
- package/dist/src/validator/validator.d.ts.map +1 -0
- package/package.json +23 -28
- package/dist/index.cjs +0 -7375
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -469
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvix/storage",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "S3-compatible storage library for Nuvix BaaS platform
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"description": "S3-compatible storage library for the Nuvix BaaS platform, built on Bun's native APIs. Supports AWS S3, Wasabi, MinIO, and local storage.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.
|
|
7
|
-
"module": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"types": "
|
|
12
|
-
"import": "./dist/index.js"
|
|
13
|
-
"require": "./dist/index.cjs"
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js"
|
|
14
13
|
}
|
|
15
14
|
},
|
|
16
15
|
"files": [
|
|
@@ -19,29 +18,24 @@
|
|
|
19
18
|
"LICENSE"
|
|
20
19
|
],
|
|
21
20
|
"scripts": {
|
|
22
|
-
"build": "
|
|
23
|
-
"build:
|
|
21
|
+
"build": "bun run build:js && bun run build:types",
|
|
22
|
+
"build:js": "bun build ./index.ts --outdir dist --target bun --format esm --minify",
|
|
23
|
+
"build:types": "tsc --project tsconfig.build.json",
|
|
24
24
|
"clean": "rm -rf dist",
|
|
25
25
|
"prepublishOnly": "bun run clean && bun run build",
|
|
26
|
-
"test": "
|
|
27
|
-
"test:
|
|
28
|
-
"test:
|
|
29
|
-
"
|
|
30
|
-
"lint
|
|
26
|
+
"test": "bun test",
|
|
27
|
+
"test:integration": "bun test __tests__/integration",
|
|
28
|
+
"test:watch": "bun test --watch",
|
|
29
|
+
"test:coverage": "bun test --coverage",
|
|
30
|
+
"lint": "oxlint src __tests__ index.ts",
|
|
31
|
+
"lint:fix": "oxlint src __tests__ index.ts --fix",
|
|
32
|
+
"typecheck": "tsc --noEmit"
|
|
31
33
|
},
|
|
32
34
|
"dependencies": {},
|
|
33
35
|
"devDependencies": {
|
|
34
|
-
"@types/
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
38
|
-
"@typescript-eslint/parser": "^5.59.0",
|
|
39
|
-
"xml2js": "^0.6.2",
|
|
40
|
-
"eslint": "^8.38.0",
|
|
41
|
-
"jest": "^29.5.0",
|
|
42
|
-
"ts-jest": "^29.1.0",
|
|
43
|
-
"tsup": "^8.5.0",
|
|
44
|
-
"typescript": "^5.0.4"
|
|
36
|
+
"@types/bun": "^1.2.0",
|
|
37
|
+
"oxlint": "^1.0.0",
|
|
38
|
+
"typescript": "^5.6.0"
|
|
45
39
|
},
|
|
46
40
|
"keywords": [
|
|
47
41
|
"nuvix",
|
|
@@ -53,18 +47,19 @@
|
|
|
53
47
|
"cloud-storage",
|
|
54
48
|
"file-upload",
|
|
55
49
|
"typescript",
|
|
56
|
-
"
|
|
50
|
+
"bun"
|
|
57
51
|
],
|
|
58
52
|
"author": "",
|
|
59
53
|
"license": "MIT",
|
|
60
54
|
"engines": {
|
|
61
|
-
"
|
|
55
|
+
"bun": ">=1.2.0"
|
|
62
56
|
},
|
|
63
57
|
"repository": {
|
|
64
58
|
"type": "git",
|
|
65
59
|
"url": "https://github.com/nuvix-tech/storage.git"
|
|
66
60
|
},
|
|
67
61
|
"bugs": {
|
|
62
|
+
"type": "git",
|
|
68
63
|
"url": "https://github.com/nuvix-tech/storage/issues"
|
|
69
64
|
},
|
|
70
65
|
"homepage": "https://github.com/nuvix-tech/storage#readme"
|