sliftutils 1.2.24 → 1.2.25

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.
@@ -99,7 +99,6 @@ export async function openRouterCallBase(config: {
99
99
  let time = Date.now();
100
100
  let stillRunning = true;
101
101
 
102
- // Spawn monitoring loop
103
102
  void (async () => {
104
103
  while (stillRunning) {
105
104
  await new Promise(resolve => setTimeout(resolve, 5000));
@@ -128,7 +127,6 @@ export async function openRouterCallBase(config: {
128
127
  }),
129
128
  });
130
129
 
131
- // If it failed, throw
132
130
  if (response.status !== 200) {
133
131
  let responseText = await response.text();
134
132
  throw new Error(`Failed to call OpenRouter: ${response.status} ${response.statusText} ${responseText}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -226,13 +226,13 @@ export class DiskCollectionRawBrowser {
226
226
  }
227
227
 
228
228
  public async getPromise(key: string): Promise<Buffer | undefined> {
229
- return await this.synced.get(key);
229
+ return await this.synced.getPromise(key);
230
230
  }
231
231
  public set(key: string, value: Buffer) {
232
232
  this.synced.set(key, value);
233
233
  }
234
234
  public async getKeys(): Promise<string[]> {
235
- return await this.synced.getKeys();
235
+ return await this.synced.getKeysPromise();
236
236
  }
237
237
  public async getInfo(key: string) {
238
238
  return await this.synced.getInfo(key);