@pc-nexus/storage 0.8.0-next.2 → 0.8.0-next.4

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/CHANGELOG.md CHANGED
@@ -2,4 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ # 0.8.0-next.4 (2026-07-27)
6
+
7
+ # 0.8.0-next.3 (2026-07-24)
8
+
9
+ ### Features
10
+
11
+ - 补充 nos RPC 向 sdk 看齐 (#1242) 467cb68, closes #1242
12
+
5
13
  # 0.8.0-next.2 (2026-07-20)
package/lib/nos/type.d.ts CHANGED
@@ -1,25 +1,3 @@
1
- export type ChecksumType = "SHA1" | "SHA256" | "CRC32" | "CRC32C";
2
- export interface UploadUrlBody {
3
- key: string;
4
- size: number;
5
- checksum: string;
6
- checksum_type: ChecksumType;
7
- }
8
- export interface NosUploadUrlOptions {
9
- overwrite?: boolean;
10
- }
11
- export interface PreSignedUrlResult {
12
- url: string;
13
- }
14
- export interface ObjectMetadata {
15
- key: string;
16
- name: string;
17
- mime_type?: string;
18
- checksum: string;
19
- size: number;
20
- created_at?: number;
21
- }
22
- export type GenerateUploadUrlPayload = Pick<UploadUrlBody, "size" | "checksum" | "checksum_type">;
23
- export type PresignedURLToObjectMetadataMap = Record<string, UploadUrlBody>;
24
- export type PresignedURLToObjectKeyMap = Record<string, string>;
1
+ import { ChecksumType, UploadUrlBody, NosUploadUrlOptions, PreSignedUrlResult, ObjectMetadata, GenerateUploadUrlPayload, PresignedURLToObjectMetadataMap, PresignedURLToObjectKeyMap } from "@pc-nexus/internal";
2
+ export type { ChecksumType, UploadUrlBody, NosUploadUrlOptions, PreSignedUrlResult, ObjectMetadata, GenerateUploadUrlPayload, PresignedURLToObjectMetadataMap, PresignedURLToObjectKeyMap, };
25
3
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/lib/nos/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAElE,MAAM,WAAW,aAAa;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,YAAY,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IAC/B,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,eAAe,CAAC,CAAC;AAElG,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAE5E,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/lib/nos/type.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC7B,MAAM,oBAAoB,CAAC;AAE5B,YAAY,EACR,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,GAC7B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pc-nexus/storage",
3
- "version": "0.8.0-next.2",
3
+ "version": "0.8.0-next.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "type": "module",
32
32
  "dependencies": {
33
- "@pc-nexus/internal": "0.8.0-next.2",
33
+ "@pc-nexus/internal": "0.8.0-next.4",
34
34
  "lodash": "^4.17.21"
35
35
  },
36
36
  "devDependencies": {},