@cloudbitmaps/gcs 0.18.2 → 0.19.0
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 +20 -9
- package/dist/backend.d.ts +10 -5
- package/dist/bucket-presence.d.ts +37 -0
- package/dist/crc32c.d.ts +5 -0
- package/dist/gcs-errors.d.ts +8 -1
- package/dist/index.js +350 -130
- package/dist/index.js.map +4 -4
- package/dist/read-client.d.ts +6 -0
- package/dist/registry.d.ts +1 -0
- package/dist/storage.d.ts +3 -0
- package/package.json +2 -2
package/dist/registry.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export declare class GcsRegistryStore implements ObjectRegistryStore {
|
|
|
70
70
|
private readonly readTimeoutMs;
|
|
71
71
|
readonly conditionalDelete: boolean;
|
|
72
72
|
readonly label = "GCS";
|
|
73
|
+
private readonly presence;
|
|
73
74
|
constructor(storage: Storage, readStorage: Storage, bucket: string, readTimeoutMs: number, conditionalDelete: boolean);
|
|
74
75
|
/** A handle on one registry object. */
|
|
75
76
|
private file;
|
package/dist/storage.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ export declare class GcsStorageDriver implements IStorageDriver {
|
|
|
42
42
|
private readonly threshold;
|
|
43
43
|
private readonly readTimeoutMs;
|
|
44
44
|
private readonly clock;
|
|
45
|
+
private readonly presence;
|
|
45
46
|
constructor(options: GcsStorageDriverOptions);
|
|
46
47
|
capabilities(): StorageCaps;
|
|
47
48
|
private file;
|
|
@@ -80,6 +81,8 @@ export declare class GcsStorageDriver implements IStorageDriver {
|
|
|
80
81
|
private badTail;
|
|
81
82
|
delete(key: GenKey): Promise<void>;
|
|
82
83
|
list(ref: SegmentRef): AsyncIterable<GenKey>;
|
|
84
|
+
/** A read's error, once a 404 is known to be the object's and not the bucket's ({@link BucketPresence}). */
|
|
85
|
+
private readFailure;
|
|
83
86
|
/** Map GCS read errors to the driver vocabulary; pass everything else through {@link mapError}. */
|
|
84
87
|
private mapReadError;
|
|
85
88
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbitmaps/gcs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Google Cloud Storage for CloudBitmaps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudbitmaps",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@google-cloud/storage": "^7 || ^8",
|
|
52
|
-
"@cloudbitmaps/core": "^0.
|
|
52
|
+
"@cloudbitmaps/core": "^0.19.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^22.0.0",
|