@mark1russell7/docker-sqlite 0.1.1 → 0.2.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Change history
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Breaking changes
6
+
7
+ - The `save` of `createConnection` does not write over a file that changed after the connection loaded it or saved it last. It throws a `DatabaseFileChangedError` and writes nothing. Before, it wrote the old copy of the connection with its change, and the changes of the other connection or process were lost. A program that keeps one connection open while another connection, another process or the web UI writes the same file now gets this error. To continue, close the connection, open a new one and make the change again.
8
+
9
+ ### New
10
+
11
+ - `DatabaseFileChangedError`, with `code: "DATABASE_FILE_CHANGED"` and `dbPath`.
12
+
13
+ ### Corrections
14
+
15
+ - The `save` of `createConnection` runs in the queue of the file, one call at a time with `withConnection` and the other saves of this process. Before, it ran outside the queue. In a `withConnection` callback for the same file, it runs at once, so it cannot wait for itself.
16
+
3
17
  ## 0.1.1
4
18
 
5
19
  ### Corrections
package/README.md CHANGED
@@ -345,6 +345,30 @@ try {
345
345
  }
346
346
  ```
347
347
 
348
+ **Behavior:**
349
+ - `save()` writes the file only when the database changed, with the same atomic save as `withConnection`.
350
+ - `save()` runs in the queue of the file: one call at a time with `withConnection` and the other saves of this process. In a `withConnection` callback for the same file, it runs at once.
351
+ - `save()` throws a `DatabaseFileChangedError` (`code: "DATABASE_FILE_CHANGED"`) and writes nothing when the file changed after the connection loaded it or saved it last. Another connection or process wrote the file, and the old copy of this connection would replace those changes. After the error, close the connection, open a new one and make the change again.
352
+
353
+ ```typescript
354
+ import { createConnection, DatabaseFileChangedError, execute } from '@mark1russell7/docker-sqlite';
355
+
356
+ async function addLog(message: string): Promise<void> {
357
+ const { db, save } = await createConnection({ dbPath: './data/app.db' });
358
+ try {
359
+ execute(db, 'INSERT INTO logs (message) VALUES (?)', [message]);
360
+ await save();
361
+ } catch (error) {
362
+ if (error instanceof DatabaseFileChangedError) {
363
+ return addLog(message); // The file changed: load it again and repeat the change
364
+ }
365
+ throw error;
366
+ } finally {
367
+ db.close();
368
+ }
369
+ }
370
+ ```
371
+
348
372
  ### Query Operations
349
373
 
350
374
  #### `query<T>(db, sql, params?): QueryResult<T>`
@@ -1025,6 +1049,7 @@ import {
1025
1049
  // Connection
1026
1050
  withConnection,
1027
1051
  createConnection,
1052
+ DatabaseFileChangedError,
1028
1053
 
1029
1054
  // Query
1030
1055
  query,
package/dist/.tsbuildinfo CHANGED
@@ -1 +1 @@
1
- {"fileNames":["../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.error.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/.pnpm/@types+emscripten@1.41.6/node_modules/@types/emscripten/index.d.ts","../node_modules/.pnpm/@types+sql.js@1.4.11/node_modules/@types/sql.js/index.d.ts","../src/types.ts","../src/connect.ts","../src/query.ts","../src/migrate.ts","../src/index.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/index.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/globals.typedarray.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/buffer.buffer.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/globals.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/events.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/storage.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/assert.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/assert/strict.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/async_hooks.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/buffer.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/child_process.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/cluster.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/console.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/constants.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/crypto.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/dgram.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/dns.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/dns/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/domain.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/events.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/fs.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/fs/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/http.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/http2.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/https.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/inspector.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/inspector.generated.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/module.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/net.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/os.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/path.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/perf_hooks.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/process.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/punycode.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/querystring.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/readline.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/readline/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/repl.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/sea.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/sqlite.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream/consumers.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream/web.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/string_decoder.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/test.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/timers.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/timers/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/tls.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/trace_events.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/tty.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/url.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/util.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/v8.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/vm.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/wasi.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/worker_threads.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/zlib.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/index.d.ts"],"fileIdsList":[[93,141,158,159],[93,138,139,141,158,159],[93,140,141,158,159],[141,158,159],[93,141,146,158,159,176],[93,141,142,147,152,158,159,161,173,184],[93,141,142,143,152,158,159,161],[88,89,90,93,141,158,159],[93,141,144,158,159,185],[93,141,145,146,153,158,159,162],[93,141,146,158,159,173,181],[93,141,147,149,152,158,159,161],[93,140,141,148,158,159],[93,141,149,150,158,159],[93,141,151,152,158,159],[93,140,141,152,158,159],[93,141,152,153,154,158,159,173,184],[93,141,152,153,154,158,159,168,173,176],[93,134,141,149,152,155,158,159,161,173,184],[93,141,152,153,155,156,158,159,161,173,181,184],[93,141,155,157,158,159,173,181,184],[91,92,93,94,95,96,97,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[93,141,152,158,159],[93,141,158,159,160,184],[93,141,149,152,158,159,161,173],[93,141,158,159,162],[93,141,158,159,163],[93,140,141,158,159,164],[93,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[93,141,158,159,166],[93,141,158,159,167],[93,141,152,158,159,168,169],[93,141,158,159,168,170,185,187],[93,141,153,158,159],[93,141,152,158,159,173,174,176],[93,141,158,159,175,176],[93,141,158,159,173,174],[93,141,158,159,176],[93,141,158,159,177],[93,138,141,158,159,173,178,184],[93,141,152,158,159,179,180],[93,141,158,159,179,180],[93,141,146,158,159,161,173,181],[93,141,158,159,182],[93,141,158,159,161,183],[93,141,155,158,159,167,184],[93,141,146,158,159,185],[93,141,158,159,173,186],[93,141,158,159,160,187],[93,141,158,159,188],[93,134,141,158,159],[93,134,141,152,154,158,159,164,173,176,184,186,187,189],[93,141,158,159,173,190],[81,93,141,158,159],[93,106,110,141,158,159,184],[93,106,141,158,159,173,184],[93,101,141,158,159],[93,103,106,141,158,159,181,184],[93,141,158,159,161,181],[93,141,158,159,191],[93,101,141,158,159,191],[93,103,106,141,158,159,161,184],[93,98,99,102,105,141,152,158,159,173,184],[93,106,113,141,158,159],[93,98,104,141,158,159],[93,106,127,128,141,158,159],[93,102,106,141,158,159,176,184,191],[93,127,141,158,159,191],[93,100,101,141,158,159,191],[93,106,141,158,159],[93,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,141,158,159],[93,106,121,141,158,159],[93,106,113,114,141,158,159],[93,104,106,114,115,141,158,159],[93,105,141,158,159],[93,98,101,106,141,158,159],[93,106,110,114,115,141,158,159],[93,110,141,158,159],[93,104,106,109,141,158,159,184],[93,98,103,106,113,141,158,159],[93,141,158,159,173],[93,101,106,127,141,158,159,189,191],[82,83,93,141,146,154,158,159,163],[82,83,84,85,86,93,141,158,159],[82,83,85,93,141,158,159],[82,83,93,141,158,159],[82,93,141,158,159]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"ad633a1a426cdbcf6e6e0a4af203552e0ffe544d4e690470baca6a8bc2188204","affectsGlobalScope":true,"impliedFormat":1},{"version":"eac73686325efdcedec47e6022d916fca7f886409160e0bf1a6f3ac74b67d30f","impliedFormat":1},{"version":"3f5bc2fb40a4a1e14ef1ed40db95a4433295249e9213174ba4502a26ac7addf3","signature":"9bb0df98bfe0882fabd4d599f71270c2011aa78132441ee9d3d15df9fddcd9c7","impliedFormat":99},{"version":"ee507accdd89efb1937b0082d0a36fc1abad07236864913601831d0ce11e9ebe","signature":"5070fd1d350defb2e233535a76440dc4f9ce41efeecfbbbff0692e536040dce4","impliedFormat":99},{"version":"2a4d4006b22637627a6f2d4e734ee6c859aeee008ac489be226800a9540bdd39","signature":"3ea5d3200c2f176a650adc43059c480a9639aabcc4c5ba5adc1e01d11829f4b9","impliedFormat":99},{"version":"bc7ee528bd4650e5cef6e1733aa71a6ebe968532aaf5801a10f783804cf84351","signature":"b478708d4c4dc252c0f5566e7a30d20ae42ce212bec3e555c2df4e8c3dda373f","impliedFormat":99},{"version":"124ae9cbe2128439a48e94dc888b96a5038775e1b7aa68cc7b3c51fbbcc9c595","signature":"0fe08b5e42d83b1408b0f0b9b13762f9b189ae355fa7139097c91a1b68346a09","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"f949f7f6c7802a338039cfc2156d1fe285cdd1e092c64437ebe15ae8edc854e0","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2bc7425ef40526650d6db7e072c1ff4a51101c3ac2cc4b666623b19496a6e27","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"0dba70b3fb0dcd713fda33c2df64fa6751fff6460e536971cee917260fb17882","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f663c2f91127ef7024e8ca4b3b4383ff2770e5f826696005de382282794b127","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[[83,87]],"options":{"allowSyntheticDefaultImports":true,"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"importHelpers":true,"isolatedDeclarations":true,"module":199,"newLine":1,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noUncheckedSideEffectImports":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","removeComments":false,"rootDir":"../src","skipDefaultLibCheck":false,"skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":99,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[81,1],[138,2],[139,2],[140,3],[93,4],[141,5],[142,6],[143,7],[88,1],[91,8],[89,1],[90,1],[144,9],[145,10],[146,11],[147,12],[148,13],[149,14],[150,14],[151,15],[152,16],[153,17],[154,18],[94,1],[92,1],[155,19],[156,20],[157,21],[191,22],[158,23],[159,1],[160,24],[161,25],[162,26],[163,27],[164,28],[165,29],[166,30],[167,31],[168,32],[169,32],[170,33],[171,1],[172,34],[173,35],[175,36],[174,37],[176,38],[177,39],[178,40],[179,41],[180,42],[181,43],[182,44],[183,45],[184,46],[185,47],[186,48],[187,49],[188,50],[95,1],[96,1],[97,1],[135,51],[136,1],[137,1],[189,52],[190,53],[82,54],[79,1],[80,1],[14,1],[13,1],[2,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[3,1],[23,1],[24,1],[4,1],[25,1],[29,1],[26,1],[27,1],[28,1],[30,1],[31,1],[32,1],[5,1],[33,1],[34,1],[35,1],[36,1],[6,1],[40,1],[37,1],[38,1],[39,1],[41,1],[7,1],[42,1],[47,1],[48,1],[43,1],[44,1],[45,1],[46,1],[8,1],[52,1],[49,1],[50,1],[51,1],[53,1],[9,1],[54,1],[55,1],[56,1],[58,1],[57,1],[59,1],[60,1],[10,1],[61,1],[62,1],[63,1],[11,1],[64,1],[65,1],[66,1],[67,1],[68,1],[1,1],[69,1],[70,1],[12,1],[74,1],[72,1],[77,1],[76,1],[71,1],[75,1],[73,1],[78,1],[113,55],[123,56],[112,55],[133,57],[104,58],[103,59],[132,60],[126,61],[131,62],[106,63],[120,64],[105,65],[129,66],[101,67],[100,60],[130,68],[102,69],[107,70],[108,1],[111,70],[98,1],[134,71],[124,72],[115,73],[116,74],[118,75],[114,76],[117,77],[127,60],[109,78],[110,79],[119,80],[99,81],[122,72],[121,70],[125,1],[128,82],[84,83],[87,84],[86,85],[85,86],[83,87]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
1
+ {"fileNames":["../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.error.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/.pnpm/@types+emscripten@1.41.6/node_modules/@types/emscripten/index.d.ts","../node_modules/.pnpm/@types+sql.js@1.4.11/node_modules/@types/sql.js/index.d.ts","../src/types.ts","../src/connect.ts","../src/query.ts","../src/migrate.ts","../src/index.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/disposable.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/indexable.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/compatibility/index.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/globals.typedarray.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/buffer.buffer.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/globals.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/events.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/header.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/readable.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/file.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/fetch.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/formdata.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/connector.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/client.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/errors.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/dispatcher.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-dispatcher.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/global-origin.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool-stats.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/pool.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/handlers.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/balanced-pool.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-interceptor.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-client.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-pool.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/mock-errors.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/proxy-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-handler.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/retry-agent.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/api.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/interceptors.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/util.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cookies.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/patch.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/websocket.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/eventsource.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/filereader.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/content-type.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/cache.d.ts","../node_modules/.pnpm/undici-types@6.21.0/node_modules/undici-types/index.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/web-globals/storage.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/assert.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/assert/strict.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/async_hooks.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/buffer.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/child_process.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/cluster.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/console.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/constants.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/crypto.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/dgram.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/dns.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/dns/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/domain.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/events.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/fs.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/fs/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/http.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/http2.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/https.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/inspector.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/inspector.generated.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/module.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/net.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/os.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/path.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/perf_hooks.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/process.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/punycode.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/querystring.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/readline.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/readline/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/repl.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/sea.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/sqlite.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream/consumers.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/stream/web.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/string_decoder.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/test.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/timers.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/timers/promises.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/tls.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/trace_events.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/tty.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/url.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/util.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/v8.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/vm.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/wasi.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/worker_threads.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/zlib.d.ts","../node_modules/.pnpm/@types+node@22.19.11/node_modules/@types/node/index.d.ts"],"fileIdsList":[[93,141,158,159],[93,138,139,141,158,159],[93,140,141,158,159],[141,158,159],[93,141,146,158,159,176],[93,141,142,147,152,158,159,161,173,184],[93,141,142,143,152,158,159,161],[88,89,90,93,141,158,159],[93,141,144,158,159,185],[93,141,145,146,153,158,159,162],[93,141,146,158,159,173,181],[93,141,147,149,152,158,159,161],[93,140,141,148,158,159],[93,141,149,150,158,159],[93,141,151,152,158,159],[93,140,141,152,158,159],[93,141,152,153,154,158,159,173,184],[93,141,152,153,154,158,159,168,173,176],[93,134,141,149,152,155,158,159,161,173,184],[93,141,152,153,155,156,158,159,161,173,181,184],[93,141,155,157,158,159,173,181,184],[91,92,93,94,95,96,97,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[93,141,152,158,159],[93,141,158,159,160,184],[93,141,149,152,158,159,161,173],[93,141,158,159,162],[93,141,158,159,163],[93,140,141,158,159,164],[93,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190],[93,141,158,159,166],[93,141,158,159,167],[93,141,152,158,159,168,169],[93,141,158,159,168,170,185,187],[93,141,153,158,159],[93,141,152,158,159,173,174,176],[93,141,158,159,175,176],[93,141,158,159,173,174],[93,141,158,159,176],[93,141,158,159,177],[93,138,141,158,159,173,178,184],[93,141,152,158,159,179,180],[93,141,158,159,179,180],[93,141,146,158,159,161,173,181],[93,141,158,159,182],[93,141,158,159,161,183],[93,141,155,158,159,167,184],[93,141,146,158,159,185],[93,141,158,159,173,186],[93,141,158,159,160,187],[93,141,158,159,188],[93,134,141,158,159],[93,134,141,152,154,158,159,164,173,176,184,186,187,189],[93,141,158,159,173,190],[81,93,141,158,159],[93,106,110,141,158,159,184],[93,106,141,158,159,173,184],[93,101,141,158,159],[93,103,106,141,158,159,181,184],[93,141,158,159,161,181],[93,141,158,159,191],[93,101,141,158,159,191],[93,103,106,141,158,159,161,184],[93,98,99,102,105,141,152,158,159,173,184],[93,106,113,141,158,159],[93,98,104,141,158,159],[93,106,127,128,141,158,159],[93,102,106,141,158,159,176,184,191],[93,127,141,158,159,191],[93,100,101,141,158,159,191],[93,106,141,158,159],[93,100,101,102,103,104,105,106,107,108,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,128,129,130,131,132,133,141,158,159],[93,106,121,141,158,159],[93,106,113,114,141,158,159],[93,104,106,114,115,141,158,159],[93,105,141,158,159],[93,98,101,106,141,158,159],[93,106,110,114,115,141,158,159],[93,110,141,158,159],[93,104,106,109,141,158,159,184],[93,98,103,106,113,141,158,159],[93,141,158,159,173],[93,101,106,127,141,158,159,189,191],[82,83,93,140,141,146,154,158,159,163],[82,83,84,85,86,93,141,158,159],[82,83,85,93,141,158,159],[82,83,93,141,158,159],[82,93,141,158,159]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"ad633a1a426cdbcf6e6e0a4af203552e0ffe544d4e690470baca6a8bc2188204","affectsGlobalScope":true,"impliedFormat":1},{"version":"eac73686325efdcedec47e6022d916fca7f886409160e0bf1a6f3ac74b67d30f","impliedFormat":1},{"version":"3f5bc2fb40a4a1e14ef1ed40db95a4433295249e9213174ba4502a26ac7addf3","signature":"9bb0df98bfe0882fabd4d599f71270c2011aa78132441ee9d3d15df9fddcd9c7","impliedFormat":99},{"version":"7b4098d555c25ce16adf89c595240aec9f3fb4b9359cd43c19405b0e52c90a4a","signature":"c1954b91064d948fd42bfad3110b4fd26a999925f8226ee8c9f79cf6fa4b48cf","impliedFormat":99},{"version":"2a4d4006b22637627a6f2d4e734ee6c859aeee008ac489be226800a9540bdd39","signature":"3ea5d3200c2f176a650adc43059c480a9639aabcc4c5ba5adc1e01d11829f4b9","impliedFormat":99},{"version":"bc7ee528bd4650e5cef6e1733aa71a6ebe968532aaf5801a10f783804cf84351","signature":"b478708d4c4dc252c0f5566e7a30d20ae42ce212bec3e555c2df4e8c3dda373f","impliedFormat":99},{"version":"55e369ea90b1bb8649293f5dbd58c294c15af83e99eaa096f7b993ad2b3433e6","signature":"1f1424a4cd675383cfb3a3dbd513599493c3fe884a1d22828eef54bcae1b6b38","impliedFormat":99},{"version":"6c7176368037af28cb72f2392010fa1cef295d6d6744bca8cfb54985f3a18c3e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab41ef1f2cdafb8df48be20cd969d875602483859dc194e9c97c8a576892c052","affectsGlobalScope":true,"impliedFormat":1},{"version":"437e20f2ba32abaeb7985e0afe0002de1917bc74e949ba585e49feba65da6ca1","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"98cffbf06d6bab333473c70a893770dbe990783904002c4f1a960447b4b53dca","affectsGlobalScope":true,"impliedFormat":1},{"version":"3af97acf03cc97de58a3a4bc91f8f616408099bc4233f6d0852e72a8ffb91ac9","affectsGlobalScope":true,"impliedFormat":1},{"version":"808069bba06b6768b62fd22429b53362e7af342da4a236ed2d2e1c89fcca3b4a","affectsGlobalScope":true,"impliedFormat":1},{"version":"1db0b7dca579049ca4193d034d835f6bfe73096c73663e5ef9a0b5779939f3d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"f26b11d8d8e4b8028f1c7d618b22274c892e4b0ef5b3678a8ccbad85419aef43","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"763fe0f42b3d79b440a9b6e51e9ba3f3f91352469c1e4b3b67bfa4ff6352f3f4","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"7f182617db458e98fc18dfb272d40aa2fff3a353c44a89b2c0ccb3937709bfb5","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"b52476feb4a0cbcb25e5931b930fc73cb6643fb1a5060bf8a3dda0eeae5b4b68","affectsGlobalScope":true,"impliedFormat":1},{"version":"f9501cc13ce624c72b61f12b3963e84fad210fbdf0ffbc4590e08460a3f04eba","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fa06ada475b910e2106c98c68b10483dc8811d0c14a8a8dd36efb2672485b29","impliedFormat":1},{"version":"33e5e9aba62c3193d10d1d33ae1fa75c46a1171cf76fef750777377d53b0303f","impliedFormat":1},{"version":"2b06b93fd01bcd49d1a6bd1f9b65ddcae6480b9a86e9061634d6f8e354c1468f","impliedFormat":1},{"version":"6a0cd27e5dc2cfbe039e731cf879d12b0e2dded06d1b1dedad07f7712de0d7f4","affectsGlobalScope":true,"impliedFormat":1},{"version":"13f5c844119c43e51ce777c509267f14d6aaf31eafb2c2b002ca35584cd13b29","impliedFormat":1},{"version":"e60477649d6ad21542bd2dc7e3d9ff6853d0797ba9f689ba2f6653818999c264","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"4c829ab315f57c5442c6667b53769975acbf92003a66aef19bce151987675bd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"b2ade7657e2db96d18315694789eff2ddd3d8aea7215b181f8a0b303277cc579","impliedFormat":1},{"version":"9855e02d837744303391e5623a531734443a5f8e6e8755e018c41d63ad797db2","impliedFormat":1},{"version":"4d631b81fa2f07a0e63a9a143d6a82c25c5f051298651a9b69176ba28930756d","impliedFormat":1},{"version":"836a356aae992ff3c28a0212e3eabcb76dd4b0cc06bcb9607aeef560661b860d","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"41670ee38943d9cbb4924e436f56fc19ee94232bc96108562de1a734af20dc2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c906fb15bd2aabc9ed1e3f44eb6a8661199d6c320b3aa196b826121552cb3695","impliedFormat":1},{"version":"22295e8103f1d6d8ea4b5d6211e43421fe4564e34d0dd8e09e520e452d89e659","impliedFormat":1},{"version":"f949f7f6c7802a338039cfc2156d1fe285cdd1e092c64437ebe15ae8edc854e0","impliedFormat":1},{"version":"6b4e081d55ac24fc8a4631d5dd77fe249fa25900abd7d046abb87d90e3b45645","impliedFormat":1},{"version":"a10f0e1854f3316d7ee437b79649e5a6ae3ae14ffe6322b02d4987071a95362e","impliedFormat":1},{"version":"e208f73ef6a980104304b0d2ca5f6bf1b85de6009d2c7e404028b875020fa8f2","impliedFormat":1},{"version":"d163b6bc2372b4f07260747cbc6c0a6405ab3fbcea3852305e98ac43ca59f5bc","impliedFormat":1},{"version":"e6fa9ad47c5f71ff733744a029d1dc472c618de53804eae08ffc243b936f87ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"83e63d6ccf8ec004a3bb6d58b9bb0104f60e002754b1e968024b320730cc5311","impliedFormat":1},{"version":"24826ed94a78d5c64bd857570fdbd96229ad41b5cb654c08d75a9845e3ab7dde","impliedFormat":1},{"version":"8b479a130ccb62e98f11f136d3ac80f2984fdc07616516d29881f3061f2dd472","impliedFormat":1},{"version":"928af3d90454bf656a52a48679f199f64c1435247d6189d1caf4c68f2eaf921f","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2bc7425ef40526650d6db7e072c1ff4a51101c3ac2cc4b666623b19496a6e27","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"933921f0bb0ec12ef45d1062a1fc0f27635318f4d294e4d99de9a5493e618ca2","impliedFormat":1},{"version":"71a0f3ad612c123b57239a7749770017ecfe6b66411488000aba83e4546fde25","impliedFormat":1},{"version":"77fbe5eecb6fac4b6242bbf6eebfc43e98ce5ccba8fa44e0ef6a95c945ff4d98","impliedFormat":1},{"version":"4f9d8ca0c417b67b69eeb54c7ca1bedd7b56034bb9bfd27c5d4f3bc4692daca7","impliedFormat":1},{"version":"814118df420c4e38fe5ae1b9a3bafb6e9c2aa40838e528cde908381867be6466","impliedFormat":1},{"version":"a3fc63c0d7b031693f665f5494412ba4b551fe644ededccc0ab5922401079c95","impliedFormat":1},{"version":"f27524f4bef4b6519c604bdb23bf4465bddcccbf3f003abb901acbd0d7404d99","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"45650f47bfb376c8a8ed39d4bcda5902ab899a3150029684ee4c10676d9fbaee","impliedFormat":1},{"version":"6b039f55681caaf111d5eb84d292b9bee9e0131d0db1ad0871eef0964f533c73","affectsGlobalScope":true,"impliedFormat":1},{"version":"18fd40412d102c5564136f29735e5d1c3b455b8a37f920da79561f1fde068208","impliedFormat":1},{"version":"c8d3e5a18ba35629954e48c4cc8f11dc88224650067a172685c736b27a34a4dc","impliedFormat":1},{"version":"f0be1b8078cd549d91f37c30c222c2a187ac1cf981d994fb476a1adc61387b14","affectsGlobalScope":true,"impliedFormat":1},{"version":"0aaed1d72199b01234152f7a60046bc947f1f37d78d182e9ae09c4289e06a592","impliedFormat":1},{"version":"0dba70b3fb0dcd713fda33c2df64fa6751fff6460e536971cee917260fb17882","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"5b7aa3c4c1a5d81b411e8cb302b45507fea9358d3569196b27eb1a27ae3a90ef","affectsGlobalScope":true,"impliedFormat":1},{"version":"5987a903da92c7462e0b35704ce7da94d7fdc4b89a984871c0e2b87a8aae9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea08a0345023ade2b47fbff5a76d0d0ed8bff10bc9d22b83f40858a8e941501c","impliedFormat":1},{"version":"47613031a5a31510831304405af561b0ffaedb734437c595256bb61a90f9311b","impliedFormat":1},{"version":"ae062ce7d9510060c5d7e7952ae379224fb3f8f2dd74e88959878af2057c143b","impliedFormat":1},{"version":"8a1a0d0a4a06a8d278947fcb66bf684f117bf147f89b06e50662d79a53be3e9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"9f663c2f91127ef7024e8ca4b3b4383ff2770e5f826696005de382282794b127","impliedFormat":1},{"version":"9f55299850d4f0921e79b6bf344b47c420ce0f507b9dcf593e532b09ea7eeea1","impliedFormat":1}],"root":[[83,87]],"options":{"allowSyntheticDefaultImports":true,"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"exactOptionalPropertyTypes":true,"importHelpers":true,"isolatedDeclarations":true,"module":199,"newLine":1,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noImplicitReturns":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noUncheckedSideEffectImports":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","removeComments":false,"rootDir":"../src","skipDefaultLibCheck":false,"skipLibCheck":true,"sourceMap":true,"strict":true,"stripInternal":true,"target":99,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[81,1],[138,2],[139,2],[140,3],[93,4],[141,5],[142,6],[143,7],[88,1],[91,8],[89,1],[90,1],[144,9],[145,10],[146,11],[147,12],[148,13],[149,14],[150,14],[151,15],[152,16],[153,17],[154,18],[94,1],[92,1],[155,19],[156,20],[157,21],[191,22],[158,23],[159,1],[160,24],[161,25],[162,26],[163,27],[164,28],[165,29],[166,30],[167,31],[168,32],[169,32],[170,33],[171,1],[172,34],[173,35],[175,36],[174,37],[176,38],[177,39],[178,40],[179,41],[180,42],[181,43],[182,44],[183,45],[184,46],[185,47],[186,48],[187,49],[188,50],[95,1],[96,1],[97,1],[135,51],[136,1],[137,1],[189,52],[190,53],[82,54],[79,1],[80,1],[14,1],[13,1],[2,1],[15,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[3,1],[23,1],[24,1],[4,1],[25,1],[29,1],[26,1],[27,1],[28,1],[30,1],[31,1],[32,1],[5,1],[33,1],[34,1],[35,1],[36,1],[6,1],[40,1],[37,1],[38,1],[39,1],[41,1],[7,1],[42,1],[47,1],[48,1],[43,1],[44,1],[45,1],[46,1],[8,1],[52,1],[49,1],[50,1],[51,1],[53,1],[9,1],[54,1],[55,1],[56,1],[58,1],[57,1],[59,1],[60,1],[10,1],[61,1],[62,1],[63,1],[11,1],[64,1],[65,1],[66,1],[67,1],[68,1],[1,1],[69,1],[70,1],[12,1],[74,1],[72,1],[77,1],[76,1],[71,1],[75,1],[73,1],[78,1],[113,55],[123,56],[112,55],[133,57],[104,58],[103,59],[132,60],[126,61],[131,62],[106,63],[120,64],[105,65],[129,66],[101,67],[100,60],[130,68],[102,69],[107,70],[108,1],[111,70],[98,1],[134,71],[124,72],[115,73],[116,74],[118,75],[114,76],[117,77],[127,60],[109,78],[110,79],[119,80],[99,81],[122,72],[121,70],[125,1],[128,82],[84,83],[87,84],[86,85],[85,86],[83,87]],"latestChangedDtsFile":"./index.d.ts","version":"5.9.3"}
package/dist/connect.d.ts CHANGED
@@ -3,6 +3,30 @@
3
3
  */
4
4
  import { type Database } from "sql.js";
5
5
  import type { ConnectionConfig, ConnectionCallback } from "./types.js";
6
+ /**
7
+ * Save a database to a file path, when its content changed.
8
+ *
9
+ * A database that did not change is not written. Before, each call wrote the file, also a
10
+ * read: a read failed on a read-only file (EPERM), a read wrote an old copy over the rows of
11
+ * another process, and a query of a missing file made an empty file. The export of a
12
+ * database that did not change has the bytes of its file, and an empty new database exports
13
+ * no bytes.
14
+ *
15
+ * Writes a temporary file, flushes it to the disk and renames it over the database, so a crash
16
+ * or a power loss during the write cannot leave a truncated database (the rename replaces the
17
+ * file in one step).
18
+ */
19
+ /**
20
+ * The error of the `save` of `createConnection` when the file changed after the connection
21
+ * loaded it or saved it last. Another connection or process wrote the file. The save does not
22
+ * write: it would replace those changes with the old copy of this connection.
23
+ */
24
+ export declare class DatabaseFileChangedError extends Error {
25
+ readonly dbPath: string;
26
+ /** A stable code for checks: `error.code === "DATABASE_FILE_CHANGED"`. */
27
+ readonly code = "DATABASE_FILE_CHANGED";
28
+ constructor(dbPath: string);
29
+ }
6
30
  /**
7
31
  * The queue key of a file. Windows file names do not depend on case, so the key is in lower
8
32
  * case there. Before, two spellings of one file had two queues, and their calls ran at once.
@@ -33,6 +57,11 @@ export declare function withConnection<T>(config: ConnectionConfig, fn: Connecti
33
57
  * Create a SQLite database that can be manually managed.
34
58
  * Caller is responsible for calling db.close() and saving if needed.
35
59
  *
60
+ * `save` runs in the queue of the file, one call at a time with `withConnection` and the other
61
+ * saves of this process. It throws a `DatabaseFileChangedError` and does not write when the
62
+ * file changed after this connection loaded it or saved it last. Before, it wrote its old copy
63
+ * over the changes of the other connection or process. After the error, open a new connection.
64
+ *
36
65
  * @example
37
66
  * ```typescript
