@lossless.org/objectstorage 10.1.0 → 10.3.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/.smartconfig.json +21 -5
- package/dist_rust/ruststorage_linux_amd64 +0 -0
- package/dist_rust/ruststorage_linux_amd64.tsrust-build.json +5 -5
- package/dist_rust/ruststorage_linux_amd64_musl +0 -0
- package/dist_rust/ruststorage_linux_amd64_musl.tsrust-build.json +14 -0
- package/dist_rust/ruststorage_linux_arm64 +0 -0
- package/dist_rust/ruststorage_linux_arm64.tsrust-build.json +5 -5
- package/dist_rust/ruststorage_linux_arm64_musl +0 -0
- package/dist_rust/ruststorage_linux_arm64_musl.tsrust-build.json +14 -0
- package/dist_rust/ruststorage_macos_amd64 +0 -0
- package/dist_rust/ruststorage_macos_amd64.tsrust-build.json +5 -5
- package/dist_rust/ruststorage_macos_arm64 +0 -0
- package/dist_rust/ruststorage_macos_arm64.tsrust-build.json +5 -5
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/index.d.ts +13 -0
- package/dist_ts/index.js +12 -3
- package/dist_ts/plugins.d.ts +2 -2
- package/dist_ts/plugins.js +3 -3
- package/package.json +8 -6
- package/readme.md +66 -8
- package/third-party-notices.md +15 -2
- package/third_party_licenses/inventory.json +23 -4
- package/third_party_licenses/native/gcc-16.2.0/gpl-3.0.txt +674 -0
- package/third_party_licenses/native/gcc-16.2.0/runtime-exception.txt +73 -0
- package/third_party_licenses/native/musl-1.2.5/copyright +193 -0
- package/third_party_licenses/native/musl-1.2.6/copyright +193 -0
- package/third_party_licenses/native/rust-1.95.0/copyright-library.html +8266 -0
- package/third_party_licenses/native/rust-1.95.0/copyright.html +278689 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/apache-2.0.txt +73 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/bsd-2-clause.txt +9 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/cc-by-sa-4.0.txt +427 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/gcc-exception-3.1.txt +30 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/gpl-2.0-only.txt +133 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/gpl-3.0-or-later.txt +202 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/isc.txt +7 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/llvm-exception.txt +15 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/mit.txt +9 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/ncsa.txt +29 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/ofl-1.1.txt +43 -0
- package/third_party_licenses/native/rust-1.95.0/licenses/unicode-3.0.txt +39 -0
- package/third_party_licenses/native-inventory.json +106 -0
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/index.ts +34 -2
- package/ts/plugins.ts +2 -2
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"components": [
|
|
3
|
+
{
|
|
4
|
+
"component": "Rust standard library, compiler-builtins and unwind runtime",
|
|
5
|
+
"version": "1.95.0",
|
|
6
|
+
"source": "https://github.com/rust-lang/rust/tree/1.95.0",
|
|
7
|
+
"materials": "native/rust-1.95.0",
|
|
8
|
+
"note": "Complete upstream copyright inventory includes compiler/build-only components as well as runtime components; inclusion does not imply every listed component is linked."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"component": "musl (Rust self-contained runtime)",
|
|
12
|
+
"version": "1.2.5 with Rust 1.95.0 patches",
|
|
13
|
+
"source": "https://github.com/rust-lang/rust/blob/1.95.0/src/ci/docker/scripts/musl.sh",
|
|
14
|
+
"license": "MIT and notices in COPYRIGHT",
|
|
15
|
+
"materials": "native/musl-1.2.5"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"component": "musl (cross-compiler sysroot)",
|
|
19
|
+
"version": "1.2.6",
|
|
20
|
+
"source": "https://github.com/cross-tools/musl-cross/releases/tag/20260823",
|
|
21
|
+
"license": "MIT and notices in COPYRIGHT",
|
|
22
|
+
"materials": "native/musl-1.2.6"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"component": "GCC runtime",
|
|
26
|
+
"version": "16.2.0",
|
|
27
|
+
"source": "https://github.com/gcc-mirror/gcc/tree/releases/gcc-16.2.0",
|
|
28
|
+
"license": "GPL-3.0-or-later WITH GCC-exception-3.1",
|
|
29
|
+
"materials": "native/gcc-16.2.0"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"files": [
|
|
33
|
+
{
|
|
34
|
+
"path": "native/gcc-16.2.0/gpl-3.0.txt",
|
|
35
|
+
"sha256": "8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"path": "native/gcc-16.2.0/runtime-exception.txt",
|
|
39
|
+
"sha256": "9d6b43ce4d8de0c878bf16b54d8e7a10d9bd42b75178153e3af6a815bdc90f74"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"path": "native/musl-1.2.5/copyright",
|
|
43
|
+
"sha256": "f9bc4423732350eb0b3f7ed7e91d530298476f8fec0c6c427a1c04ade22655af"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"path": "native/musl-1.2.6/copyright",
|
|
47
|
+
"sha256": "b870108ec5e7790e9f9919064f1b9421d62d5f9b0e6c230c6adf7ea2da62e97b"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"path": "native/rust-1.95.0/copyright-library.html",
|
|
51
|
+
"sha256": "90567e2718bf7fd65a71a3a43c5596488e80e5f51ed02bfea6fec54458b5f3d1"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"path": "native/rust-1.95.0/copyright.html",
|
|
55
|
+
"sha256": "9bd02a099a3f9fdf977f9dd6ea3dc664723e992a267d86f447ea9e7d068824ac"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"path": "native/rust-1.95.0/licenses/apache-2.0.txt",
|
|
59
|
+
"sha256": "074e6e32c86a4c0ef8b3ed25b721ca23aca83df277cd88106ef7177c354615ff"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"path": "native/rust-1.95.0/licenses/bsd-2-clause.txt",
|
|
63
|
+
"sha256": "f32fb3b417a194167cfad068223fc975ba96c5960513a10f66a3c28720aec1df"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"path": "native/rust-1.95.0/licenses/cc-by-sa-4.0.txt",
|
|
67
|
+
"sha256": "23ee78c8bae49cf08ea2f0c84945c66b987ebe4520881fb51b3dad4fb43d07c2"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"path": "native/rust-1.95.0/licenses/gcc-exception-3.1.txt",
|
|
71
|
+
"sha256": "a3966c9410ef94a1efbfa9ec04e9c1994026a70623fbf0885ce36737bfba3b54"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"path": "native/rust-1.95.0/licenses/gpl-2.0-only.txt",
|
|
75
|
+
"sha256": "54b212ba1f97f6948fa5486239ab505dd820b02e50cbfd296b4062c8609a70af"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"path": "native/rust-1.95.0/licenses/gpl-3.0-or-later.txt",
|
|
79
|
+
"sha256": "05315fce6c35f79b8a35454828995fa26336f235895ac64557abc028f4ffcea2"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"path": "native/rust-1.95.0/licenses/isc.txt",
|
|
83
|
+
"sha256": "0ff61769b238634e042ab759dddfd104a8e69d091e3600ae3410e401a6164381"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"path": "native/rust-1.95.0/licenses/llvm-exception.txt",
|
|
87
|
+
"sha256": "e34c58338bd89d43e709e226610d8f32b3e3c47f4ad9a99a8dc1d4ac7842488e"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"path": "native/rust-1.95.0/licenses/mit.txt",
|
|
91
|
+
"sha256": "b85dcd3e453d05982552c52b5fc9e0bdd6d23c6f8e844b984a88af32570b0cc0"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"path": "native/rust-1.95.0/licenses/ncsa.txt",
|
|
95
|
+
"sha256": "39cb0234065c92b9e6cee3830cbb52b1aa289aa8fe9ba2e66730fec5cf05c630"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"path": "native/rust-1.95.0/licenses/ofl-1.1.txt",
|
|
99
|
+
"sha256": "8eea8287e5876b539670cadb82e99f9a7afddec6f6730811be1daf25d2e9bcfd"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"path": "native/rust-1.95.0/licenses/unicode-3.0.txt",
|
|
103
|
+
"sha256": "f5062c9a188d81dfe66b56db4182dcf9e4b17c0d9b0d311a8e20b3a1b075c443"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export const commitinfo = {
|
|
5
5
|
name: '@lossless.org/objectstorage',
|
|
6
|
-
version: '10.1
|
|
6
|
+
version: '10.3.1',
|
|
7
7
|
description: 'A Node.js TypeScript package to create a local S3-compatible storage server using mapped local directories for development and testing purposes.'
|
|
8
8
|
}
|
package/ts/index.ts
CHANGED
|
@@ -933,6 +933,23 @@ export interface IObjectStorageResourceFencingCapability {
|
|
|
933
933
|
reason?: string;
|
|
934
934
|
}
|
|
935
935
|
|
|
936
|
+
export type TObjectStorageBucketResourceFencePublicationState =
|
|
937
|
+
| 'none'
|
|
938
|
+
| 'requested'
|
|
939
|
+
| 'publishing'
|
|
940
|
+
| 'held'
|
|
941
|
+
| 'released';
|
|
942
|
+
|
|
943
|
+
export interface IObjectStorageBucketResourceFenceState {
|
|
944
|
+
version: 1;
|
|
945
|
+
providerRootIdentitySha256: string;
|
|
946
|
+
bucketName: string;
|
|
947
|
+
resourceIdSha256: string;
|
|
948
|
+
scopeId: string;
|
|
949
|
+
highestToken: number;
|
|
950
|
+
publicationState: TObjectStorageBucketResourceFencePublicationState;
|
|
951
|
+
}
|
|
952
|
+
|
|
936
953
|
export interface IObjectStorageHealth {
|
|
937
954
|
ok: boolean;
|
|
938
955
|
running: boolean;
|
|
@@ -1261,8 +1278,8 @@ function createSecretAccessKey(): string {
|
|
|
1261
1278
|
|
|
1262
1279
|
function getRustStorageBinaryNames(): string[] {
|
|
1263
1280
|
const platformTargetMap: Record<string, string> = {
|
|
1264
|
-
'linux:x64': '
|
|
1265
|
-
'linux:arm64': '
|
|
1281
|
+
'linux:x64': 'linux_amd64_musl',
|
|
1282
|
+
'linux:arm64': 'linux_arm64_musl',
|
|
1266
1283
|
'darwin:x64': 'macos_amd64',
|
|
1267
1284
|
'darwin:arm64': 'macos_arm64',
|
|
1268
1285
|
};
|
|
@@ -1371,6 +1388,10 @@ type TRustStorageCommands = {
|
|
|
1371
1388
|
params: {};
|
|
1372
1389
|
result: IObjectStorageResourceFencingCapability;
|
|
1373
1390
|
};
|
|
1391
|
+
getBucketResourceFenceState: {
|
|
1392
|
+
params: { bucketName: string };
|
|
1393
|
+
result: IObjectStorageBucketResourceFenceState | null;
|
|
1394
|
+
};
|
|
1374
1395
|
getStorageStats: { params: {}; result: IStorageStats };
|
|
1375
1396
|
listBucketSummaries: { params: {}; result: IBucketSummary[] };
|
|
1376
1397
|
listCredentials: { params: {}; result: IStorageCredentialMetadata[] };
|
|
@@ -1434,6 +1455,7 @@ export class ObjectStorage {
|
|
|
1434
1455
|
);
|
|
1435
1456
|
this.bridge = new plugins.RustBridge<TRustStorageCommands>({
|
|
1436
1457
|
binaryName: 'ruststorage',
|
|
1458
|
+
envVarName: 'OBJECTSTORAGE_RUST_BINARY',
|
|
1437
1459
|
localPaths: localBinaryPaths,
|
|
1438
1460
|
readyTimeoutMs: 30000,
|
|
1439
1461
|
requestTimeoutMs: 300000,
|
|
@@ -1755,6 +1777,16 @@ export class ObjectStorage {
|
|
|
1755
1777
|
return this.bridge.sendCommand('getResourceFencingCapability', {});
|
|
1756
1778
|
}
|
|
1757
1779
|
|
|
1780
|
+
public async getBucketResourceFenceState(optionsArg: {
|
|
1781
|
+
bucketName: string;
|
|
1782
|
+
}): Promise<IObjectStorageBucketResourceFenceState | null> {
|
|
1783
|
+
try {
|
|
1784
|
+
return await this.bridge.sendCommand('getBucketResourceFenceState', optionsArg);
|
|
1785
|
+
} catch (error) {
|
|
1786
|
+
throw normalizeResourceFenceError(error);
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1758
1790
|
public async getStorageStats(): Promise<IStorageStats> {
|
|
1759
1791
|
return this.bridge.sendCommand('getStorageStats', {});
|
|
1760
1792
|
}
|
package/ts/plugins.ts
CHANGED