@veloxts/storage 0.6.89 → 0.6.91
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/dist/index.d.ts +0 -22
- package/dist/index.js +0 -27
- package/package.json +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -58,25 +58,3 @@ export type { CopyOptions, FileMetadata, FileVisibility, GetOptions, ListOptions
|
|
|
58
58
|
* ```
|
|
59
59
|
*/
|
|
60
60
|
export { basename, detectMimeType, dirname, extname, formatBytes, joinPath, normalizePath, uniqueFileName, validatePath, } from './utils.js';
|
|
61
|
-
/**
|
|
62
|
-
* DI tokens and providers for @veloxts/storage
|
|
63
|
-
*
|
|
64
|
-
* Use these to integrate storage services with the @veloxts/core DI container.
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```typescript
|
|
68
|
-
* import { Container } from '@veloxts/core';
|
|
69
|
-
* import { registerStorageProviders, STORAGE_MANAGER } from '@veloxts/storage';
|
|
70
|
-
*
|
|
71
|
-
* const container = new Container();
|
|
72
|
-
* await registerStorageProviders(container, {
|
|
73
|
-
* driver: 'local',
|
|
74
|
-
* config: { root: './uploads' },
|
|
75
|
-
* });
|
|
76
|
-
*
|
|
77
|
-
* const storage = container.resolve(STORAGE_MANAGER);
|
|
78
|
-
* await storage.put('file.txt', Buffer.from('Hello'));
|
|
79
|
-
* ```
|
|
80
|
-
*/
|
|
81
|
-
export { registerStorageProviders } from './providers.js';
|
|
82
|
-
export { STORAGE_CONFIG, STORAGE_MANAGER, STORAGE_STORE } from './tokens.js';
|
package/dist/index.js
CHANGED
|
@@ -61,30 +61,3 @@ export { _resetStandaloneStorage, closeStorage, getStorage, getStorageFromInstan
|
|
|
61
61
|
* ```
|
|
62
62
|
*/
|
|
63
63
|
export { basename, detectMimeType, dirname, extname, formatBytes, joinPath, normalizePath, uniqueFileName, validatePath, } from './utils.js';
|
|
64
|
-
// ============================================================================
|
|
65
|
-
// Dependency Injection
|
|
66
|
-
// ============================================================================
|
|
67
|
-
/**
|
|
68
|
-
* DI tokens and providers for @veloxts/storage
|
|
69
|
-
*
|
|
70
|
-
* Use these to integrate storage services with the @veloxts/core DI container.
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```typescript
|
|
74
|
-
* import { Container } from '@veloxts/core';
|
|
75
|
-
* import { registerStorageProviders, STORAGE_MANAGER } from '@veloxts/storage';
|
|
76
|
-
*
|
|
77
|
-
* const container = new Container();
|
|
78
|
-
* await registerStorageProviders(container, {
|
|
79
|
-
* driver: 'local',
|
|
80
|
-
* config: { root: './uploads' },
|
|
81
|
-
* });
|
|
82
|
-
*
|
|
83
|
-
* const storage = container.resolve(STORAGE_MANAGER);
|
|
84
|
-
* await storage.put('file.txt', Buffer.from('Hello'));
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
// Provider exports - factory functions for registering services
|
|
88
|
-
export { registerStorageProviders } from './providers.js';
|
|
89
|
-
// Token exports - unique identifiers for DI resolution
|
|
90
|
-
export { STORAGE_CONFIG, STORAGE_MANAGER, STORAGE_STORE } from './tokens.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veloxts/storage",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.91",
|
|
4
4
|
"description": "Multi-driver file storage abstraction for VeloxTS framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"fastify-plugin": "5.1.0",
|
|
34
|
-
"mime-types": "
|
|
35
|
-
"@veloxts/core": "0.6.
|
|
34
|
+
"mime-types": "3.0.2",
|
|
35
|
+
"@veloxts/core": "0.6.91"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@aws-sdk/client-s3": ">=3.0.0",
|
|
@@ -52,16 +52,16 @@
|
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/client-s3": "3.
|
|
56
|
-
"@aws-sdk/lib-storage": "3.
|
|
57
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
58
|
-
"@types/mime-types": "
|
|
59
|
-
"@types/node": "25.0
|
|
60
|
-
"@vitest/coverage-v8": "4.0.
|
|
61
|
-
"fastify": "5.
|
|
55
|
+
"@aws-sdk/client-s3": "3.980.0",
|
|
56
|
+
"@aws-sdk/lib-storage": "3.980.0",
|
|
57
|
+
"@aws-sdk/s3-request-presigner": "3.980.0",
|
|
58
|
+
"@types/mime-types": "3.0.1",
|
|
59
|
+
"@types/node": "25.1.0",
|
|
60
|
+
"@vitest/coverage-v8": "4.0.18",
|
|
61
|
+
"fastify": "5.7.2",
|
|
62
62
|
"typescript": "5.9.3",
|
|
63
|
-
"vitest": "4.0.
|
|
64
|
-
"@veloxts/testing": "0.6.
|
|
63
|
+
"vitest": "4.0.18",
|
|
64
|
+
"@veloxts/testing": "0.6.91"
|
|
65
65
|
},
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|