@crawlee/types 4.0.0-beta.154 → 4.0.0-beta.156
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/package.json +2 -2
- package/storages.d.ts +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/types",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.156",
|
|
4
4
|
"description": "Shared types for the crawlee projects",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=22.0.0"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "cad9cdee7cb09ec5a3662532768fea9e43b6ab4e"
|
|
56
56
|
}
|
package/storages.d.ts
CHANGED
|
@@ -174,7 +174,14 @@ export interface KeyValueStoreBackend {
|
|
|
174
174
|
* instead of inferring the end from `items.length < limit`.
|
|
175
175
|
*/
|
|
176
176
|
listKeys(options?: KeyValueStoreListKeysOptions): Promise<KeyValueStoreListKeysResult>;
|
|
177
|
-
/**
|
|
177
|
+
/**
|
|
178
|
+
* Get the public URL a record with this key has, or `undefined` if the backend exposes no public
|
|
179
|
+
* URLs at all.
|
|
180
|
+
*
|
|
181
|
+
* The URL is derived from the key; implementations MUST NOT check that the record exists. Callers
|
|
182
|
+
* legitimately ask for the URL of a record that is not on the backend yet — most notably one
|
|
183
|
+
* buffered in an uncommitted storage transaction — and existence is `recordExists`'s job.
|
|
184
|
+
*/
|
|
178
185
|
getPublicUrl(key: string): Promise<string | undefined>;
|
|
179
186
|
/** Check whether a record with the given key exists. */
|
|
180
187
|
recordExists(key: string): Promise<boolean>;
|