38
67
  * const { db, save } = await createConnection({ dbPath: './data/app.db' });
@@ -1 +1 @@
1
- {"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../src/connect.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAkB,EAAE,KAAK,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAIlD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AA+IvE;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAE,MAAM,CAAC,QAA2B,GAAG,MAAM,CAGjG;AAuBD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wB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AatD"}
package/dist/connect.js CHANGED
@@ -2,6 +2,7 @@
2
2
  * Connection utilities for SQLite using sql.js
3
3
  */
4
4
  import initSqlJs, {} from "sql.js";
5
+ import { AsyncLocalStorage } from "node:async_hooks";
5
6
  import { randomUUID } from "node:crypto";
6
7
  import { readFile, mkdir, open, rename, unlink } from "node:fs/promises";
7
8
  import { dirname, resolve } from "node:path";
@@ -50,7 +51,38 @@ async function loadDatabase(dbPath) {
50
51
  * or a power loss during the write cannot leave a truncated database (the rename replaces the
51
52
  * file in one step).
52
53
  */
53
- async function saveDatabase(db, dbPath, original) {
54
+ /**
55
+ * The error of the `save` of `createConnection` when the file changed after the connection
56
+ * loaded it or saved it last. Another connection or process wrote the file. The save does not
57
+ * write: it would replace those changes with the old copy of this connection.
58
+ */
59
+ export class DatabaseFileChangedError extends Error {
60
+ dbPath;
61
+ /** A stable code for checks: `error.code === "DATABASE_FILE_CHANGED"`. */
62
+ code = "DATABASE_FILE_CHANGED";
63
+ constructor(dbPath) {
64
+ super(`The database file ${dbPath} changed after this connection loaded it: another connection or process wrote it. ` +
65
+ "The save did not write, because it would replace those changes. Open a new connection and make the change again.");
66
+ this.dbPath = dbPath;
67
+ this.name = "DatabaseFileChangedError";
68
+ }
69
+ }
70
+ /** The bytes of a file, or null when there is no file. */
71
+ async function readIfExists(path) {
72
+ try {
73
+ return await readFile(path);
74
+ }
75
+ catch (error) {
76
+ if (error.code === "ENOENT") {
77
+ return null;
78
+ }
79
+ throw error;
80
+ }
81
+ }
82
+ function sameBytes(a, b) {
83
+ return a === null || b === null ? a === b : Buffer.compare(Buffer.from(a), Buffer.from(b)) === 0;
84
+ }
85
+ async function saveDatabase(db, dbPath, original, options = {}) {
54
86
  if (dbPath === ":memory:") {
55
87
  return null;
56
88
  }
@@ -61,6 +93,11 @@ async function saveDatabase(db, dbPath, original) {
61
93
  if (unchanged) {
62
94
  return original;
63
95
  }
96
+ // The file must still have the bytes that this database came from. Else another connection
97
+ // or process wrote it, and this save would replace its changes.
98
+ if (options.refuseChangedFile && !sameBytes(await readIfExists(dbPath), original)) {
99
+ throw new DatabaseFileChangedError(dbPath);
100
+ }
64
101
  const buffer = Buffer.from(data);
65
102
  // Ensure directory exists
66
103
  await mkdir(dirname(dbPath), { recursive: true });
@@ -133,6 +170,12 @@ async function syncDirectory(path) {
133
170
  * process. (Other processes that write the same file are not coordinated.)
134
171
  */
135
172
  const fileQueues = new Map();
173
+ /**
174
+ * The queue keys that the current call holds. A `save` of `createConnection` in a callback of
175
+ * `withConnection` for the same file runs at once: in the queue, it would wait for the
176
+ * callback, and the callback waits for it.
177
+ */
178
+ const heldQueues = new AsyncLocalStorage();
136
179
  /**
137
180
  * The queue key of a file. Windows file names do not depend on case, so the key is in lower
138
181
  * case there. Before, two spellings of one file had two queues, and their calls ran at once.
@@ -141,13 +184,19 @@ export function fileQueueKey(dbPath, platform = process.platform) {
141
184
  const path = resolve(dbPath);
142
185
  return platform === "win32" ? path.toLowerCase() : path;
143
186
  }
144
- async function inFileQueue(dbPath, task) {
187
+ async function inFileQueue(dbPath, task, options = {}) {
145
188
  if (dbPath === ":memory:") {
146
189
  return task();
147
190
  }
148
191
  const key = fileQueueKey(dbPath);
192
+ const held = heldQueues.getStore();
193
+ if (options.reentrant && held?.has(key)) {
194
+ return task();
195
+ }
196
+ const holding = new Set(held).add(key);
197
+ const start = () => heldQueues.run(holding, task);
149
198
  const previous = fileQueues.get(key) ?? Promise.resolve();
150
- const run = previous.then(task, task);
199
+ const run = previous.then(start, start);
151
200
  const tail = run.then(() => undefined, () => undefined);
152
201
  fileQueues.set(key, tail);
153
202
  try {
@@ -197,6 +246,11 @@ export async function withConnection(config, fn) {
197
246
  * Create a SQLite database that can be manually managed.
198
247
  * Caller is responsible for calling db.close() and saving if needed.
199
248
  *
249
+ * `save` runs in the queue of the file, one call at a time with `withConnection` and the other
250
+ * saves of this process. It throws a `DatabaseFileChangedError` and does not write when the
251
+ * file changed after this connection loaded it or saved it last. Before, it wrote its old copy
252
+ * over the changes of the other connection or process. After the error, open a new connection.
253
+ *
200
254
  * @example
201
255
  * ```typescript
202
256
  * const { db, save } = await createConnection({ dbPath: './data/app.db' });
@@ -212,9 +266,9 @@ export async function createConnection(config) {
212
266
  const { db, original } = await loadDatabase(config.dbPath);
213
267
  // The bytes of the file after the last save, to compare the next save with
214
268
  let saved = original;
215
- const save = async () => {
216
- saved = await saveDatabase(db, config.dbPath, saved);
217
- };
269
+ const save = () => inFileQueue(config.dbPath, async () => {
270
+ saved = await saveDatabase(db, config.dbPath, saved, { refuseChangedFile: true });
271
+ }, { reentrant: true });
218
272
  return { db, save };
219
273
  }
220
274
  //# sourceMappingURL=connect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"connect.js","sourceRoot":"","sources":["../src/connect.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,SAAS,EAAE,EAAiB,MAAM,QAAQ,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAG7C,IAAI,UAAU,GAA0D,IAAI,CAAC;AAE7E;;GAEG;AACH,KAAK,UAAU,MAAM;IACnB,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,UAAU,GAAG,SAAS,EAAE,CAAC;IAC3B,CAAC;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAQD;;GAEG;AACH,KAAK,UAAU,YAAY,CAAC,MAAc;IACxC,MAAM,GAAG,GAAG,MAAM,MAAM,EAAE,CAAC;IAE3B,IAAI,MAAM,KAAK,UAAU,EAAE,CAAC;QAC1B,OAAO,EAAE,EAAE,EAAE,IAAI,GAAG,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACpD,CAAC;IAED,IAAI,CAAC;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I,EAAE;QACT,KAAK,GAAG,MAAM,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC,CAAC;IACpF,CAAC,EACD,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CAAC;IACJ,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC;AACtB,CAAC"}
package/dist/index.d.ts CHANGED
@@ -27,7 +27,7 @@
27
27
  * ```
28
28
  */
29
29
  export type { ConnectionConfig, ConnectionCallback, QueryResult, ExecuteResult, Migration, MigrationStatus, } from "./types.js";
30
- export { withConnection, createConnection } from "./connect.js";
30
+ export { withConnection, createConnection, DatabaseFileChangedError } from "./connect.js";
31
31
  export { query, execute, execMultiple, lastInsertRowId, tableExists, } from "./query.js";
32
32
  export { getMigrationStatus, runMigrations, rollbackMigration, createMigration, } from "./migrate.js";
33
33
  export type { Database } from "sql.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,SAAS,EACT,eAAe,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAGhE,OAAO,EACL,KAAK,EACL,OAAO,EACP,YAAY,EACZ,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,eAAe,GAChB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,YAAY,EACV,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,SAAS,EACT,eAAe,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAG1F,OAAO,EACL,KAAK,EACL,OAAO,EACP,YAAY,EACZ,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,eAAe,GAChB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@
27
27
  * ```
28
28
  */
29
29
  // Connection utilities
30
- export { withConnection, createConnection } from "./connect.js";
30
+ export { withConnection, createConnection, DatabaseFileChangedError } from "./connect.js";
31
31
  // Query utilities
32
32
  export { query, execute, execMultiple, lastInsertRowId, tableExists, } from "./query.js";
33
33
  // Migration utilities
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAYH,uBAAuB;AACvB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhE,kBAAkB;AAClB,OAAO,EACL,KAAK,EACL,OAAO,EACP,YAAY,EACZ,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAC;AAEpB,sBAAsB;AACtB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,eAAe,GAChB,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAYH,uBAAuB;AACvB,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAE1F,kBAAkB;AAClB,OAAO,EACL,KAAK,EACL,OAAO,EACP,YAAY,EACZ,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAC;AAEpB,sBAAsB;AACtB,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,eAAe,GAChB,MAAM,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@mark1russell7/docker-sqlite",
4
- "version": "0.1.1",
4
+ "version": "0.2.0",
5
5
  "description": "SQLite for Node.js with no native build: sql.js (SQLite in WebAssembly) with safe file access (one call at a time per file, atomic saves, no write on read), queries, migrations and an optional Docker Compose web UI.",
6
6
  "keywords": [
7
7
  "sqlite",
package/src/connect.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import initSqlJs, { type Database } from "sql.js";
6
+ import { AsyncLocalStorage } from "node:async_hooks";
6
7
  import { randomUUID } from "node:crypto";
7
8
  import { readFile, mkdir, open, rename, unlink } from "node:fs/promises";
8
9
  import { dirname, resolve } from "node:path";
@@ -63,7 +64,46 @@ async function loadDatabase(dbPath: string): Promise<LoadedDatabase> {
63
64
  * or a power loss during the write cannot leave a truncated database (the rename replaces the
64
65
  * file in one step).
65
66
  */
66
- async function saveDatabase(db: Database, dbPath: string, original: Uint8Array | null): Promise<Uint8Array | null> {
67
+ /**
68
+ * The error of the `save` of `createConnection` when the file changed after the connection
69
+ * loaded it or saved it last. Another connection or process wrote the file. The save does not
70
+ * write: it would replace those changes with the old copy of this connection.
71
+ */
72
+ export class DatabaseFileChangedError extends Error {
73
+ /** A stable code for checks: `error.code === "DATABASE_FILE_CHANGED"`. */
74
+ readonly code = "DATABASE_FILE_CHANGED";
75
+
76
+ constructor(readonly dbPath: string) {
77
+ super(
78
+ `The database file ${dbPath} changed after this connection loaded it: another connection or process wrote it. ` +
79
+ "The save did not write, because it would replace those changes. Open a new connection and make the change again."
80
+ );
81
+ this.name = "DatabaseFileChangedError";
82
+ }
83
+ }
84
+
85
+ /** The bytes of a file, or null when there is no file. */
86
+ async function readIfExists(path: string): Promise<Uint8Array | null> {
87
+ try {
88
+ return await readFile(path);
89
+ } catch (error) {
90
+ if ((error as NodeJS.ErrnoException).code === "ENOENT") {
91
+ return null;
92
+ }
93
+ throw error;
94
+ }
95
+ }
96
+
97
+ function sameBytes(a: Uint8Array | null, b: Uint8Array | null): boolean {
98
+ return a === null || b === null ? a === b : Buffer.compare(Buffer.from(a), Buffer.from(b)) === 0;
99
+ }
100
+
101
+ async function saveDatabase(
102
+ db: Database,
103
+ dbPath: string,
104
+ original: Uint8Array | null,
105
+ options: { refuseChangedFile?: boolean } = {}
106
+ ): Promise<Uint8Array | null> {
67
107
  if (dbPath === ":memory:") {
68
108
  return null;
69
109
  }
@@ -75,6 +115,11 @@ async function saveDatabase(db: Database, dbPath: string, original: Uint8Array |
75
115
  if (unchanged) {
76
116
  return original;
77
117
  }
118
+ // The file must still have the bytes that this database came from. Else another connection
119
+ // or process wrote it, and this save would replace its changes.
120
+ if (options.refuseChangedFile && !sameBytes(await readIfExists(dbPath), original)) {
121
+ throw new DatabaseFileChangedError(dbPath);
122
+ }
78
123
  const buffer = Buffer.from(data);
79
124
 
80
125
  // Ensure directory exists
@@ -149,6 +194,13 @@ async function syncDirectory(path: string): Promise<void> {
149
194
  */
150
195
  const fileQueues = new Map<string, Promise<unknown>>();
151
196
 
197
+ /**
198
+ * The queue keys that the current call holds. A `save` of `createConnection` in a callback of
199
+ * `withConnection` for the same file runs at once: in the queue, it would wait for the
200
+ * callback, and the callback waits for it.
201
+ */
202
+ const heldQueues = new AsyncLocalStorage<ReadonlySet<string>>();
203
+
152
204
  /**
153
205
  * The queue key of a file. Windows file names do not depend on case, so the key is in lower
154
206
  * case there. Before, two spellings of one file had two queues, and their calls ran at once.
@@ -158,13 +210,23 @@ export function fileQueueKey(dbPath: string, platform: NodeJS.Platform = process
158
210
  return platform === "win32" ? path.toLowerCase() : path;
159
211
  }
160
212
 
161
- async function inFileQueue<T>(dbPath: string, task: () => Promise<T>): Promise<T> {
213
+ async function inFileQueue<T>(
214
+ dbPath: string,
215
+ task: () => Promise<T>,
216
+ options: { reentrant?: boolean } = {}
217
+ ): Promise<T> {
162
218
  if (dbPath === ":memory:") {
163
219
  return task();
164
220
  }
165
221
  const key = fileQueueKey(dbPath);
222
+ const held = heldQueues.getStore();
223
+ if (options.reentrant && held?.has(key)) {
224
+ return task();
225
+ }
226
+ const holding = new Set(held).add(key);
227
+ const start = (): Promise<T> => heldQueues.run(holding, task);
166
228
  const previous = fileQueues.get(key) ?? Promise.resolve();
167
- const run = previous.then(task, task);
229
+ const run = previous.then(start, start);
168
230
  const tail = run.then(
169
231
  () => undefined,
170
232
  () => undefined
@@ -221,6 +283,11 @@ export async function withConnection<T>(
221
283
  * Create a SQLite database that can be manually managed.
222
284
  * Caller is responsible for calling db.close() and saving if needed.
223
285
  *
286
+ * `save` runs in the queue of the file, one call at a time with `withConnection` and the other
287
+ * saves of this process. It throws a `DatabaseFileChangedError` and does not write when the
288
+ * file changed after this connection loaded it or saved it last. Before, it wrote its old copy
289
+ * over the changes of the other connection or process. After the error, open a new connection.
290
+ *
224
291
  * @example
225
292
  * ```typescript
226
293
  * const { db, save } = await createConnection({ dbPath: './data/app.db' });
@@ -238,8 +305,13 @@ export async function createConnection(
238
305
  const { db, original } = await loadDatabase(config.dbPath);
239
306
  // The bytes of the file after the last save, to compare the next save with
240
307
  let saved = original;
241
- const save = async (): Promise<void> => {
242
- saved = await saveDatabase(db, config.dbPath, saved);
243
- };
308
+ const save = (): Promise<void> =>
309
+ inFileQueue(
310
+ config.dbPath,
311
+ async () => {
312
+ saved = await saveDatabase(db, config.dbPath, saved, { refuseChangedFile: true });
313
+ },
314
+ { reentrant: true }
315
+ );
244
316
  return { db, save };
245
317
  }
package/src/index.ts CHANGED
@@ -38,7 +38,7 @@ export type {
38
38
  } from "./types.js";
39
39
 
40
40
  // Connection utilities
41
- export { withConnection, createConnection } from "./connect.js";
41
+ export { withConnection, createConnection, DatabaseFileChangedError } from "./connect.js";
42
42
 
43
43
  // Query utilities
44
44
  export {