@zintrust/storage-gcs 1.8.0 → 2.1.3
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/build-manifest.json +20 -17
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/register.d.ts +6 -5
- package/dist/register.js +6 -20
- package/package.json +2 -4
package/dist/build-manifest.json
CHANGED
|
@@ -1,44 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/storage-gcs",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"buildDate": "2026-05-
|
|
3
|
+
"version": "2.1.3",
|
|
4
|
+
"buildDate": "2026-05-27T04:09:10.307Z",
|
|
5
5
|
"buildEnvironment": {
|
|
6
|
-
"node": "
|
|
7
|
-
"platform": "
|
|
8
|
-
"arch": "
|
|
6
|
+
"node": "v22.22.1",
|
|
7
|
+
"platform": "darwin",
|
|
8
|
+
"arch": "arm64"
|
|
9
9
|
},
|
|
10
10
|
"git": {
|
|
11
|
-
"commit": "
|
|
12
|
-
"branch": "
|
|
11
|
+
"commit": "c82f6263",
|
|
12
|
+
"branch": "release"
|
|
13
13
|
},
|
|
14
14
|
"package": {
|
|
15
15
|
"engines": {
|
|
16
16
|
"node": ">=20.0.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": [
|
|
19
|
-
"@google-cloud/storage"
|
|
20
|
-
"fast-xml-parser"
|
|
19
|
+
"@google-cloud/storage"
|
|
21
20
|
],
|
|
22
21
|
"peerDependencies": [
|
|
23
22
|
"@zintrust/core"
|
|
24
23
|
]
|
|
25
24
|
},
|
|
26
25
|
"files": {
|
|
26
|
+
"build-manifest.json": {
|
|
27
|
+
"size": 1124,
|
|
28
|
+
"sha256": "400c94132c64a30b983fa1fb9b5aa5472194a962aae3874a11a4475c96d80c27"
|
|
29
|
+
},
|
|
27
30
|
"index.d.ts": {
|
|
28
|
-
"size":
|
|
29
|
-
"sha256": "
|
|
31
|
+
"size": 348,
|
|
32
|
+
"sha256": "a8b2768cff23817b351d46549f290ba23c89f0c5bec180d2f4bc852704f612c4"
|
|
30
33
|
},
|
|
31
34
|
"index.js": {
|
|
32
|
-
"size":
|
|
33
|
-
"sha256": "
|
|
35
|
+
"size": 476,
|
|
36
|
+
"sha256": "49fb8d57f8348e933a7059fd8e4fd0adf16603b2675a5e03a0b6e5d2600a9895"
|
|
34
37
|
},
|
|
35
38
|
"register.d.ts": {
|
|
36
|
-
"size":
|
|
37
|
-
"sha256": "
|
|
39
|
+
"size": 306,
|
|
40
|
+
"sha256": "9c55c216f30444d316a99dd2e90efb3796e90a34701f5bc5bb7205f050cf6d78"
|
|
38
41
|
},
|
|
39
42
|
"register.js": {
|
|
40
|
-
"size":
|
|
41
|
-
"sha256": "
|
|
43
|
+
"size": 339,
|
|
44
|
+
"sha256": "df29cc0117acbf9847b138afafc3c9c3c0a3c61d7ca543ea9c610c49a8e6f837"
|
|
42
45
|
}
|
|
43
46
|
}
|
|
44
47
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { GcsDriver } from '@zintrust/core';
|
|
2
|
-
export type { GcsConfig } from '@zintrust/core';
|
|
1
|
+
export { GcsDriver } from '@zintrust/core/storage';
|
|
2
|
+
export type { GcsConfig } from '@zintrust/core/storage';
|
|
3
3
|
/**
|
|
4
4
|
* Package version and build metadata
|
|
5
5
|
* Available at runtime for debugging and health checks
|
package/dist/index.js
CHANGED
package/dist/register.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
type StorageDriverEntry = {
|
|
2
|
+
driver: unknown;
|
|
3
|
+
normalize?: (raw: Record<string, unknown>) => Record<string, unknown>;
|
|
4
|
+
};
|
|
1
5
|
type Registry = {
|
|
2
|
-
register: (driverName: string, entry:
|
|
3
|
-
driver: unknown;
|
|
4
|
-
normalize?: unknown;
|
|
5
|
-
}) => void;
|
|
6
|
+
register: (driverName: string, entry: StorageDriverEntry) => void;
|
|
6
7
|
};
|
|
7
|
-
export declare function registerGcsStorageDriver(registry: Registry):
|
|
8
|
+
export declare function registerGcsStorageDriver(registry: Registry): void;
|
|
8
9
|
export {};
|
package/dist/register.js
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
if (
|
|
1
|
+
import { GcsDriver, StorageDriverRegistry } from '@zintrust/core/storage';
|
|
2
|
+
export function registerGcsStorageDriver(registry) {
|
|
3
|
+
if (GcsDriver === undefined)
|
|
4
4
|
return;
|
|
5
|
-
registry.register('gcs', { driver:
|
|
5
|
+
registry.register('gcs', { driver: GcsDriver });
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return await import('@zintrust/core');
|
|
10
|
-
}
|
|
11
|
-
catch {
|
|
12
|
-
try {
|
|
13
|
-
return await import('@zintrust/core');
|
|
14
|
-
}
|
|
15
|
-
catch {
|
|
16
|
-
return {};
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
const core = (await importCore());
|
|
21
|
-
if (core.StorageDriverRegistry !== undefined) {
|
|
22
|
-
await registerGcsStorageDriver(core.StorageDriverRegistry);
|
|
7
|
+
if (typeof StorageDriverRegistry !== 'undefined') {
|
|
8
|
+
registerGcsStorageDriver(StorageDriverRegistry);
|
|
23
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/storage-gcs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "Google Cloud Storage driver for ZinTrust.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -23,12 +23,10 @@
|
|
|
23
23
|
"node": ">=20.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@google-cloud/storage": "^7.19.0"
|
|
27
|
-
"fast-xml-parser": "5.7.2"
|
|
26
|
+
"@google-cloud/storage": "^7.19.0"
|
|
28
27
|
},
|
|
29
28
|
"overrides": {
|
|
30
29
|
"@tootallnate/once": "3.0.1",
|
|
31
|
-
"fast-xml-parser": "5.7.2",
|
|
32
30
|
"gaxios": "7.1.4",
|
|
33
31
|
"http-proxy-agent": "7.0.2",
|
|
34
32
|
"retry-request": "8.0.2",
|