@contember/database 1.2.0-alpha.3 → 1.2.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/client/AcquiredConnection.d.ts +17 -0
- package/dist/src/client/AcquiredConnection.d.ts.map +1 -0
- package/dist/src/client/AcquiredConnection.js +78 -0
- package/dist/src/client/AcquiredConnection.js.map +1 -0
- package/dist/src/client/Client.d.ts +3 -1
- package/dist/src/client/Client.d.ts.map +1 -1
- package/dist/src/client/Client.js +9 -5
- package/dist/src/client/Client.js.map +1 -1
- package/dist/src/client/Connection.d.ts +18 -16
- package/dist/src/client/Connection.d.ts.map +1 -1
- package/dist/src/client/Connection.js +22 -30
- package/dist/src/client/Connection.js.map +1 -1
- package/dist/src/client/PgClient.d.ts +9 -0
- package/dist/src/client/PgClient.d.ts.map +1 -0
- package/dist/src/client/PgClient.js +3 -0
- package/dist/src/client/PgClient.js.map +1 -0
- package/dist/src/client/Pool.d.ts +2 -1
- package/dist/src/client/Pool.d.ts.map +1 -1
- package/dist/src/client/Pool.js +14 -2
- package/dist/src/client/Pool.js.map +1 -1
- package/dist/src/client/Transaction.d.ts +20 -11
- package/dist/src/client/Transaction.d.ts.map +1 -1
- package/dist/src/client/Transaction.js +80 -55
- package/dist/src/client/Transaction.js.map +1 -1
- package/dist/src/client/index.d.ts +0 -1
- package/dist/src/client/index.d.ts.map +1 -1
- package/dist/src/client/index.js +0 -1
- package/dist/src/client/index.js.map +1 -1
- package/dist/src/tsconfig.tsbuildinfo +1 -1
- package/dist/src/utils/Mutex.d.ts +11 -0
- package/dist/src/utils/Mutex.d.ts.map +1 -0
- package/dist/src/utils/Mutex.js +49 -0
- package/dist/src/utils/Mutex.js.map +1 -0
- package/dist/src/utils/asyncIterableTransaction.d.ts.map +1 -1
- package/dist/src/utils/asyncIterableTransaction.js +21 -9
- package/dist/src/utils/asyncIterableTransaction.js.map +1 -1
- package/dist/src/utils/createDatabaseIfNotExists.js +2 -2
- package/dist/src/utils/createDatabaseIfNotExists.js.map +1 -1
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/index.d.ts.map +1 -1
- package/dist/src/utils/index.js +1 -0
- package/dist/src/utils/index.js.map +1 -1
- package/dist/src/utils/pgClientFactory.d.ts +3 -2
- package/dist/src/utils/pgClientFactory.d.ts.map +1 -1
- package/dist/src/utils/pgClientFactory.js.map +1 -1
- package/dist/src/utils/withDatabaseAdvisoryLock.d.ts +1 -1
- package/dist/src/utils/withDatabaseAdvisoryLock.d.ts.map +1 -1
- package/dist/src/utils/withDatabaseAdvisoryLock.js +1 -1
- package/dist/src/utils/withDatabaseAdvisoryLock.js.map +1 -1
- package/dist/tests/cases/unit/connection.test.d.ts +2 -0
- package/dist/tests/cases/unit/connection.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/connection.test.js +128 -0
- package/dist/tests/cases/unit/connection.test.js.map +1 -0
- package/dist/tests/cases/unit/createConnectionMockAlt.d.ts +6 -0
- package/dist/tests/cases/unit/createConnectionMockAlt.d.ts.map +1 -0
- package/dist/tests/cases/unit/createConnectionMockAlt.js +47 -0
- package/dist/tests/cases/unit/createConnectionMockAlt.js.map +1 -0
- package/dist/tests/cases/unit/eventManager.test.js +91 -17
- package/dist/tests/cases/unit/eventManager.test.js.map +1 -1
- package/dist/tests/cases/unit/pool.test.js +6 -10
- package/dist/tests/cases/unit/pool.test.js.map +1 -1
- package/dist/tests/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/client/AcquiredConnection.ts +104 -0
- package/src/client/Client.ts +34 -18
- package/src/client/Connection.ts +42 -46
- package/src/client/PgClient.ts +13 -0
- package/src/client/Pool.ts +13 -3
- package/src/client/Transaction.ts +101 -69
- package/src/client/index.ts +0 -1
- package/src/utils/Mutex.ts +49 -0
- package/src/utils/asyncIterableTransaction.ts +21 -9
- package/src/utils/createDatabaseIfNotExists.ts +3 -3
- package/src/utils/index.ts +1 -0
- package/src/utils/pgClientFactory.ts +3 -2
- package/src/utils/withDatabaseAdvisoryLock.ts +4 -4
- package/tests/cases/unit/connection.test.ts +154 -0
- package/tests/cases/unit/createConnectionMockAlt.ts +44 -0
- package/tests/cases/unit/eventManager.test.ts +101 -19
- package/tests/cases/unit/pool.test.ts +6 -12
- package/dist/src/client/SingleConnection.d.ts +0 -21
- package/dist/src/client/SingleConnection.d.ts.map +0 -1
- package/dist/src/client/SingleConnection.js +0 -73
- package/dist/src/client/SingleConnection.js.map +0 -1
- package/dist/src/client/execution.d.ts +0 -7
- package/dist/src/client/execution.d.ts.map +0 -1
- package/dist/src/client/execution.js +0 -65
- package/dist/src/client/execution.js.map +0 -1
- package/src/client/SingleConnection.ts +0 -89
- package/src/client/execution.ts +0 -84
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../src/Literal.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../src/types.d.ts","../src/builders/WindowFunction.d.ts","../src/builders/CaseStatement.d.ts","../src/builders/ColumnExpressionFactory.d.ts","../src/builders/QueryBuilder.d.ts","../src/builders/internal/Subqueries.d.ts","../src/builders/ConditionBuilder.d.ts","../src/builders/internal/Where.d.ts","../src/builders/internal/Returning.d.ts","../src/builders/DeleteBuilder.d.ts","../src/builders/ConflictActionType.d.ts","../src/builders/InsertBuilder.d.ts","../src/builders/LimitByGroupWrapper.d.ts","../src/builders/UpdateBuilder.d.ts","../src/builders/LockType.d.ts","../src/builders/index.d.ts","../../../queryable/dist/src/Query.d.ts","../../../queryable/dist/src/Queryable.d.ts","../../../queryable/dist/src/QueryHandler.d.ts","../../../queryable/dist/src/QueryHandlerAccessor.d.ts","../../../queryable/dist/src/index.d.ts","../src/queryable/DatabaseQuery.d.ts","../src/queryable/DatabaseQueryable.d.ts","../src/queryable/index.d.ts","../src/client/EventManager.d.ts","../../../../node_modules/pg-types/index.d.ts","../../../../node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/@types/pg/index.d.ts","../src/client/errors.d.ts","../src/utils/assertNever.d.ts","../src/utils/asyncIterableTransaction.d.ts","../src/utils/ConstraintHelper.d.ts","../src/utils/createDatabaseIfNotExists.d.ts","../src/utils/sql.d.ts","../src/utils/retryTransaction.d.ts","../src/utils/withDatabaseAdvisoryLock.d.ts","../src/utils/pgClientFactory.d.ts","../src/utils/index.d.ts","../src/client/Pool.d.ts","../src/client/Connection.d.ts","../src/client/Client.d.ts","../src/client/errorCodes.d.ts","../src/client/Transaction.d.ts","../src/client/SingleConnection.d.ts","../src/client/index.d.ts","../src/builders/SelectBuilder.d.ts","../src/builders/Compiler.d.ts","../src/builders/internal/With.d.ts","../src/index.d.ts","../../../database-tester/dist/src/mocking.d.ts","../../../database-tester/dist/src/index.d.ts","../../../../node_modules/esbuild/lib/main.d.ts","../../../../node_modules/rollup/dist/rollup.d.ts","../../../../node_modules/source-map-js/source-map.d.ts","../../../../node_modules/postcss/lib/comment.d.ts","../../../../node_modules/postcss/lib/at-rule.d.ts","../../../../node_modules/postcss/lib/rule.d.ts","../../../../node_modules/postcss/lib/container.d.ts","../../../../node_modules/postcss/lib/declaration.d.ts","../../../../node_modules/postcss/lib/previous-map.d.ts","../../../../node_modules/postcss/lib/input.d.ts","../../../../node_modules/postcss/lib/css-syntax-error.d.ts","../../../../node_modules/postcss/lib/warning.d.ts","../../../../node_modules/postcss/lib/document.d.ts","../../../../node_modules/postcss/lib/root.d.ts","../../../../node_modules/postcss/lib/lazy-result.d.ts","../../../../node_modules/postcss/lib/no-work-result.d.ts","../../../../node_modules/postcss/lib/processor.d.ts","../../../../node_modules/postcss/lib/result.d.ts","../../../../node_modules/postcss/lib/node.d.ts","../../../../node_modules/postcss/lib/list.d.ts","../../../../node_modules/postcss/lib/postcss.d.ts","../../../../node_modules/vite/dist/node/index.d.ts","../../../../node_modules/tinyspy/dist/index.d.ts","../../../../node_modules/@types/chai/index.d.ts","../../../../node_modules/vitest/dist/index.d.ts","../../tests/cases/unit/eventManager.test.ts","../../tests/cases/unit/pool.test.ts","../../tests/src/tags.ts","../../tests/cases/unit/queryBuilder.test.ts","../../../../node_modules/@types/accepts/index.d.ts","../../../../node_modules/@types/bcrypt/index.d.ts","../../../../node_modules/@types/connect/index.d.ts","../../../../node_modules/@types/body-parser/index.d.ts","../../../../node_modules/@types/keyv/index.d.ts","../../../../node_modules/@types/http-cache-semantics/index.d.ts","../../../../node_modules/@types/responselike/index.d.ts","../../../../node_modules/@types/cacheable-request/index.d.ts","../../../../node_modules/@types/caseless/index.d.ts","../../../../node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/@types/content-disposition/index.d.ts","../../../../node_modules/@types/cookiejar/index.d.ts","../../../../node_modules/@types/keygrip/index.d.ts","../../../../node_modules/@types/range-parser/index.d.ts","../../../../node_modules/@types/qs/index.d.ts","../../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../../node_modules/@types/mime/index.d.ts","../../../../node_modules/@types/serve-static/index.d.ts","../../../../node_modules/@types/express/index.d.ts","../../../../node_modules/@types/cookies/index.d.ts","../../../../node_modules/@types/fs-extra/index.d.ts","../../../../node_modules/@types/http-assert/index.d.ts","../../../../node_modules/@types/http-errors/index.d.ts","../../../../node_modules/@types/js-yaml/index.d.ts","../../../../node_modules/@types/json-buffer/index.d.ts","../../../../node_modules/@types/json-schema/index.d.ts","../../../../node_modules/@types/json-stable-stringify/index.d.ts","../../../../node_modules/@types/jsonwebtoken/index.d.ts","../../../../node_modules/@types/koa-compose/index.d.ts","../../../../node_modules/@types/koa/index.d.ts","../../../../node_modules/@types/koa-bodyparser/index.d.ts","../../../../node_modules/@types/koa-compress/index.d.ts","../../../../node_modules/@types/koa__cors/index.d.ts","../../../../node_modules/@types/mime-types/index.d.ts","../../../../node_modules/@types/mustache/index.d.ts","../../../../node_modules/form-data/index.d.ts","../../../../node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/@types/nodemailer/lib/dkim/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts","../../../../node_modules/@types/nodemailer/lib/xoauth2.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mime-node/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts","../../../../node_modules/@types/nodemailer/lib/shared.d.ts","../../../../node_modules/@types/nodemailer/lib/json-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/ses-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/stream-transport.d.ts","../../../../node_modules/@types/nodemailer/index.d.ts","../../../../node_modules/@types/npm-package-arg/index.d.ts","../../../../node_modules/@types/parse-json/index.d.ts","../../../../node_modules/@types/prompts/index.d.ts","../../../../node_modules/@types/request/node_modules/form-data/index.d.ts","../../../../node_modules/@types/tough-cookie/index.d.ts","../../../../node_modules/@types/request/index.d.ts","../../../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../../node_modules/@types/sinon/index.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/superagent/index.d.ts","../../../../node_modules/@types/supertest/index.d.ts","../../../../node_modules/@types/uuid/index.d.ts","../../../../node_modules/@types/ws/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},"2c4c12960873024f1edc1a50cae7776d98e72a4fb45faf573f7930f3a78d1c41","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"2f6c9750131d5d2fdaba85c164a930dc07d2d7e7e8970b89d32864aa6c72620c","affectsGlobalScope":true},"56d13f223ab40f71840795f5bef2552a397a70666ee60878222407f3893fb8d0",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","90b94d3d2aa3432cc9dd2d15f56a38b166163fc555404c74243e1af29c5549d8","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","c993aac3b6d4a4620ef9651497069eb84806a131420e4f158ea9396fb8eb9b8c","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"be57ed74f6dc1a2c92e6f8e00b1d758bb6ec513680b5547c67ac7c0193371b93","57951685bd0e57e5a7aebfd62512e365bc1db66315992211a647cacfcfa65965","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","d2f5c67858e65ebb932c2f4bd2af646f5764e8ad7f1e4fbe942a0b5ea05dc0e7","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","7f249c599e7a9335dd8e94a4bfe63f00e911756c3c23f77cdb6ef0ec4d479e4a",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"2cabc86ea4f972f2c8386903eccb8c19e2f2370fb9808b66dd8759c1f2ab30c7","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","02b3239cf1b1ff8737e383ed5557f0247499d15f5bd21ab849b1a24687b6100c","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"aee7013623e7632fba449d4df1da92925b27d9b816cb05546044dbfe54c88ef4","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","f6b2d700c02c818151361abb13737527e8bc0aab9b7065b662b25d9eaba4c5de","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"1aad825534c73852a1f3275e527d729a2c0640f539198fdfdfeb83b839851910","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd","8956d9f8a70ce97be20a8770ac97ad57ed3d07bcb3c5e4e0ee4f98a620101c66","33bbeb3437d6298ef3a2eb14dcde7fefa56841ae676a61d627357aa113bde647","dee7e63c4408d537fa5369e7b38979149693ca7574a1a0b26424beca0c98efe8","0c958be68c882fcb3f14999a5d15afc100f6aad04b4a7617b2d8805ed3c70522","3f21a8d6e6984712c89372d709ef4ab7966f3eb44b66a7dd295af8ad425039ed","58225569a7fadf71770a21393e8a02b4abc1df2851b6a311b57d2f06421a6b4c","bbe451cef0df0ce351c6563e16aeb3fb11395e84c1ff403f3cdfbda2a19648f9","f549347bc8b2ee2026357d43eb11070e4900aa4f91c80276f253a9affe860f7d","e5785e1d247a1bc256ad777b06e9be3369f10c197cdacda9558f4345e395931b","b7815dac80b8dce75349743ff6f01628a8a8d07bed7a35fbbbf75c26ccf71d64","8f7063ac23b035cab663a6a958819d55bedee5e7b0369061409b7080540074dd","d190e7bc8eacfb0aa2cd21f4268c65c4010048d397701c7c2a8a782f02456635","443b40981f40d92ebcc6a176c3a194c05a282225646c212dc84656d74df19852","a8261c6018dd92240453480ff7d4ed4f72c3eac6b7fd542ae87ef70c3644d81a","be9b313c8ad1641bf24c3fd176ff21523dccd76c597ae51cca7f485313dab755","e8596c7c441676b3aa4bc20d1ed5604f729f4ec72eb7fb88ebcd359f8a9249d6","fd8856cb7f184c84ab6ebcd860a0ae2d96cc848ec27bef893ed2d659e4e2270e","77107fdaf84dd93f654d6643a675a7a482047815bbfa6d52e9b3c32cc88611bd","ea7d198005d34c160df26dc560f4dee2c874bc05497369d7b247200c1b9c10ae","974ce3e154a453a4c190696face27b7ca4c8b496b41248967f045655bdf20d35","8096e59065032c0ccf8f0a40ad2c5fda2b667f69f88976088beca9587e4d0b42","613a4aa35726c320a43916ac77b0d23475117669a495f325fc1fbf6eab0302c0","4a509df1002e274856016567dbfb0ef672baf90aeee2670b6ea6a1c11b43a254","88398a6f505edeb2e340da9148a589c0b2e04e127fc1af2de51b6c65efa6020c","26885b73db730896a3a9f67f601736a6c0947457f87aae20f144842e1a8f2f36","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","300698c012adbb5445bb567bc07c182f79923ef4ee11c2277ca0f5ff271dbf13","15be5bd580a13feacf1da73771a1325d35aea3c76baf8cf9d3bac422a03c86c8","e5de3662a2444b96d8f2645de1a5ae70b128d1166ea2f79c5fa77eed51ed3f0e","90a5b31e7889631f05c29db43be491d8d99c338d8621596d3fca3d03fb69bbab","653e90660b4c4a42913c1772b670dccc734a57c2944fb0d6f69a9820f26233db","15b2d7aeadaeb10d4f91f781828ae3bc408376aabae35f29b4871d6c92bcbb17","4b88d405c55f6121bac7dc4c440008b8b76b7f0ec7258fe9b824239df5a2bee2","9bb650b7ca7505e334e777d8d546030fc2da25d5b071ff37c38263d6a81a2cc8","47d97ec651c497bf2b69a2d44ebeafe2bc90239158c7bd211122a1befd08e2d8","fc720f13dc6726f20498525bafa87961c43270c5f33b365cf5b034b5ccdf9f80","7ec8025e1b97811d433beeaf22322502773fe8cce96af10976175f3ff6a10276","e23a38b8995dba9c7e8e0342a6a5bed52d2b0a6fc1eeaa54fc63c5dc84a1c835","99944cfb796bf76a1080bd66a2fb15c3a5b3c7cffab82fd7cb0be480a4018768","2a957584986d115f5fccc18f78bd62cb125587d9f7a257bd4599414efe5e81d6","7a6341cb20cdc34ead2d9f66a7183429c2fe5afac49e7cbecd2ca70542f74d54","8a56d74b5388ca85d13eb8f031e99276b87ea5b9c230b498fd564af3708217d1","0e5d6cf649ef4dde24ac41c906e811df2ac22a74d2bc1dab230594f62d9806c8","634947b9a9172208bac2ae013afde9d87542f624cb30feb4943ce792307c1e6b","0a448ebd2d953b06016bdb166ec486f89c3f65ac712c802eea518f16d06d0b84","3819ab4322145625a2fe2776d1980a47c4ac569dcdf2fc386e4a1ba5c74d9aaa","4e7d19141c1ce4f0250b565586be6997d93f651ffedc3a86d42a86deac716a31","3e8bbe90a27cdcaf9c239423cf4ed82a76d4ea0e07c51d8a066d1612b04a0a98","b18e2d051fa6c83044a9d0dbe58cb840e5f368a91849625b88c6f6a2cc421533","f6801b113c81e3b4ef0b2b27e457cd1a269b72339312bb716be93a199d8d0bc3","f6ae4d70775f50beaaa1a3968ed7b6e2a7185c172243c4ac1c8ecb3d39c3faf6","858d0d831826c6eb563df02f7db71c90e26deadd0938652096bea3cc14899700","d1c89db652113258e4ba4bbdf5cc7a2a3a600403d4d864a2087b95186253cd5b","11a90d2cb2eaf7fdf931a63b58279e8161f1477a1bd1e914ae026c1bbf9afed3","af18e30f3ba06e9870b61dfa4a109215caabdaa337590c51b4a044a9f338ce96","ace603f7b60599f2dcdbd71c07137b60a747dd33be540f4a294b890f9e0b89dc","7658fbdd425c656fb1849b44932ae7431e8c3198d22c65ce1490deb582743b52","7786c75c1b46e93b33c63dccf689143a5f47ff451a6b3bd9b10e4801cdeadcc2","615b7264db151461b896cd79719414d63f7b2b2100b275828e53cab95a356e2f","31491a01ed7466e0b3b0ef8407f2524683055eceb955b1d5ccf7096129468b39","f4b12f7dde4fc0e386648318481bdcfe861b566be246bebf0e8a11ebd909adf9","e8966f7c424780bb0b9d411ebe13eda8555ca15aa675603316c2952bc027b0e3","df0e5f3c4a518111d160cf3bebc9a3ac7d39c6e3bfb7a21d43c304896c3015e2","df4e2f161f74870708c2cc5e1036a6405b878496408fda1ee50d5b10e50d6601","bf791da347fb1c0ffc1e2fcd35867e64bb8355270ae26278198c521bdcf94569","e0e0e3c068e145fbb322120979299ff130ffdd39f0dcd0d5aeaa9f3f8a0d01d9","fde91356172e35b9ea68bbdf33721f7c80307a4ce65b82105eac800e9e744995","9bd5e5a4a1e66b35efe3c48ddac1116537ef86e041717f3a9b9f1e060c74efa6","d7e4a5f4ccfb749c3033fafc233073b4d1dcca0249785186c589602a81f9d86f","68161b6f3004fc10f8bb47a4986cef13c3b0728fb1ca3e1dc7316227d09b2c8d","5c04c4365e9f414be022f135826efec439299d8ac1e532d612612fe27f936477","a7157ee945ba3e7ccf605cf5f2e83e62f7694b92a3ddf8bc69c5182fe93aa98f",{"version":"3a15910b7f45dfc393f010ee8f913580b08d65752800fc48147ea13445acd5f7","affectsGlobalScope":true},{"version":"7624987e641632fb95f4d4c661744d3c0a952a62ee0b96de0e1f55c1a207d886","affectsGlobalScope":true},{"version":"8b03bce4ddc9146eea6451ee103ef4cb60c3a92902c1cb36e9d0ecef8fcf2426","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"1e0f951461819eb326734f3825daf547004a75130e6c5124dcb30b8c201b18b8","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"7d33de5e23e1b7b3917c020fb38a6a53935752e880a8aa181bc60c2579c78ee6","signature":"cbaf1a9b75975aca8021137a4cbc37a0440a45a773340a85b197ad653da7ab5d"},{"version":"3ca9e61d9db9155a605a96b0d861d681f85c52759760ee6594d58ff30747c00d","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","57ddc4e066366bbe04f497f9afce1c88e088dbd09be0618e072754450de3acbb","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","fec943fdb3275eb6e006b35e04a8e2e99e9adf3f4b969ddf15315ac7575a93e4","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","5343f3c160282dfbaab9af350119a0c3b59b7076ef0117bb5995a66e240dab28",{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"204dbe6c72467fb14bbe8f06510b11fb541b6ce29580c6e10ebd3bdb2eb0c1f9","8d48b8f8a377ade8dd1f000625bc276eea067f2529cc9cafdf082d17142107d6","ce013414484233b24f42c0fcfca48a60bb66ab4e13c82953662305e8f1ee4925","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"101eb8b4e972b9326f39591e2e40e967e3331e8d960f81248daeb266ea1affec","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","0b85cb069d0e427ba946e5eb2d86ef65ffd19867042810516d16919f6c1a5aec","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","eb96a2321f717bccc3e49e104e299152984b927ea4546b559ae631c06565819c","ed19da84b7dbf00952ad0b98ce5c194f1903bcf7c94d8103e8e0d63b271543ae","e98185f4249720ace1921d59c1ff4612fa5c633a183fc9bf28e2e7b8e3c7fd51","6168414aa12d33d0fcfac4f9870aa81ce27e136db6faf182001a5f3792e1d720","686e548ae30250d62532c8cacb43fccc922b693408371bd3503563c4a0f28eed","75bdc1b420f0ffc6cc6fd0b6694d89f5072bf755b4e6c7e65a2fda797ca0bb8a","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","13cc3979e1f548aacaa23911f2d6e69c1a2999266c4a1952806de1e9593bdaaa","e5dd317ef2c7a2882b152337b03d592fafa8351b40351849a16a908b198bd3b5","5006668996956580886022c05108e32c742823e1b5652aff7914917233731518","0c52f5366c9146ad79b546e70162c659972a2798522806e8283f3137feab3965","aff59cc6a1f2049bc6ac37cdd5a7d449584f28e7ee5ba240bd903aefdaef6418","77224b06a9d39e8710eca2050acadd9f9e062b068d74aa98e38a6854c272d35e","dcb9aa62f2662b999047096125adfa905cca0c988d7f5130e38ab41afeb96a3f","c757372a092924f5c16eaf11a1475b80b95bb4dae49fe3242d2ad908f97d5abe","2d5c29f803f71f0c768684f98c4ab2e95fff0104b42f0644eb65479d05eccdc3","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","bb654d426b82e0846cd4bd7de91d637039ecdfd63c94447373490178f80846fe","db90f54098b237753ac9c846e39cd49aa538dcad07a2e1c68a138f3c0f8e621d","892f8cf5db77196b9f4da151423570a9ad92f01692740d6137c0a13a006d9121","6e41751646fe275206d052a2e5ba87d27dd0df4dcbca134fc3fd2dc4d3d410d2","eecb2ea10a1500dcc6bdeff14be1fb43806f63a9b8562e16e1b4fc8baa8dfa8d","221a6ab66d611349faaf80af49c7a34d95623787610fd153fed4da0811abdcae","40122dcc63746bc8827d17f5f981668844e6c12537ca3b3e5e1a35883a50d666","966418bf54ad347058abfd433deb2f74480e859adb80b9ddbe90bb3ada1a8eda","e79130cf2ba010f2b79747bf43b086252ad041b130768331a1144c0a86185877","5945e7a91249d0dcbce4609279cb8fa95e45a4ac0edf6b81742724ed38e5018f","dafce7a7b279977940b6b4b50017625e4f922f73094433d2875994bdc0b27e87","ec630acd5a4ac97faadbfff935eb00df5318a6302dd25938685ad8c25c70465c","b3edafa3cb2b51781dffced9ec03613b8fe4981c44dea915f119996d201c1d03","6c559dee3c6251c261b67df08e01d4cbc89cbd7a63300150c636705733cebfff","9b5a5e0d06f8646aa2978afb1b5bb5e608649751e9cfc7290e86be42605ba42f","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","5f7614d60b32dc66e5d665eafd10d7619eedca3a20f0e876e9ec73141735e364","e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c","f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","24a09dc3e07d69b0a224dbd14b2994c40d1efd0954e759004b61b9e683dabe5f","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","31c502014e5ba046d5cb060136929b73fd53f0f989aa37b2b0424644cb0d93ef","76232dbb982272b182a76ad8745a9b02724dc9896e2328ce360e2c56c64c9778","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6"],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noEmitOnError":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[72,97,104],[97,104],[72,97,104,190],[69,72,96,97,104,192,193,194],[97],[97,182],[72,97,104,190,200,206],[69,72,97,104,201,202],[97,191,202,203,205],[70,97,104],[69,97,104],[97,217],[97,102,104,217],[69,72,73,77,83,96,97,104,188,198,200,207,209,210,216],[72,96,97,104,223,224],[54,97],[57,97],[58,63,97],[59,69,70,77,86,96,97],[59,60,69,77,97],[61,97],[62,63,70,78,97],[63,86,93,97],[64,66,69,77,97],[65,97],[66,67,97],[68,69,97],[69,97],[69,70,71,86,96,97],[69,70,71,86,97],[72,77,86,96,97],[69,70,72,73,77,86,93,96,97],[72,74,86,93,96,97],[54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],[69,75,97],[76,96,97],[66,69,77,86,97],[78,97],[79,97],[57,80,97],[81,95,97,101],[82,97],[83,97],[69,84,97],[84,85,97,99],[69,86,87,88,97],[86,88,97],[86,87,97],[89,97],[90,97],[69,91,92,97],[91,92,97],[63,77,93,97],[94,97],[77,95,97],[58,72,83,96,97],[63,97],[86,97,98],[97,99],[97,100],[58,63,69,71,80,86,96,97,99,101],[86,97,102],[97,104,227,229,233,234,235,236,237,238],[86,97,104],[69,97,104,227,229,230,232,239],[69,77,86,96,97,104,226,227,228,230,231,232,239],[86,97,104,229,230],[86,97,104,229,231],[97,104,227,229,230,232,239],[86,97,104,231],[69,77,86,93,97,104,228,230,232],[69,97,104,227,229,230,231,232,239],[69,86,97,104,227,228,229,230,231,232,239],[69,86,97,104,227,229,230,232,239],[72,86,97,104,232],[69,86,93,97,104,130,131,134,135],[70,72,74,77,86,96,97,104,196,243,244],[72,86,97,104],[72,97,104,204],[97,246],[58,70,72,86,97,104,199],[97,249],[69,72,74,86,93,96,97,102,104],[97,104,131,132,133],[86,97,104,131],[97,165],[97,165,177],[97,162,163,164,166,177],[97,168],[97,165,172,176,179],[97,167,179],[97,170,172,175,176,179],[97,170,172,173,175,176,179],[97,162,163,164,165,166,168,169,170,171,172,176,179],[97,161,162,163,164,165,166,168,169,170,171,172,173,175,176,177,178],[97,161,179],[97,172,173,174,176,179],[97,175,179],[97,165,171,176,179],[97,169,177],[97,161],[69,70,72,74,77,86,93,96,97,102,104,159,160,179],[97,101,180,181,182,183],[97,157],[97,156],[53,97,109],[53,97,105,106,107,109,111],[53,97,114,116,118,153],[53,97,105,109,110,153],[53,97,109,110,112,113,152,154,155],[53,97,109,110,112,113,115,152,153,154,155],[97,109,152,153],[53,97,105,108,153,154],[53,97,109,110,111,112,119,152,154,155],[53,97,109,110,112,113,152,153,154,155],[97,106,107,109,111,114,115,116,117,118,119,153,154],[53,97,120,152],[53,97,109,153,154],[53,97,105,111],[53,97,110,154],[97,120,125,128,129,147],[97,105,129,146,148],[97,147],[69,97,104,135,136,145],[97,105,129,135,147,148],[97,129,135,147],[97,129,136,146,147,148,149,150,151],[53,97,105,112,113,120,128,145,152,155],[97,125,156],[97,126,127],[97,152],[97,105],[97,137,138,139,140,141,142,143,144],[97,105,135],[53,97],[97,156,158,183],[69,97,135,156,183],[97,156,158,183,186],[97,125],[97,121,122,123,124]],"referencedMap":[[188,1],[189,2],[191,3],[195,4],[196,5],[197,6],[182,5],[190,1],[198,5],[199,5],[207,7],[203,8],[206,9],[208,10],[209,5],[193,5],[210,5],[211,5],[212,5],[213,5],[214,5],[215,2],[200,5],[192,11],[218,12],[216,12],[219,13],[217,14],[220,12],[221,5],[204,5],[222,5],[224,5],[225,15],[54,16],[55,16],[57,17],[58,18],[59,19],[60,20],[61,21],[62,22],[63,23],[64,24],[65,25],[66,26],[67,26],[68,27],[69,28],[70,29],[71,30],[56,5],[103,5],[72,31],[73,32],[74,33],[104,34],[75,35],[76,36],[77,37],[78,38],[79,39],[80,40],[81,41],[82,42],[83,43],[84,44],[85,45],[86,46],[88,47],[87,48],[89,49],[90,50],[91,51],[92,52],[93,53],[94,54],[95,55],[96,56],[97,57],[98,58],[99,59],[100,60],[101,61],[102,62],[239,63],[226,64],[233,65],[229,66],[227,67],[230,68],[234,69],[235,65],[232,70],[231,71],[236,72],[237,73],[238,74],[228,75],[240,5],[241,5],[135,76],[242,64],[202,5],[201,5],[245,77],[243,78],[194,78],[205,79],[247,80],[246,5],[249,81],[250,82],[244,5],[251,5],[252,83],[248,5],[159,5],[223,78],[134,84],[131,2],[133,85],[132,2],[130,5],[163,86],[162,87],[165,88],[169,89],[166,87],[171,90],[168,91],[173,92],[178,5],[174,93],[177,94],[179,95],[167,96],[175,97],[176,98],[172,99],[164,86],[170,100],[160,5],[161,101],[181,5],[12,5],[11,5],[2,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[3,5],[4,5],[24,5],[21,5],[22,5],[23,5],[25,5],[26,5],[27,5],[5,5],[28,5],[29,5],[30,5],[31,5],[6,5],[32,5],[33,5],[34,5],[35,5],[7,5],[36,5],[41,5],[42,5],[37,5],[38,5],[39,5],[40,5],[8,5],[46,5],[43,5],[44,5],[45,5],[47,5],[9,5],[48,5],[49,5],[50,5],[51,5],[1,5],[10,5],[52,5],[180,102],[183,103],[158,104],[157,105],[53,5],[107,106],[108,107],[154,108],[111,109],[115,5],[114,110],[116,111],[117,112],[119,5],[109,113],[153,114],[118,115],[106,106],[120,116],[113,117],[110,118],[112,119],[155,120],[148,121],[147,122],[129,123],[146,124],[151,125],[150,126],[149,5],[136,5],[152,127],[156,128],[126,129],[127,129],[128,130],[105,2],[139,131],[137,5],[138,131],[140,132],[145,133],[144,134],[142,5],[141,135],[143,131],[184,136],[185,137],[187,138],[186,5],[121,139],[123,139],[124,139],[122,139],[125,140]],"exportedModulesMap":[[188,1],[189,2],[191,3],[195,4],[196,5],[197,6],[182,5],[190,1],[198,5],[199,5],[207,7],[203,8],[206,9],[208,10],[209,5],[193,5],[210,5],[211,5],[212,5],[213,5],[214,5],[215,2],[200,5],[192,11],[218,12],[216,12],[219,13],[217,14],[220,12],[221,5],[204,5],[222,5],[224,5],[225,15],[54,16],[55,16],[57,17],[58,18],[59,19],[60,20],[61,21],[62,22],[63,23],[64,24],[65,25],[66,26],[67,26],[68,27],[69,28],[70,29],[71,30],[56,5],[103,5],[72,31],[73,32],[74,33],[104,34],[75,35],[76,36],[77,37],[78,38],[79,39],[80,40],[81,41],[82,42],[83,43],[84,44],[85,45],[86,46],[88,47],[87,48],[89,49],[90,50],[91,51],[92,52],[93,53],[94,54],[95,55],[96,56],[97,57],[98,58],[99,59],[100,60],[101,61],[102,62],[239,63],[226,64],[233,65],[229,66],[227,67],[230,68],[234,69],[235,65],[232,70],[231,71],[236,72],[237,73],[238,74],[228,75],[240,5],[241,5],[135,76],[242,64],[202,5],[201,5],[245,77],[243,78],[194,78],[205,79],[247,80],[246,5],[249,81],[250,82],[244,5],[251,5],[252,83],[248,5],[159,5],[223,78],[134,84],[131,2],[133,85],[132,2],[130,5],[163,86],[162,87],[165,88],[169,89],[166,87],[171,90],[168,91],[173,92],[178,5],[174,93],[177,94],[179,95],[167,96],[175,97],[176,98],[172,99],[164,86],[170,100],[160,5],[161,101],[181,5],[12,5],[11,5],[2,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[3,5],[4,5],[24,5],[21,5],[22,5],[23,5],[25,5],[26,5],[27,5],[5,5],[28,5],[29,5],[30,5],[31,5],[6,5],[32,5],[33,5],[34,5],[35,5],[7,5],[36,5],[41,5],[42,5],[37,5],[38,5],[39,5],[40,5],[8,5],[46,5],[43,5],[44,5],[45,5],[47,5],[9,5],[48,5],[49,5],[50,5],[51,5],[1,5],[10,5],[52,5],[180,102],[183,103],[158,104],[157,105],[53,5],[107,106],[108,107],[154,108],[111,109],[115,5],[114,110],[116,111],[117,112],[119,5],[109,113],[153,114],[118,115],[106,106],[120,116],[113,117],[110,118],[112,119],[155,120],[148,121],[147,122],[129,123],[146,124],[151,125],[150,126],[149,5],[136,5],[152,127],[156,128],[126,129],[127,129],[128,130],[105,2],[139,131],[137,5],[138,131],[140,132],[145,133],[144,134],[142,5],[141,135],[143,131],[121,139],[123,139],[124,139],[122,139],[125,140]],"semanticDiagnosticsPerFile":[188,189,191,195,196,197,182,190,198,199,207,203,206,208,209,193,210,211,212,213,214,215,200,192,218,216,219,217,220,221,204,222,224,225,54,55,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,56,103,72,73,74,104,75,76,77,78,79,80,81,82,83,84,85,86,88,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,239,226,233,229,227,230,234,235,232,231,236,237,238,228,240,241,135,242,202,201,245,243,194,205,247,246,249,250,244,251,252,248,159,223,134,131,133,132,130,163,162,165,169,166,171,168,173,178,174,177,179,167,175,176,172,164,170,160,161,181,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,1,10,52,180,183,158,157,53,107,108,154,111,115,114,116,117,119,109,153,118,106,120,113,110,112,155,148,147,129,146,151,150,149,136,152,156,126,127,128,105,139,137,138,140,145,144,142,141,143,184,185,187,186,121,123,124,122,125]},"version":"4.7.3"}
|
|
1
|
+
{"program":{"fileNames":["../../../../node_modules/typescript/lib/lib.es5.d.ts","../../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../../node_modules/@types/node/assert.d.ts","../../../../node_modules/@types/node/assert/strict.d.ts","../../../../node_modules/@types/node/globals.d.ts","../../../../node_modules/@types/node/async_hooks.d.ts","../../../../node_modules/@types/node/buffer.d.ts","../../../../node_modules/@types/node/child_process.d.ts","../../../../node_modules/@types/node/cluster.d.ts","../../../../node_modules/@types/node/console.d.ts","../../../../node_modules/@types/node/constants.d.ts","../../../../node_modules/@types/node/crypto.d.ts","../../../../node_modules/@types/node/dgram.d.ts","../../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../../node_modules/@types/node/dns.d.ts","../../../../node_modules/@types/node/dns/promises.d.ts","../../../../node_modules/@types/node/domain.d.ts","../../../../node_modules/@types/node/events.d.ts","../../../../node_modules/@types/node/fs.d.ts","../../../../node_modules/@types/node/fs/promises.d.ts","../../../../node_modules/@types/node/http.d.ts","../../../../node_modules/@types/node/http2.d.ts","../../../../node_modules/@types/node/https.d.ts","../../../../node_modules/@types/node/inspector.d.ts","../../../../node_modules/@types/node/module.d.ts","../../../../node_modules/@types/node/net.d.ts","../../../../node_modules/@types/node/os.d.ts","../../../../node_modules/@types/node/path.d.ts","../../../../node_modules/@types/node/perf_hooks.d.ts","../../../../node_modules/@types/node/process.d.ts","../../../../node_modules/@types/node/punycode.d.ts","../../../../node_modules/@types/node/querystring.d.ts","../../../../node_modules/@types/node/readline.d.ts","../../../../node_modules/@types/node/repl.d.ts","../../../../node_modules/@types/node/stream.d.ts","../../../../node_modules/@types/node/stream/promises.d.ts","../../../../node_modules/@types/node/stream/consumers.d.ts","../../../../node_modules/@types/node/stream/web.d.ts","../../../../node_modules/@types/node/string_decoder.d.ts","../../../../node_modules/@types/node/timers.d.ts","../../../../node_modules/@types/node/timers/promises.d.ts","../../../../node_modules/@types/node/tls.d.ts","../../../../node_modules/@types/node/trace_events.d.ts","../../../../node_modules/@types/node/tty.d.ts","../../../../node_modules/@types/node/url.d.ts","../../../../node_modules/@types/node/util.d.ts","../../../../node_modules/@types/node/v8.d.ts","../../../../node_modules/@types/node/vm.d.ts","../../../../node_modules/@types/node/wasi.d.ts","../../../../node_modules/@types/node/worker_threads.d.ts","../../../../node_modules/@types/node/zlib.d.ts","../../../../node_modules/@types/node/globals.global.d.ts","../../../../node_modules/@types/node/index.d.ts","../../../../node_modules/esbuild/lib/main.d.ts","../../../../node_modules/rollup/dist/rollup.d.ts","../../../../node_modules/source-map-js/source-map.d.ts","../../../../node_modules/postcss/lib/comment.d.ts","../../../../node_modules/postcss/lib/at-rule.d.ts","../../../../node_modules/postcss/lib/rule.d.ts","../../../../node_modules/postcss/lib/container.d.ts","../../../../node_modules/postcss/lib/declaration.d.ts","../../../../node_modules/postcss/lib/previous-map.d.ts","../../../../node_modules/postcss/lib/input.d.ts","../../../../node_modules/postcss/lib/css-syntax-error.d.ts","../../../../node_modules/postcss/lib/warning.d.ts","../../../../node_modules/postcss/lib/document.d.ts","../../../../node_modules/postcss/lib/root.d.ts","../../../../node_modules/postcss/lib/lazy-result.d.ts","../../../../node_modules/postcss/lib/no-work-result.d.ts","../../../../node_modules/postcss/lib/processor.d.ts","../../../../node_modules/postcss/lib/result.d.ts","../../../../node_modules/postcss/lib/node.d.ts","../../../../node_modules/postcss/lib/list.d.ts","../../../../node_modules/postcss/lib/postcss.d.ts","../../../../node_modules/vite/dist/node/index.d.ts","../../../../node_modules/tinyspy/dist/index.d.ts","../../../../node_modules/@types/chai/index.d.ts","../../../../node_modules/vitest/dist/index.d.ts","../src/utils/assertNever.d.ts","../src/Literal.d.ts","../src/types.d.ts","../src/builders/ConditionBuilder.d.ts","../src/builders/WindowFunction.d.ts","../src/builders/CaseStatement.d.ts","../src/builders/ColumnExpressionFactory.d.ts","../src/builders/QueryBuilder.d.ts","../src/builders/internal/Subqueries.d.ts","../src/builders/internal/With.d.ts","../src/builders/internal/Where.d.ts","../src/builders/LockType.d.ts","../src/builders/SelectBuilder.d.ts","../src/builders/internal/Returning.d.ts","../src/builders/DeleteBuilder.d.ts","../src/builders/ConflictActionType.d.ts","../src/builders/InsertBuilder.d.ts","../src/builders/UpdateBuilder.d.ts","../src/builders/Compiler.d.ts","../src/builders/LimitByGroupWrapper.d.ts","../src/builders/index.d.ts","../../../queryable/dist/src/Query.d.ts","../../../queryable/dist/src/Queryable.d.ts","../../../queryable/dist/src/QueryHandler.d.ts","../../../queryable/dist/src/QueryHandlerAccessor.d.ts","../../../queryable/dist/src/index.d.ts","../src/index.d.ts","../src/queryable/DatabaseQuery.d.ts","../src/queryable/DatabaseQueryable.d.ts","../src/queryable/index.d.ts","../src/client/EventManager.d.ts","../src/client/errors.d.ts","../../../../node_modules/pg-types/index.d.ts","../../../../node_modules/pg-protocol/dist/messages.d.ts","../../../../node_modules/pg-protocol/dist/serializer.d.ts","../../../../node_modules/pg-protocol/dist/parser.d.ts","../../../../node_modules/pg-protocol/dist/index.d.ts","../../../../node_modules/@types/pg/index.d.ts","../src/client/PgClient.d.ts","../src/client/Pool.d.ts","../src/client/Connection.d.ts","../src/client/Client.d.ts","../src/client/errorCodes.d.ts","../src/client/Transaction.d.ts","../src/client/index.d.ts","../src/utils/asyncIterableTransaction.d.ts","../src/utils/ConstraintHelper.d.ts","../src/utils/createDatabaseIfNotExists.d.ts","../src/utils/Mutex.d.ts","../src/utils/sql.d.ts","../src/utils/retryTransaction.d.ts","../src/utils/withDatabaseAdvisoryLock.d.ts","../src/utils/pgClientFactory.d.ts","../src/utils/index.d.ts","../../tests/cases/unit/createConnectionMockAlt.ts","../../tests/cases/unit/connection.test.ts","../../tests/cases/unit/eventManager.test.ts","../../tests/cases/unit/pool.test.ts","../../../database-tester/dist/src/mocking.d.ts","../../../database-tester/dist/src/index.d.ts","../../tests/src/tags.ts","../../tests/cases/unit/queryBuilder.test.ts","../../../../node_modules/@types/accepts/index.d.ts","../../../../node_modules/@types/bcrypt/index.d.ts","../../../../node_modules/@types/connect/index.d.ts","../../../../node_modules/@types/body-parser/index.d.ts","../../../../node_modules/@types/keyv/index.d.ts","../../../../node_modules/@types/http-cache-semantics/index.d.ts","../../../../node_modules/@types/responselike/index.d.ts","../../../../node_modules/@types/cacheable-request/index.d.ts","../../../../node_modules/@types/caseless/index.d.ts","../../../../node_modules/@types/chai-subset/index.d.ts","../../../../node_modules/@types/content-disposition/index.d.ts","../../../../node_modules/@types/cookiejar/index.d.ts","../../../../node_modules/@types/keygrip/index.d.ts","../../../../node_modules/@types/range-parser/index.d.ts","../../../../node_modules/@types/qs/index.d.ts","../../../../node_modules/@types/express-serve-static-core/index.d.ts","../../../../node_modules/@types/mime/index.d.ts","../../../../node_modules/@types/serve-static/index.d.ts","../../../../node_modules/@types/express/index.d.ts","../../../../node_modules/@types/cookies/index.d.ts","../../../../node_modules/@types/fs-extra/index.d.ts","../../../../node_modules/@types/http-assert/index.d.ts","../../../../node_modules/@types/http-errors/index.d.ts","../../../../node_modules/@types/js-yaml/index.d.ts","../../../../node_modules/@types/json-buffer/index.d.ts","../../../../node_modules/@types/json-schema/index.d.ts","../../../../node_modules/@types/json-stable-stringify/index.d.ts","../../../../node_modules/@types/jsonwebtoken/index.d.ts","../../../../node_modules/@types/koa-compose/index.d.ts","../../../../node_modules/@types/koa/index.d.ts","../../../../node_modules/@types/koa-bodyparser/index.d.ts","../../../../node_modules/@types/koa-compress/index.d.ts","../../../../node_modules/@types/koa__cors/index.d.ts","../../../../node_modules/@types/mime-types/index.d.ts","../../../../node_modules/@types/mustache/index.d.ts","../../../../node_modules/form-data/index.d.ts","../../../../node_modules/@types/node-fetch/externals.d.ts","../../../../node_modules/@types/node-fetch/index.d.ts","../../../../node_modules/@types/nodemailer/lib/dkim/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts","../../../../node_modules/@types/nodemailer/lib/xoauth2.d.ts","../../../../node_modules/@types/nodemailer/lib/mailer/index.d.ts","../../../../node_modules/@types/nodemailer/lib/mime-node/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts","../../../../node_modules/@types/nodemailer/lib/shared.d.ts","../../../../node_modules/@types/nodemailer/lib/json-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts","../../../../node_modules/@types/nodemailer/lib/ses-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts","../../../../node_modules/@types/nodemailer/lib/smtp-transport.d.ts","../../../../node_modules/@types/nodemailer/lib/stream-transport.d.ts","../../../../node_modules/@types/nodemailer/index.d.ts","../../../../node_modules/@types/npm-package-arg/index.d.ts","../../../../node_modules/@types/parse-json/index.d.ts","../../../../node_modules/@types/prompts/index.d.ts","../../../../node_modules/@types/request/node_modules/form-data/index.d.ts","../../../../node_modules/@types/tough-cookie/index.d.ts","../../../../node_modules/@types/request/index.d.ts","../../../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../../node_modules/@types/sinon/index.d.ts","../../../../node_modules/buffer/index.d.ts","../../../../node_modules/@types/superagent/index.d.ts","../../../../node_modules/@types/supertest/index.d.ts","../../../../node_modules/@types/uuid/index.d.ts","../../../../node_modules/@types/ws/index.d.ts"],"fileInfos":[{"version":"f5c28122bee592cfaf5c72ed7bcc47f453b79778ffa6e301f45d21a0970719d4","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","3eb679a56cab01203a1ba7edeade937f6a2a4c718513b2cd930b579807fa9359","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"181f1784c6c10b751631b24ce60c7f78b20665db4550b335be179217bacc0d5f","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"cd483c056da900716879771893a3c9772b66c3c88f8943b4205aec738a94b1d0","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"ff667ee99e5a28c3dc5063a3cfd4d3436699e3fb035d4451037da7f567da542a","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"c37f8a49593a0030eecb51bbfa270e709bec9d79a6cc3bb851ef348d4e6b26f8","affectsGlobalScope":true},"0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"2f6c9750131d5d2fdaba85c164a930dc07d2d7e7e8970b89d32864aa6c72620c","affectsGlobalScope":true},"56d13f223ab40f71840795f5bef2552a397a70666ee60878222407f3893fb8d0",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","90b94d3d2aa3432cc9dd2d15f56a38b166163fc555404c74243e1af29c5549d8","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","c993aac3b6d4a4620ef9651497069eb84806a131420e4f158ea9396fb8eb9b8c","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"be57ed74f6dc1a2c92e6f8e00b1d758bb6ec513680b5547c67ac7c0193371b93","57951685bd0e57e5a7aebfd62512e365bc1db66315992211a647cacfcfa65965","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","d2f5c67858e65ebb932c2f4bd2af646f5764e8ad7f1e4fbe942a0b5ea05dc0e7","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","7f249c599e7a9335dd8e94a4bfe63f00e911756c3c23f77cdb6ef0ec4d479e4a",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"2cabc86ea4f972f2c8386903eccb8c19e2f2370fb9808b66dd8759c1f2ab30c7","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","02b3239cf1b1ff8737e383ed5557f0247499d15f5bd21ab849b1a24687b6100c","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"aee7013623e7632fba449d4df1da92925b27d9b816cb05546044dbfe54c88ef4","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","f6b2d700c02c818151361abb13737527e8bc0aab9b7065b662b25d9eaba4c5de","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"1aad825534c73852a1f3275e527d729a2c0640f539198fdfdfeb83b839851910","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd","f6801b113c81e3b4ef0b2b27e457cd1a269b72339312bb716be93a199d8d0bc3","f6ae4d70775f50beaaa1a3968ed7b6e2a7185c172243c4ac1c8ecb3d39c3faf6","858d0d831826c6eb563df02f7db71c90e26deadd0938652096bea3cc14899700","d1c89db652113258e4ba4bbdf5cc7a2a3a600403d4d864a2087b95186253cd5b","11a90d2cb2eaf7fdf931a63b58279e8161f1477a1bd1e914ae026c1bbf9afed3","af18e30f3ba06e9870b61dfa4a109215caabdaa337590c51b4a044a9f338ce96","ace603f7b60599f2dcdbd71c07137b60a747dd33be540f4a294b890f9e0b89dc","7658fbdd425c656fb1849b44932ae7431e8c3198d22c65ce1490deb582743b52","7786c75c1b46e93b33c63dccf689143a5f47ff451a6b3bd9b10e4801cdeadcc2","615b7264db151461b896cd79719414d63f7b2b2100b275828e53cab95a356e2f","31491a01ed7466e0b3b0ef8407f2524683055eceb955b1d5ccf7096129468b39","f4b12f7dde4fc0e386648318481bdcfe861b566be246bebf0e8a11ebd909adf9","e8966f7c424780bb0b9d411ebe13eda8555ca15aa675603316c2952bc027b0e3","df0e5f3c4a518111d160cf3bebc9a3ac7d39c6e3bfb7a21d43c304896c3015e2","df4e2f161f74870708c2cc5e1036a6405b878496408fda1ee50d5b10e50d6601","bf791da347fb1c0ffc1e2fcd35867e64bb8355270ae26278198c521bdcf94569","e0e0e3c068e145fbb322120979299ff130ffdd39f0dcd0d5aeaa9f3f8a0d01d9","fde91356172e35b9ea68bbdf33721f7c80307a4ce65b82105eac800e9e744995","9bd5e5a4a1e66b35efe3c48ddac1116537ef86e041717f3a9b9f1e060c74efa6","d7e4a5f4ccfb749c3033fafc233073b4d1dcca0249785186c589602a81f9d86f","68161b6f3004fc10f8bb47a4986cef13c3b0728fb1ca3e1dc7316227d09b2c8d","5c04c4365e9f414be022f135826efec439299d8ac1e532d612612fe27f936477","a7157ee945ba3e7ccf605cf5f2e83e62f7694b92a3ddf8bc69c5182fe93aa98f",{"version":"3a15910b7f45dfc393f010ee8f913580b08d65752800fc48147ea13445acd5f7","affectsGlobalScope":true},{"version":"7624987e641632fb95f4d4c661744d3c0a952a62ee0b96de0e1f55c1a207d886","affectsGlobalScope":true},"15be5bd580a13feacf1da73771a1325d35aea3c76baf8cf9d3bac422a03c86c8","2c4c12960873024f1edc1a50cae7776d98e72a4fb45faf573f7930f3a78d1c41","8956d9f8a70ce97be20a8770ac97ad57ed3d07bcb3c5e4e0ee4f98a620101c66","bbe451cef0df0ce351c6563e16aeb3fb11395e84c1ff403f3cdfbda2a19648f9","33bbeb3437d6298ef3a2eb14dcde7fefa56841ae676a61d627357aa113bde647","dee7e63c4408d537fa5369e7b38979149693ca7574a1a0b26424beca0c98efe8","0c958be68c882fcb3f14999a5d15afc100f6aad04b4a7617b2d8805ed3c70522","3f21a8d6e6984712c89372d709ef4ab7966f3eb44b66a7dd295af8ad425039ed","58225569a7fadf71770a21393e8a02b4abc1df2851b6a311b57d2f06421a6b4c","3819ab4322145625a2fe2776d1980a47c4ac569dcdf2fc386e4a1ba5c74d9aaa","f549347bc8b2ee2026357d43eb11070e4900aa4f91c80276f253a9affe860f7d","be9b313c8ad1641bf24c3fd176ff21523dccd76c597ae51cca7f485313dab755","634947b9a9172208bac2ae013afde9d87542f624cb30feb4943ce792307c1e6b","e5785e1d247a1bc256ad777b06e9be3369f10c197cdacda9558f4345e395931b","b7815dac80b8dce75349743ff6f01628a8a8d07bed7a35fbbbf75c26ccf71d64","8f7063ac23b035cab663a6a958819d55bedee5e7b0369061409b7080540074dd","d190e7bc8eacfb0aa2cd21f4268c65c4010048d397701c7c2a8a782f02456635","a8261c6018dd92240453480ff7d4ed4f72c3eac6b7fd542ae87ef70c3644d81a","0a448ebd2d953b06016bdb166ec486f89c3f65ac712c802eea518f16d06d0b84","443b40981f40d92ebcc6a176c3a194c05a282225646c212dc84656d74df19852","e8596c7c441676b3aa4bc20d1ed5604f729f4ec72eb7fb88ebcd359f8a9249d6","fd8856cb7f184c84ab6ebcd860a0ae2d96cc848ec27bef893ed2d659e4e2270e","77107fdaf84dd93f654d6643a675a7a482047815bbfa6d52e9b3c32cc88611bd","ea7d198005d34c160df26dc560f4dee2c874bc05497369d7b247200c1b9c10ae","974ce3e154a453a4c190696face27b7ca4c8b496b41248967f045655bdf20d35","8096e59065032c0ccf8f0a40ad2c5fda2b667f69f88976088beca9587e4d0b42","4e7d19141c1ce4f0250b565586be6997d93f651ffedc3a86d42a86deac716a31","613a4aa35726c320a43916ac77b0d23475117669a495f325fc1fbf6eab0302c0","4a509df1002e274856016567dbfb0ef672baf90aeee2670b6ea6a1c11b43a254","88398a6f505edeb2e340da9148a589c0b2e04e127fc1af2de51b6c65efa6020c","26885b73db730896a3a9f67f601736a6c0947457f87aae20f144842e1a8f2f36","300698c012adbb5445bb567bc07c182f79923ef4ee11c2277ca0f5ff271dbf13","f60e3e3060207ac982da13363181fd7ee4beecc19a7c569f0d6bb034331066c2","17230b34bb564a3a2e36f9d3985372ccab4ad1722df2c43f7c5c2b553f68e5db","87ed0f84f0691d5c724b23159db96342e6b04ac69201b02c65936f4281ce1fbe","13868c5792808236b17dfe2803eafce911ea4d09d3b2fda95391891a494f988f","0dfe35191a04e8f9dc7caeb9f52f2ee07402736563d12cbccd15fb5f31ac877f","fa5c2d3fcd8e227e180815df0a0903ed4b116400452af8a75ac5b68e5e1de9da","e748e2e09e898875bd8f8adcea1ce50c9eb556c1e95b90f4a107ea79f957d9b1","1f3fe3af31bb1a836d721134c6273dbd94a2df084c24cfcf1a38a5c2f350fc16","7782da9835b09746b3a8f9d77b918425cff242ecbdabc0ccdb37af8549eb0ded","54d13c5234ff5cbe4f7df8c1a2fd77dd4f6e87a823b9f0390ab93361e8289955","2a957584986d115f5fccc18f78bd62cb125587d9f7a257bd4599414efe5e81d6","d2e84777615e57c91343f3db1e3ec78d901f0fc43a280b288d54fd5d5a72eb68","d547f52c1584b087b7c639ded02ae2ed9e728b113a11d50f7fa5bc0aaf80df79","e5de3662a2444b96d8f2645de1a5ae70b128d1166ea2f79c5fa77eed51ed3f0e","90a5b31e7889631f05c29db43be491d8d99c338d8621596d3fca3d03fb69bbab","653e90660b4c4a42913c1772b670dccc734a57c2944fb0d6f69a9820f26233db","edbb46970bcd4561795898f82524c32893799958a4081d1a04e60ff979488d18","15b2d7aeadaeb10d4f91f781828ae3bc408376aabae35f29b4871d6c92bcbb17","4b88d405c55f6121bac7dc4c440008b8b76b7f0ec7258fe9b824239df5a2bee2","747f991892aaea1cce03d84547485155c8c68d1ad4d2a9c68d6790f175597833","366ccca92a86e10519bf8557e58a057ca934584a8955b68018f9d1efcf59c459","af7ff3862fe43a6c486553a92fdea39fa243ea092f2ed3ef21c166a7875b2a0f",{"version":"e8f8fc9ce32a2fe0a175f998f3774859f738ac0cdf5cda488f7254cd0a116629","signature":"00376357f2bea5154271ba7f4238a9b562eeca027bdec2d4764101858dbe4246"},{"version":"c40442b2a30ecff28482d4568f66c02ac712ea45f28d26e1d4d7c0cd1c96753d","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"d00c8ed38f16fa8af087ea402bb06a48e8e2776da4e53ee9551b3bcbbd9b485f","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"d82c1d70440a968da14f873d54aa80df74d5ee23c94feef458af2328dc02a160","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"beef5267b9dd6df25f53d7406aa9b1bb33f7e3121a4de561a24e02f17c1f13f6","b18e2d051fa6c83044a9d0dbe58cb840e5f368a91849625b88c6f6a2cc421533",{"version":"7d33de5e23e1b7b3917c020fb38a6a53935752e880a8aa181bc60c2579c78ee6","signature":"cbaf1a9b75975aca8021137a4cbc37a0440a45a773340a85b197ad653da7ab5d"},{"version":"3ca9e61d9db9155a605a96b0d861d681f85c52759760ee6594d58ff30747c00d","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"6738101ae8e56cd3879ab3f99630ada7d78097fc9fd334df7e766216778ca219","57ddc4e066366bbe04f497f9afce1c88e088dbd09be0618e072754450de3acbb","6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073","afc559c1b93df37c25aef6b3dfa2d64325b0e112e887ee18bf7e6f4ec383fc90","fec943fdb3275eb6e006b35e04a8e2e99e9adf3f4b969ddf15315ac7575a93e4","cab425b5559edac18327eb2c3c0f47e7e9f71b667290b7689faafd28aac69eae","3cfb0cb51cc2c2e1b313d7c4df04dbf7e5bda0a133c6b309bf6af77cf614b971","f992cd6cc0bcbaa4e6c810468c90f2d8595f8c6c3cf050c806397d3de8585562","5343f3c160282dfbaab9af350119a0c3b59b7076ef0117bb5995a66e240dab28",{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"204dbe6c72467fb14bbe8f06510b11fb541b6ce29580c6e10ebd3bdb2eb0c1f9","8d48b8f8a377ade8dd1f000625bc276eea067f2529cc9cafdf082d17142107d6","ce013414484233b24f42c0fcfca48a60bb66ab4e13c82953662305e8f1ee4925","16d51f964ec125ad2024cf03f0af444b3bc3ec3614d9345cc54d09bab45c9a4c","ba601641fac98c229ccd4a303f747de376d761babb33229bb7153bed9356c9cc",{"version":"101eb8b4e972b9326f39591e2e40e967e3331e8d960f81248daeb266ea1affec","affectsGlobalScope":true},"84e3bbd6f80983d468260fdbfeeb431cc81f7ea98d284d836e4d168e36875e86","0b85cb069d0e427ba946e5eb2d86ef65ffd19867042810516d16919f6c1a5aec","15c88bfd1b8dc7231ff828ae8df5d955bae5ebca4cf2bcb417af5821e52299ae","eb96a2321f717bccc3e49e104e299152984b927ea4546b559ae631c06565819c","ed19da84b7dbf00952ad0b98ce5c194f1903bcf7c94d8103e8e0d63b271543ae","e98185f4249720ace1921d59c1ff4612fa5c633a183fc9bf28e2e7b8e3c7fd51","6168414aa12d33d0fcfac4f9870aa81ce27e136db6faf182001a5f3792e1d720","686e548ae30250d62532c8cacb43fccc922b693408371bd3503563c4a0f28eed","75bdc1b420f0ffc6cc6fd0b6694d89f5072bf755b4e6c7e65a2fda797ca0bb8a","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","13cc3979e1f548aacaa23911f2d6e69c1a2999266c4a1952806de1e9593bdaaa","e5dd317ef2c7a2882b152337b03d592fafa8351b40351849a16a908b198bd3b5","5006668996956580886022c05108e32c742823e1b5652aff7914917233731518","0c52f5366c9146ad79b546e70162c659972a2798522806e8283f3137feab3965","aff59cc6a1f2049bc6ac37cdd5a7d449584f28e7ee5ba240bd903aefdaef6418","77224b06a9d39e8710eca2050acadd9f9e062b068d74aa98e38a6854c272d35e","dcb9aa62f2662b999047096125adfa905cca0c988d7f5130e38ab41afeb96a3f","c757372a092924f5c16eaf11a1475b80b95bb4dae49fe3242d2ad908f97d5abe","2d5c29f803f71f0c768684f98c4ab2e95fff0104b42f0644eb65479d05eccdc3","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","208bb742e0f201470da121bc73847c74b62cff4172f38ae5949ae77d6c9c6b71","3663d1b50f356656a314e5df169bb51cb9d5fd75905fa703f75db6bb32030568","bb654d426b82e0846cd4bd7de91d637039ecdfd63c94447373490178f80846fe","db90f54098b237753ac9c846e39cd49aa538dcad07a2e1c68a138f3c0f8e621d","892f8cf5db77196b9f4da151423570a9ad92f01692740d6137c0a13a006d9121","6e41751646fe275206d052a2e5ba87d27dd0df4dcbca134fc3fd2dc4d3d410d2","eecb2ea10a1500dcc6bdeff14be1fb43806f63a9b8562e16e1b4fc8baa8dfa8d","221a6ab66d611349faaf80af49c7a34d95623787610fd153fed4da0811abdcae","40122dcc63746bc8827d17f5f981668844e6c12537ca3b3e5e1a35883a50d666","966418bf54ad347058abfd433deb2f74480e859adb80b9ddbe90bb3ada1a8eda","e79130cf2ba010f2b79747bf43b086252ad041b130768331a1144c0a86185877","5945e7a91249d0dcbce4609279cb8fa95e45a4ac0edf6b81742724ed38e5018f","dafce7a7b279977940b6b4b50017625e4f922f73094433d2875994bdc0b27e87","ec630acd5a4ac97faadbfff935eb00df5318a6302dd25938685ad8c25c70465c","b3edafa3cb2b51781dffced9ec03613b8fe4981c44dea915f119996d201c1d03","6c559dee3c6251c261b67df08e01d4cbc89cbd7a63300150c636705733cebfff","9b5a5e0d06f8646aa2978afb1b5bb5e608649751e9cfc7290e86be42605ba42f","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","5f7614d60b32dc66e5d665eafd10d7619eedca3a20f0e876e9ec73141735e364","e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","bf0b1297461549a0e32cd57dffb992c63d7c7134fe0f9e15d359abcc88dbd28c","f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","24a09dc3e07d69b0a224dbd14b2994c40d1efd0954e759004b61b9e683dabe5f","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","31c502014e5ba046d5cb060136929b73fd53f0f989aa37b2b0424644cb0d93ef","76232dbb982272b182a76ad8745a9b02724dc9896e2328ce360e2c56c64c9778","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","b4358a89fcd9c579f84a6c68e2ce44ca91b07e4db3f8f403c2b7a72c1a1e04b6"],"options":{"composite":true,"declaration":true,"declarationMap":true,"downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"module":1,"noEmitOnError":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[71,96,103],[96,103],[71,96,103,193],[68,71,95,96,103,195,196,197],[96],[96,127],[71,96,103,193,203,209],[68,71,96,103,204,205],[96,194,205,206,208],[69,96,103],[68,96,103],[96,220],[96,101,103,220],[68,71,72,76,82,95,96,103,191,201,203,210,212,213,219],[71,95,96,103,226,227],[53,96],[56,96],[57,62,96],[58,68,69,76,85,95,96],[58,59,68,76,96],[60,96],[61,62,69,77,96],[62,85,92,96],[63,65,68,76,96],[64,96],[65,66,96],[67,68,96],[68,96],[68,69,70,85,95,96],[68,69,70,85,96],[71,76,85,95,96],[68,69,71,72,76,85,92,95,96],[71,73,85,92,95,96],[53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],[68,74,96],[75,95,96],[65,68,76,85,96],[77,96],[78,96],[56,79,96],[80,94,96,100],[81,96],[82,96],[68,83,96],[83,84,96,98],[68,85,86,87,96],[85,87,96],[85,86,96],[88,96],[89,96],[68,90,91,96],[90,91,96],[62,76,92,96],[93,96],[76,94,96],[57,71,82,95,96],[62,96],[85,96,97],[96,98],[96,99],[57,62,68,70,79,85,95,96,98,100],[85,96,101],[96,103,230,232,236,237,238,239,240,241],[85,96,103],[68,96,103,230,232,233,235,242],[68,76,85,95,96,103,229,230,231,233,234,235,242],[85,96,103,232,233],[85,96,103,232,234],[96,103,230,232,233,235,242],[85,96,103,234],[68,76,85,92,96,103,231,233,235],[68,96,103,230,232,233,234,235,242],[68,85,96,103,230,231,232,233,234,235,242],[68,85,96,103,230,232,233,235,242],[71,85,96,103,235],[68,85,92,96,103,161,162,165,166],[69,71,73,76,85,95,96,103,199,246,247],[71,85,96,103],[71,96,103,207],[96,249],[57,69,71,85,96,103,202],[96,252],[68,71,73,85,92,95,96,101,103],[96,103,162,163,164],[85,96,103,162],[96,110],[96,110,122],[96,107,108,109,111,122],[96,113],[96,110,117,121,124],[96,112,124],[96,115,117,120,121,124],[96,115,117,118,120,121,124],[96,107,108,109,110,111,113,114,115,116,117,121,124],[96,106,107,108,109,110,111,113,114,115,116,117,118,120,121,122,123],[96,106,124],[96,117,118,119,121,124],[96,120,124],[96,110,116,121,124],[96,114,122],[96,106],[68,69,71,73,76,85,92,95,96,101,103,104,105,124],[96,100,125,126,127,128],[96,187],[96,155],[96,130,136],[96,130,131,132,133,134,136],[96,130,141,143,145,146],[96,130,131,136,137,141],[96,130,136,137,138,139,142,147,173],[96,130,136,137,138,139,141,142,144,147,173],[96,136,141,173],[96,130,131,135,141,147],[96,130,132,136,137,138,139,140,147,173],[96,130,136,137,138,139,141,142,147,173],[96,132,133,134,136,140,141,143,144,145,146,147,148],[96,130,149,173],[96,130,136,141,147],[96,130,131,132],[96,130,137,147],[96,149,154,158,159,169],[96,131,159,168,170],[96,169],[68,96,103,166],[68,96,103,160,167,182],[96,159,169],[96,159,160,168,169,170,171,172],[96,130,131,138,139,142,149,158,173,182],[96,154,155],[96,156,157],[96,173],[96,131],[96,129,174,175,176,177,178,179,180,181],[96,131,166,167],[96,130],[96,128,182,183],[68,96,128,155,167],[96,128,155,183],[68,96,128,155,166],[96,128,155,188,189],[96,154],[96,150,151,152,153],[155]],"referencedMap":[[191,1],[192,2],[194,3],[198,4],[199,5],[200,6],[127,5],[193,1],[201,5],[202,5],[210,7],[206,8],[209,9],[211,10],[212,5],[196,5],[213,5],[214,5],[215,5],[216,5],[217,5],[218,2],[203,5],[195,11],[221,12],[219,12],[222,13],[220,14],[223,12],[224,5],[207,5],[225,5],[227,5],[228,15],[53,16],[54,16],[56,17],[57,18],[58,19],[59,20],[60,21],[61,22],[62,23],[63,24],[64,25],[65,26],[66,26],[67,27],[68,28],[69,29],[70,30],[55,5],[102,5],[71,31],[72,32],[73,33],[103,34],[74,35],[75,36],[76,37],[77,38],[78,39],[79,40],[80,41],[81,42],[82,43],[83,44],[84,45],[85,46],[87,47],[86,48],[88,49],[89,50],[90,51],[91,52],[92,53],[93,54],[94,55],[95,56],[96,57],[97,58],[98,59],[99,60],[100,61],[101,62],[242,63],[229,64],[236,65],[232,66],[230,67],[233,68],[237,69],[238,65],[235,70],[234,71],[239,72],[240,73],[241,74],[231,75],[243,5],[244,5],[166,76],[245,64],[205,5],[204,5],[248,77],[246,78],[197,78],[208,79],[250,80],[249,5],[252,81],[253,82],[247,5],[254,5],[255,83],[251,5],[104,5],[226,78],[165,84],[162,2],[164,85],[163,2],[161,5],[108,86],[107,87],[110,88],[114,89],[111,87],[116,90],[113,91],[118,92],[123,5],[119,93],[122,94],[124,95],[112,96],[120,97],[121,98],[117,99],[109,86],[115,100],[105,5],[106,101],[126,5],[12,5],[11,5],[2,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[3,5],[4,5],[24,5],[21,5],[22,5],[23,5],[25,5],[26,5],[27,5],[5,5],[28,5],[29,5],[30,5],[31,5],[6,5],[32,5],[33,5],[34,5],[35,5],[7,5],[36,5],[41,5],[42,5],[37,5],[38,5],[39,5],[40,5],[8,5],[46,5],[43,5],[44,5],[45,5],[47,5],[9,5],[48,5],[49,5],[50,5],[51,5],[1,5],[10,5],[52,5],[125,102],[128,103],[188,104],[187,105],[130,5],[134,106],[135,107],[147,108],[132,109],[144,5],[143,110],[145,111],[148,112],[140,5],[136,113],[141,114],[146,115],[133,106],[149,116],[142,117],[137,118],[139,119],[138,120],[170,121],[169,122],[159,123],[167,124],[168,125],[172,126],[171,5],[160,5],[173,127],[155,128],[156,129],[157,129],[158,130],[131,2],[175,131],[177,5],[129,5],[174,131],[176,132],[182,133],[181,134],[179,5],[178,135],[180,131],[184,136],[183,137],[185,138],[186,139],[190,140],[189,5],[150,141],[152,141],[153,141],[151,141],[154,142]],"exportedModulesMap":[[191,1],[192,2],[194,3],[198,4],[199,5],[200,6],[127,5],[193,1],[201,5],[202,5],[210,7],[206,8],[209,9],[211,10],[212,5],[196,5],[213,5],[214,5],[215,5],[216,5],[217,5],[218,2],[203,5],[195,11],[221,12],[219,12],[222,13],[220,14],[223,12],[224,5],[207,5],[225,5],[227,5],[228,15],[53,16],[54,16],[56,17],[57,18],[58,19],[59,20],[60,21],[61,22],[62,23],[63,24],[64,25],[65,26],[66,26],[67,27],[68,28],[69,29],[70,30],[55,5],[102,5],[71,31],[72,32],[73,33],[103,34],[74,35],[75,36],[76,37],[77,38],[78,39],[79,40],[80,41],[81,42],[82,43],[83,44],[84,45],[85,46],[87,47],[86,48],[88,49],[89,50],[90,51],[91,52],[92,53],[93,54],[94,55],[95,56],[96,57],[97,58],[98,59],[99,60],[100,61],[101,62],[242,63],[229,64],[236,65],[232,66],[230,67],[233,68],[237,69],[238,65],[235,70],[234,71],[239,72],[240,73],[241,74],[231,75],[243,5],[244,5],[166,76],[245,64],[205,5],[204,5],[248,77],[246,78],[197,78],[208,79],[250,80],[249,5],[252,81],[253,82],[247,5],[254,5],[255,83],[251,5],[104,5],[226,78],[165,84],[162,2],[164,85],[163,2],[161,5],[108,86],[107,87],[110,88],[114,89],[111,87],[116,90],[113,91],[118,92],[123,5],[119,93],[122,94],[124,95],[112,96],[120,97],[121,98],[117,99],[109,86],[115,100],[105,5],[106,101],[126,5],[12,5],[11,5],[2,5],[13,5],[14,5],[15,5],[16,5],[17,5],[18,5],[19,5],[20,5],[3,5],[4,5],[24,5],[21,5],[22,5],[23,5],[25,5],[26,5],[27,5],[5,5],[28,5],[29,5],[30,5],[31,5],[6,5],[32,5],[33,5],[34,5],[35,5],[7,5],[36,5],[41,5],[42,5],[37,5],[38,5],[39,5],[40,5],[8,5],[46,5],[43,5],[44,5],[45,5],[47,5],[9,5],[48,5],[49,5],[50,5],[51,5],[1,5],[10,5],[52,5],[125,102],[128,103],[188,104],[187,105],[130,5],[134,106],[135,107],[147,108],[132,109],[144,5],[143,110],[145,111],[148,112],[140,5],[136,113],[141,114],[146,115],[133,106],[149,116],[142,117],[137,118],[139,119],[138,120],[170,121],[169,122],[159,123],[167,124],[168,125],[172,126],[171,5],[160,5],[173,127],[155,128],[156,129],[157,129],[158,130],[131,2],[175,131],[177,5],[129,5],[174,131],[176,132],[182,133],[181,134],[179,5],[178,135],[180,131],[183,143],[150,141],[152,141],[153,141],[151,141],[154,142]],"semanticDiagnosticsPerFile":[191,192,194,198,199,200,127,193,201,202,210,206,209,211,212,196,213,214,215,216,217,218,203,195,221,219,222,220,223,224,207,225,227,228,53,54,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,55,102,71,72,73,103,74,75,76,77,78,79,80,81,82,83,84,85,87,86,88,89,90,91,92,93,94,95,96,97,98,99,100,101,242,229,236,232,230,233,237,238,235,234,239,240,241,231,243,244,166,245,205,204,248,246,197,208,250,249,252,253,247,254,255,251,104,226,165,162,164,163,161,108,107,110,114,111,116,113,118,123,119,122,124,112,120,121,117,109,115,105,106,126,12,11,2,13,14,15,16,17,18,19,20,3,4,24,21,22,23,25,26,27,5,28,29,30,31,6,32,33,34,35,7,36,41,42,37,38,39,40,8,46,43,44,45,47,9,48,49,50,51,1,10,52,125,128,188,187,130,134,135,147,132,144,143,145,148,140,136,141,146,133,149,142,137,139,138,170,169,159,167,168,172,171,160,173,155,156,157,158,131,175,177,129,174,176,182,181,179,178,180,184,183,185,186,190,189,150,152,153,151,154]},"version":"4.7.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contember/database",
|
|
3
|
-
"version": "1.2.0-alpha.
|
|
3
|
+
"version": "1.2.0-alpha.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"typings": "dist/src/index.d.ts",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"test": "vitest"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@contember/queryable": "^1.2.0-alpha.
|
|
11
|
+
"@contember/queryable": "^1.2.0-alpha.6"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@contember/database-tester": "^1.2.0-alpha.
|
|
14
|
+
"@contember/database-tester": "^1.2.0-alpha.6",
|
|
15
15
|
"@types/node": "^16",
|
|
16
16
|
"pg": "^8.5.0"
|
|
17
17
|
},
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Connection } from './Connection'
|
|
2
|
+
import { EventManager } from './EventManager'
|
|
3
|
+
import { Mutex } from '../utils'
|
|
4
|
+
import { executeTransaction, Transaction } from './Transaction'
|
|
5
|
+
import { ClientErrorCodes } from './errorCodes'
|
|
6
|
+
import {
|
|
7
|
+
ForeignKeyViolationError,
|
|
8
|
+
InvalidDataError,
|
|
9
|
+
NotNullViolationError,
|
|
10
|
+
QueryError,
|
|
11
|
+
SerializationFailureError,
|
|
12
|
+
TransactionAbortedError,
|
|
13
|
+
UniqueViolationError,
|
|
14
|
+
} from './errors'
|
|
15
|
+
import { PgClient } from './PgClient'
|
|
16
|
+
|
|
17
|
+
export class AcquiredConnection implements Connection.ConnectionLike {
|
|
18
|
+
private mutex = new Mutex()
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
private readonly pgClient: PgClient,
|
|
22
|
+
public readonly eventManager: EventManager,
|
|
23
|
+
) {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async scope<Result>(
|
|
27
|
+
callback: (connection: Connection.ConnectionLike) => Promise<Result> | Result,
|
|
28
|
+
options: { eventManager?: EventManager } = {},
|
|
29
|
+
): Promise<Result> {
|
|
30
|
+
return await this.mutex.execute(async () => {
|
|
31
|
+
return await callback(new AcquiredConnection(this.pgClient, options.eventManager ?? this.eventManager))
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async transaction<Result>(
|
|
36
|
+
callback: (connection: Connection.TransactionLike) => Promise<Result> | Result,
|
|
37
|
+
options: { eventManager?: EventManager } = {},
|
|
38
|
+
): Promise<Result> {
|
|
39
|
+
return await this.scope(async connection => {
|
|
40
|
+
await connection.query('BEGIN', [])
|
|
41
|
+
const transaction = new Transaction(connection)
|
|
42
|
+
return await executeTransaction(transaction, callback)
|
|
43
|
+
}, options)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
async query<Row extends Record<string, any>>(
|
|
47
|
+
sql: string,
|
|
48
|
+
parameters: any[] = [],
|
|
49
|
+
meta: Record<string, any> = {},
|
|
50
|
+
): Promise<Connection.Result<Row>> {
|
|
51
|
+
return await this.mutex.execute(async () => {
|
|
52
|
+
try {
|
|
53
|
+
this.eventManager.fire(EventManager.Event.queryStart, { sql, parameters, meta })
|
|
54
|
+
|
|
55
|
+
let result: Connection.Result<Row>
|
|
56
|
+
const startHrTime = process.hrtime.bigint()
|
|
57
|
+
|
|
58
|
+
result = await this.pgClient.query(prepareSql(sql), parameters)
|
|
59
|
+
|
|
60
|
+
const endHrTime = process.hrtime.bigint()
|
|
61
|
+
const durationUs = Math.floor(Number(endHrTime - startHrTime) / 1000)
|
|
62
|
+
result = {
|
|
63
|
+
...result,
|
|
64
|
+
timing: {
|
|
65
|
+
selfDuration: durationUs,
|
|
66
|
+
totalDuration: durationUs,
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
this.eventManager.fire(EventManager.Event.queryEnd, { sql, parameters, meta }, result)
|
|
71
|
+
|
|
72
|
+
return result
|
|
73
|
+
} catch (error) {
|
|
74
|
+
if (!(error instanceof Error)) {
|
|
75
|
+
throw error
|
|
76
|
+
}
|
|
77
|
+
this.eventManager.fire(EventManager.Event.queryError, { sql, parameters, meta }, error)
|
|
78
|
+
|
|
79
|
+
switch ((error as any).code) {
|
|
80
|
+
case ClientErrorCodes.NOT_NULL_VIOLATION:
|
|
81
|
+
throw new NotNullViolationError(sql, parameters, error)
|
|
82
|
+
case ClientErrorCodes.FOREIGN_KEY_VIOLATION:
|
|
83
|
+
throw new ForeignKeyViolationError(sql, parameters, error)
|
|
84
|
+
case ClientErrorCodes.UNIQUE_VIOLATION:
|
|
85
|
+
throw new UniqueViolationError(sql, parameters, error)
|
|
86
|
+
case ClientErrorCodes.T_R_SERIALIZATION_FAILURE:
|
|
87
|
+
throw new SerializationFailureError(sql, parameters, error)
|
|
88
|
+
case ClientErrorCodes.INVALID_TEXT_REPRESENTATION:
|
|
89
|
+
case ClientErrorCodes.DATETIME_FIELD_OVERFLOW:
|
|
90
|
+
throw new InvalidDataError(sql, parameters, error)
|
|
91
|
+
case ClientErrorCodes.IN_FAILED_SQL_TRANSACTION:
|
|
92
|
+
throw new TransactionAbortedError(sql, parameters, error)
|
|
93
|
+
default:
|
|
94
|
+
throw new QueryError(sql, parameters, error)
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
function prepareSql(sql: string) {
|
|
102
|
+
let parameterIndex = 0
|
|
103
|
+
return sql.replace(/(\\*)\?/g, ({}, numOfEscapes) => (numOfEscapes.length % 2 ? '?' : `$${++parameterIndex}`))
|
|
104
|
+
}
|
package/src/client/Client.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { DatabaseQueryable } from '../queryable'
|
|
|
3
3
|
import { Connection } from './Connection'
|
|
4
4
|
import { EventManager } from './EventManager'
|
|
5
5
|
import { QueryHandler } from '@contember/queryable'
|
|
6
|
+
import { withDatabaseAdvisoryLock } from '../utils'
|
|
6
7
|
|
|
7
8
|
class Client<ConnectionType extends Connection.ConnectionLike = Connection.ConnectionLike> implements Connection.Queryable {
|
|
8
9
|
constructor(
|
|
@@ -10,27 +11,48 @@ class Client<ConnectionType extends Connection.ConnectionLike = Connection.Conne
|
|
|
10
11
|
public readonly schema: string,
|
|
11
12
|
public readonly queryMeta: Record<string, any>,
|
|
12
13
|
public readonly eventManager: EventManager = new EventManager(connection.eventManager),
|
|
13
|
-
) {
|
|
14
|
+
) {
|
|
15
|
+
}
|
|
14
16
|
|
|
15
17
|
public forSchema(schema: string): Client<ConnectionType> {
|
|
16
18
|
const eventManager = new EventManager(this.eventManager.parent)
|
|
17
19
|
return new Client<ConnectionType>(this.connection, schema, this.queryMeta, eventManager)
|
|
18
20
|
}
|
|
19
21
|
|
|
22
|
+
async scope<T>(callback: (wrapper: Client<Connection.ConnectionLike>) => Promise<T> | T): Promise<T> {
|
|
23
|
+
return await this.connection.scope(
|
|
24
|
+
connection => callback(
|
|
25
|
+
new Client(
|
|
26
|
+
connection,
|
|
27
|
+
this.schema,
|
|
28
|
+
this.queryMeta,
|
|
29
|
+
new EventManager(connection.eventManager),
|
|
30
|
+
),
|
|
31
|
+
),
|
|
32
|
+
{ eventManager: this.eventManager },
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
20
36
|
async transaction<T>(transactionScope: (wrapper: Client<Connection.TransactionLike>) => Promise<T> | T): Promise<T> {
|
|
21
37
|
return await this.connection.transaction(
|
|
22
|
-
transaction =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
38
|
+
transaction => transactionScope(
|
|
39
|
+
new Client<Connection.TransactionLike>(
|
|
40
|
+
transaction,
|
|
41
|
+
this.schema,
|
|
42
|
+
this.queryMeta,
|
|
43
|
+
new EventManager(transaction.eventManager),
|
|
44
|
+
),
|
|
45
|
+
),
|
|
30
46
|
{ eventManager: this.eventManager },
|
|
31
47
|
)
|
|
32
48
|
}
|
|
33
49
|
|
|
50
|
+
async locked<T>(lock: number, callback: (wrapper: Client<Connection.ConnectionLike>) => Promise<T> | T): Promise<T> {
|
|
51
|
+
return await this.scope(client =>
|
|
52
|
+
withDatabaseAdvisoryLock(client.connection, lock, () => callback(client)),
|
|
53
|
+
)
|
|
54
|
+
}
|
|
55
|
+
|
|
34
56
|
selectBuilder<Result = SelectBuilder.Result>(): SelectBuilder<Result> {
|
|
35
57
|
return SelectBuilder.create<Result>()
|
|
36
58
|
}
|
|
@@ -51,16 +73,10 @@ class Client<ConnectionType extends Connection.ConnectionLike = Connection.Conne
|
|
|
51
73
|
sql: string,
|
|
52
74
|
parameters: readonly any[] = [],
|
|
53
75
|
meta: Record<string, any> = {},
|
|
54
|
-
config: Connection.QueryConfig = {},
|
|
55
76
|
): Promise<Connection.Result<Row>> {
|
|
56
|
-
return this.connection.
|
|
57
|
-
sql,
|
|
58
|
-
|
|
59
|
-
{ ...this.queryMeta, ...meta },
|
|
60
|
-
{
|
|
61
|
-
eventManager: this.eventManager,
|
|
62
|
-
...config,
|
|
63
|
-
},
|
|
77
|
+
return this.connection.scope(
|
|
78
|
+
connection => connection.query(sql, parameters, { ...this.queryMeta, ...meta }),
|
|
79
|
+
{ eventManager: this.eventManager },
|
|
64
80
|
)
|
|
65
81
|
}
|
|
66
82
|
|
package/src/client/Connection.ts
CHANGED
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import { EventManager } from './EventManager'
|
|
2
2
|
import { Client } from './Client'
|
|
3
|
-
import { Transaction } from './Transaction'
|
|
4
|
-
import { executeQuery } from './execution'
|
|
5
3
|
import { Pool, PoolConfig, PoolStatus } from './Pool'
|
|
6
4
|
import { createPgClientFactory } from '../utils'
|
|
7
5
|
import { DatabaseConfig } from '../types'
|
|
6
|
+
import { AcquiredConnection } from './AcquiredConnection'
|
|
8
7
|
|
|
9
8
|
class Connection implements Connection.ConnectionLike, Connection.ClientFactory, Connection.PoolStatusProvider {
|
|
10
9
|
constructor(
|
|
11
10
|
private readonly pool: Pool,
|
|
12
|
-
private readonly queryConfig: Connection.QueryConfig,
|
|
13
11
|
public readonly eventManager: EventManager = new EventManager(null),
|
|
14
12
|
) {
|
|
15
13
|
this.pool.on('error', err => {
|
|
@@ -21,64 +19,63 @@ class Connection implements Connection.ConnectionLike, Connection.ClientFactory,
|
|
|
21
19
|
|
|
22
20
|
public static create(
|
|
23
21
|
{ pool = {}, ...config }: DatabaseConfig & { pool?: PoolConfig },
|
|
24
|
-
queryConfig: Connection.QueryConfig = {},
|
|
25
22
|
): Connection {
|
|
26
|
-
return new Connection(new Pool(createPgClientFactory(config), pool)
|
|
23
|
+
return new Connection(new Pool(createPgClientFactory(config), pool))
|
|
27
24
|
}
|
|
28
25
|
|
|
29
|
-
public
|
|
30
|
-
|
|
26
|
+
public static createSingle(
|
|
27
|
+
config: DatabaseConfig,
|
|
28
|
+
): Connection {
|
|
29
|
+
return new Connection(new Pool(createPgClientFactory(config), { maxConnections: 1, maxIdle: 0 }))
|
|
31
30
|
}
|
|
32
31
|
|
|
33
|
-
public
|
|
34
|
-
|
|
32
|
+
public createClient(schema: string, queryMeta: Record<string, any>): Client {
|
|
33
|
+
return new Client(this, schema, queryMeta, new EventManager(this.eventManager))
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
async
|
|
38
|
-
callback: (connection: Connection.
|
|
36
|
+
async scope<Result>(
|
|
37
|
+
callback: (connection: Connection.ConnectionLike) => Promise<Result> | Result,
|
|
39
38
|
options: { eventManager?: EventManager } = {},
|
|
40
39
|
): Promise<Result> {
|
|
41
40
|
const acquired = await this.pool.acquire()
|
|
42
41
|
const eventManager = new EventManager(options.eventManager ?? this.eventManager)
|
|
43
|
-
await executeQuery(acquired.client, eventManager, {
|
|
44
|
-
sql: 'BEGIN',
|
|
45
|
-
...this.queryConfig,
|
|
46
|
-
})
|
|
47
|
-
const transaction = new Transaction(acquired.client, eventManager, this.queryConfig)
|
|
48
42
|
try {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
await transaction.commitUnclosed()
|
|
43
|
+
const connection = new AcquiredConnection(acquired.client, eventManager)
|
|
44
|
+
const result = await callback(connection)
|
|
52
45
|
this.pool.release(acquired)
|
|
53
46
|
|
|
54
47
|
return result
|
|
55
48
|
} catch (e) {
|
|
56
|
-
await transaction.rollbackUnclosed()
|
|
57
49
|
this.pool.dispose(acquired)
|
|
58
50
|
throw e
|
|
59
51
|
}
|
|
60
52
|
}
|
|
61
53
|
|
|
62
|
-
async
|
|
63
|
-
|
|
54
|
+
async transaction<Result>(
|
|
55
|
+
callback: (connection: Connection.TransactionLike) => Promise<Result> | Result,
|
|
56
|
+
options: { eventManager?: EventManager } = {},
|
|
57
|
+
): Promise<Result> {
|
|
58
|
+
return await this.scope(async connection => {
|
|
59
|
+
return await connection.transaction(callback)
|
|
60
|
+
}, options)
|
|
64
61
|
}
|
|
65
62
|
|
|
66
63
|
async query<Row extends Record<string, any>>(
|
|
67
64
|
sql: string,
|
|
68
65
|
parameters: any[] = [],
|
|
69
66
|
meta: Record<string, any> = {},
|
|
70
|
-
{ eventManager, ...config }: Connection.QueryConfig = {},
|
|
71
67
|
): Promise<Connection.Result<Row>> {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
68
|
+
return await this.scope(async connection => {
|
|
69
|
+
return await connection.query(sql, parameters, meta)
|
|
70
|
+
})
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
async end(): Promise<void> {
|
|
74
|
+
await this.pool.end()
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public async clearPool(): Promise<void> {
|
|
78
|
+
await this.pool.closeIdle()
|
|
82
79
|
}
|
|
83
80
|
|
|
84
81
|
getPoolStatus(): PoolStatus {
|
|
@@ -87,11 +84,6 @@ class Connection implements Connection.ConnectionLike, Connection.ClientFactory,
|
|
|
87
84
|
}
|
|
88
85
|
|
|
89
86
|
namespace Connection {
|
|
90
|
-
export interface QueryConfig {
|
|
91
|
-
timing?: boolean
|
|
92
|
-
eventManager?: EventManager
|
|
93
|
-
}
|
|
94
|
-
|
|
95
87
|
export interface Queryable {
|
|
96
88
|
readonly eventManager: EventManager
|
|
97
89
|
|
|
@@ -99,7 +91,6 @@ namespace Connection {
|
|
|
99
91
|
sql: string,
|
|
100
92
|
parameters?: readonly any[],
|
|
101
93
|
meta?: Record<string, any>,
|
|
102
|
-
config?: Connection.QueryConfig,
|
|
103
94
|
): Promise<Connection.Result<Row>>
|
|
104
95
|
}
|
|
105
96
|
|
|
@@ -115,7 +106,15 @@ namespace Connection {
|
|
|
115
106
|
& Connection.ClientFactory
|
|
116
107
|
& Connection.PoolStatusProvider
|
|
117
108
|
|
|
118
|
-
export interface
|
|
109
|
+
export interface Scopable<Sub> {
|
|
110
|
+
scope<Result>(
|
|
111
|
+
callback: (connection: Sub) => Promise<Result> | Result,
|
|
112
|
+
options?: { eventManager?: EventManager },
|
|
113
|
+
): Promise<Result>
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface ConnectionLike extends Transactional, Queryable, Scopable<ConnectionLike> {
|
|
117
|
+
}
|
|
119
118
|
|
|
120
119
|
export interface ClientFactory {
|
|
121
120
|
createClient(schema: string, queryMeta: Record<string, any>): Client
|
|
@@ -125,7 +124,7 @@ namespace Connection {
|
|
|
125
124
|
getPoolStatus(): PoolStatus | undefined
|
|
126
125
|
}
|
|
127
126
|
|
|
128
|
-
export interface TransactionLike extends
|
|
127
|
+
export interface TransactionLike extends Transactional, Queryable, Scopable<TransactionLike> {
|
|
129
128
|
readonly isClosed: boolean
|
|
130
129
|
|
|
131
130
|
rollback(): Promise<void>
|
|
@@ -133,10 +132,6 @@ namespace Connection {
|
|
|
133
132
|
commit(): Promise<void>
|
|
134
133
|
}
|
|
135
134
|
|
|
136
|
-
export interface QueryContext {
|
|
137
|
-
previousQueryEnd?: number
|
|
138
|
-
}
|
|
139
|
-
|
|
140
135
|
export interface Query {
|
|
141
136
|
readonly sql: string
|
|
142
137
|
readonly parameters: any[]
|
|
@@ -147,8 +142,9 @@ namespace Connection {
|
|
|
147
142
|
readonly rowCount: number
|
|
148
143
|
readonly rows: Row[]
|
|
149
144
|
readonly timing?: {
|
|
150
|
-
totalDuration: number
|
|
151
145
|
selfDuration: number
|
|
146
|
+
/** @deprecated both selfDuration and totalDuration now contains same number */
|
|
147
|
+
totalDuration: number
|
|
152
148
|
}
|
|
153
149
|
}
|
|
154
150
|
|