@lenso/storage 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +144 -2
- package/dist/fetch.d.ts +18 -0
- package/dist/fetch.js +98 -0
- package/dist/files.d.ts +68 -0
- package/dist/files.js +237 -0
- package/dist/index-0fz1t930.js +64 -0
- package/dist/index-fa6z0g4w.js +89 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.js +20 -0
- package/dist/local.d.ts +11 -0
- package/dist/local.js +457 -0
- package/dist/postgres.d.ts +567 -0
- package/dist/postgres.js +45 -0
- package/dist/r2.d.ts +52 -0
- package/dist/r2.js +188 -0
- package/dist/s3.d.ts +16 -0
- package/dist/s3.js +386 -0
- package/dist/sqlite.d.ts +602 -0
- package/dist/sqlite.js +45 -0
- package/dist/stream.d.ts +8 -0
- package/migrations/postgres/0001_files.sql +19 -0
- package/migrations/sqlite/0001_files.sql +19 -0
- package/package.json +84 -4
package/package.json
CHANGED
|
@@ -1,6 +1,86 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lenso/storage",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/LioRael/lenso.git",
|
|
8
|
+
"directory": "packages/storage"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"migrations",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"default": "./dist/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./local": {
|
|
22
|
+
"types": "./dist/local.d.ts",
|
|
23
|
+
"default": "./dist/local.js"
|
|
24
|
+
},
|
|
25
|
+
"./s3": {
|
|
26
|
+
"types": "./dist/s3.d.ts",
|
|
27
|
+
"default": "./dist/s3.js"
|
|
28
|
+
},
|
|
29
|
+
"./r2": {
|
|
30
|
+
"types": "./dist/r2.d.ts",
|
|
31
|
+
"default": "./dist/r2.js"
|
|
32
|
+
},
|
|
33
|
+
"./files": {
|
|
34
|
+
"types": "./dist/files.d.ts",
|
|
35
|
+
"default": "./dist/files.js"
|
|
36
|
+
},
|
|
37
|
+
"./sqlite": {
|
|
38
|
+
"types": "./dist/sqlite.d.ts",
|
|
39
|
+
"default": "./dist/sqlite.js"
|
|
40
|
+
},
|
|
41
|
+
"./postgres": {
|
|
42
|
+
"types": "./dist/postgres.d.ts",
|
|
43
|
+
"default": "./dist/postgres.js"
|
|
44
|
+
},
|
|
45
|
+
"./fetch": {
|
|
46
|
+
"types": "./dist/fetch.d.ts",
|
|
47
|
+
"default": "./dist/fetch.js"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "rm -rf dist && bun build src/index.ts src/local.ts src/s3.ts src/r2.ts src/files.ts src/sqlite.ts src/postgres.ts src/fetch.ts --outdir dist --target browser --packages external --splitting && tsc -p tsconfig.build.json",
|
|
52
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
53
|
+
"test": "bun test test"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@lenso/core": "^0.2.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@aws-sdk/client-s3": "3.1147.0",
|
|
60
|
+
"@aws-sdk/lib-storage": "3.1147.0",
|
|
61
|
+
"@aws-sdk/s3-request-presigner": "3.1147.0",
|
|
62
|
+
"@cloudflare/workers-types": "5.20261008.1",
|
|
63
|
+
"drizzle-orm": "0.45.3",
|
|
64
|
+
"miniflare": "5.20261006.0-alpha"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"@aws-sdk/client-s3": "^3.1147.0",
|
|
68
|
+
"@aws-sdk/lib-storage": "^3.1147.0",
|
|
69
|
+
"@aws-sdk/s3-request-presigner": "^3.1147.0",
|
|
70
|
+
"drizzle-orm": "0.45.3"
|
|
71
|
+
},
|
|
72
|
+
"peerDependenciesMeta": {
|
|
73
|
+
"@aws-sdk/client-s3": {
|
|
74
|
+
"optional": true
|
|
75
|
+
},
|
|
76
|
+
"@aws-sdk/lib-storage": {
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
"@aws-sdk/s3-request-presigner": {
|
|
80
|
+
"optional": true
|
|
81
|
+
},
|
|
82
|
+
"drizzle-orm": {
|
|
83
|
+
"optional": true
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|