@zola_do/seaweed 0.2.3 → 0.2.5

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 CHANGED
@@ -12,6 +12,18 @@ npm install @zola_do/seaweed
12
12
  npm install @zola_do/nestjs-shared
13
13
  ```
14
14
 
15
+ ## Recommended Imports
16
+
17
+ `@zola_do/seaweed` root imports remain fully supported for backward compatibility.
18
+ For new code, prefer focused subpath imports:
19
+
20
+ ```typescript
21
+ import { StorageModule } from '@zola_do/seaweed/module';
22
+ import { StorageService, AwsS3 } from '@zola_do/seaweed/services';
23
+ import type { FileInfo } from '@zola_do/seaweed/types';
24
+ import { FileNotFoundException } from '@zola_do/seaweed/exceptions';
25
+ ```
26
+
15
27
  ## Usage
16
28
 
17
29
  ### Module Setup
@@ -74,6 +86,8 @@ const downloadUrl = await this.storageService.generatePresignedDownloadUrl(fileI
74
86
  - `StorageModule` — Register the storage module
75
87
  - `StorageService` — Upload, download, presigned URLs
76
88
  - Types and exceptions for storage operations
89
+ - Subpath entrypoints: `@zola_do/seaweed/module`, `@zola_do/seaweed/services`, `@zola_do/seaweed/types`, `@zola_do/seaweed/exceptions`
90
+ - Root entrypoint: `@zola_do/seaweed` (supported for backward compatibility)
77
91
 
78
92
  ## Related Packages
79
93
 
@@ -0,0 +1 @@
1
+ export * from './storage.module';
package/dist/module.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./storage.module"), exports);
18
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -0,0 +1,2 @@
1
+ export * from './aws-s3.service';
2
+ export * from './storage.service';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./aws-s3.service"), exports);
18
+ __exportStar(require("./storage.service"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,oDAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zola_do/seaweed",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "AWS S3-compatible storage for NestJS",
5
5
  "author": "zolaDO",
6
6
  "license": "ISC",
@@ -18,6 +18,26 @@
18
18
  "types": "./dist/index.d.ts",
19
19
  "require": "./dist/index.js",
20
20
  "default": "./dist/index.js"
21
+ },
22
+ "./module": {
23
+ "types": "./dist/module.d.ts",
24
+ "require": "./dist/module.js",
25
+ "default": "./dist/module.js"
26
+ },
27
+ "./services": {
28
+ "types": "./dist/services/index.d.ts",
29
+ "require": "./dist/services/index.js",
30
+ "default": "./dist/services/index.js"
31
+ },
32
+ "./types": {
33
+ "types": "./dist/types.d.ts",
34
+ "require": "./dist/types.js",
35
+ "default": "./dist/types.js"
36
+ },
37
+ "./exceptions": {
38
+ "types": "./dist/exceptions/index.d.ts",
39
+ "require": "./dist/exceptions/index.js",
40
+ "default": "./dist/exceptions/index.js"
21
41
  }
22
42
  },
23
43
  "files": [