@powersync/lib-service-mongodb 0.0.0-dev-20250108073049
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/LICENSE +67 -0
- package/README.md +3 -0
- package/dist/db/db-index.d.ts +1 -0
- package/dist/db/db-index.js +2 -0
- package/dist/db/db-index.js.map +1 -0
- package/dist/db/mongo.d.ts +35 -0
- package/dist/db/mongo.js +73 -0
- package/dist/db/mongo.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/locks/MongoLockManager.d.ts +25 -0
- package/dist/locks/MongoLockManager.js +79 -0
- package/dist/locks/MongoLockManager.js.map +1 -0
- package/dist/locks/locks-index.d.ts +1 -0
- package/dist/locks/locks-index.js +2 -0
- package/dist/locks/locks-index.js.map +1 -0
- package/dist/types/types.d.ts +30 -0
- package/dist/types/types.js +43 -0
- package/dist/types/types.js.map +1 -0
- package/package.json +38 -0
- package/src/db/db-index.ts +1 -0
- package/src/db/mongo.ts +79 -0
- package/src/index.ts +8 -0
- package/src/locks/MongoLockManager.ts +123 -0
- package/src/locks/locks-index.ts +1 -0
- package/src/types/types.ts +56 -0
- package/test/src/config.test.ts +12 -0
- package/test/tsconfig.json +18 -0
- package/tsconfig.json +12 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/vitest.config.ts +3 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @powersync/lib-service-mongodb
|
|
2
|
+
|
|
3
|
+
## 0.0.0-dev-20250108073049
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 697d44b: Moved MongoDB sync bucket storage implementation to the MongoDB module.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [697d44b]
|
|
12
|
+
- Updated dependencies [697d44b]
|
|
13
|
+
- @powersync/lib-services-framework@0.0.0-dev-20250108073049
|
package/LICENSE
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Functional Source License, Version 1.1, Apache 2.0 Future License
|
|
2
|
+
|
|
3
|
+
## Abbreviation
|
|
4
|
+
|
|
5
|
+
FSL-1.1-Apache-2.0
|
|
6
|
+
|
|
7
|
+
## Notice
|
|
8
|
+
|
|
9
|
+
Copyright 2023-2024 Journey Mobile, Inc.
|
|
10
|
+
|
|
11
|
+
## Terms and Conditions
|
|
12
|
+
|
|
13
|
+
### Licensor ("We")
|
|
14
|
+
|
|
15
|
+
The party offering the Software under these Terms and Conditions.
|
|
16
|
+
|
|
17
|
+
### The Software
|
|
18
|
+
|
|
19
|
+
The "Software" is each version of the software that we make available under these Terms and Conditions, as indicated by our inclusion of these Terms and Conditions with the Software.
|
|
20
|
+
|
|
21
|
+
### License Grant
|
|
22
|
+
|
|
23
|
+
Subject to your compliance with this License Grant and the Patents, Redistribution and Trademark clauses below, we hereby grant you the right to use, copy, modify, create derivative works, publicly perform, publicly display and redistribute the Software for any Permitted Purpose identified below.
|
|
24
|
+
|
|
25
|
+
### Permitted Purpose
|
|
26
|
+
|
|
27
|
+
A Permitted Purpose is any purpose other than a Competing Use. A Competing Use means making the Software available to others in a commercial product or service that:
|
|
28
|
+
|
|
29
|
+
1. substitutes for the Software;
|
|
30
|
+
2. substitutes for any other product or service we offer using the Software that exists as of the date we make the Software available; or
|
|
31
|
+
3. offers the same or substantially similar functionality as the Software.
|
|
32
|
+
|
|
33
|
+
Permitted Purposes specifically include using the Software:
|
|
34
|
+
|
|
35
|
+
1. for your internal use and access;
|
|
36
|
+
2. for non-commercial education;
|
|
37
|
+
3. for non-commercial research; and
|
|
38
|
+
4. in connection with professional services that you provide to a licensee using the Software in accordance with these Terms and Conditions.
|
|
39
|
+
|
|
40
|
+
### Patents
|
|
41
|
+
|
|
42
|
+
To the extent your use for a Permitted Purpose would necessarily infringe our patents, the license grant above includes a license under our patents. If you make a claim against any party that the Software infringes or contributes to the infringement of any patent, then your patent license to the Software ends immediately.
|
|
43
|
+
|
|
44
|
+
### Redistribution
|
|
45
|
+
|
|
46
|
+
The Terms and Conditions apply to all copies, modifications and derivatives of the Software.
|
|
47
|
+
If you redistribute any copies, modifications or derivatives of the Software, you must include a copy of or a link to these Terms and Conditions and not remove any copyright notices provided in or with the Software.
|
|
48
|
+
|
|
49
|
+
### Disclaimer
|
|
50
|
+
|
|
51
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
|
|
52
|
+
IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
|
|
53
|
+
|
|
54
|
+
### Trademarks
|
|
55
|
+
|
|
56
|
+
Except for displaying the License Details and identifying us as the origin of the Software, you have no right under these Terms and Conditions to use our trademarks, trade names, service marks or product names.
|
|
57
|
+
|
|
58
|
+
## Grant of Future License
|
|
59
|
+
|
|
60
|
+
We hereby irrevocably grant you an additional license to use the Software under the Apache License, Version 2.0 that is effective on the second anniversary of the date we make the Software available. On or after that date, you may use the Software under the Apache License, Version 2.0, in which case the following will apply:
|
|
61
|
+
|
|
62
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
|
|
63
|
+
You may obtain a copy of the License at
|
|
64
|
+
|
|
65
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
66
|
+
|
|
67
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mongo.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db-index.js","sourceRoot":"","sources":["../../src/db/db-index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as mongo from 'mongodb';
|
|
2
|
+
import { BaseMongoConfigDecoded } from '../types/types.js';
|
|
3
|
+
/**
|
|
4
|
+
* Time for new connection to timeout.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MONGO_CONNECT_TIMEOUT_MS = 10000;
|
|
7
|
+
/**
|
|
8
|
+
* Time for individual requests to timeout the socket.
|
|
9
|
+
*/
|
|
10
|
+
export declare const MONGO_SOCKET_TIMEOUT_MS = 60000;
|
|
11
|
+
/**
|
|
12
|
+
* Time for individual requests to timeout the operation.
|
|
13
|
+
*
|
|
14
|
+
* This is time spent on the cursor, not total time.
|
|
15
|
+
*
|
|
16
|
+
* Must be less than MONGO_SOCKET_TIMEOUT_MS to ensure proper error handling.
|
|
17
|
+
*/
|
|
18
|
+
export declare const MONGO_OPERATION_TIMEOUT_MS = 30000;
|
|
19
|
+
/**
|
|
20
|
+
* Same as above, but specifically for clear operations.
|
|
21
|
+
*
|
|
22
|
+
* These are retried when reaching the timeout.
|
|
23
|
+
*/
|
|
24
|
+
export declare const MONGO_CLEAR_OPERATION_TIMEOUT_MS = 5000;
|
|
25
|
+
export declare function createMongoClient(config: BaseMongoConfigDecoded): mongo.MongoClient;
|
|
26
|
+
/**
|
|
27
|
+
* Wait up to a minute for authentication errors to resolve.
|
|
28
|
+
*
|
|
29
|
+
* There can be a delay between an Atlas user being created, and that user being
|
|
30
|
+
* available on the database cluster. This works around it.
|
|
31
|
+
*
|
|
32
|
+
* This is specifically relevant for migrations and teardown - other parts of the stack
|
|
33
|
+
* can generate handle these failures and just retry or restart.
|
|
34
|
+
*/
|
|
35
|
+
export declare function waitForAuth(db: mongo.Db): Promise<void>;
|
package/dist/db/mongo.js
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as mongo from 'mongodb';
|
|
2
|
+
import * as timers from 'timers/promises';
|
|
3
|
+
import { normalizeMongoConfig } from '../types/types.js';
|
|
4
|
+
/**
|
|
5
|
+
* Time for new connection to timeout.
|
|
6
|
+
*/
|
|
7
|
+
export const MONGO_CONNECT_TIMEOUT_MS = 10000;
|
|
8
|
+
/**
|
|
9
|
+
* Time for individual requests to timeout the socket.
|
|
10
|
+
*/
|
|
11
|
+
export const MONGO_SOCKET_TIMEOUT_MS = 60000;
|
|
12
|
+
/**
|
|
13
|
+
* Time for individual requests to timeout the operation.
|
|
14
|
+
*
|
|
15
|
+
* This is time spent on the cursor, not total time.
|
|
16
|
+
*
|
|
17
|
+
* Must be less than MONGO_SOCKET_TIMEOUT_MS to ensure proper error handling.
|
|
18
|
+
*/
|
|
19
|
+
export const MONGO_OPERATION_TIMEOUT_MS = 30000;
|
|
20
|
+
/**
|
|
21
|
+
* Same as above, but specifically for clear operations.
|
|
22
|
+
*
|
|
23
|
+
* These are retried when reaching the timeout.
|
|
24
|
+
*/
|
|
25
|
+
export const MONGO_CLEAR_OPERATION_TIMEOUT_MS = 5000;
|
|
26
|
+
export function createMongoClient(config) {
|
|
27
|
+
const normalized = normalizeMongoConfig(config);
|
|
28
|
+
return new mongo.MongoClient(normalized.uri, {
|
|
29
|
+
auth: {
|
|
30
|
+
username: normalized.username,
|
|
31
|
+
password: normalized.password
|
|
32
|
+
},
|
|
33
|
+
// Time for connection to timeout
|
|
34
|
+
connectTimeoutMS: MONGO_CONNECT_TIMEOUT_MS,
|
|
35
|
+
// Time for individual requests to timeout
|
|
36
|
+
socketTimeoutMS: MONGO_SOCKET_TIMEOUT_MS,
|
|
37
|
+
// How long to wait for new primary selection
|
|
38
|
+
serverSelectionTimeoutMS: 30000,
|
|
39
|
+
// Avoid too many connections:
|
|
40
|
+
// 1. It can overwhelm the source database.
|
|
41
|
+
// 2. Processing too many queries in parallel can cause the process to run out of memory.
|
|
42
|
+
maxPoolSize: 8,
|
|
43
|
+
maxConnecting: 3,
|
|
44
|
+
maxIdleTimeMS: 60000
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Wait up to a minute for authentication errors to resolve.
|
|
49
|
+
*
|
|
50
|
+
* There can be a delay between an Atlas user being created, and that user being
|
|
51
|
+
* available on the database cluster. This works around it.
|
|
52
|
+
*
|
|
53
|
+
* This is specifically relevant for migrations and teardown - other parts of the stack
|
|
54
|
+
* can generate handle these failures and just retry or restart.
|
|
55
|
+
*/
|
|
56
|
+
export async function waitForAuth(db) {
|
|
57
|
+
const start = Date.now();
|
|
58
|
+
while (Date.now() - start < 60000) {
|
|
59
|
+
try {
|
|
60
|
+
await db.command({ ping: 1 });
|
|
61
|
+
// Success
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
catch (e) {
|
|
65
|
+
if (e.codeName == 'AuthenticationFailed') {
|
|
66
|
+
await timers.setTimeout(1000);
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
throw e;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=mongo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo.js","sourceRoot":"","sources":["../../src/db/mongo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAA0B,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAEjF;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,KAAM,CAAC;AAE/C;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAM,CAAC;AAE9C;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAM,CAAC;AAEjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAK,CAAC;AAEtD,MAAM,UAAU,iBAAiB,CAAC,MAA8B;IAC9D,MAAM,UAAU,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAChD,OAAO,IAAI,KAAK,CAAC,WAAW,CAAC,UAAU,CAAC,GAAG,EAAE;QAC3C,IAAI,EAAE;YACJ,QAAQ,EAAE,UAAU,CAAC,QAAQ;YAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAC9B;QACD,iCAAiC;QACjC,gBAAgB,EAAE,wBAAwB;QAC1C,0CAA0C;QAC1C,eAAe,EAAE,uBAAuB;QACxC,6CAA6C;QAC7C,wBAAwB,EAAE,KAAM;QAEhC,8BAA8B;QAC9B,2CAA2C;QAC3C,yFAAyF;QACzF,WAAW,EAAE,CAAC;QAEd,aAAa,EAAE,CAAC;QAChB,aAAa,EAAE,KAAM;KACtB,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,WAAW,CAAC,EAAY;IAC5C,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IACzB,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,KAAM,EAAE,CAAC;QACnC,IAAI,CAAC;YACH,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC;YAC9B,UAAU;YACV,MAAM;QACR,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,IAAI,CAAC,CAAC,QAAQ,IAAI,sBAAsB,EAAE,CAAC;gBACzC,MAAM,MAAM,CAAC,UAAU,CAAC,IAAK,CAAC,CAAC;gBAC/B,SAAS;YACX,CAAC;YACD,MAAM,CAAC,CAAC;QACV,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './db/db-index.js';
|
|
2
|
+
export * as db from './db/db-index.js';
|
|
3
|
+
export * from './locks/locks-index.js';
|
|
4
|
+
export * as locks from './locks/locks-index.js';
|
|
5
|
+
export * from './types/types.js';
|
|
6
|
+
export * as types from './types/types.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEvC,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,cAAc,kBAAkB,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as framework from '@powersync/lib-services-framework';
|
|
2
|
+
import * as bson from 'bson';
|
|
3
|
+
import * as mongo from 'mongodb';
|
|
4
|
+
/**
|
|
5
|
+
* Lock Document Schema
|
|
6
|
+
*/
|
|
7
|
+
export type Lock = {
|
|
8
|
+
name: string;
|
|
9
|
+
active_lock?: {
|
|
10
|
+
lock_id: bson.ObjectId;
|
|
11
|
+
ts: Date;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export type Collection = mongo.Collection<Lock>;
|
|
15
|
+
export type MongoLockManagerParams = framework.locks.LockManagerParams & {
|
|
16
|
+
collection: Collection;
|
|
17
|
+
};
|
|
18
|
+
export declare class MongoLockManager extends framework.locks.AbstractLockManager {
|
|
19
|
+
collection: Collection;
|
|
20
|
+
constructor(params: MongoLockManagerParams);
|
|
21
|
+
protected acquireHandle(options?: framework.LockAcquireOptions): Promise<framework.LockHandle | null>;
|
|
22
|
+
protected refreshHandle(lock_id: bson.ObjectId): Promise<void>;
|
|
23
|
+
protected getHandle(): Promise<bson.ObjectId | null>;
|
|
24
|
+
protected releaseHandle(lock_id: bson.ObjectId): Promise<void>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as framework from '@powersync/lib-services-framework';
|
|
2
|
+
import * as bson from 'bson';
|
|
3
|
+
const DEFAULT_LOCK_TIMEOUT = 60 * 1000; // 1 minute
|
|
4
|
+
export class MongoLockManager extends framework.locks.AbstractLockManager {
|
|
5
|
+
constructor(params) {
|
|
6
|
+
super(params);
|
|
7
|
+
this.collection = params.collection;
|
|
8
|
+
}
|
|
9
|
+
async acquireHandle(options) {
|
|
10
|
+
const lock_id = await this.getHandle();
|
|
11
|
+
if (!lock_id) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
refresh: () => this.refreshHandle(lock_id),
|
|
16
|
+
release: () => this.releaseHandle(lock_id)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
async refreshHandle(lock_id) {
|
|
20
|
+
const res = await this.collection.updateOne({
|
|
21
|
+
'active_lock.lock_id': lock_id
|
|
22
|
+
}, {
|
|
23
|
+
$set: {
|
|
24
|
+
'active_lock.ts': new Date()
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
if (res.modifiedCount === 0) {
|
|
28
|
+
throw new Error('Lock not found, could not refresh');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
async getHandle() {
|
|
32
|
+
const now = new Date();
|
|
33
|
+
const lock_timeout = this.params.timeout ?? DEFAULT_LOCK_TIMEOUT;
|
|
34
|
+
const lock_id = new bson.ObjectId();
|
|
35
|
+
const { name } = this.params;
|
|
36
|
+
await this.collection.updateOne({
|
|
37
|
+
name
|
|
38
|
+
}, {
|
|
39
|
+
$setOnInsert: {
|
|
40
|
+
name
|
|
41
|
+
}
|
|
42
|
+
}, {
|
|
43
|
+
upsert: true
|
|
44
|
+
});
|
|
45
|
+
const expired_ts = now.getTime() - lock_timeout;
|
|
46
|
+
const res = await this.collection.updateOne({
|
|
47
|
+
$and: [
|
|
48
|
+
{ name: name },
|
|
49
|
+
{
|
|
50
|
+
$or: [{ active_lock: { $exists: false } }, { 'active_lock.ts': { $lte: new Date(expired_ts) } }]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}, {
|
|
54
|
+
$set: {
|
|
55
|
+
active_lock: {
|
|
56
|
+
lock_id: lock_id,
|
|
57
|
+
ts: now
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
if (res.modifiedCount === 0) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return lock_id;
|
|
65
|
+
}
|
|
66
|
+
async releaseHandle(lock_id) {
|
|
67
|
+
const res = await this.collection.updateOne({
|
|
68
|
+
'active_lock.lock_id': lock_id
|
|
69
|
+
}, {
|
|
70
|
+
$unset: {
|
|
71
|
+
active_lock: true
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
if (res.modifiedCount === 0) {
|
|
75
|
+
throw new Error('Lock not found, could not release');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=MongoLockManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MongoLockManager.js","sourceRoot":"","sources":["../../src/locks/MongoLockManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,mCAAmC,CAAC;AAC/D,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAoB7B,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,WAAW;AAEnD,MAAM,OAAO,gBAAiB,SAAQ,SAAS,CAAC,KAAK,CAAC,mBAAmB;IAEvE,YAAY,MAA8B;QACxC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;IACtC,CAAC;IAES,KAAK,CAAC,aAAa,CAAC,OAAsC;QAClE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO;YACL,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;YAC1C,OAAO,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC;SAC3C,CAAC;IACJ,CAAC;IAES,KAAK,CAAC,aAAa,CAAC,OAAsB;QAClD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CACzC;YACE,qBAAqB,EAAE,OAAO;SAC/B,EACD;YACE,IAAI,EAAE;gBACJ,gBAAgB,EAAE,IAAI,IAAI,EAAE;aAC7B;SACF,CACF,CAAC;QAEF,IAAI,GAAG,CAAC,aAAa,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IAES,KAAK,CAAC,SAAS;QACvB,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC;QACvB,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,oBAAoB,CAAC;QACjE,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;QAEpC,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC;QAC7B,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAC7B;YACE,IAAI;SACL,EACD;YACE,YAAY,EAAE;gBACZ,IAAI;aACL;SACF,EACD;YACE,MAAM,EAAE,IAAI;SACb,CACF,CAAC;QAEF,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,EAAE,GAAG,YAAY,CAAC;QAEhD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CACzC;YACE,IAAI,EAAE;gBACJ,EAAE,IAAI,EAAE,IAAI,EAAE;gBACd;oBACE,GAAG,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,gBAAgB,EAAE,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE,EAAE,CAAC;iBACjG;aACF;SACF,EACD;YACE,IAAI,EAAE;gBACJ,WAAW,EAAE;oBACX,OAAO,EAAE,OAAO;oBAChB,EAAE,EAAE,GAAG;iBACR;aACF;SACF,CACF,CAAC;QAEF,IAAI,GAAG,CAAC,aAAa,KAAK,CAAC,EAAE,CAAC;YAC5B,OAAO,IAAI,CAAC;QACd,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC;IAES,KAAK,CAAC,aAAa,CAAC,OAAsB;QAClD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CACzC;YACE,qBAAqB,EAAE,OAAO;SAC/B,EACD;YACE,MAAM,EAAE;gBACN,WAAW,EAAE,IAAI;aAClB;SACF,CACF,CAAC;QAEF,IAAI,GAAG,CAAC,aAAa,KAAK,CAAC,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CAAC,mCAAmC,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MongoLockManager.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locks-index.js","sourceRoot":"","sources":["../../src/locks/locks-index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as t from 'ts-codec';
|
|
2
|
+
export declare const MONGO_CONNECTION_TYPE: "mongodb";
|
|
3
|
+
export declare const BaseMongoConfig: t.ObjectCodec<{
|
|
4
|
+
type: t.LiteralCodec<"mongodb">;
|
|
5
|
+
uri: t.IdentityCodec<t.CodecType.String>;
|
|
6
|
+
database: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
7
|
+
username: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
8
|
+
password: t.OptionalCodec<t.Codec<string, string, string, t.CodecProps>>;
|
|
9
|
+
}>;
|
|
10
|
+
export type BaseMongoConfig = t.Encoded<typeof BaseMongoConfig>;
|
|
11
|
+
export type BaseMongoConfigDecoded = t.Decoded<typeof BaseMongoConfig>;
|
|
12
|
+
/**
|
|
13
|
+
* Construct a mongodb URI, without username, password or ssl options.
|
|
14
|
+
*
|
|
15
|
+
* Only contains hostname, port, database.
|
|
16
|
+
*/
|
|
17
|
+
export declare function baseUri(options: BaseMongoConfig): string;
|
|
18
|
+
/**
|
|
19
|
+
* Validate and normalize connection options.
|
|
20
|
+
*
|
|
21
|
+
* Returns destructured options.
|
|
22
|
+
*
|
|
23
|
+
* For use by both storage and mongo module.
|
|
24
|
+
*/
|
|
25
|
+
export declare function normalizeMongoConfig(options: BaseMongoConfigDecoded): {
|
|
26
|
+
uri: string;
|
|
27
|
+
database: string;
|
|
28
|
+
username: string | undefined;
|
|
29
|
+
password: string | undefined;
|
|
30
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as t from 'ts-codec';
|
|
2
|
+
import * as urijs from 'uri-js';
|
|
3
|
+
export const MONGO_CONNECTION_TYPE = 'mongodb';
|
|
4
|
+
export const BaseMongoConfig = t.object({
|
|
5
|
+
type: t.literal(MONGO_CONNECTION_TYPE),
|
|
6
|
+
uri: t.string,
|
|
7
|
+
database: t.string.optional(),
|
|
8
|
+
username: t.string.optional(),
|
|
9
|
+
password: t.string.optional()
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Construct a mongodb URI, without username, password or ssl options.
|
|
13
|
+
*
|
|
14
|
+
* Only contains hostname, port, database.
|
|
15
|
+
*/
|
|
16
|
+
export function baseUri(options) {
|
|
17
|
+
return options.uri;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Validate and normalize connection options.
|
|
21
|
+
*
|
|
22
|
+
* Returns destructured options.
|
|
23
|
+
*
|
|
24
|
+
* For use by both storage and mongo module.
|
|
25
|
+
*/
|
|
26
|
+
export function normalizeMongoConfig(options) {
|
|
27
|
+
let uri = urijs.parse(options.uri);
|
|
28
|
+
const database = options.database ?? uri.path?.substring(1) ?? '';
|
|
29
|
+
const userInfo = uri.userinfo?.split(':');
|
|
30
|
+
const username = options.username ?? userInfo?.[0];
|
|
31
|
+
const password = options.password ?? userInfo?.[1];
|
|
32
|
+
if (database == '') {
|
|
33
|
+
throw new Error(`database required`);
|
|
34
|
+
}
|
|
35
|
+
delete uri.userinfo;
|
|
36
|
+
return {
|
|
37
|
+
uri: urijs.serialize(uri),
|
|
38
|
+
database,
|
|
39
|
+
username,
|
|
40
|
+
password
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAkB,CAAC;AAExD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC;IACtC,GAAG,EAAE,CAAC,CAAC,MAAM;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;IAC7B,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAKH;;;;GAIG;AACH,MAAM,UAAU,OAAO,CAAC,OAAwB;IAC9C,OAAO,OAAO,CAAC,GAAG,CAAC;AACrB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAA+B;IAClE,IAAI,GAAG,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEnC,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAElE,MAAM,QAAQ,GAAG,GAAG,CAAC,QAAQ,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAE1C,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;IACnD,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC;IAEnD,IAAI,QAAQ,IAAI,EAAE,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,GAAG,CAAC,QAAQ,CAAC;IAEpB,OAAO;QACL,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC;QACzB,QAAQ;QAER,QAAQ;QACR,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@powersync/lib-service-mongodb",
|
|
3
|
+
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
4
|
+
"types": "dist/index.d.ts",
|
|
5
|
+
"version": "0.0.0-dev-20250108073049",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.js",
|
|
16
|
+
"default": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./types": {
|
|
19
|
+
"import": "./dist/types/types.js",
|
|
20
|
+
"require": "./dist/types/types.js",
|
|
21
|
+
"default": "./dist/types/types.js"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"bson": "^6.8.0",
|
|
26
|
+
"mongodb": "^6.11.0",
|
|
27
|
+
"ts-codec": "^1.3.0",
|
|
28
|
+
"uri-js": "^4.4.1",
|
|
29
|
+
"@powersync/lib-services-framework": "0.0.0-dev-20250108073049"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc -b",
|
|
34
|
+
"build:tests": "tsc -b test/tsconfig.json",
|
|
35
|
+
"clean": "rm -rf ./dist && tsc -b --clean",
|
|
36
|
+
"test": "vitest"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './mongo.js';
|
package/src/db/mongo.ts
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as mongo from 'mongodb';
|
|
2
|
+
import * as timers from 'timers/promises';
|
|
3
|
+
import { BaseMongoConfigDecoded, normalizeMongoConfig } from '../types/types.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Time for new connection to timeout.
|
|
7
|
+
*/
|
|
8
|
+
export const MONGO_CONNECT_TIMEOUT_MS = 10_000;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Time for individual requests to timeout the socket.
|
|
12
|
+
*/
|
|
13
|
+
export const MONGO_SOCKET_TIMEOUT_MS = 60_000;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Time for individual requests to timeout the operation.
|
|
17
|
+
*
|
|
18
|
+
* This is time spent on the cursor, not total time.
|
|
19
|
+
*
|
|
20
|
+
* Must be less than MONGO_SOCKET_TIMEOUT_MS to ensure proper error handling.
|
|
21
|
+
*/
|
|
22
|
+
export const MONGO_OPERATION_TIMEOUT_MS = 30_000;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Same as above, but specifically for clear operations.
|
|
26
|
+
*
|
|
27
|
+
* These are retried when reaching the timeout.
|
|
28
|
+
*/
|
|
29
|
+
export const MONGO_CLEAR_OPERATION_TIMEOUT_MS = 5_000;
|
|
30
|
+
|
|
31
|
+
export function createMongoClient(config: BaseMongoConfigDecoded) {
|
|
32
|
+
const normalized = normalizeMongoConfig(config);
|
|
33
|
+
return new mongo.MongoClient(normalized.uri, {
|
|
34
|
+
auth: {
|
|
35
|
+
username: normalized.username,
|
|
36
|
+
password: normalized.password
|
|
37
|
+
},
|
|
38
|
+
// Time for connection to timeout
|
|
39
|
+
connectTimeoutMS: MONGO_CONNECT_TIMEOUT_MS,
|
|
40
|
+
// Time for individual requests to timeout
|
|
41
|
+
socketTimeoutMS: MONGO_SOCKET_TIMEOUT_MS,
|
|
42
|
+
// How long to wait for new primary selection
|
|
43
|
+
serverSelectionTimeoutMS: 30_000,
|
|
44
|
+
|
|
45
|
+
// Avoid too many connections:
|
|
46
|
+
// 1. It can overwhelm the source database.
|
|
47
|
+
// 2. Processing too many queries in parallel can cause the process to run out of memory.
|
|
48
|
+
maxPoolSize: 8,
|
|
49
|
+
|
|
50
|
+
maxConnecting: 3,
|
|
51
|
+
maxIdleTimeMS: 60_000
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Wait up to a minute for authentication errors to resolve.
|
|
57
|
+
*
|
|
58
|
+
* There can be a delay between an Atlas user being created, and that user being
|
|
59
|
+
* available on the database cluster. This works around it.
|
|
60
|
+
*
|
|
61
|
+
* This is specifically relevant for migrations and teardown - other parts of the stack
|
|
62
|
+
* can generate handle these failures and just retry or restart.
|
|
63
|
+
*/
|
|
64
|
+
export async function waitForAuth(db: mongo.Db) {
|
|
65
|
+
const start = Date.now();
|
|
66
|
+
while (Date.now() - start < 60_000) {
|
|
67
|
+
try {
|
|
68
|
+
await db.command({ ping: 1 });
|
|
69
|
+
// Success
|
|
70
|
+
break;
|
|
71
|
+
} catch (e) {
|
|
72
|
+
if (e.codeName == 'AuthenticationFailed') {
|
|
73
|
+
await timers.setTimeout(1_000);
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
throw e;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as framework from '@powersync/lib-services-framework';
|
|
2
|
+
import * as bson from 'bson';
|
|
3
|
+
import * as mongo from 'mongodb';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Lock Document Schema
|
|
7
|
+
*/
|
|
8
|
+
export type Lock = {
|
|
9
|
+
name: string;
|
|
10
|
+
active_lock?: {
|
|
11
|
+
lock_id: bson.ObjectId;
|
|
12
|
+
ts: Date;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type Collection = mongo.Collection<Lock>;
|
|
17
|
+
|
|
18
|
+
export type MongoLockManagerParams = framework.locks.LockManagerParams & {
|
|
19
|
+
collection: Collection;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const DEFAULT_LOCK_TIMEOUT = 60 * 1000; // 1 minute
|
|
23
|
+
|
|
24
|
+
export class MongoLockManager extends framework.locks.AbstractLockManager {
|
|
25
|
+
collection: Collection;
|
|
26
|
+
constructor(params: MongoLockManagerParams) {
|
|
27
|
+
super(params);
|
|
28
|
+
this.collection = params.collection;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
protected async acquireHandle(options?: framework.LockAcquireOptions): Promise<framework.LockHandle | null> {
|
|
32
|
+
const lock_id = await this.getHandle();
|
|
33
|
+
if (!lock_id) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
refresh: () => this.refreshHandle(lock_id),
|
|
38
|
+
release: () => this.releaseHandle(lock_id)
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
protected async refreshHandle(lock_id: bson.ObjectId) {
|
|
43
|
+
const res = await this.collection.updateOne(
|
|
44
|
+
{
|
|
45
|
+
'active_lock.lock_id': lock_id
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
$set: {
|
|
49
|
+
'active_lock.ts': new Date()
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
|
|
54
|
+
if (res.modifiedCount === 0) {
|
|
55
|
+
throw new Error('Lock not found, could not refresh');
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
protected async getHandle() {
|
|
60
|
+
const now = new Date();
|
|
61
|
+
const lock_timeout = this.params.timeout ?? DEFAULT_LOCK_TIMEOUT;
|
|
62
|
+
const lock_id = new bson.ObjectId();
|
|
63
|
+
|
|
64
|
+
const { name } = this.params;
|
|
65
|
+
await this.collection.updateOne(
|
|
66
|
+
{
|
|
67
|
+
name
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
$setOnInsert: {
|
|
71
|
+
name
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
upsert: true
|
|
76
|
+
}
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
const expired_ts = now.getTime() - lock_timeout;
|
|
80
|
+
|
|
81
|
+
const res = await this.collection.updateOne(
|
|
82
|
+
{
|
|
83
|
+
$and: [
|
|
84
|
+
{ name: name },
|
|
85
|
+
{
|
|
86
|
+
$or: [{ active_lock: { $exists: false } }, { 'active_lock.ts': { $lte: new Date(expired_ts) } }]
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
$set: {
|
|
92
|
+
active_lock: {
|
|
93
|
+
lock_id: lock_id,
|
|
94
|
+
ts: now
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
if (res.modifiedCount === 0) {
|
|
101
|
+
return null;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return lock_id;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
protected async releaseHandle(lock_id: bson.ObjectId) {
|
|
108
|
+
const res = await this.collection.updateOne(
|
|
109
|
+
{
|
|
110
|
+
'active_lock.lock_id': lock_id
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
$unset: {
|
|
114
|
+
active_lock: true
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
if (res.modifiedCount === 0) {
|
|
120
|
+
throw new Error('Lock not found, could not release');
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MongoLockManager.js';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import * as t from 'ts-codec';
|
|
2
|
+
import * as urijs from 'uri-js';
|
|
3
|
+
|
|
4
|
+
export const MONGO_CONNECTION_TYPE = 'mongodb' as const;
|
|
5
|
+
|
|
6
|
+
export const BaseMongoConfig = t.object({
|
|
7
|
+
type: t.literal(MONGO_CONNECTION_TYPE),
|
|
8
|
+
uri: t.string,
|
|
9
|
+
database: t.string.optional(),
|
|
10
|
+
username: t.string.optional(),
|
|
11
|
+
password: t.string.optional()
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export type BaseMongoConfig = t.Encoded<typeof BaseMongoConfig>;
|
|
15
|
+
export type BaseMongoConfigDecoded = t.Decoded<typeof BaseMongoConfig>;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Construct a mongodb URI, without username, password or ssl options.
|
|
19
|
+
*
|
|
20
|
+
* Only contains hostname, port, database.
|
|
21
|
+
*/
|
|
22
|
+
export function baseUri(options: BaseMongoConfig) {
|
|
23
|
+
return options.uri;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Validate and normalize connection options.
|
|
28
|
+
*
|
|
29
|
+
* Returns destructured options.
|
|
30
|
+
*
|
|
31
|
+
* For use by both storage and mongo module.
|
|
32
|
+
*/
|
|
33
|
+
export function normalizeMongoConfig(options: BaseMongoConfigDecoded) {
|
|
34
|
+
let uri = urijs.parse(options.uri);
|
|
35
|
+
|
|
36
|
+
const database = options.database ?? uri.path?.substring(1) ?? '';
|
|
37
|
+
|
|
38
|
+
const userInfo = uri.userinfo?.split(':');
|
|
39
|
+
|
|
40
|
+
const username = options.username ?? userInfo?.[0];
|
|
41
|
+
const password = options.password ?? userInfo?.[1];
|
|
42
|
+
|
|
43
|
+
if (database == '') {
|
|
44
|
+
throw new Error(`database required`);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
delete uri.userinfo;
|
|
48
|
+
|
|
49
|
+
return {
|
|
50
|
+
uri: urijs.serialize(uri),
|
|
51
|
+
database,
|
|
52
|
+
|
|
53
|
+
username,
|
|
54
|
+
password
|
|
55
|
+
};
|
|
56
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { describe, expect, test } from 'vitest';
|
|
2
|
+
import { normalizeMongoConfig } from '../../src/types/types.js';
|
|
3
|
+
|
|
4
|
+
describe('config', () => {
|
|
5
|
+
test('Should resolve database', () => {
|
|
6
|
+
const normalized = normalizeMongoConfig({
|
|
7
|
+
type: 'mongodb',
|
|
8
|
+
uri: 'mongodb://localhost:27017/powersync_test'
|
|
9
|
+
});
|
|
10
|
+
expect(normalized.database).equals('powersync_test');
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"rootDir": "src",
|
|
5
|
+
"baseUrl": "./",
|
|
6
|
+
"noEmit": true,
|
|
7
|
+
"esModuleInterop": true,
|
|
8
|
+
"skipLibCheck": true,
|
|
9
|
+
"sourceMap": true,
|
|
10
|
+
"paths": {}
|
|
11
|
+
},
|
|
12
|
+
"include": ["src"],
|
|
13
|
+
"references": [
|
|
14
|
+
{
|
|
15
|
+
"path": "../"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.6.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/bson@6.10.1/node_modules/bson/bson.d.ts","../../node_modules/.pnpm/mongodb@6.11.0_socks@2.8.3/node_modules/mongodb/mongodb.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/definitions.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/definitions.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/generator.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/parsers/combinators.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/parsers/primitives.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/parsers/recursive.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/parsers/objects.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/parsers/arrays.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/parsers/root.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/parsers/index.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/utils.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/json-schema/index.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/types/combinators.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/types/primitives.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/types/recursive.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/types/arrays.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/types/codec.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/types/maps.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/utils.d.ts","../../node_modules/.pnpm/ts-codec@1.3.0/node_modules/ts-codec/dist/@types/index.d.ts","../../node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.d.ts","./src/types/types.ts","./src/db/mongo.ts","./src/db/db-index.ts","../lib-services/dist/errors/framework-errors.d.ts","../lib-services/dist/errors/utils.d.ts","../lib-services/dist/errors/errors-index.d.ts","../lib-services/dist/alerts/definitions.d.ts","../lib-services/dist/alerts/no-op-reporter.d.ts","../lib-services/dist/alerts/alerts-index.d.ts","../lib-services/dist/codec/codecs.d.ts","../lib-services/dist/codec/parsers.d.ts","../lib-services/dist/codec/codec-index.d.ts","../lib-services/dist/locks/LockManager.d.ts","../lib-services/dist/migrations/migration-definitions.d.ts","../lib-services/dist/migrations/AbstractMigrationAgent.d.ts","../lib-services/dist/migrations/MigrationManager.d.ts","../lib-services/dist/signals/probes/probes.d.ts","../lib-services/dist/signals/probes/fs-probes.d.ts","../lib-services/dist/signals/probes/memory-probes.d.ts","../lib-services/dist/signals/termination-handler.d.ts","../lib-services/dist/signals/signals-index.d.ts","../lib-services/dist/container.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/header.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/readable.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/file.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/fetch.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/formdata.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/connector.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/client.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/errors.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-dispatcher.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/global-origin.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool-stats.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/pool.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/handlers.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/balanced-pool.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/agent.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-interceptor.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-agent.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-client.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-pool.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/mock-errors.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/env-http-proxy-agent.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-handler.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/retry-agent.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/api.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/interceptors.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/util.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cookies.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/patch.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/websocket.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/eventsource.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/filereader.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/diagnostics-channel.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/content-type.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/cache.d.ts","../../node_modules/.pnpm/undici-types@6.19.8/node_modules/undici-types/index.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/dom-events.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/sea.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/sqlite.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@22.5.5/node_modules/@types/node/index.d.ts","../../node_modules/.pnpm/@types+triple-beam@1.3.5/node_modules/@types/triple-beam/index.d.ts","../../node_modules/.pnpm/logform@2.6.1/node_modules/logform/index.d.ts","../../node_modules/.pnpm/winston-transport@4.7.1/node_modules/winston-transport/index.d.ts","../../node_modules/.pnpm/winston@3.13.1/node_modules/winston/lib/winston/config/index.d.ts","../../node_modules/.pnpm/winston@3.13.1/node_modules/winston/lib/winston/transports/index.d.ts","../../node_modules/.pnpm/winston@3.13.1/node_modules/winston/index.d.ts","../lib-services/dist/logger/Logger.d.ts","../lib-services/dist/locks/AbstractLockManager.d.ts","../lib-services/dist/locks/locks-index.d.ts","../lib-services/dist/migrations/migrations-index.d.ts","../lib-services/dist/schema/definitions.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/codegen/code.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/codegen/scope.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/codegen/index.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/rules.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/util.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/validate/subschema.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/errors.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/validate/index.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/validate/dataType.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/not.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/if.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/applicator/index.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/required.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/const.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/enum.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/index.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/format/format.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/vocabularies/errors.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/types/json-schema.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/types/jtd-schema.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/runtime/validation_error.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/ref_error.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/core.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/resolve.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/compile/index.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/types/index.d.ts","../../node_modules/.pnpm/ajv@8.16.0/node_modules/ajv/dist/ajv.d.ts","../lib-services/dist/schema/json-schema/keywords.d.ts","../lib-services/dist/schema/validators/schema-validator.d.ts","../lib-services/dist/schema/json-schema/parser.d.ts","../lib-services/dist/schema/validators/ts-codec-validator.d.ts","../lib-services/dist/schema/schema-index.d.ts","../lib-services/dist/router/router-definitions.d.ts","../lib-services/dist/router/router-response.d.ts","../lib-services/dist/router/endpoint.d.ts","../lib-services/dist/router/router-index.d.ts","../lib-services/dist/system/LifeCycledSystem.d.ts","../lib-services/dist/system/system-index.d.ts","../lib-services/dist/utils/BaseObserver.d.ts","../lib-services/dist/utils/DisposableObserver.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/typeAliases.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/util.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/ZodError.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/locales/en.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/errors.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/parseUtil.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/enumUtil.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/errorUtil.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/helpers/partialUtil.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/types.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/external.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.d.ts","../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/index.d.ts","../lib-services/dist/utils/environment-variables.d.ts","../lib-services/dist/utils/utils-index.d.ts","../lib-services/dist/index.d.ts","./src/locks/MongoLockManager.ts","./src/locks/locks-index.ts","./src/index.ts"],"fileIdsList":[[75],[52,74,177],[74,76,275],[51,52,273],[274],[72,73],[80,81],[79],[80],[83,84],[51,72],[80,89,93,94,273],[77,78],[77],[79,82,85,94,95,196,198,199,249,253,254,255,272],[86],[86,197],[195],[86,87],[87,88],[87,88,89],[250],[200],[250,251,252],[244],[200,246],[200,245,246,247,248],[200,244],[72,200],[90],[90,91,92,93],[254],[256],[270],[256,257,271],[96],[137],[138,143,173],[139,144,150,151,158,170,181],[139,140,150,158],[141,182],[142,143,151,159],[143,170,178],[144,146,150,158],[137,145],[146,147],[150],[148,150],[137,150],[150,151,152,170,181],[150,151,152,165,170,173],[135,186],[135,146,150,153,158,170,181],[150,151,153,154,158,170,178,181],[153,155,170,178,181],[96,97,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188],[150,156],[157,181,186],[146,150,158,170],[159],[160],[137,161],[96,97,137,138,139,140,141,142,143,144,145,146,147,148,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187],[163],[164],[150,165,166],[165,167,182,184],[138,150,170,171,172,173],[138,170,172],[170,171],[173],[174],[96,170],[150,176,177],[176,177],[143,158,170,178],[179],[158,180],[138,153,164,181],[143,182],[170,183],[157,184],[185],[138,143,150,152,161,170,181,184,186],[170,187],[203,204,208,235,236,238,239,240,242,243],[201,202],[201],[203,243],[203,204,240,241,243],[243],[73,243,244],[203,204,242,243],[203,204,206,207,242,243],[203,204,205,242,243],[203,204,208,235,236,237,238,239,242,243],[73,203,204,208,240,242],[208,243],[210,211,212,213,214,215,216,217,218,219,243],[233,243],[209,220,228,229,230,231,232,234],[213,243],[221,222,223,224,225,226,227,243],[190],[51,146,150,158,170,178],[53,64,65,66,67,68,69,70,71],[53],[53,54],[54,55,62,63],[53,64],[56,57,58,59,60,61],[107,111,181],[107,170,181],[102],[104,107,178,181],[158,178],[189],[102,189],[104,107,158,181],[99,100,103,106,138,150,170,181],[107,114],[99,105],[107,128,129],[103,107,138,173,181,189],[138,189],[128,138,189],[101,102,189],[107],[101,102,103,104,105,106,107,108,109,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,129,130,131,132,133,134],[107,122],[107,114,115],[105,107,115,116],[106],[99,102,107],[107,111,115,116],[111],[105,107,110,181],[99,104,107,114],[138,170],[102,107,128,138,186,189],[170,189,191],[170,189,191,192,193,194],[153,189,192],[269],[258,259,269],[260,261],[258,259,260,262,263,267],[259,260],[268],[260],[258,259,260,263,264,265,266]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true,"impliedFormat":1},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"359e7188a3ad226e902c43443a45f17bd53bf279596aece7761dc72ffa22b30d","impliedFormat":1},{"version":"c3523540c115ac10ff90dc26bcd4bf45876c74aeaf08fa9b6e8c2e5af0dbb1c7","impliedFormat":1},{"version":"5675eb00d305c8dbefa6190fbc5407cd169d48f9049ac610506a5d09a8d6724a","impliedFormat":1},{"version":"95e8f479cf41319bd14150ac2ce291217a8002ecc39d16f1f7a3e408d86ee455","impliedFormat":1},{"version":"d2cd28c5a1f5a7853888cfc9645aef2e5c003f1322f7a66b5aff8d7f5e835f59","impliedFormat":1},{"version":"0fb7e2fd9a55a699b721005f9b971bb102b8bfe6aba92b0431d974b542fdabd7","impliedFormat":1},{"version":"8db3b7b47410ccabea0234d975dffea72f5ed4586305dc54b22a164721804cc5","impliedFormat":1},{"version":"3c33b043fbba511e7af9b21cf6ffdfd77a5b33114cf13bcd93871545bdbcc5cb","impliedFormat":1},{"version":"fffd95262f9eaa6988088f5b3fefed8af0719d60e913e63f6fbe724eba3f118d","impliedFormat":1},{"version":"3c683aee5744dedcb460b2e1c47804f4010ac8fba73f3093f88ccbb013a3c678","impliedFormat":1},{"version":"51ebb8f5a78bf7b58c0479fd51a3d39c1f91075a6a31620c3e510e6295ef43f1","impliedFormat":1},{"version":"a34327c4c9e71742f9248374e9506fb555d724121ddbd57e45e14cc9ee99e857","impliedFormat":1},{"version":"28febab4f39ed27ad0bac2705f35d83a434c74a3c49328f02f7d2a813ac937ab","impliedFormat":1},{"version":"dfe421b0e52e642279c9ebb5473acf33c091d5714ac09b75592067ee641deff2","impliedFormat":1},{"version":"1e737e690ee03096c261b2bb66ebd88c9b9406d41669b6f0257a044554c02369","impliedFormat":1},{"version":"7e7315b099cdfb23431d39759f6d7942201758ac98fc1c85f464453065d9ab62","impliedFormat":1},{"version":"cf95c55d326a751f162723f17a88a499399dc288729ce8b8568baaff249425ba","impliedFormat":1},{"version":"4cde2fc9f63efcd3c7a22f47f7e57dcbc69a2ca3656bda166493105d8ec218b9","impliedFormat":1},{"version":"c033fbb15d3cbab3e5f1e5faea532498dd48ace23de65c66c47c93296add9484","impliedFormat":1},{"version":"cdb9157390c893812916732a2f237741bd08d7503a5d9d1589d8a8d5161f3a16","impliedFormat":1},{"version":"7bb3f2b3ec9ce1edde70b97af16f0cc2d55ef8c31b2f2d5fde7f2834dcaa7a9e","impliedFormat":1},{"version":"a22b4fc7c03f685be422cc8ed799a2a9b7218d28a9f20dfe27f45396c7e58036","impliedFormat":1},{"version":"9f3c5498245c38c9016a369795ec5ef1768d09db63643c8dba9656e5ab294825","impliedFormat":1},{"version":"b4a88834746727ba863283f6bd4b4a4a0e31d8a5b556557aeaebe10875e87ea4","signature":"a4be2fc68bd0b0c30bcd9ab623e41f0b571930b7730fca8b2242ffba57d033fe","impliedFormat":99},{"version":"45734a544bf1e57b00eb297985cac671b7d248a21d5f0570c31ad2a44b151403","signature":"98bfc8575c124ca19194c99e254a2c60a3fa7b1d28a2005fd0b877f446d4a772","impliedFormat":99},{"version":"99655ea460bafcf215d15aa24def8c1cfb3c102ef0b9badaf79ce1eaed64beea","impliedFormat":99},{"version":"a258c4f06e674685353236f744d8e6e59b3826a477446bdb766e838fc5b74b65","impliedFormat":99},{"version":"0d09d56e4ddb16e906056ea99dda97a4695b857cce7fdb73f98db0289142da3f","impliedFormat":99},{"version":"a9fce43b41716c11d43c30b5de0b8daddc89ba4e83b57c18118e82423f45def4","impliedFormat":99},{"version":"5feb8f683ad9098d2361e1041de70125b06fd627f135ebc76011e90b4bda67e0","impliedFormat":99},{"version":"0d9057bcd80085c4d1fc77abd6057505b0c0b1c9e3b80b9792d43f7a1b63effa","impliedFormat":99},{"version":"289c3b359b2c603e6ea8f03f85eb4f6cef9a08e57fd8374a28016a96dab16ccd","impliedFormat":99},{"version":"48c7c157369c89f97c50e0d25e177e3ff3632663dc6d1dd70e3c4bed0c3d8a44","impliedFormat":99},{"version":"dbeff9b6defd8d8d7497710ee131730f98fca49e75861947e6a5066b43450052","impliedFormat":99},{"version":"74200c908979a506e3417b3d7889c58023890b42d7bd019a4832c253723ebd07","impliedFormat":99},{"version":"b8881cb530bee5580077ad0fa3925ece437964088f0ce5f1df3af1d45ae4cdc5","impliedFormat":99},{"version":"88893853c1e03a4742d66d2b940e80391ceaf57f4073aa607a5c3fa008df5816","impliedFormat":99},{"version":"437242d2851f4faedfeea40993ac533d55bfa4aa7919cbd57eb8d1568ec3d9db","impliedFormat":99},{"version":"29ea9bcc43a43a3a7fbc2e973576039a1a86013be1a59980a2116e070c2a3559","impliedFormat":99},{"version":"ccff7850a831abfa5a05de9da5b83a2589f22426c29b1759758da352f1cc6113","impliedFormat":99},{"version":"ee7d237fe6844e145b6044e9d0a22ed6820939927dc5a3dc283e9b23862fbb68","impliedFormat":99},{"version":"e81c7dd1fa386e4950fd5f3daddc07c1887ab0446d7e2309d255353d94234f54","impliedFormat":99},{"version":"5c996199d04de4a1943e6dd15bef7a52058458b70ca98c96c1842a610eabff61","impliedFormat":99},{"version":"44c641f347fa99253d21e376c9030e01db2d856eeafb8228995f2bd3d65bf880","impliedFormat":99},{"version":"156049d9b6329579ddcc70e134bb721c96e46ae11c8824452a4045cd2f2b9be8","impliedFormat":99},{"version":"e142fda89ed689ea53d6f2c93693898464c7d29a0ae71c6dc8cdfe5a1d76c775","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"964f307d249df0d7e8eb16d594536c0ac6cc63c8d467edf635d05542821dec8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"db3ec8993b7596a4ef47f309c7b25ee2505b519c13050424d9c34701e5973315","impliedFormat":1},{"version":"6a1ebd564896d530364f67b3257c62555b61d60494a73dfe8893274878c6589d","affectsGlobalScope":true,"impliedFormat":1},{"version":"af49b066a76ce26673fe49d1885cc6b44153f1071ed2d952f2a90fccba1095c9","impliedFormat":1},{"version":"f22fd1dc2df53eaf5ce0ff9e0a3326fc66f880d6a652210d50563ae72625455f","impliedFormat":1},{"version":"3ddbdb519e87a7827c4f0c4007013f3628ca0ebb9e2b018cf31e5b2f61c593f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"6d498d4fd8036ea02a4edcae10375854a0eb1df0496cf0b9d692577d3c0fd603","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"fd09b892597ab93e7f79745ce725a3aaf6dd005e8db20f0c63a5d10984cba328","impliedFormat":1},{"version":"a3be878ff1e1964ab2dc8e0a3b67087cf838731c7f3d8f603337e7b712fdd558","impliedFormat":1},{"version":"5433f7f77cd1fd53f45bd82445a4e437b2f6a72a32070e907530a4fea56c30c8","impliedFormat":1},{"version":"9be74296ee565af0c12d7071541fdd23260f53c3da7731fb6361f61150a791f6","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"f501a53b94ba382d9ba396a5c486969a3abc68309828fa67f916035f5d37fe2b","affectsGlobalScope":true,"impliedFormat":1},{"version":"aa658b5d765f630c312ac9202d110bbaf2b82d180376457f0a9d57b42629714a","impliedFormat":1},{"version":"312ac7cbd070107766a9886fd27f9faad997ef57d93fdfb4095df2c618ac8162","impliedFormat":1},{"version":"2e9b4e7f9942af902eb85bae6066d04ef1afee51d61554a62d144df3da7dec94","impliedFormat":1},{"version":"672ad3045f329e94002256f8ed460cfd06173a50c92cde41edaadfacffd16808","impliedFormat":1},{"version":"64da4965d1e0559e134d9c1621ae400279a216f87ed00c4cce4f2c7c78021712","impliedFormat":1},{"version":"2205527b976f4f1844adc46a3f0528729fb68cac70027a5fb13c49ca23593797","impliedFormat":1},{"version":"0166fce1204d520fdfd6b5febb3cda3deee438bcbf8ce9ffeb2b1bcde7155346","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8b13eab85b532285031b06a971fa051bf0175d8fff68065a24a6da9c1c986cf","impliedFormat":1},{"version":"50c382ba1827988c59aa9cc9d046e386d55d70f762e9e352e95ee8cb7337cdb8","impliedFormat":1},{"version":"bb9627ab9d078c79bb5623de4ac8e5d08f806ec9b970962dfc83b3211373690d","impliedFormat":1},{"version":"21d7e87f271e72d02f8d167edc902f90b04525edc7918f00f01dd0bd00599f7e","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true,"impliedFormat":1},{"version":"a215554477f7629e3dcbc8cde104bec036b78673650272f5ffdc5a2cee399a0a","impliedFormat":1},{"version":"c3497fc242aabfedcd430b5932412f94f157b5906568e737f6a18cc77b36a954","impliedFormat":1},{"version":"cdc1de3b672f9ef03ff15c443aa1b631edca35b6ae6970a7da6400647ff74d95","impliedFormat":1},{"version":"139ad1dc93a503da85b7a0d5f615bddbae61ad796bc68fedd049150db67a1e26","impliedFormat":1},{"version":"bf01fdd3b93cf633b3f7420718457af19c57ab8cbfea49268df60bae2e84d627","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"5f461d6f5d9ff474f1121cc3fd86aa3cd67476c701f55c306d323c5112201207","impliedFormat":1},{"version":"65b39cc6b610a4a4aecc321f6efb436f10c0509d686124795b4c36a5e915b89e","impliedFormat":1},{"version":"269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"83fe38aa2243059ea859325c006da3964ead69b773429fe049ebb0426e75424d","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3edb86744e2c19f2c1503849ac7594a5e06024f2451bacae032390f2e20314a","impliedFormat":1},{"version":"e501cbca25bd54f0bcb89c00f092d3cae227e970b93fd76207287fd8110b123d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a3e61347b8f80aa5af532094498bceb0c0b257b25a6aa8ab4880fd6ed57c95a","affectsGlobalScope":true,"impliedFormat":1},{"version":"98e00f3613402504bc2a2c9a621800ab48e0a463d1eed062208a4ae98ad8f84c","impliedFormat":1},{"version":"950f6810f7c80e0cffefcf1bcc6ade3485c94394720e334c3c2be3c16b6922fb","impliedFormat":1},{"version":"5475df7cfc493a08483c9d7aa61cc04791aecba9d0a2efc213f23c4006d4d3cd","impliedFormat":1},{"version":"000720870b275764c65e9f28ac97cc9e4d9e4a36942d4750ca8603e416e9c57c","impliedFormat":1},{"version":"54412c70bacb9ed547ed6caae8836f712a83ccf58d94466f3387447ec4e82dc3","affectsGlobalScope":true,"impliedFormat":1},{"version":"8701e60428b700ed0206c805d702cfb2a7b4b0b76423439451d1018fa70610e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c48e931a72f6971b5add7fdb1136be1d617f124594e94595f7114af749395e0","impliedFormat":1},{"version":"478eb5c32250678a906d91e0529c70243fc4d75477a08f3da408e2615396f558","impliedFormat":1},{"version":"e686a88c9ee004c8ba12ffc9d674ca3192a4c50ed0ca6bd5b2825c289e2b2bfe","impliedFormat":1},{"version":"0d27932df2fbc3728e78b98892540e24084424ce12d3bd32f62a23cf307f411f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4423fb3d6abe6eefb8d7f79eb2df9510824a216ec1c6feee46718c9b18e6d89f","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"01c47d1c006b3a15b51d89d7764fff7e4fabc4e412b3a61ee5357bd74b822879","impliedFormat":1},{"version":"908217c4f2244ec402b73533ebfcc46d6dcd34fc1c807ff403d7f98702abb3bc","impliedFormat":1},{"version":"201ced2ca97d71fe47afdaebc656c2fa63ef2784256e4dfc9eb83930f7aac2c2","impliedFormat":1},{"version":"d8b8a5a6bf623239d5374ad4a7ff6f3b195ab5ee61293f59f1957e90d2a22809","impliedFormat":1},{"version":"35d283eca7dc0a0c7b099f5fbbf0678b87f3d837572cd5e539ba297ad9837e68","impliedFormat":1},{"version":"03852330113bfc10a497a653f39ad9f4ee8e4ed31a44cb9981de6d9d662c5354","impliedFormat":1},{"version":"26ec2c615ee349154b9cdb180a9bbd2d3e28a2646242e936cf79c1a44847ade7","impliedFormat":1},{"version":"b504262e541f74c7fd0426eb2a0cd0492f4818d0880654329b27f02a635e9164","impliedFormat":99},{"version":"92fb83419bdf7df2460598c58ce1c9b49969bf453fc5330ded56efa9c0f01c7d","impliedFormat":99},{"version":"adb85330a4bd4ea594755d2cd9fcaab7b1b67757a158688c0121116f171232c4","impliedFormat":99},{"version":"9b606e6c18399bf04559e3a118a6c14ddfe1ddab06d4a3f11c08e99e6c0f6ff6","impliedFormat":99},{"version":"393114d2877e3d036a1570554ad174f21f37f31d5e0f5e0e9ccffc6e0576f875","impliedFormat":99},{"version":"2d225e7bda2871c066a7079c88174340950fb604f624f2586d3ea27bb9e5f4ff","impliedFormat":1},{"version":"6a785f84e63234035e511817dd48ada756d984dd8f9344e56eb8b2bdcd8fd001","impliedFormat":1},{"version":"c1422d016f7df2ccd3594c06f2923199acd09898f2c42f50ea8159f1f856f618","impliedFormat":1},{"version":"2973b1b7857ca144251375b97f98474e9847a890331e27132d5a8b3aea9350a8","impliedFormat":1},{"version":"0eb6152d37c84d6119295493dfcc20c331c6fda1304a513d159cdaa599dcb78b","impliedFormat":1},{"version":"237df26f8c326ca00cd9d2deb40214a079749062156386b6d75bdcecc6988a6b","impliedFormat":1},{"version":"cd44995ee13d5d23df17a10213fed7b483fabfd5ea08f267ab52c07ce0b6b4da","impliedFormat":1},{"version":"58ce1486f851942bd2d3056b399079bc9cb978ec933fe9833ea417e33eab676e","impliedFormat":1},{"version":"7557d4d7f19f94341f4413575a3453ba7f6039c9591015bcf4282a8e75414043","impliedFormat":1},{"version":"a3b2cc16f3ce2d882eca44e1066f57a24751545f2a5e4a153d4de31b4cac9bb5","impliedFormat":1},{"version":"ac2b3b377d3068bfb6e1cb8889c99098f2c875955e2325315991882a74d92cc8","impliedFormat":1},{"version":"8deb39d89095469957f73bd194d11f01d9894b8c1f1e27fbf3f6e8122576b336","impliedFormat":1},{"version":"a38a9c41f433b608a0d37e645a31eecf7233ef3d3fffeb626988d3219f80e32f","impliedFormat":1},{"version":"8e1428dcba6a984489863935049893631170a37f9584c0479f06e1a5b1f04332","impliedFormat":1},{"version":"1fce9ecb87a2d3898941c60df617e52e50fb0c03c9b7b2ba8381972448327285","impliedFormat":1},{"version":"5ef0597b8238443908b2c4bf69149ed3894ac0ddd0515ac583d38c7595b151f1","impliedFormat":1},{"version":"ac52b775a80badff5f4ac329c5725a26bd5aaadd57afa7ad9e98b4844767312a","impliedFormat":1},{"version":"6ae5b4a63010c82bf2522b4ecfc29ffe6a8b0c5eea6b2b35120077e9ac54d7a1","impliedFormat":1},{"version":"dd7109c49f416f218915921d44f0f28975df78e04e437c62e1e1eb3be5e18a35","impliedFormat":1},{"version":"eee181112e420b345fc78422a6cc32385ede3d27e2eaf8b8c4ad8b2c29e3e52e","impliedFormat":1},{"version":"25fbe57c8ee3079e2201fe580578fab4f3a78881c98865b7c96233af00bf9624","impliedFormat":1},{"version":"62cc8477858487b4c4de7d7ae5e745a8ce0015c1592f398b63ee05d6e64ca295","impliedFormat":1},{"version":"cc2a9ec3cb10e4c0b8738b02c31798fad312d21ef20b6a2f5be1d077e9f5409d","impliedFormat":1},{"version":"4b4fadcda7d34034737598c07e2dca5d7e1e633cb3ba8dd4d2e6a7782b30b296","impliedFormat":1},{"version":"360fdc8829a51c5428636f1f83e7db36fef6c5a15ed4411b582d00a1c2bd6e97","impliedFormat":1},{"version":"1cf0d15e6ab1ecabbf329b906ae8543e6b8955133b7f6655f04d433e3a0597ab","impliedFormat":1},{"version":"7c9f98fe812643141502b30fb2b5ec56d16aaf94f98580276ae37b7924dd44a4","impliedFormat":1},{"version":"b3547893f24f59d0a644c52f55901b15a3fa1a115bc5ea9a582911469b9348b7","impliedFormat":1},{"version":"596e5b88b6ca8399076afcc22af6e6e0c4700c7cd1f420a78d637c3fb44a885e","impliedFormat":1},{"version":"adddf736e08132c7059ee572b128fdacb1c2650ace80d0f582e93d097ed4fbaf","impliedFormat":1},{"version":"d4cad9dc13e9c5348637170ddd5d95f7ed5fdfc856ddca40234fa55518bc99a6","impliedFormat":1},{"version":"d70675ba7ba7d02e52b7070a369957a70827e4b2bca2c1680c38a832e87b61fd","impliedFormat":1},{"version":"3be71f4ce8988a01e2f5368bdd58e1d60236baf511e4510ee9291c7b3729a27e","impliedFormat":1},{"version":"423d2ccc38e369a7527988d682fafc40267bcd6688a7473e59c5eea20a29b64f","impliedFormat":1},{"version":"2f9fde0868ed030277c678b435f63fcf03d27c04301299580a4017963cc04ce6","impliedFormat":1},{"version":"6b6ed4aa017eb6867cef27257379cfe3e16caf628aceae3f0163dbafcaf891ff","impliedFormat":1},{"version":"25f1159094dc0bf3a71313a74e0885426af21c5d6564a254004f2cadf9c5b052","impliedFormat":1},{"version":"cde493e09daad4bb29922fe633f760be9f0e8e2f39cdca999cce3b8690b5e13a","impliedFormat":1},{"version":"3d7f9eb12aface876f7b535cc89dcd416daf77f0b3573333f16ec0a70bcf902a","impliedFormat":1},{"version":"b83139ae818dd20f365118f9999335ca4cd84ae518348619adc5728e7e0372d5","impliedFormat":1},{"version":"c3d608cc3e97d22d1d9589262865d5d786c3ee7b0a2ae9716be08634b79b9a8c","impliedFormat":1},{"version":"62d26d8ba4fa15ab425c1b57a050ed76c5b0ecbffaa53f182110aa3a02405a07","impliedFormat":1},{"version":"87a4f46dabe0e415e3d38633e4b2295e9a2673ae841886c90a1ff3e66defb367","impliedFormat":1},{"version":"41b8775befd7ded7245a627e9f4de6110236688ce4c124d2d40c37bc1a3bfe05","impliedFormat":1},{"version":"08d2745b1eb131b68029596b26268772f7472de05a116498d005d9872fe9531b","impliedFormat":99},{"version":"9bd64ab3a8419f92620ae0e22044654da675886dc25ab5920e65cf7d747d1161","impliedFormat":99},{"version":"30d5e4eccadd702c95c707be3ea5732e21c7f084074781794b8ac4029b6c6815","impliedFormat":99},{"version":"a9b7f5530b8c2f2c57174122648486f7ead3d7f89e623694b1876175c3569b0c","impliedFormat":99},{"version":"dcb2ca6e92c7ad7ff210c3dc39699bc9274829187979b9b399c62b3c63af5191","impliedFormat":99},{"version":"304ee119cc2434031e7893a6ee4a5db9d18160daea1ca82a5398de41befa2ff4","impliedFormat":99},{"version":"791184b06151ebd12e02a588e813fcd4d715b60084857fed5a9d030d509fc6e9","impliedFormat":99},{"version":"fec56659031c0ac9d41bb87f269d21466802e6b378799e8da17570eed21a44b3","impliedFormat":99},{"version":"e3eceebd20dcd325a6bdbc60445be3916f5fa87342e7e62fd47edd7209695bf4","impliedFormat":99},{"version":"2c6290d1b00fe1469b499cb2e128dffd9218ffc46a939aa060db40e0589beafa","impliedFormat":99},{"version":"80a3887e60811ee96975b5391656ae92eccd47ee4ceb1725a1c4aac7f8a78475","impliedFormat":99},{"version":"25b3d233c1c042cad78be6e95380c859066879aa0c82d3581b723a06b5a72e54","impliedFormat":99},{"version":"fe2c3948b8a2453ce28d1ac4d8b31104a750742b40c9fd7f64ff1890fe2358ec","impliedFormat":99},{"version":"5487b97cfa28b26b4a9ef0770f872bdbebd4c46124858de00f242c3eed7519f4","impliedFormat":1},{"version":"c2869c4f2f79fd2d03278a68ce7c061a5a8f4aed59efb655e25fe502e3e471d5","impliedFormat":1},{"version":"b8fe42dbf4b0efba2eb4dbfb2b95a3712676717ff8469767dc439e75d0c1a3b6","impliedFormat":1},{"version":"8485b6da53ec35637d072e516631d25dae53984500de70a6989058f24354666f","impliedFormat":1},{"version":"ebe80346928736532e4a822154eb77f57ef3389dbe2b3ba4e571366a15448ef2","impliedFormat":1},{"version":"83306c97a4643d78420f082547ea0d488a0d134c922c8e65fc0b4f08ef66d92b","impliedFormat":1},{"version":"f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","impliedFormat":1},{"version":"98a9cc18f661d28e6bd31c436e1984f3980f35e0f0aa9cf795c54f8ccb667ffe","impliedFormat":1},{"version":"c76b0c5727302341d0bdfa2cc2cee4b19ff185b554edb6e8543f0661d8487116","impliedFormat":1},{"version":"dccd26a5c85325a011aff40f401e0892bd0688d44132ba79e803c67e68fffea5","impliedFormat":1},{"version":"f5ef066942e4f0bd98200aa6a6694b831e73200c9b3ade77ad0aa2409e8fe1b1","impliedFormat":1},{"version":"b9e99cd94f4166a245f5158f7286c05406e2a4c694619bceb7a4f3519d1d768e","impliedFormat":1},{"version":"5568d7c32e5cf5f35e092649f4e5e168c3114c800b1d7545b7ae5e0415704802","impliedFormat":1},{"version":"0e564a3337f95f795318d4fe25260eeb752f0d872b9b9f6c55d589d18e8af2e3","impliedFormat":99},{"version":"3d791f5cb428a6261091a33cb97b54a8d60dc117ce9d6be355239897f825ec8d","impliedFormat":99},{"version":"0ccc5472aa670da32319b4a26aad9096d47e0128b1f2b01f45b69aa8fef978ce","impliedFormat":99},{"version":"b49d2db89a7f2b17abe8ec8cdcc0eb17a8e5c64a2cf25a2b23bfbd3c38a72ffb","signature":"9b94d03ed6caaa69b5670ba5ea67a705a98ef6564cd11ca1a70df8f4a1828f89","impliedFormat":99},{"version":"0eb17ac021c7a52d02069886b4e5188336e07cc190fbe7f12b19fec4ee4141a6","impliedFormat":99},{"version":"531c56c5124f170847e429d574850a8ffedada4d8fc80f2669221a0375d6a13c","signature":"1696914c0ccf672a52c32799f93fb77f55c1e566680b47ce2a81e2e757e77fa8","impliedFormat":99}],"root":[[74,76],[274,276]],"options":{"composite":true,"declaration":true,"esModuleInterop":true,"module":199,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useUnknownInCatchVariables":false},"referencedMap":[[76,1],[75,2],[276,3],[274,4],[275,5],[74,6],[82,7],[80,8],[81,9],[85,10],[83,11],[84,11],[95,12],[79,13],[78,14],[273,15],[197,16],[198,17],[196,18],[88,19],[89,20],[199,21],[252,22],[250,23],[253,24],[245,25],[247,26],[249,27],[246,28],[248,29],[91,30],[92,30],[94,31],[255,32],[257,33],[271,34],[272,35],[96,36],[97,36],[137,37],[138,38],[139,39],[140,40],[141,41],[142,42],[143,43],[144,44],[145,45],[146,46],[147,46],[149,47],[148,48],[150,49],[151,50],[152,51],[136,52],[153,53],[154,54],[155,55],[189,56],[156,57],[157,58],[158,59],[159,60],[160,61],[161,62],[162,63],[163,64],[164,65],[165,66],[166,66],[167,67],[170,68],[172,69],[171,70],[173,71],[174,72],[175,73],[176,74],[177,75],[178,76],[179,77],[180,78],[181,79],[182,80],[183,81],[184,82],[185,83],[186,84],[187,85],[244,86],[203,87],[202,88],[207,89],[242,90],[239,91],[241,92],[204,91],[205,93],[209,93],[208,94],[206,95],[240,96],[238,91],[243,97],[210,98],[215,91],[217,91],[212,91],[213,98],[219,91],[220,99],[211,91],[216,91],[218,91],[214,91],[234,100],[233,91],[235,101],[229,91],[231,91],[230,91],[226,91],[232,102],[227,91],[228,103],[221,91],[222,91],[223,91],[224,91],[225,91],[191,104],[52,105],[72,106],[54,107],[55,108],[64,109],[60,110],[56,110],[62,111],[59,110],[57,110],[58,110],[61,108],[63,108],[68,107],[69,107],[65,107],[70,107],[66,107],[67,107],[71,107],[114,112],[124,113],[113,112],[134,114],[105,115],[104,116],[133,117],[127,118],[132,119],[107,120],[121,121],[106,122],[130,123],[102,124],[101,125],[131,126],[103,127],[108,128],[112,128],[135,129],[125,130],[116,131],[117,132],[119,133],[115,134],[118,135],[128,117],[110,136],[111,137],[120,138],[100,139],[123,130],[122,128],[129,140],[192,141],[195,142],[193,117],[194,143],[270,144],[260,145],[262,146],[268,147],[263,148],[266,144],[269,149],[261,150],[267,151]],"latestChangedDtsFile":"./dist/index.d.ts","version":"5.6.2"}
|
package/vitest.config.ts
ADDED