@lowdefy/connection-google-sheets 4.0.0-rc.10 → 4.0.0-rc.12
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.
|
@@ -18,8 +18,8 @@ async function authenticate({ doc, apiKey, client_email, private_key }) {
|
|
|
18
18
|
doc.useApiKey(apiKey);
|
|
19
19
|
} else {
|
|
20
20
|
await doc.useServiceAccountAuth({
|
|
21
|
-
client_email
|
|
22
|
-
private_key
|
|
21
|
+
client_email,
|
|
22
|
+
private_key
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
*/ import { type } from '@lowdefy/helpers';
|
|
16
16
|
import mingo from 'mingo';
|
|
17
17
|
// TODO: fix build to work with:
|
|
18
|
-
|
|
19
|
-
import { useOperators, OperatorType } from 'mingo/core.js';
|
|
20
|
-
import * as accumulatorOperators from 'mingo/operators/accumulator/index.js';
|
|
21
|
-
import * as expressionOperators from 'mingo/operators/expression/index.js';
|
|
22
|
-
import * as pipelineOperators from 'mingo/operators/pipeline/index.js';
|
|
23
|
-
import * as queryOperators from 'mingo/operators/query/index.js';
|
|
24
|
-
import * as projectionOperators from 'mingo/operators/projection/index.js';
|
|
25
|
-
// "import * as" is returning different object structures when the connection is being
|
|
26
|
-
// imported in the build or when running the tests.
|
|
27
|
-
// So we check for the a default object with all the named exports, otherwise the
|
|
28
|
-
// returned object has all the named exports.
|
|
29
|
-
useOperators(OperatorType.ACCUMULATOR, accumulatorOperators.default || accumulatorOperators);
|
|
30
|
-
useOperators(OperatorType.EXPRESSION, expressionOperators.default || expressionOperators);
|
|
31
|
-
useOperators(OperatorType.PIPELINE, pipelineOperators.default || pipelineOperators);
|
|
32
|
-
useOperators(OperatorType.QUERY, queryOperators.default || queryOperators);
|
|
33
|
-
useOperators(OperatorType.PROJECTION, projectionOperators.default || projectionOperators);
|
|
18
|
+
import 'mingo/init/system';
|
|
19
|
+
// import { useOperators, OperatorType } from 'mingo/core.js';
|
|
20
|
+
// import * as accumulatorOperators from 'mingo/operators/accumulator/index.js';
|
|
21
|
+
// import * as expressionOperators from 'mingo/operators/expression/index.js';
|
|
22
|
+
// import * as pipelineOperators from 'mingo/operators/pipeline/index.js';
|
|
23
|
+
// import * as queryOperators from 'mingo/operators/query/index.js';
|
|
24
|
+
// import * as projectionOperators from 'mingo/operators/projection/index.js';
|
|
25
|
+
// // "import * as" is returning different object structures when the connection is being
|
|
26
|
+
// // imported in the build or when running the tests.
|
|
27
|
+
// // So we check for the a default object with all the named exports, otherwise the
|
|
28
|
+
// // returned object has all the named exports.
|
|
29
|
+
// useOperators(OperatorType.ACCUMULATOR, accumulatorOperators.default || accumulatorOperators);
|
|
30
|
+
// useOperators(OperatorType.EXPRESSION, expressionOperators.default || expressionOperators);
|
|
31
|
+
// useOperators(OperatorType.PIPELINE, pipelineOperators.default || pipelineOperators);
|
|
32
|
+
// useOperators(OperatorType.QUERY, queryOperators.default || queryOperators);
|
|
33
|
+
// useOperators(OperatorType.PROJECTION, projectionOperators.default || projectionOperators);
|
|
34
34
|
function mingoAggregation({ input = [], pipeline = [] }) {
|
|
35
35
|
if (!type.isArray(input)) {
|
|
36
36
|
throw new Error('Mingo aggregation error. Argument "input" should be an array.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/connection-google-sheets",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.12",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -41,21 +41,21 @@
|
|
|
41
41
|
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@lowdefy/helpers": "4.0.0-rc.
|
|
44
|
+
"@lowdefy/helpers": "4.0.0-rc.12",
|
|
45
45
|
"google-spreadsheet": "3.3.0",
|
|
46
|
-
"mingo": "6.
|
|
46
|
+
"mingo": "6.4.6",
|
|
47
47
|
"moment": "2.29.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@jest/globals": "28.1.3",
|
|
51
|
-
"@lowdefy/ajv": "4.0.0-rc.
|
|
51
|
+
"@lowdefy/ajv": "4.0.0-rc.12",
|
|
52
52
|
"@swc/cli": "0.1.62",
|
|
53
|
-
"@swc/core": "1.3.
|
|
54
|
-
"@swc/jest": "0.2.
|
|
53
|
+
"@swc/core": "1.3.92",
|
|
54
|
+
"@swc/jest": "0.2.29",
|
|
55
55
|
"jest": "28.1.3"
|
|
56
56
|
},
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "7f3059b6778b1cb8900b1d4456681b977521d45d"
|
|
61
61
|
}
|