n8n-nodes-mongo-oid-fix 1.0.3
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/LICENSE.md +19 -0
- package/README.md +2 -0
- package/dist/nodes/MongoDb/GenericFunctions.d.ts +10 -0
- package/dist/nodes/MongoDb/GenericFunctions.js +134 -0
- package/dist/nodes/MongoDb/GenericFunctions.js.map +1 -0
- package/dist/nodes/MongoDb/MongoDb.node.d.ts +10 -0
- package/dist/nodes/MongoDb/MongoDb.node.js +280 -0
- package/dist/nodes/MongoDb/MongoDb.node.js.map +1 -0
- package/dist/nodes/MongoDb/MongoDb.node.json +40 -0
- package/dist/nodes/MongoDb/MongoDbProperties.d.ts +2 -0
- package/dist/nodes/MongoDb/MongoDbProperties.js +246 -0
- package/dist/nodes/MongoDb/MongoDbProperties.js.map +1 -0
- package/dist/nodes/MongoDb/mongoDb.types.d.ts +18 -0
- package/dist/nodes/MongoDb/mongoDb.types.js +3 -0
- package/dist/nodes/MongoDb/mongoDb.types.js.map +1 -0
- package/dist/nodes/MongoDb/mongodb.svg +1 -0
- package/dist/package.json +52 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/utilities.d.ts +3 -0
- package/dist/utils/utilities.js +35 -0
- package/dist/utils/utilities.js.map +1 -0
- package/index.js +0 -0
- package/package.json +52 -0
package/LICENSE.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright 2022 n8n
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { ICredentialDataDecryptedObject, IDataObject, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
2
|
+
import { MongoClient } from 'mongodb';
|
3
|
+
import type { IMongoCredentials, IMongoCredentialsType, IMongoParametricCredentials } from './mongoDb.types';
|
4
|
+
export declare function buildParameterizedConnString(credentials: IMongoParametricCredentials): string;
|
5
|
+
export declare function buildMongoConnectionParams(self: IExecuteFunctions, credentials: IMongoCredentialsType): IMongoCredentials;
|
6
|
+
export declare function validateAndResolveMongoCredentials(self: IExecuteFunctions, credentials?: ICredentialDataDecryptedObject): IMongoCredentials;
|
7
|
+
export declare function prepareItems(items: INodeExecutionData[], fields: string[], updateKey?: string, useDotNotation?: boolean, dateFields?: string[], oidFields?: string[]): IDataObject[];
|
8
|
+
export declare function prepareFields(fields: string): string[];
|
9
|
+
export declare function stringifyObjectIDs(items: IDataObject[]): void;
|
10
|
+
export declare function connectMongoClient(connectionString: string, credentials?: IDataObject): Promise<MongoClient>;
|
@@ -0,0 +1,134 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.connectMongoClient = exports.stringifyObjectIDs = exports.prepareFields = exports.prepareItems = exports.validateAndResolveMongoCredentials = exports.buildMongoConnectionParams = exports.buildParameterizedConnString = void 0;
|
7
|
+
const tls_1 = require("tls");
|
8
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
9
|
+
const get_1 = __importDefault(require("lodash/get"));
|
10
|
+
const set_1 = __importDefault(require("lodash/set"));
|
11
|
+
const mongodb_1 = require("mongodb");
|
12
|
+
const utilities_1 = require("../../utils/utilities");
|
13
|
+
function buildParameterizedConnString(credentials) {
|
14
|
+
if (credentials.port) {
|
15
|
+
return `mongodb://${credentials.user}:${credentials.password}@${credentials.host}:${credentials.port}`;
|
16
|
+
}
|
17
|
+
else {
|
18
|
+
return `mongodb+srv://${credentials.user}:${credentials.password}@${credentials.host}`;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.buildParameterizedConnString = buildParameterizedConnString;
|
22
|
+
function buildMongoConnectionParams(self, credentials) {
|
23
|
+
const sanitizedDbName = credentials.database && credentials.database.trim().length > 0
|
24
|
+
? credentials.database.trim()
|
25
|
+
: '';
|
26
|
+
if (credentials.configurationType === 'connectionString') {
|
27
|
+
if (credentials.connectionString && credentials.connectionString.trim().length > 0) {
|
28
|
+
return {
|
29
|
+
connectionString: credentials.connectionString.trim(),
|
30
|
+
database: sanitizedDbName,
|
31
|
+
};
|
32
|
+
}
|
33
|
+
else {
|
34
|
+
throw new n8n_workflow_1.NodeOperationError(self.getNode(), 'Cannot override credentials: valid MongoDB connection string not provided ');
|
35
|
+
}
|
36
|
+
}
|
37
|
+
else {
|
38
|
+
return {
|
39
|
+
connectionString: buildParameterizedConnString(credentials),
|
40
|
+
database: sanitizedDbName,
|
41
|
+
};
|
42
|
+
}
|
43
|
+
}
|
44
|
+
exports.buildMongoConnectionParams = buildMongoConnectionParams;
|
45
|
+
function validateAndResolveMongoCredentials(self, credentials) {
|
46
|
+
if (credentials === undefined) {
|
47
|
+
throw new n8n_workflow_1.NodeOperationError(self.getNode(), 'No credentials got returned!');
|
48
|
+
}
|
49
|
+
else {
|
50
|
+
return buildMongoConnectionParams(self, credentials);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
exports.validateAndResolveMongoCredentials = validateAndResolveMongoCredentials;
|
54
|
+
function prepareItems(items, fields, updateKey = '', useDotNotation = false, dateFields = [], oidFields = []) {
|
55
|
+
let data = items;
|
56
|
+
if (updateKey) {
|
57
|
+
if (!fields.includes(updateKey)) {
|
58
|
+
fields.push(updateKey);
|
59
|
+
}
|
60
|
+
data = items.filter((item) => item.json[updateKey] !== undefined);
|
61
|
+
}
|
62
|
+
const preperedItems = data.map(({ json }) => {
|
63
|
+
const updateItem = {};
|
64
|
+
for (const field of fields) {
|
65
|
+
let fieldData;
|
66
|
+
if (useDotNotation) {
|
67
|
+
fieldData = (0, get_1.default)(json, field, null);
|
68
|
+
}
|
69
|
+
else {
|
70
|
+
fieldData = json[field] !== undefined ? json[field] : null;
|
71
|
+
}
|
72
|
+
if (fieldData) {
|
73
|
+
if (dateFields.includes(field)) {
|
74
|
+
fieldData = new Date(fieldData);
|
75
|
+
}
|
76
|
+
if (oidFields.includes(field)) {
|
77
|
+
fieldData = new mongodb_1.ObjectId(fieldData);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
if (useDotNotation) {
|
81
|
+
(0, set_1.default)(updateItem, field, fieldData);
|
82
|
+
}
|
83
|
+
else {
|
84
|
+
updateItem[field] = fieldData;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
return updateItem;
|
88
|
+
});
|
89
|
+
return preperedItems;
|
90
|
+
}
|
91
|
+
exports.prepareItems = prepareItems;
|
92
|
+
function prepareFields(fields) {
|
93
|
+
return fields
|
94
|
+
.split(',')
|
95
|
+
.map((field) => field.trim())
|
96
|
+
.filter((field) => !!field);
|
97
|
+
}
|
98
|
+
exports.prepareFields = prepareFields;
|
99
|
+
function stringifyObjectIDs(items) {
|
100
|
+
items.forEach((item) => {
|
101
|
+
if (item._id instanceof mongodb_1.ObjectId) {
|
102
|
+
item._id = item._id.toString();
|
103
|
+
}
|
104
|
+
if (item.id instanceof mongodb_1.ObjectId) {
|
105
|
+
item.id = item.id.toString();
|
106
|
+
}
|
107
|
+
});
|
108
|
+
}
|
109
|
+
exports.stringifyObjectIDs = stringifyObjectIDs;
|
110
|
+
async function connectMongoClient(connectionString, credentials = {}) {
|
111
|
+
let client;
|
112
|
+
if (credentials.tls) {
|
113
|
+
const ca = credentials.ca ? (0, utilities_1.formatPrivateKey)(credentials.ca) : undefined;
|
114
|
+
const cert = credentials.cert ? (0, utilities_1.formatPrivateKey)(credentials.cert) : undefined;
|
115
|
+
const key = credentials.key ? (0, utilities_1.formatPrivateKey)(credentials.key) : undefined;
|
116
|
+
const passphrase = credentials.passphrase || undefined;
|
117
|
+
const secureContext = (0, tls_1.createSecureContext)({
|
118
|
+
ca,
|
119
|
+
cert,
|
120
|
+
key,
|
121
|
+
passphrase,
|
122
|
+
});
|
123
|
+
client = await mongodb_1.MongoClient.connect(connectionString, {
|
124
|
+
tls: true,
|
125
|
+
secureContext,
|
126
|
+
});
|
127
|
+
}
|
128
|
+
else {
|
129
|
+
client = await mongodb_1.MongoClient.connect(connectionString);
|
130
|
+
}
|
131
|
+
return client;
|
132
|
+
}
|
133
|
+
exports.connectMongoClient = connectMongoClient;
|
134
|
+
//# sourceMappingURL=GenericFunctions.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/MongoDb/GenericFunctions.ts"],"names":[],"mappings":";;;;;;AAAA,6BAA0C;AAO1C,+CAAkD;AAElD,qDAA6B;AAC7B,qDAA6B;AAC7B,qCAAgD;AAChD,qDAAyD;AAYzD,SAAgB,4BAA4B,CAAC,WAAwC;IACpF,IAAI,WAAW,CAAC,IAAI,EAAE;QACrB,OAAO,aAAa,WAAW,CAAC,IAAI,IAAI,WAAW,CAAC,QAAQ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M,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,IAAA,4BAAgB,EAAC,WAAW,CAAC,GAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QACtF,MAAM,UAAU,GAAI,WAAW,CAAC,UAAqB,IAAI,SAAS,CAAC;QAEnE,MAAM,aAAa,GAAG,IAAA,yBAAmB,EAAC;YACzC,EAAE;YACF,IAAI;YACJ,GAAG;YACH,UAAU;SACV,CAAC,CAAC;QAEH,MAAM,GAAG,MAAM,qBAAW,CAAC,OAAO,CAAC,gBAAgB,EAAE;YACpD,GAAG,EAAE,IAAI;YACT,aAAa;SACb,CAAC,CAAC;KACH;SAAM;QACN,MAAM,GAAG,MAAM,qBAAW,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;KACrD;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAzBD,gDAyBC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { IExecuteFunctions, ICredentialsDecrypted, ICredentialTestFunctions, INodeCredentialTestResult, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
|
2
|
+
export declare class MongoDb implements INodeType {
|
3
|
+
description: INodeTypeDescription;
|
4
|
+
methods: {
|
5
|
+
credentialTest: {
|
6
|
+
mongoDbCredentialTest(this: ICredentialTestFunctions, credential: ICredentialsDecrypted): Promise<INodeCredentialTestResult>;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
10
|
+
}
|
@@ -0,0 +1,280 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.MongoDb = void 0;
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
5
|
+
const bson_1 = require("bson");
|
6
|
+
const mongodb_1 = require("mongodb");
|
7
|
+
const utilities_1 = require("../../utils/utilities");
|
8
|
+
const MongoDbProperties_1 = require("./MongoDbProperties");
|
9
|
+
const GenericFunctions_1 = require("./GenericFunctions");
|
10
|
+
class MongoDb {
|
11
|
+
constructor() {
|
12
|
+
this.description = {
|
13
|
+
displayName: 'Mongo DB OID',
|
14
|
+
name: 'mongoDb',
|
15
|
+
icon: 'file:mongodb.svg',
|
16
|
+
group: ['input'],
|
17
|
+
version: 1,
|
18
|
+
description: 'Find, insert and update documents in MongoDB',
|
19
|
+
defaults: {
|
20
|
+
name: 'mongoDb',
|
21
|
+
},
|
22
|
+
inputs: ['main'],
|
23
|
+
outputs: ['main'],
|
24
|
+
credentials: [
|
25
|
+
{
|
26
|
+
name: 'mongoDb',
|
27
|
+
required: true,
|
28
|
+
testedBy: 'mongoDbCredentialTest',
|
29
|
+
},
|
30
|
+
],
|
31
|
+
properties: MongoDbProperties_1.nodeProperties,
|
32
|
+
};
|
33
|
+
this.methods = {
|
34
|
+
credentialTest: {
|
35
|
+
async mongoDbCredentialTest(credential) {
|
36
|
+
const credentials = credential.data;
|
37
|
+
try {
|
38
|
+
const database = (credentials.database || '').trim();
|
39
|
+
let connectionString = '';
|
40
|
+
if (credentials.configurationType === 'connectionString') {
|
41
|
+
connectionString = (credentials.connectionString || '').trim();
|
42
|
+
}
|
43
|
+
else {
|
44
|
+
connectionString = (0, GenericFunctions_1.buildParameterizedConnString)(credentials);
|
45
|
+
}
|
46
|
+
const client = await (0, GenericFunctions_1.connectMongoClient)(connectionString, credentials);
|
47
|
+
const { databases } = await client.db().admin().listDatabases();
|
48
|
+
if (!databases.map((db) => db.name).includes(database)) {
|
49
|
+
throw new Error(`Database "${database}" does not exist`);
|
50
|
+
}
|
51
|
+
await client.close();
|
52
|
+
}
|
53
|
+
catch (error) {
|
54
|
+
return {
|
55
|
+
status: 'Error',
|
56
|
+
message: error.message,
|
57
|
+
};
|
58
|
+
}
|
59
|
+
return {
|
60
|
+
status: 'OK',
|
61
|
+
message: 'Connection successful!',
|
62
|
+
};
|
63
|
+
},
|
64
|
+
},
|
65
|
+
};
|
66
|
+
}
|
67
|
+
async execute() {
|
68
|
+
const credentials = await this.getCredentials('mongoDb');
|
69
|
+
const { database, connectionString } = (0, GenericFunctions_1.validateAndResolveMongoCredentials)(this, credentials);
|
70
|
+
const client = await (0, GenericFunctions_1.connectMongoClient)(connectionString, credentials);
|
71
|
+
const mdb = client.db(database);
|
72
|
+
let responseData = [];
|
73
|
+
const items = this.getInputData();
|
74
|
+
const operation = this.getNodeParameter('operation', 0);
|
75
|
+
if (operation === 'aggregate') {
|
76
|
+
try {
|
77
|
+
const queryParameter = bson_1.EJSON.parse(this.getNodeParameter('query', 0));
|
78
|
+
if (queryParameter._id && typeof queryParameter._id === 'string') {
|
79
|
+
queryParameter._id = new mongodb_1.ObjectId(queryParameter._id);
|
80
|
+
}
|
81
|
+
const query = mdb
|
82
|
+
.collection(this.getNodeParameter('collection', 0))
|
83
|
+
.aggregate(queryParameter);
|
84
|
+
responseData = await query.toArray();
|
85
|
+
}
|
86
|
+
catch (error) {
|
87
|
+
if (this.continueOnFail()) {
|
88
|
+
responseData = [{ error: error.message }];
|
89
|
+
}
|
90
|
+
else {
|
91
|
+
throw error;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
else if (operation === 'delete') {
|
96
|
+
try {
|
97
|
+
const { deletedCount } = await mdb
|
98
|
+
.collection(this.getNodeParameter('collection', 0))
|
99
|
+
.deleteMany(bson_1.EJSON.parse(this.getNodeParameter('query', 0)));
|
100
|
+
responseData = [{ deletedCount }];
|
101
|
+
}
|
102
|
+
catch (error) {
|
103
|
+
if (this.continueOnFail()) {
|
104
|
+
responseData = [{ error: error.message }];
|
105
|
+
}
|
106
|
+
else {
|
107
|
+
throw error;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
else if (operation === 'find') {
|
112
|
+
try {
|
113
|
+
const queryParameter = bson_1.EJSON.parse(this.getNodeParameter('query', 0));
|
114
|
+
if (queryParameter._id && typeof queryParameter._id === 'string') {
|
115
|
+
queryParameter._id = new mongodb_1.ObjectId(queryParameter._id);
|
116
|
+
}
|
117
|
+
let query = mdb
|
118
|
+
.collection(this.getNodeParameter('collection', 0))
|
119
|
+
.find(queryParameter);
|
120
|
+
const options = this.getNodeParameter('options', 0);
|
121
|
+
const limit = options.limit;
|
122
|
+
const skip = options.skip;
|
123
|
+
const sort = options.sort && bson_1.EJSON.parse(options.sort);
|
124
|
+
if (skip > 0) {
|
125
|
+
query = query.skip(skip);
|
126
|
+
}
|
127
|
+
if (limit > 0) {
|
128
|
+
query = query.limit(limit);
|
129
|
+
}
|
130
|
+
if (sort && Object.keys(sort).length !== 0 && sort.constructor === Object) {
|
131
|
+
query = query.sort(sort);
|
132
|
+
}
|
133
|
+
const queryResult = await query.toArray();
|
134
|
+
responseData = queryResult;
|
135
|
+
}
|
136
|
+
catch (error) {
|
137
|
+
if (this.continueOnFail()) {
|
138
|
+
responseData = [{ error: error.message }];
|
139
|
+
}
|
140
|
+
else {
|
141
|
+
throw error;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
else if (operation === 'findOneAndReplace') {
|
146
|
+
const fields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('fields', 0));
|
147
|
+
const useDotNotation = this.getNodeParameter('options.useDotNotation', 0, false);
|
148
|
+
const dateFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.dateFields', 0, ''));
|
149
|
+
const oidFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.oidFields', 0, ''));
|
150
|
+
const updateKey = (this.getNodeParameter('updateKey', 0) || '').trim();
|
151
|
+
const updateOptions = this.getNodeParameter('upsert', 0)
|
152
|
+
? { upsert: true }
|
153
|
+
: undefined;
|
154
|
+
const updateItems = (0, GenericFunctions_1.prepareItems)(items, fields, updateKey, useDotNotation, dateFields, oidFields);
|
155
|
+
for (const item of updateItems) {
|
156
|
+
try {
|
157
|
+
const filter = { [updateKey]: item[updateKey] };
|
158
|
+
if (updateKey === '_id') {
|
159
|
+
filter[updateKey] = new mongodb_1.ObjectId(item[updateKey]);
|
160
|
+
delete item._id;
|
161
|
+
}
|
162
|
+
await mdb
|
163
|
+
.collection(this.getNodeParameter('collection', 0))
|
164
|
+
.findOneAndReplace(filter, item, updateOptions);
|
165
|
+
}
|
166
|
+
catch (error) {
|
167
|
+
if (this.continueOnFail()) {
|
168
|
+
item.json = { error: error.message };
|
169
|
+
continue;
|
170
|
+
}
|
171
|
+
throw error;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
responseData = updateItems;
|
175
|
+
}
|
176
|
+
else if (operation === 'findOneAndUpdate') {
|
177
|
+
const fields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('fields', 0));
|
178
|
+
const useDotNotation = this.getNodeParameter('options.useDotNotation', 0, false);
|
179
|
+
const dateFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.dateFields', 0, ''));
|
180
|
+
const oidFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.oidFields', 0, ''));
|
181
|
+
const updateKey = (this.getNodeParameter('updateKey', 0) || '').trim();
|
182
|
+
const updateOptions = this.getNodeParameter('upsert', 0)
|
183
|
+
? { upsert: true }
|
184
|
+
: undefined;
|
185
|
+
const updateItems = (0, GenericFunctions_1.prepareItems)(items, fields, updateKey, useDotNotation, dateFields, oidFields);
|
186
|
+
for (const item of updateItems) {
|
187
|
+
try {
|
188
|
+
const filter = { [updateKey]: item[updateKey] };
|
189
|
+
if (updateKey === '_id') {
|
190
|
+
filter[updateKey] = new mongodb_1.ObjectId(item[updateKey]);
|
191
|
+
delete item._id;
|
192
|
+
}
|
193
|
+
await mdb
|
194
|
+
.collection(this.getNodeParameter('collection', 0))
|
195
|
+
.findOneAndUpdate(filter, { $set: item }, updateOptions);
|
196
|
+
}
|
197
|
+
catch (error) {
|
198
|
+
if (this.continueOnFail()) {
|
199
|
+
item.json = { error: error.message };
|
200
|
+
continue;
|
201
|
+
}
|
202
|
+
throw error;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
responseData = updateItems;
|
206
|
+
}
|
207
|
+
else if (operation === 'insert') {
|
208
|
+
try {
|
209
|
+
const fields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('fields', 0));
|
210
|
+
const useDotNotation = this.getNodeParameter('options.useDotNotation', 0, false);
|
211
|
+
const dateFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.dateFields', 0, ''));
|
212
|
+
const oidFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.oidFields', 0, ''));
|
213
|
+
const insertItems = (0, GenericFunctions_1.prepareItems)(items, fields, '', useDotNotation, dateFields, oidFields);
|
214
|
+
const { insertedIds } = await mdb
|
215
|
+
.collection(this.getNodeParameter('collection', 0))
|
216
|
+
.insertMany(insertItems);
|
217
|
+
for (const i of Object.keys(insertedIds)) {
|
218
|
+
responseData.push({
|
219
|
+
...insertItems[parseInt(i, 10)],
|
220
|
+
id: insertedIds[parseInt(i, 10)],
|
221
|
+
});
|
222
|
+
}
|
223
|
+
}
|
224
|
+
catch (error) {
|
225
|
+
if (this.continueOnFail()) {
|
226
|
+
responseData = [{ error: error.message }];
|
227
|
+
}
|
228
|
+
else {
|
229
|
+
throw error;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|
233
|
+
else if (operation === 'update') {
|
234
|
+
const fields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('fields', 0));
|
235
|
+
const useDotNotation = this.getNodeParameter('options.useDotNotation', 0, false);
|
236
|
+
const dateFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.dateFields', 0, ''));
|
237
|
+
const oidFields = (0, GenericFunctions_1.prepareFields)(this.getNodeParameter('options.oidFields', 0, ''));
|
238
|
+
const updateKey = (this.getNodeParameter('updateKey', 0) || '').trim();
|
239
|
+
const updateOptions = this.getNodeParameter('upsert', 0)
|
240
|
+
? { upsert: true }
|
241
|
+
: undefined;
|
242
|
+
const updateItems = (0, GenericFunctions_1.prepareItems)(items, fields, updateKey, useDotNotation, dateFields, oidFields);
|
243
|
+
for (const item of updateItems) {
|
244
|
+
try {
|
245
|
+
const filter = { [updateKey]: item[updateKey] };
|
246
|
+
if (updateKey === '_id') {
|
247
|
+
filter[updateKey] = new mongodb_1.ObjectId(item[updateKey]);
|
248
|
+
delete item._id;
|
249
|
+
}
|
250
|
+
await mdb
|
251
|
+
.collection(this.getNodeParameter('collection', 0))
|
252
|
+
.updateOne(filter, { $set: item }, updateOptions);
|
253
|
+
}
|
254
|
+
catch (error) {
|
255
|
+
if (this.continueOnFail()) {
|
256
|
+
item.json = { error: error.message };
|
257
|
+
continue;
|
258
|
+
}
|
259
|
+
throw error;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
responseData = updateItems;
|
263
|
+
}
|
264
|
+
else {
|
265
|
+
if (this.continueOnFail()) {
|
266
|
+
responseData = [{ error: `The operation "${operation}" is not supported!` }];
|
267
|
+
}
|
268
|
+
else {
|
269
|
+
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `The operation "${operation}" is not supported!`, { itemIndex: 0 });
|
270
|
+
}
|
271
|
+
}
|
272
|
+
await client.close();
|
273
|
+
(0, GenericFunctions_1.stringifyObjectIDs)(responseData);
|
274
|
+
const itemData = (0, utilities_1.generatePairedItemData)(items.length);
|
275
|
+
const returnItems = this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(responseData), { itemData });
|
276
|
+
return [returnItems];
|
277
|
+
}
|
278
|
+
}
|
279
|
+
exports.MongoDb = MongoDb;
|
280
|
+
//# sourceMappingURL=MongoDb.node.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MongoDb.node.js","sourceRoot":"","sources":["../../../nodes/MongoDb/MongoDb.node.ts"],"names":[],"mappings":";;;AAYA,+CAAkD;AAElD,+BAA2B;AAS3B,qCAAmC;AACnC,qDAA+D;AAC/D,2DAAqD;AAErD,yDAO4B;AAI5B,MAAa,OAAO;IAApB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,SAAS;YACf,IAA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AAY,GAAG,CAAC,EAAE,KAAK,EAAE,kBAAkB,SAAS,qBAAqB,EAAE,CAAC,CAAC;aAC7E;iBAAM;gBACN,MAAM,IAAI,iCAAkB,CAC3B,IAAI,CAAC,OAAO,EAAE,EACd,kBAAkB,SAAS,qBAAqB,EAChD,EAAE,SAAS,EAAE,CAAC,EAAE,CAChB,CAAC;aACF;SACD;QAED,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QAErB,IAAA,qCAAkB,EAAC,YAAY,CAAC,CAAC;QAEjC,MAAM,QAAQ,GAAG,IAAA,kCAAsB,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAC1D,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,EAC1C,EAAE,QAAQ,EAAE,CACZ,CAAC;QAEF,OAAO,CAAC,WAAW,CAAC,CAAC;IACtB,CAAC;CACD;AAhXD,0BAgXC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{
|
2
|
+
"node": "n8n-nodes-base.mongoDb",
|
3
|
+
"nodeVersion": "1.0",
|
4
|
+
"codexVersion": "1.0",
|
5
|
+
"categories": ["Development", "Data & Storage"],
|
6
|
+
"resources": {
|
7
|
+
"credentialDocumentation": [
|
8
|
+
{
|
9
|
+
"url": "https://docs.n8n.io/credentials/mongoDb"
|
10
|
+
}
|
11
|
+
],
|
12
|
+
"primaryDocumentation": [
|
13
|
+
{
|
14
|
+
"url": "https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.mongodb/"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"generic": [
|
18
|
+
{
|
19
|
+
"label": "Why business process automation with n8n can change your daily life",
|
20
|
+
"icon": "🧬",
|
21
|
+
"url": "https://n8n.io/blog/why-business-process-automation-with-n8n-can-change-your-daily-life/"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"label": "Running n8n on ships: An interview with Maranics",
|
25
|
+
"icon": "🛳",
|
26
|
+
"url": "https://n8n.io/blog/running-n8n-on-ships-an-interview-with-maranics/"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"label": "Automate your data processing pipeline in 9 steps",
|
30
|
+
"icon": "⚙️",
|
31
|
+
"url": "https://n8n.io/blog/automate-your-data-processing-pipeline-in-9-steps-with-n8n/"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"label": "How uProc scraped a multi-page website with a low-code workflow",
|
35
|
+
"icon": " 🕸️",
|
36
|
+
"url": "https://n8n.io/blog/how-uproc-scraped-a-multi-page-website-with-a-low-code-workflow/"
|
37
|
+
}
|
38
|
+
]
|
39
|
+
}
|
40
|
+
}
|
@@ -0,0 +1,246 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.nodeProperties = void 0;
|
4
|
+
exports.nodeProperties = [
|
5
|
+
{
|
6
|
+
displayName: 'Operation',
|
7
|
+
name: 'operation',
|
8
|
+
type: 'options',
|
9
|
+
noDataExpression: true,
|
10
|
+
options: [
|
11
|
+
{
|
12
|
+
name: 'Aggregate',
|
13
|
+
value: 'aggregate',
|
14
|
+
description: 'Aggregate documents',
|
15
|
+
action: 'Aggregate documents',
|
16
|
+
},
|
17
|
+
{
|
18
|
+
name: 'Delete',
|
19
|
+
value: 'delete',
|
20
|
+
description: 'Delete documents',
|
21
|
+
action: 'Delete documents',
|
22
|
+
},
|
23
|
+
{
|
24
|
+
name: 'Find',
|
25
|
+
value: 'find',
|
26
|
+
description: 'Find documents',
|
27
|
+
action: 'Find documents',
|
28
|
+
},
|
29
|
+
{
|
30
|
+
name: 'Find And Replace',
|
31
|
+
value: 'findOneAndReplace',
|
32
|
+
description: 'Find and replace documents',
|
33
|
+
action: 'Find and replace documents',
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: 'Find And Update',
|
37
|
+
value: 'findOneAndUpdate',
|
38
|
+
description: 'Find and update documents',
|
39
|
+
action: 'Find and update documents',
|
40
|
+
},
|
41
|
+
{
|
42
|
+
name: 'Insert',
|
43
|
+
value: 'insert',
|
44
|
+
description: 'Insert documents',
|
45
|
+
action: 'Insert documents',
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: 'Update',
|
49
|
+
value: 'update',
|
50
|
+
description: 'Update documents',
|
51
|
+
action: 'Update documents',
|
52
|
+
},
|
53
|
+
],
|
54
|
+
default: 'find',
|
55
|
+
},
|
56
|
+
{
|
57
|
+
displayName: 'Collection',
|
58
|
+
name: 'collection',
|
59
|
+
type: 'string',
|
60
|
+
required: true,
|
61
|
+
default: '',
|
62
|
+
description: 'MongoDB Collection',
|
63
|
+
},
|
64
|
+
{
|
65
|
+
displayName: 'Query',
|
66
|
+
name: 'query',
|
67
|
+
type: 'json',
|
68
|
+
typeOptions: {
|
69
|
+
alwaysOpenEditWindow: true,
|
70
|
+
},
|
71
|
+
displayOptions: {
|
72
|
+
show: {
|
73
|
+
operation: ['aggregate'],
|
74
|
+
},
|
75
|
+
},
|
76
|
+
default: '',
|
77
|
+
placeholder: '[{ "$match": { "$gt": "1950-01-01" }, ... }]',
|
78
|
+
hint: 'Learn more about aggregation pipeline <a href="https://docs.mongodb.com/manual/core/aggregation-pipeline/">here</a>',
|
79
|
+
required: true,
|
80
|
+
description: 'MongoDB aggregation pipeline query in JSON format',
|
81
|
+
},
|
82
|
+
{
|
83
|
+
displayName: 'Delete Query (JSON Format)',
|
84
|
+
name: 'query',
|
85
|
+
type: 'json',
|
86
|
+
typeOptions: {
|
87
|
+
rows: 5,
|
88
|
+
},
|
89
|
+
displayOptions: {
|
90
|
+
show: {
|
91
|
+
operation: ['delete'],
|
92
|
+
},
|
93
|
+
},
|
94
|
+
default: '{}',
|
95
|
+
placeholder: '{ "birth": { "$gt": "1950-01-01" } }',
|
96
|
+
required: true,
|
97
|
+
description: 'MongoDB Delete query',
|
98
|
+
},
|
99
|
+
{
|
100
|
+
displayName: 'Options',
|
101
|
+
name: 'options',
|
102
|
+
type: 'collection',
|
103
|
+
displayOptions: {
|
104
|
+
show: {
|
105
|
+
operation: ['find'],
|
106
|
+
},
|
107
|
+
},
|
108
|
+
default: {},
|
109
|
+
placeholder: 'Add options',
|
110
|
+
description: 'Add query options',
|
111
|
+
options: [
|
112
|
+
{
|
113
|
+
displayName: 'Limit',
|
114
|
+
name: 'limit',
|
115
|
+
type: 'number',
|
116
|
+
typeOptions: {
|
117
|
+
minValue: 1,
|
118
|
+
},
|
119
|
+
default: 50,
|
120
|
+
description: 'Use limit to specify the maximum number of documents or 0 for unlimited documents',
|
121
|
+
},
|
122
|
+
{
|
123
|
+
displayName: 'Skip',
|
124
|
+
name: 'skip',
|
125
|
+
type: 'number',
|
126
|
+
default: 0,
|
127
|
+
description: 'The number of documents to skip in the results set',
|
128
|
+
},
|
129
|
+
{
|
130
|
+
displayName: 'Sort (JSON Format)',
|
131
|
+
name: 'sort',
|
132
|
+
type: 'json',
|
133
|
+
typeOptions: {
|
134
|
+
rows: 2,
|
135
|
+
},
|
136
|
+
default: '{}',
|
137
|
+
placeholder: '{ "field": -1 }',
|
138
|
+
description: 'A JSON that defines the sort order of the result set',
|
139
|
+
},
|
140
|
+
],
|
141
|
+
},
|
142
|
+
{
|
143
|
+
displayName: 'Query (JSON Format)',
|
144
|
+
name: 'query',
|
145
|
+
type: 'json',
|
146
|
+
typeOptions: {
|
147
|
+
rows: 5,
|
148
|
+
},
|
149
|
+
displayOptions: {
|
150
|
+
show: {
|
151
|
+
operation: ['find'],
|
152
|
+
},
|
153
|
+
},
|
154
|
+
default: '{}',
|
155
|
+
placeholder: '{ "birth": { "$gt": "1950-01-01" } }',
|
156
|
+
required: true,
|
157
|
+
description: 'MongoDB Find query',
|
158
|
+
},
|
159
|
+
{
|
160
|
+
displayName: 'Fields',
|
161
|
+
name: 'fields',
|
162
|
+
type: 'string',
|
163
|
+
displayOptions: {
|
164
|
+
show: {
|
165
|
+
operation: ['insert'],
|
166
|
+
},
|
167
|
+
},
|
168
|
+
default: '',
|
169
|
+
placeholder: 'name,description',
|
170
|
+
description: 'Comma-separated list of the fields to be included into the new document',
|
171
|
+
},
|
172
|
+
{
|
173
|
+
displayName: 'Update Key',
|
174
|
+
name: 'updateKey',
|
175
|
+
type: 'string',
|
176
|
+
displayOptions: {
|
177
|
+
show: {
|
178
|
+
operation: ['update', 'findOneAndReplace', 'findOneAndUpdate'],
|
179
|
+
},
|
180
|
+
},
|
181
|
+
default: 'id',
|
182
|
+
required: true,
|
183
|
+
description: 'Name of the property which decides which rows in the database should be updated. Normally that would be "id".',
|
184
|
+
},
|
185
|
+
{
|
186
|
+
displayName: 'Fields',
|
187
|
+
name: 'fields',
|
188
|
+
type: 'string',
|
189
|
+
displayOptions: {
|
190
|
+
show: {
|
191
|
+
operation: ['update', 'findOneAndReplace', 'findOneAndUpdate'],
|
192
|
+
},
|
193
|
+
},
|
194
|
+
default: '',
|
195
|
+
placeholder: 'name,description',
|
196
|
+
description: 'Comma-separated list of the fields to be included into the new document',
|
197
|
+
},
|
198
|
+
{
|
199
|
+
displayName: 'Upsert',
|
200
|
+
name: 'upsert',
|
201
|
+
type: 'boolean',
|
202
|
+
displayOptions: {
|
203
|
+
show: {
|
204
|
+
operation: ['update', 'findOneAndReplace', 'findOneAndUpdate'],
|
205
|
+
},
|
206
|
+
},
|
207
|
+
default: false,
|
208
|
+
description: 'Whether to perform an insert if no documents match the update key',
|
209
|
+
},
|
210
|
+
{
|
211
|
+
displayName: 'Options',
|
212
|
+
name: 'options',
|
213
|
+
type: 'collection',
|
214
|
+
displayOptions: {
|
215
|
+
show: {
|
216
|
+
operation: ['update', 'insert', 'findOneAndReplace', 'findOneAndUpdate'],
|
217
|
+
},
|
218
|
+
},
|
219
|
+
placeholder: 'Add Option',
|
220
|
+
default: {},
|
221
|
+
options: [
|
222
|
+
{
|
223
|
+
displayName: 'Date Fields',
|
224
|
+
name: 'dateFields',
|
225
|
+
type: 'string',
|
226
|
+
default: '',
|
227
|
+
description: 'Comma separeted list of fields that will be parse as Mongo Date type',
|
228
|
+
},
|
229
|
+
{
|
230
|
+
displayName: 'Use Dot Notation',
|
231
|
+
name: 'useDotNotation',
|
232
|
+
type: 'boolean',
|
233
|
+
default: false,
|
234
|
+
description: 'Whether to use dot notation to access date fields',
|
235
|
+
},
|
236
|
+
{
|
237
|
+
displayName: 'OID Fields',
|
238
|
+
name: 'oidFields',
|
239
|
+
type: 'string',
|
240
|
+
default: '',
|
241
|
+
description: 'Comma separeted list of fields that will be parse as Mongo OID type',
|
242
|
+
},
|
243
|
+
],
|
244
|
+
},
|
245
|
+
];
|
246
|
+
//# sourceMappingURL=MongoDbProperties.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MongoDbProperties.js","sourceRoot":"","sources":["../../../nodes/MongoDb/MongoDbProperties.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,qBAAqB;aAC7B;YACD;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kBAAkB;gBAC/B,MAAM,EAAE,kBAAkB;aAC1B;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,gBAAgB;gBAC7B,MAAM,EAAE,gBAAgB;aACxB;YACD;gBACC,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,mBAAmB;gBAC1B,WAAW,EAAE,4BAA4B;gBACzC,MAAM,EAAE,4BAA4B;aACpC;YACD;gBACC,IAAI,EAAE,iBAAiB;gBACvB,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EAAE,2BAA2B;gBACxC,MAAM,EA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tB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EAAE,mDAAmD;aAChE;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,qEAAqE;aAClF;SACD;KACD;CACD,CAAC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export interface IMongoParametricCredentials {
|
2
|
+
configurationType: 'values';
|
3
|
+
host: string;
|
4
|
+
database: string;
|
5
|
+
user: string;
|
6
|
+
password: string;
|
7
|
+
port?: number;
|
8
|
+
}
|
9
|
+
export interface IMongoOverrideCredentials {
|
10
|
+
configurationType: 'connectionString';
|
11
|
+
connectionString: string;
|
12
|
+
database: string;
|
13
|
+
}
|
14
|
+
export declare type IMongoCredentialsType = IMongoParametricCredentials | IMongoOverrideCredentials;
|
15
|
+
export declare type IMongoCredentials = {
|
16
|
+
database: string;
|
17
|
+
connectionString: string;
|
18
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"mongoDb.types.js","sourceRoot":"","sources":["../../../nodes/MongoDb/mongoDb.types.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg height="64" viewBox="0 0 32 32" width="64" xmlns="http://www.w3.org/2000/svg"><path d="M15.9.087l.854 1.604c.192.296.4.558.645.802a22.406 22.406 0 012.004 2.266c1.447 1.9 2.423 4.01 3.12 6.292.418 1.394.645 2.824.662 4.27.07 4.323-1.412 8.035-4.4 11.12a12.7 12.7 0 01-1.57 1.342c-.296 0-.436-.227-.558-.436a3.589 3.589 0 01-.436-1.255c-.105-.523-.174-1.046-.14-1.586v-.244C16.057 24.21 15.796.21 15.9.087z" fill="#599636"/><path d="M15.9.034c-.035-.07-.07-.017-.105.017.017.35-.105.662-.296.96-.21.296-.488.523-.767.767-1.55 1.342-2.77 2.963-3.747 4.776-1.3 2.44-1.97 5.055-2.16 7.808-.087.993.314 4.497.627 5.508.854 2.684 2.388 4.933 4.375 6.885.488.47 1.01.906 1.55 1.325.157 0 .174-.14.21-.244a4.78 4.78 0 00.157-.68l.35-2.614z" fill="#6cac48"/><path d="M16.754 28.845c.035-.4.227-.732.436-1.063-.21-.087-.366-.26-.488-.453a3.235 3.235 0 01-.26-.575c-.244-.732-.296-1.5-.366-2.248v-.453c-.087.07-.105.662-.105.75a17.37 17.37 0 01-.314 2.353c-.052.314-.087.627-.28.906 0 .035 0 .07.017.122.314.924.4 1.865.453 2.824v.35c0 .418-.017.33.33.47.14.052.296.07.436.174.105 0 .122-.087.122-.157l-.052-.575v-1.604c-.017-.28.035-.558.07-.82z" fill="#c2bfbf"/></svg>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"name": "n8n-nodes-mongo-oid-fix",
|
3
|
+
"version": "1.0.3",
|
4
|
+
"description": "n8n community node to use mongo and BSON ObjectID",
|
5
|
+
"keywords": [
|
6
|
+
"n8n-community-node-package"
|
7
|
+
],
|
8
|
+
"license": "MIT",
|
9
|
+
"author": {
|
10
|
+
"name": "Victor",
|
11
|
+
"email": "ovetoro@hotmail.com"
|
12
|
+
},
|
13
|
+
"repository": {
|
14
|
+
"type": "git",
|
15
|
+
"url": "https://github.com/vitusan/n8n-nodes-mongo-oid"
|
16
|
+
},
|
17
|
+
"main": "index.js",
|
18
|
+
"scripts": {
|
19
|
+
"build": "tsc && gulp build:icons",
|
20
|
+
"dev": "tsc --watch",
|
21
|
+
"format": "prettier nodes --write",
|
22
|
+
"lint": "eslint nodes package.json",
|
23
|
+
"lintfix": "eslint nodes package.json --fix",
|
24
|
+
"prepublishOnly": "npm run build && npm run lint -c .eslintrc.prepublish.js nodes package.json"
|
25
|
+
},
|
26
|
+
"files": [
|
27
|
+
"dist"
|
28
|
+
],
|
29
|
+
"n8n": {
|
30
|
+
"n8nNodesApiVersion": 1,
|
31
|
+
"nodes": [
|
32
|
+
"dist/nodes/MongoDb/MongoDb.node.js"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
"devDependencies": {
|
36
|
+
"@types/express": "^4.17.6",
|
37
|
+
"@types/lodash": "^4.14.202",
|
38
|
+
"@types/request-promise-native": "~1.0.15",
|
39
|
+
"@typescript-eslint/parser": "~5.45",
|
40
|
+
"eslint-plugin-n8n-nodes-base": "^1.11.0",
|
41
|
+
"gulp": "^4.0.2",
|
42
|
+
"n8n-core": "*",
|
43
|
+
"n8n-workflow": "*",
|
44
|
+
"prettier": "^2.7.1",
|
45
|
+
"typescript": "~4.8.4"
|
46
|
+
},
|
47
|
+
"dependencies": {
|
48
|
+
"bson": "^6.10.4",
|
49
|
+
"lodash": "^4.17.21",
|
50
|
+
"mongodb": "^6.4.0"
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"program":{"fileNames":["../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es5.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/.pnpm/typescript@4.8.4/node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/.pnpm/axios@1.8.2/node_modules/axios/index.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/ts5.1/compatibility/disposable.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/utility.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/header.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/readable.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/fetch.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/formdata.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/connector.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/client.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/errors.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/dispatcher.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/global-dispatcher.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/global-origin.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/pool-stats.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/pool.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/handlers.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/balanced-pool.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/h2c-client.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/agent.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/mock-interceptor.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/mock-call-history.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/mock-agent.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/mock-client.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/mock-pool.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/mock-errors.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/proxy-agent.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/retry-handler.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/retry-agent.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/api.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/cache-interceptor.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/interceptors.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/util.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/cookies.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/patch.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/websocket.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/eventsource.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/content-type.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/cache.d.ts","../node_modules/.pnpm/undici-types@7.8.0/node_modules/undici-types/index.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/globals.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/assert.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/assert/strict.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/async_hooks.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/buffer.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/child_process.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/cluster.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/console.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/constants.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/crypto.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/dgram.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/dns.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/dns/promises.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/domain.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/dom-events.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/events.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/fs.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/fs/promises.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/http.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/http2.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/https.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/inspector.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/module.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/net.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/os.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/path.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/perf_hooks.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/process.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/punycode.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/querystring.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/readline.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/readline/promises.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/repl.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/sea.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/sqlite.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/stream.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/stream/promises.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/stream/consumers.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/stream/web.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/string_decoder.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/test.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/timers.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/timers/promises.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/tls.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/trace_events.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/tty.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/url.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/util.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/v8.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/vm.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/wasi.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/worker_threads.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/zlib.d.ts","../node_modules/.pnpm/@types+node@24.1.0/node_modules/@types/node/ts5.1/index.d.ts","../node_modules/.pnpm/@types+mime@1.3.5/node_modules/@types/mime/index.d.ts","../node_modules/.pnpm/@types+send@0.17.5/node_modules/@types/send/index.d.ts","../node_modules/.pnpm/@types+qs@6.14.0/node_modules/@types/qs/index.d.ts","../node_modules/.pnpm/@types+range-parser@1.2.7/node_modules/@types/range-parser/index.d.ts","../node_modules/.pnpm/@types+express-serve-static-core@4.19.6/node_modules/@types/express-serve-static-core/index.d.ts","../node_modules/.pnpm/@types+http-errors@2.0.5/node_modules/@types/http-errors/index.d.ts","../node_modules/.pnpm/@types+serve-static@1.15.8/node_modules/@types/serve-static/index.d.ts","../node_modules/.pnpm/@types+connect@3.4.38/node_modules/@types/connect/index.d.ts","../node_modules/.pnpm/@types+body-parser@1.19.6/node_modules/@types/body-parser/index.d.ts","../node_modules/.pnpm/@types+express@4.17.23/node_modules/@types/express/index.d.ts","../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Constants.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/DeferredPromise.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/error.types.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/base/base.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/base/operational.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/base/unexpected.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/base/user.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/application.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/abstract/execution-base.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/expression.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/execution-cancelled.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/abstract/node.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/node-api.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/node-operation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/node-ssl.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/workflow-activation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/webhook-taken.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/workflow-deactivation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/workflow-operation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/subworkflow-operation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/cli-subworkflow-operation.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/trigger-close.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/expression-extension.error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/db-connection-timeout-error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/ensure-error.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/errors/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/ExecutionStatus.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/result.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Expression.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Workflow.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/WorkflowDataProxyEnvProvider.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Interfaces.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/LoggerProxy.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/types.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/namedTypes.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/kinds.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/builders.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/types.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/path.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/scope.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/node-path.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/gen/visitor.d.ts","../node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/main.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/options.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/parser.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/printer.d.ts","../node_modules/.pnpm/recast@0.22.0/node_modules/recast/main.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.6/node_modules/@n8n/tournament/dist/ExpressionSplitter.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/namedTypes.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/kinds.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/builders.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/types.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/scope.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/node-path.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/gen/visitor.d.ts","../node_modules/.pnpm/ast-types@0.16.1/node_modules/ast-types/lib/main.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.6/node_modules/@n8n/tournament/dist/ast.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.6/node_modules/@n8n/tournament/dist/ExpressionBuilder.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.6/node_modules/@n8n/tournament/dist/Evaluator.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.6/node_modules/@n8n/tournament/dist/Analysis.d.ts","../node_modules/.pnpm/@n8n+tournament@1.0.6/node_modules/@n8n/tournament/dist/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/ExpressionEvaluatorProxy.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/NodeHelpers.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/ObservableObject.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/TelemetryHelpers.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Cron.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/GlobalState.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/MessageEventBus.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/helpers/typeAliases.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/helpers/util.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/ZodError.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/locales/en.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/errors.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/helpers/parseUtil.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/helpers/enumUtil.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/helpers/errorUtil.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/helpers/partialUtil.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/standard-schema.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/types.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/external.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/lib/index.d.ts","../node_modules/.pnpm/zod@3.24.1/node_modules/zod/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/FromAIParseUtils.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/MetadataUtils.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/WorkflowDataProxy.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/VersionedNodeType.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/TypeValidation.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/utils.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/type-guards.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Extensions/Extensions.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Extensions/ExpressionExtension.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Extensions/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/Extensions/ExpressionParser.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/NativeMethods/index.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/NodeParameters/FilterParameter.d.ts","../node_modules/.pnpm/n8n-workflow@1.82.0/node_modules/n8n-workflow/dist/index.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/common.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/array.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/collection.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/date.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/function.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/lang.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/math.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/number.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/object.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/seq.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/string.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/common/util.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/index.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/get.d.ts","../node_modules/.pnpm/@types+lodash@4.17.20/node_modules/@types/lodash/set.d.ts","../node_modules/.pnpm/bson@6.10.4/node_modules/bson/bson.d.ts","../node_modules/.pnpm/mongodb@6.18.0_@aws-sdk+credential-providers@3.859.0_socks@2.8.6/node_modules/mongodb/mongodb.d.ts","../utils/utilities.ts","../nodes/MongoDb/mongoDb.types.ts","../nodes/MongoDb/GenericFunctions.ts","../nodes/MongoDb/MongoDbProperties.ts","../nodes/MongoDb/MongoDb.node.ts","../nodes/MongoDb/MongoDb.node.json","../package.json","../node_modules/.pnpm/@types+caseless@0.12.5/node_modules/@types/caseless/index.d.ts","../node_modules/.pnpm/form-data@2.5.5/node_modules/form-data/index.d.ts","../node_modules/.pnpm/@types+tough-cookie@4.0.5/node_modules/@types/tough-cookie/index.d.ts","../node_modules/.pnpm/@types+request@2.48.13/node_modules/@types/request/index.d.ts","../node_modules/.pnpm/@types+request-promise-native@1.0.21/node_modules/@types/request-promise-native/index.d.ts"],"fileInfos":[{"version":"f20c05dbfe50a208301d2a1da37b9931bce0466eb5a1f4fe240971b4ecc82b67","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"55f400eec64d17e888e278f4def2f254b41b89515d3b88ad75d5e05f019daddd","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":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","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":"775d9c9fd150d5de79e0450f35bc8b8f94ae64e3eb5da12725ff2a649dccc777","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},"dc602ef9638db2163c461ec64133fe76f890f6e03b69b1c96f5c5e59592025e8",{"version":"6876211ece0832abdfe13c43c65a555549bb4ca8c6bb4078d68cf923aeb6009e","affectsGlobalScope":true},{"version":"394fda71d5d6bd00a372437dff510feab37b92f345861e592f956d6995e9c1ce","affectsGlobalScope":true},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true},{"version":"c564fc7c6f57b43ebe0b69bc6719d38ff753f6afe55dadf2dba36fb3558f39b6","affectsGlobalScope":true},{"version":"109b9c280e8848c08bf4a78fff1fed0750a6ca1735671b5cf08b71bae5448c03","affectsGlobalScope":true},"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","e525f9e67f5ddba7b5548430211cae2479070b70ef1fd93550c96c10529457bd","ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","17fe9131bec653b07b0a1a8b99a830216e3e43fe0ea2605be318dc31777c8bbf","3c8e93af4d6ce21eb4c8d005ad6dc02e7b5e6781f429d52a35290210f495a674","2c9875466123715464539bfd69bcaccb8ff6f3e217809428e0d7bd6323416d01","ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","2472ef4c28971272a897fdb85d4155df022e1f5d9a474a526b8fc2ef598af94e","6c8e442ba33b07892169a14f7757321e49ab0f1032d676d321a1fdab8a67d40c","b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","1cd673d367293fc5cb31cd7bf03d598eb368e4f31f39cf2b908abbaf120ab85a","19851a6596401ca52d42117108d35e87230fc21593df5c4d3da7108526b6111c","3825bf209f1662dfd039010a27747b73d0ef379f79970b1d05601ec8e8a4249f","0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","40bfc70953be2617dc71979c14e9e99c5e65c940a4f1c9759ddb90b0f8ff6b1a","da52342062e70c77213e45107921100ba9f9b3a30dd019444cf349e5fb3470c4","e9ace91946385d29192766bf783b8460c7dbcbfc63284aa3c9cae6de5155c8bc","40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","561c60d8bfe0fec2c08827d09ff039eca0c1f9b50ef231025e5a549655ed0298","1e30c045732e7db8f7a82cf90b516ebe693d2f499ce2250a977ec0d12e44a529","84b736594d8760f43400202859cda55607663090a43445a078963031d47e25e7","499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","78b29846349d4dfdd88bd6650cc5d2baaa67f2e89dc8a80c8e26ef7995386583","5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","e38d4fdf79e1eadd92ed7844c331dbaa40f29f21541cfee4e1acff4db09cda33","8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","7c10a32ae6f3962672e6869ee2c794e8055d8225ef35c91c0228e354b4e5d2d3","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","99f569b42ea7e7c5fe404b2848c0893f3e1a56e0547c1cd0f74d5dbb9a9de27e",{"version":"f4b4faedc57701ae727d78ba4a83e466a6e3bdcbe40efbf913b17e860642897c","affectsGlobalScope":true},"bbcfd9cd76d92c3ee70475270156755346c9086391e1b9cb643d072e0cf576b8","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7",{"version":"003ec918ec442c3a4db2c36dc0c9c766977ea1c8bcc1ca7c2085868727c3d3f6","affectsGlobalScope":true},"938f94db8400d0b479626b9006245a833d50ce8337f391085fad4af540279567","c4e8e8031808b158cfb5ac5c4b38d4a26659aec4b57b6a7e2ba0a141439c208c",{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true},"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a",{"version":"12fb9c13f24845000d7bd9660d11587e27ef967cbd64bd9df19ae3e6aa9b52d4","affectsGlobalScope":true},"289e9894a4668c61b5ffed09e196c1f0c2f87ca81efcaebdf6357cfb198dac14","25a1105595236f09f5bce42398be9f9ededc8d538c258579ab662d509aa3b98e","5078cd62dbdf91ae8b1dc90b1384dec71a9c0932d62bdafb1a811d2a8e26bef2","a2e2bbde231b65c53c764c12313897ffdfb6c49183dd31823ee2405f2f7b5378","ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c",{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true},{"version":"62f572306e0b173cc5dfc4c583471151f16ef3779cf27ab96922c92ec82a3bc8","affectsGlobalScope":true},"dd2fcf3359dc2dacc5198ae764d5179e3dc096295c37e8241fdce324a99ff1ee","0ab3c844f1eb5a1d94c90edc346a25eb9d3943af7a7812f061bf2d627d8afac0","bd8b644c5861b94926687618ec2c9e60ad054d334d6b7eb4517f23f53cb11f91","161f09445a8b4ba07f62ae54b27054e4234e7957062e34c6362300726dabd315","77fced47f495f4ff29bb49c52c605c5e73cd9b47d50080133783032769a9d8a6","a828998f5c017ec1356a7d07e66c7fc8a6b009d451c2bdc3be8ccb4f424316d2",{"version":"34ecb9596317c44dab586118fb62c1565d3dad98d201cd77f3e6b0dde453339c","affectsGlobalScope":true},"0f5cda0282e1d18198e2887387eb2f026372ebc4e11c4e4516fef8a19ee4d514","e99b0e71f07128fc32583e88ccd509a1aaa9524c290efb2f48c22f9bf8ba83b1","76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86",{"version":"237581f5ec4620a17e791d3bb79bad3af01e27a274dbee875ac9b0721a4fe97d","affectsGlobalScope":true},{"version":"a8a99a5e6ed33c4a951b67cc1fd5b64fd6ad719f5747845c165ca12f6c21ba16","affectsGlobalScope":true},"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","e6d81b1f7ab11dc1b1ad7ad29fcfad6904419b36baf55ed5e80df48d56ac3aff","1013eb2e2547ad8c100aca52ef9df8c3f209edee32bb387121bb3227f7c00088","b6b8e3736383a1d27e2592c484a940eeb37ec4808ba9e74dd57679b2453b5865","d6f36b683c59ac0d68a1d5ee906e578e2f5e9a285bca80ff95ce61cdc9ddcdeb","37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093",{"version":"12aad38de6f0594dc21efa78a2c1f67bf6a7ef5a389e05417fe9945284450908","affectsGlobalScope":true},"ea713aa14a670b1ea0fbaaca4fd204e645f71ca7653a834a8ec07ee889c45de6","b338a6e6c1d456e65a6ea78da283e3077fe8edf7202ae10490abbba5b952b05e",{"version":"2918b7c516051c30186a1055ebcdb3580522be7190f8a2fff4100ea714c7c366","affectsGlobalScope":true},"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","982efeb2573605d4e6d5df4dc7e40846bda8b9e678e058fc99522ab6165c479e","e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055",{"version":"d67fc92a91171632fc74f413ce42ff1aa7fbcc5a85b127101f7ec446d2039a1f","affectsGlobalScope":true},{"version":"d40e4631100dbc067268bce96b07d7aff7f28a541b1bfb7ef791c64a696b3d33","affectsGlobalScope":true},"784490137935e1e38c49b9289110e74a1622baf8a8907888dcbe9e476d7c5e44","42180b657831d1b8fead051698618b31da623fb71ff37f002cb9d932cfa775f1","4f98d6fb4fe7cbeaa04635c6eaa119d966285d4d39f0eb55b2654187b0b27446",{"version":"e4c653466d0497d87fa9ffd00e59a95f33bc1c1722c3f5c84dab2e950c18da70","affectsGlobalScope":true},"e6dcc3b933e864e91d4bea94274ad69854d5d2a1311a4b0e20408a57af19e95d","2119ab23f794e7b563cc1a005b964e2f59b8ebcb3dfe2ce61d0c782bfd5e02a2","d3f2d715f57df3f04bf7b16dde01dec10366f64fce44503c92b8f78f614c1769","b78cd10245a90e27e62d0558564f5d9a16576294eee724a59ae21b91f9269e4a","baac9896d29bcc55391d769e408ff400d61273d832dd500f21de766205255acb","2f5747b1508ccf83fad0c251ba1e5da2f5a30b78b09ffa1cfaf633045160afed",{"version":"a45c25e77c911c1f2a04cade78f6f42b4d7d896a3882d4e226efd3a3fcd5f2c4","affectsGlobalScope":true},"b71c603a539078a5e3a039b20f2b0a0d1708967530cf97dec8850a9ca45baa2b","0e13570a7e86c6d83dd92e81758a930f63747483e2cd34ef36fcdb47d1f9726a","104c67f0da1bdf0d94865419247e20eded83ce7f9911a1aa75fc675c077ca66e","cc0d0b339f31ce0ab3b7a5b714d8e578ce698f1e13d7f8c60bfb766baeb1d35c","5c45abf1e13e4463eacfd5dedda06855da8748a6a6cb3334f582b52e219acc04","736097ddbb2903bef918bb3b5811ef1c9c5656f2a73bd39b22a91b9cc2525e50","8093df4b6de7728cd3327b33ce2846cb808e3b738b55f380578ab47fb1a0a82f","a0981ee0c7ac06bdb575558bd09bac190e1c0c7888ddcb63d8bf648f23a30e8c","b047c5f4612ebd6f142d2eda135939c6808ac082b2251a36e9e002b96f04ca18","816c068d57010d183fa4dce821e6552a912cb654cf9f0e840f49f0a0fb3d2157","5ca59af607163e4c0b2350019394132c6fd5d643ecc13d5d2692084c23eb74fc","ebc356c4f81035935ebddc0e1c7818038b78043d349d58e1042aa1c0579b5600","fc73b467be17d21f268b1dae8e63c269e8eba711d6d3faf3c5e525383ac5b461","4ba081d644e7e33dc2fa68f4bf7b963cbf9838092a10f0f7d5dcc98095012bfb","7c1d9666b46748a09c7c290f2cad37d32d0a395c4fc49357f0f7b32cd2dc7d97","054eafa956d5592e6a91c2553e5657ee3032ed50121a65da1079c96d82631459","01d56fcd8d2968c9545f42ab80c1e6a43be249dadeb2d38262b888370ebbdf32","cf53b1ef37bdf9eacfe04a5c0977793a87fbdd8d6893aa513075fa656c2f7638","bfccff2a7a1a17431408d48ec6ef5f54c42d1a1650b97e291c63de8b07333ccb","ab8790af6d4be130bd0faaba17d6a1d6394b21a643af03be4827fd7f8664caac","37020cf15e16fa6e1c6e2485cd51d6cbe74adee3b860ab49fb7528ca7e8e518e","2f83df884805baffce941efa67d2e459f09d82ae5f03b35771eea7bb9875346b","1950d2a49c05c7aa6decfe409b552c4ea5fb156894cf0541b34999819bd778ea","32fe829960ff7120843f6dd20197e863aee3e81ecded415641a7500654d1bda7","0b8d5b22b236fff7e23f3a5d1ddeb80bee6630bd35b1bf1c3efae226f08a1c3d","393b1ed0dca4f0aac333e65f2e40dfedfa8b37ac60571e02b152d32d8c84d340","f46d50c283425bcc59d68ccf067b3672fb727f802652dc7d60d2e470fb956370","38e7ca4f87ae169831eee751ad1b043b672bc9f328c0d44ec5a1bed98756a0b4","0b4b6ca509cdb152e18ceeed526d17bb416e7e518508d859a0174977195f9a35","124e0f6c51420174212b8d23f9a53d5d781d4777995164f1fb64957eac658ce7","c7da212302d6bfa21317461599d24e8077b34664b4ed409c4c02a3d5fe31efaf","bf070df468371021e0dd0ad9ab7918b3f94254044136bf711c7e0e855f75309e","3226c2a2af36d14aa551babd4154ad18042c0deb1509a61058c6b066cfddc30a","191d027b3924d5046fbf118bae0987969b9e03eba478ad34d2572244720ddb3c","14f2edd0618d9adaf83d22b55155ec41faddac678b4d158c8380e4325c8b36b6","72c9243dfd255afefe50d511f215053083a79db363d12e7e394ba78462be9e1b","2fbcb6bb6ffd69437452ca3029458f3c81a92b72aa71922df931cc4d373fffc1","8515d09f98ff2e7251cc970e74af5a0790caa52abc02d412ae87cbc6e47239ca","6d5438d567004aa049a2cdcad7aa2c3d671c9e74a0209297935b12bc16c3cf38","e78705f977ecfcc36de9ab57841ad7a617ef649b07a995577fd857f1d175f730","5083850590c7890ffb680f0c9838f48b07eb8b2f7dbe02874858fcac0691705d","02a4a2284d423d8ccc3a77aa9257c34fdac28cddfb46f73178e60f6a1b1b31e9","3ee8e014aab37dbd755401967fbb9602221550038f6b8da6cedd5291a918ae0a","826f3c6a6d737e0d330522094a21cde94a202c5373448240ba483709cb829aec","7e4a23f6f3763da4a06900935d22acfd463c375cada5ab325e3980bd6c95d5b3","f3e045e81b47113fa02aaf9637b9ef84347610aaceda60a0d8316aabc3f03638","1bfe6db4f3dffacd1da82748cb8f0acec04e8a4d7bd36c09573d5d80a7dec28b","6a8d6deca8ec4250630fea4e5f23bd9bf0face98739ccd22e08a17173117155b","226dbfe4506447111bd898161d47850f8c57f04cbb6a3a6d487b7939dbf89b1b","13f846a45f738733c8a63a06eaa9f580e9c07eb7aed5d8a2c674114846a42175","9d14fcf0b69094271127c7b6acb36987be5d1bffa4eb948359549f040fb50349","e3a5287471fb08f053c06fd998632792aa5f022e45278f1e6dd55fb2fa9e7362","28a6c8eeb48e165920067b9193555649fc43c2a28c450f23f622e5eb043d9463","1147c3efa5a256bcd6a3d2cfaf764185b7120bf985f8412d9bae596a0348f77b","0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","0295c7a5d5d956391ab9bf0410e73a89e25fe26810f9a1d823cc794d682cdafc","19826a846db870c2261a3c4cf0695df889d9fe3eebe7775f3f5bc76fe7ad07a7","e04cafd03370139cdb0c846273cb19eb4264be0073c7baf78e9b2c16ffb74813","7c01c77fb7d8664daa64819245d785e106e0a3cb6e43da64346e4400d7fa9401","8c2ca98f4713d989d610fbd38a44316bc43c50aa26983e62dc31002f32ce63fa","ee931610d1cf7a6e666fad138187751392fc88bee931b94ac8c4571208dc7370","53543b3b64e624a81fc5876da6d72c94dd87655e7afc10988cf82ce7cbc74180","967e68e99b8a80551837321442a0e2f12ef50aa1ce567ec991ac6bf062a0c7cf","144ab2f3ef7404caf39c6acc88d248d7e55ab3dd1c4c0d89367ad12169aec113","759002d4454b851c51b3585e0837c77d159c59957fc519c876449ee5d80a6643","1ff2be5eb8b9b508603019df9f851240e57360a9417e672bf4de9d3495833f81","8263aed8d77f5b9a10de995c8efd14ea0e5bc54e2b4525178b643f5b24f90f1d","a7e7df52af8795560306e4b354e6670d978c59a87dd78b81e58656890c5ed451","d6220bee7bd245bc2a377f1a8ef31c496132cc9c7e7e3937e7dd4cbbcec0b38d","7686d52e8cbd036b9ca265490c31e36945a52ef3a9e726523d36b02befec7331","0f55c8c4605355ddea9fdd104ea0cb089e6ce7f41165fdc72d08247665dba0d4","9cc46a5cf6e8b232bb86abfd0c0ed4e0fd25d95aa3d2930e4705b078d29e51ec","edd5e20e9eb8cb2eaf941d431af3ab69a9b94e7f5d8699b4c938fee1be8d53c4","edcb8d46132756662651f6a42656aaeced2e221d0929411fb0a62c906f9873dd","382d2239e60b72282adfeb672e22e6df4de3737ce7e5df2151823dab489496ba","304b0d21771513c0a36ed7179a9d1069bfa776e95f50b789ce898f3ef2b71514","a42e1c2eec0e747163afa705044664a39065215a8d66c930f8d43f118a9bc044","d3cfde44f8089768ebb08098c96d01ca260b88bccf238d55eee93f1c620ff5a5","b542939a35357458e62f8229c2d7578ae888d63d3ab837395d7bb8a3064c205e","3a5af4fba7b27b815bb40f52715aedebaa4b371da3e5a664e7e0798c9b638825","8485b6da53ec35637d072e516631d25dae53984500de70a6989058f24354666f","ebe80346928736532e4a822154eb77f57ef3389dbe2b3ba4e571366a15448ef2","49c632082dc8a916353288d3d8b2dc82b3471794249a381d090d960c8ceac908","f672c876c1a04a223cf2023b3d91e8a52bb1544c576b81bf64a8fec82be9969c","71addb585c2db7b8e53dc1b0bcfa58c6c67c6e4fa2b968942046749d66f82e7e","c76b0c5727302341d0bdfa2cc2cee4b19ff185b554edb6e8543f0661d8487116","25b3f581e12ede11e5739f57a86e8668fbc0124f6649506def306cad2c59d262","0320c5b275beb43649be5a818dfa83a2586ae110ac5bbb2c5eb7184e1fe3ca60","f5ef066942e4f0bd98200aa6a6694b831e73200c9b3ade77ad0aa2409e8fe1b1","b9e99cd94f4166a245f5158f7286c05406e2a4c694619bceb7a4f3519d1d768e","5568d7c32e5cf5f35e092649f4e5e168c3114c800b1d7545b7ae5e0415704802","378e26daa6ec402b81f5aea1ab47262d4f8ad8966037c26be75e8185366d09a1","4788f58342a67af140858e23a24cdf62457ec1ff79af68ac71b9d3c0c89bb53b","efb8488e3acac79cac5927eaa8069fffc1d37cc3b2c3213d0256e9e1be8276bc","951baa882e6e3e5026cb8a16f80a8bebec1caa35c3fa016c9a3ce6a338bd3123","361547594eb0fdbb5316523e4668c26ec483de464f53c4a0f65bbca573abae3e","afcef07b51d43cdd4e1bc0b92a3d84734cded5f12d764af090666afefb5a3676","3f6f70c077ed8d600aa24d8c0e83ba0dd5d2c5300d524cd2181efd30c0a62c72","b773bcdaeda86c0f58910cecd6c77a0bd60be763127c42cad5a64fe66799b1f6","0ca63470234437191f454f7f66b5815d79b59ebc636faa1de1194d282563e431","6d3b514475ee51ab5e99e4fc82ffcd6191d40c19dd197a1743111e0757c6f9c6","0494f89b64c5e8906ce5284194e09bad42b56837757d79cb9e62ce16aae88ab4","716c6fce977a188f23ee5165e4179944a63e8620784a7054fc0dd81f6c348bb4","cf2324583854e9b5dd489e537e2d46375ffb66169fbd947dea112898210ed9ff","b4b08a04e1861c2494437fad74c5c71f38a2f3d3cdd51fba70fcb072f3337b58","380b919bfa0516118edaf25b99e45f855e7bc3fd75ce4163a1cfe4a666388804","0b24a72109c8dd1b41f94abfe1bb296ba01b3734b8ac632db2c48ffc5dccaf01","fcf79300e5257a23ed3bacaa6861d7c645139c6f7ece134d15e6669447e5e6db","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","aa2c18a1b5a086bbcaae10a4efba409cc95ba7287d8cf8f2591b53704fea3dea","b88749bdb18fc1398370e33aa72bc4f88274118f4960e61ce26605f9b33c5ba2","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","a873c50d3e47c21aa09fbe1e2023d9a44efb07cc0cb8c72f418bf301b0771fd3","7c14ccd2eaa82619fffc1bfa877eb68a012e9fb723d07ee98db451fadb618906","49c36529ee09ea9ce19525af5bb84985ea8e782cb7ee8c493d9e36d027a3d019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","4f6a12044ee6f458db11964153830abbc499e73d065c51c329ec97407f4b13dd","8c7bb1d03e5607e5ad3d27f48e53dbe70b61372ea73d75000c9ead7ad2ac0fbd","05dd03486750d327568269b9f84aa51f15a066bcdc2ccefd8b592fb06fa3a371","359e7188a3ad226e902c43443a45f17bd53bf279596aece7761dc72ffa22b30d","9d971e281f4441eb933dd6d0350aafc12a71d74a2a93d4b16a497bf5d7a8ab4d",{"version":"751ccc72d65ea157fe3eab848f18fc55fd384abe21a6296d8b5c6d45e04f2c7d","signature":"e13aceef76d3d3eeff159de93a59a022a9a3bacb059f00dff1c75f046b5376f0"},{"version":"84320d9a2c7e648a7545548c36a347e3a4f2b0b537dca94caffcfe423b951f65","signature":"1361f3b1869fc03f3fa5db3577cd0686be3a005a6e011a416be64e993dba8e25"},{"version":"2217cc5f8114fc62051616c3928a8f88164d4068e9fe0f22019891f0210ac37c","signature":"8c821baf1b56f31c621acdf8bac7f6d37a4687b76d39888e5b91fc6d832aa344"},{"version":"6dc939b3bcdbad2625ff1062ee298ab31c0a74bae33c4c26ebc5df538808077d","signature":"62c9147f67b5cff5da0b7fa2e15c2c62914720b9f3d5067da7d933e366a7e7f4"},{"version":"eebfec59c50164cc1814f8485326135ea60ca46ff8aaa37ca8f078ec2eb91d47","signature":"52d9017cf72f1e820a2cd3f19d9131a2770e6cf1e867579a044aa4ed16a70364"},"f3780593e691be85416135b14937c5d29383c73bd2f8dcbb39d7495e7f871d4c",{"version":"3ac677b4eb851f903886bae5654416573ce64c811d2d941d9ab5b0faf34807ac","signature":"29aa3844467abd4a2b73b92ef9fd39954a97ec58a2ed8b5982b5b130b8ac1bc2"},"2174e20517788d2a1379fc0aaacd87899a70f9e0197b4295edabfe75c4db03d8","e91ad231af87f864b3f07cd0e39b1cf6c133988156f087c1c3ccb0a5491c9115","03c258e060b7da220973f84b89615e4e9850e9b5d30b3a8e4840b3e3268ae8eb","319c37263037e8d9481a3dc7eadf6afa6a5f5c002189ebe28776ac1a62a38e15","1be2d0ed4aa430cdb701033d3a740010f3e80935ff01ec3d9e894b2e4327cc7e"],"options":{"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"noImplicitReturns":true,"noUnusedLocals":true,"outDir":"./","preserveConstEnums":true,"removeComments":true,"skipLibCheck":true,"sourceMap":true,"strict":true,"strictNullChecks":true,"target":6,"useUnknownInCatchVariables":false},"fileIdsList":[[46,91,213],[46,91,216],[46,91,200,201,212],[46,91],[46,91,200,211],[46,91,212,213,214,215],[46,91,106,141,149,251],[46,91,106,141,251],[46,91,103,106,141,143,144,145,251],[46,91,144,146,148,150],[46,91,252,254,255,256,257,258,259,260,261,262,263,264],[46,91,252,253,255,256,257,258,259,260,261,262,263,264],[46,91,253,254,255,256,257,258,259,260,261,262,263,264],[46,91,252,253,254,256,257,258,259,260,261,262,263,264],[46,91,252,253,254,255,257,258,259,260,261,262,263,264],[46,91,252,253,254,255,256,258,259,260,261,262,263,264],[46,91,252,253,254,255,256,257,259,260,261,262,263,264],[46,91,252,253,254,255,256,257,258,260,261,262,263,264],[46,91,252,253,254,255,256,257,258,259,261,262,263,264],[46,91,252,253,254,255,256,257,258,259,260,262,263,264],[46,91,252,253,254,255,256,257,258,259,260,261,263,264],[46,91,252,253,254,255,256,257,258,259,260,261,262,264],[46,91,264],[46,91,252,253,254,255,256,257,258,259,260,261,262,263],[46,88,91],[46,90,91],[46,91,96,126],[46,91,92,97,103,104,111,123,134],[46,91,92,93,103,111],[46,91,94,135],[46,91,95,96,104,112],[46,91,96,123,131],[46,91,97,99,103,111],[46,90,91,98],[46,91,99,100],[46,91,101,103],[46,90,91,103],[46,91,103,104,105,123,134],[46,91,103,104,105,118,123,126],[46,86,91],[46,86,91,99,103,106,111,123,134,251],[46,91,103,104,106,107,111,123,131,134],[46,91,106,108,123,131,134],[46,91,103,109],[46,91,110,134],[46,91,99,103,111,123],[46,91,112],[46,91,113],[46,90,91,114],[46,88,89,90,91,92,93,94,95,96,97,98,99,100,101,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,251],[46,91,116],[46,91,117],[46,91,103,118,119],[46,91,118,120,135,137],[46,91,103,123,124,126],[46,91,125,126],[46,91,123,124],[46,91,126],[46,91,127],[46,88,91,123,128],[46,91,103,129,130],[46,91,129,130],[46,91,96,111,123,131],[46,91,132],[42,43,44,45,46,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140],[91],[46,91,111,133],[46,91,106,117,134],[46,91,96,135],[46,91,123,136],[46,91,110,137],[46,91,138],[46,91,103,105,114,123,126,134,136,137,139],[46,91,123,140],[46,91,106,251,279],[46,91,104,106,108,111,123,134,141,251,276,277,278],[46,91,104,123,141,142],[46,91,106,141,143,147,251],[46,91,187,188],[46,91,187],[46,91,186,188,190],[46,91,187,193,194],[46,91,186,190,191,192],[46,91,186,190,193,195],[46,91,186,190],[46,91,186,193],[46,91,186,187,189],[46,91,186,187,189,190,191,193,194,195],[46,91,202,203],[46,91,202],[46,91,203,205],[46,91,202,208,209],[46,91,202,204,205,206,208,209,210],[46,91,205,206,207],[46,91,205,208,210],[46,91,205],[46,91,205,208],[46,91,202,204],[46,91,106,123,141,251],[46,91,99,103,111,123,131,267],[46,91,184],[46,91,182,184],[46,91,184,216],[46,91,245],[46,91,245,246],[46,91,237],[41,46,91,104,106,123,131,134,151,152,153,154,162,165,166,168,171,178,179,180,182,183,251],[46,91,251],[46,91,160,184],[46,91,181,184],[46,91,182,183,184],[46,91,155,160,184],[46,91,161,184],[46,91,155],[46,91,156],[46,91,172],[46,91,160],[46,91,161],[46,91,162],[46,91,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[46,91,155,164,184],[46,91,164,165,184],[46,91,171],[46,91,168],[46,91,160,161,184],[46,91,106,153,154,178,179,180,181,182,183,184,185,217,218,219,220,221,222,223,238,239,240,241,242,243,244,247,248,249,250],[46,91,186],[46,91,197],[46,91,196,197,198,199],[46,56,60,91,134],[46,56,91,123,134],[46,91,123],[46,51,91],[46,53,56,91,134],[46,91,111,131],[46,91,141],[46,51,91,141],[46,53,56,91,111,134],[46,48,49,50,52,55,91,103,123,134],[46,56,64,91],[46,49,54,91],[46,56,80,81,91],[46,49,52,56,91,126,134,141],[46,56,91],[46,48,91],[46,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,81,82,83,84,85,91],[46,56,73,76,91,99],[46,56,64,65,66,91],[46,54,56,65,67,91],[46,55,91],[46,49,51,56,91],[46,56,60,65,67,91],[46,60,91],[46,54,56,59,91,134],[46,49,53,56,64,91],[46,56,73,91],[46,51,56,80,91,126,139,141],[46,91,236],[46,91,224,225,236],[46,91,226,227],[46,91,224,225,226,228,229,234],[46,91,225,226],[46,91,235],[46,91,226],[46,91,224,225,226,229,230,231,232,233],[46,91,131,251,265,266,268,269,270],[46,91,251,267,268,269,270,271,272],[251,268,270],[251]],"referencedMap":[[215,1],[214,2],[213,3],[201,4],[212,5],[216,6],[150,7],[276,4],[149,8],[146,9],[151,10],[147,4],[253,11],[254,12],[252,13],[255,14],[256,15],[257,16],[258,17],[259,18],[260,19],[261,20],[262,21],[263,22],[265,23],[264,24],[266,23],[142,4],[88,25],[89,25],[90,26],[91,27],[92,28],[93,29],[44,4],[94,30],[95,31],[96,32],[97,33],[98,34],[99,35],[100,35],[102,4],[101,36],[103,37],[104,38],[105,39],[87,40],[106,41],[107,42],[108,43],[109,44],[110,45],[111,46],[112,47],[113,48],[114,49],[115,50],[116,51],[117,52],[118,53],[119,53],[120,54],[121,4],[122,4],[123,55],[125,56],[124,57],[126,58],[127,59],[128,60],[129,61],[130,62],[131,63],[132,64],[42,4],[141,65],[46,66],[43,4],[45,4],[133,67],[134,68],[135,69],[136,70],[137,71],[138,72],[139,73],[140,74],[144,4],[145,4],[280,75],[279,76],[143,77],[148,78],[278,4],[189,79],[188,80],[187,81],[195,82],[193,83],[194,84],[191,85],[192,86],[190,87],[196,88],[186,4],[204,89],[203,90],[202,91],[210,92],[211,93],[208,94],[209,95],[206,96],[207,97],[205,98],[41,4],[267,4],[47,4],[277,99],[152,99],[268,100],[153,4],[221,101],[154,4],[179,4],[181,102],[217,103],[246,104],[248,4],[245,4],[247,105],[238,106],[222,4],[184,107],[185,101],[223,101],[239,108],[249,104],[218,102],[250,109],[219,101],[220,101],[242,101],[241,101],[182,110],[240,111],[183,4],[161,112],[164,113],[160,4],[156,114],[157,115],[158,115],[159,115],[173,116],[176,117],[177,4],[155,4],[163,118],[175,119],[162,118],[178,120],[165,121],[166,122],[167,118],[172,123],[174,112],[169,124],[168,125],[170,124],[171,113],[251,126],[180,4],[244,101],[243,101],[197,127],[198,128],[199,4],[200,129],[9,4],[8,4],[2,4],[10,4],[11,4],[12,4],[13,4],[14,4],[15,4],[16,4],[17,4],[3,4],[4,4],[21,4],[18,4],[19,4],[20,4],[22,4],[23,4],[24,4],[5,4],[25,4],[26,4],[27,4],[28,4],[6,4],[29,4],[30,4],[31,4],[32,4],[7,4],[33,4],[38,4],[39,4],[34,4],[35,4],[36,4],[37,4],[40,4],[1,4],[64,130],[75,131],[62,130],[76,132],[85,133],[54,134],[53,135],[84,136],[79,137],[83,138],[56,139],[72,140],[55,141],[82,142],[51,143],[52,137],[57,144],[58,4],[63,134],[61,144],[49,145],[86,146],[77,147],[67,148],[66,144],[68,149],[70,150],[65,151],[69,152],[80,136],[59,153],[60,154],[71,155],[50,132],[74,156],[73,144],[78,4],[48,4],[81,157],[237,158],[226,159],[228,160],[235,161],[230,4],[231,4],[229,162],[232,158],[224,4],[225,4],[236,163],[227,164],[233,4],[234,165],[271,166],[274,4],[273,167],[272,108],[270,4],[275,4],[269,108]],"exportedModulesMap":[[215,1],[214,2],[213,3],[201,4],[212,5],[216,6],[150,7],[276,4],[149,8],[146,9],[151,10],[147,4],[253,11],[254,12],[252,13],[255,14],[256,15],[257,16],[258,17],[259,18],[260,19],[261,20],[262,21],[263,22],[265,23],[264,24],[266,23],[142,4],[88,25],[89,25],[90,26],[91,27],[92,28],[93,29],[44,4],[94,30],[95,31],[96,32],[97,33],[98,34],[99,35],[100,35],[102,4],[101,36],[103,37],[104,38],[105,39],[87,40],[106,41],[107,42],[108,43],[109,44],[110,45],[111,46],[112,47],[113,48],[114,49],[115,50],[116,51],[117,52],[118,53],[119,53],[120,54],[121,4],[122,4],[123,55],[125,56],[124,57],[126,58],[127,59],[128,60],[129,61],[130,62],[131,63],[132,64],[42,4],[141,65],[46,66],[43,4],[45,4],[133,67],[134,68],[135,69],[136,70],[137,71],[138,72],[139,73],[140,74],[144,4],[145,4],[280,75],[279,76],[143,77],[148,78],[278,4],[189,79],[188,80],[187,81],[195,82],[193,83],[194,84],[191,85],[192,86],[190,87],[196,88],[186,4],[204,89],[203,90],[202,91],[210,92],[211,93],[208,94],[209,95],[206,96],[207,97],[205,98],[41,4],[267,4],[47,4],[277,99],[152,99],[268,100],[153,4],[221,101],[154,4],[179,4],[181,102],[217,103],[246,104],[248,4],[245,4],[247,105],[238,106],[222,4],[184,107],[185,101],[223,101],[239,108],[249,104],[218,102],[250,109],[219,101],[220,101],[242,101],[241,101],[182,110],[240,111],[183,4],[161,112],[164,113],[160,4],[156,114],[157,115],[158,115],[159,115],[173,116],[176,117],[177,4],[155,4],[163,118],[175,119],[162,118],[178,120],[165,121],[166,122],[167,118],[172,123],[174,112],[169,124],[168,125],[170,124],[171,113],[251,126],[180,4],[244,101],[243,101],[197,127],[198,128],[199,4],[200,129],[9,4],[8,4],[2,4],[10,4],[11,4],[12,4],[13,4],[14,4],[15,4],[16,4],[17,4],[3,4],[4,4],[21,4],[18,4],[19,4],[20,4],[22,4],[23,4],[24,4],[5,4],[25,4],[26,4],[27,4],[28,4],[6,4],[29,4],[30,4],[31,4],[32,4],[7,4],[33,4],[38,4],[39,4],[34,4],[35,4],[36,4],[37,4],[40,4],[1,4],[64,130],[75,131],[62,130],[76,132],[85,133],[54,134],[53,135],[84,136],[79,137],[83,138],[56,139],[72,140],[55,141],[82,142],[51,143],[52,137],[57,144],[58,4],[63,134],[61,144],[49,145],[86,146],[77,147],[67,148],[66,144],[68,149],[70,150],[65,151],[69,152],[80,136],[59,153],[60,154],[71,155],[50,132],[74,156],[73,144],[78,4],[48,4],[81,157],[237,158],[226,159],[228,160],[235,161],[230,4],[231,4],[229,162],[232,158],[224,4],[225,4],[236,163],[227,164],[233,4],[234,165],[271,168],[274,4],[273,169],[272,169],[269,169]],"semanticDiagnosticsPerFile":[215,214,213,201,212,216,150,276,149,146,151,147,253,254,252,255,256,257,258,259,260,261,262,263,265,264,266,142,88,89,90,91,92,93,44,94,95,96,97,98,99,100,102,101,103,104,105,87,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,125,124,126,127,128,129,130,131,132,42,141,46,43,45,133,134,135,136,137,138,139,140,144,145,280,279,143,148,278,189,188,187,195,193,194,191,192,190,196,186,204,203,202,210,211,208,209,206,207,205,41,267,47,277,152,268,153,221,154,179,181,217,246,248,245,247,238,222,184,185,223,239,249,218,250,219,220,242,241,182,240,183,161,164,160,156,157,158,159,173,176,177,155,163,175,162,178,165,166,167,172,174,169,168,170,171,251,180,244,243,197,198,199,200,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,6,29,30,31,32,7,33,38,39,34,35,36,37,40,1,64,75,62,76,85,54,53,84,79,83,56,72,55,82,51,52,57,58,63,61,49,86,77,67,66,68,70,65,69,80,59,60,71,50,74,73,78,48,81,237,226,228,235,230,231,229,232,224,225,236,227,233,234,271,274,273,272,270,275,269]},"version":"4.8.4"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.generatePairedItemData = exports.formatPrivateKey = void 0;
|
4
|
+
function formatPrivateKey(privateKey) {
|
5
|
+
if (!privateKey || /\n/.test(privateKey)) {
|
6
|
+
return privateKey;
|
7
|
+
}
|
8
|
+
let formattedPrivateKey = '';
|
9
|
+
const parts = privateKey.split('-----').filter((item) => item !== '');
|
10
|
+
parts.forEach((part) => {
|
11
|
+
const regex = /(PRIVATE KEY|CERTIFICATE)/;
|
12
|
+
if (regex.test(part)) {
|
13
|
+
formattedPrivateKey += `-----${part}-----`;
|
14
|
+
}
|
15
|
+
else {
|
16
|
+
const passRegex = /Proc-Type|DEK-Info/;
|
17
|
+
if (passRegex.test(part)) {
|
18
|
+
part = part.replace(/:\s+/g, ':');
|
19
|
+
formattedPrivateKey += part.replace(/\\n/g, '\n').replace(/\s+/g, '\n');
|
20
|
+
}
|
21
|
+
else {
|
22
|
+
formattedPrivateKey += part.replace(/\\n/g, '\n').replace(/\s+/g, '\n');
|
23
|
+
}
|
24
|
+
}
|
25
|
+
});
|
26
|
+
return formattedPrivateKey;
|
27
|
+
}
|
28
|
+
exports.formatPrivateKey = formatPrivateKey;
|
29
|
+
function generatePairedItemData(length) {
|
30
|
+
return Array.from({ length }, (_, item) => ({
|
31
|
+
item,
|
32
|
+
}));
|
33
|
+
}
|
34
|
+
exports.generatePairedItemData = generatePairedItemData;
|
35
|
+
//# sourceMappingURL=utilities.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utilities.js","sourceRoot":"","sources":["../../utils/utilities.ts"],"names":[],"mappings":";;;AAUA,SAAgB,gBAAgB,CAAC,UAAkB;IAClD,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;QACzC,OAAO,UAAU,CAAC;KAClB;IACD,IAAI,mBAAmB,GAAG,EAAE,CAAC;IAC7B,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QACtB,MAAM,KAAK,GAAG,2BAA2B,CAAC;QAC1C,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YACrB,mBAAmB,IAAI,QAAQ,IAAI,OAAO,CAAC;SAC3C;aAAM;YACN,MAAM,SAAS,GAAG,oBAAoB,CAAC;YACvC,IAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACzB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;gBAClC,mBAAmB,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;aACxE;iBAAM;gBACN,mBAAmB,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;aACxE;SACD;IACF,CAAC,CAAC,CAAC;IACH,OAAO,mBAAmB,CAAC;AAC5B,CAAC;AArBD,4CAqBC;AAED,SAAgB,sBAAsB,CAAC,MAAc;IACpD,OAAO,KAAK,CAAC,IAAI,CAAC,EAAC,MAAM,EAAC,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;QACzC,IAAI;KACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,wDAIC"}
|
package/index.js
ADDED
File without changes
|
package/package.json
ADDED
@@ -0,0 +1,52 @@
|
|
1
|
+
{
|
2
|
+
"name": "n8n-nodes-mongo-oid-fix",
|
3
|
+
"version": "1.0.3",
|
4
|
+
"description": "n8n community node to use mongo and BSON ObjectID",
|
5
|
+
"keywords": [
|
6
|
+
"n8n-community-node-package"
|
7
|
+
],
|
8
|
+
"license": "MIT",
|
9
|
+
"author": {
|
10
|
+
"name": "Victor",
|
11
|
+
"email": "ovetoro@hotmail.com"
|
12
|
+
},
|
13
|
+
"repository": {
|
14
|
+
"type": "git",
|
15
|
+
"url": "https://github.com/vitusan/n8n-nodes-mongo-oid"
|
16
|
+
},
|
17
|
+
"main": "index.js",
|
18
|
+
"scripts": {
|
19
|
+
"build": "tsc && gulp build:icons",
|
20
|
+
"dev": "tsc --watch",
|
21
|
+
"format": "prettier nodes --write",
|
22
|
+
"lint": "eslint nodes package.json",
|
23
|
+
"lintfix": "eslint nodes package.json --fix",
|
24
|
+
"prepublishOnly": "npm run build && npm run lint -c .eslintrc.prepublish.js nodes package.json"
|
25
|
+
},
|
26
|
+
"files": [
|
27
|
+
"dist"
|
28
|
+
],
|
29
|
+
"n8n": {
|
30
|
+
"n8nNodesApiVersion": 1,
|
31
|
+
"nodes": [
|
32
|
+
"dist/nodes/MongoDb/MongoDb.node.js"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
"devDependencies": {
|
36
|
+
"@types/express": "^4.17.6",
|
37
|
+
"@types/lodash": "^4.14.202",
|
38
|
+
"@types/request-promise-native": "~1.0.15",
|
39
|
+
"@typescript-eslint/parser": "~5.45",
|
40
|
+
"eslint-plugin-n8n-nodes-base": "^1.11.0",
|
41
|
+
"gulp": "^4.0.2",
|
42
|
+
"n8n-core": "*",
|
43
|
+
"n8n-workflow": "*",
|
44
|
+
"prettier": "^2.7.1",
|
45
|
+
"typescript": "~4.8.4"
|
46
|
+
},
|
47
|
+
"dependencies": {
|
48
|
+
"bson": "^6.10.4",
|
49
|
+
"lodash": "^4.17.21",
|
50
|
+
"mongodb": "^6.4.0"
|
51
|
+
}
|
52
|
+
}
|