@lowdefy/connection-knex 4.5.2 → 4.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connections/Knex/Knex.js +1 -1
- package/dist/connections/Knex/KnexBuilder/KnexBuilder.js +3 -3
- package/dist/connections/Knex/KnexBuilder/schema.js +1 -1
- package/dist/connections/Knex/KnexRaw/KnexRaw.js +1 -1
- package/dist/connections/Knex/KnexRaw/schema.js +1 -1
- package/dist/connections/Knex/schema.js +1 -1
- package/dist/connections.js +1 -1
- package/dist/types.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2026 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -22,12 +22,12 @@ async function KnexBuilder({ request, connection }) {
|
|
|
22
22
|
}
|
|
23
23
|
for (const method of request.query){
|
|
24
24
|
if (Object.keys(method).length !== 1) {
|
|
25
|
-
throw new Error(
|
|
25
|
+
throw new Error('Invalid query, more than one method defined in a method object.');
|
|
26
26
|
}
|
|
27
27
|
const methodName = Object.keys(method)[0];
|
|
28
28
|
const methodArgs = method[methodName];
|
|
29
29
|
if (!type.isArray(methodArgs)) {
|
|
30
|
-
throw new Error(`Invalid query, method "${methodName}" arguments should be an array
|
|
30
|
+
throw new Error(`Invalid query, method "${methodName}" arguments should be an array.`);
|
|
31
31
|
}
|
|
32
32
|
if (!type.isFunction(client[methodName])) {
|
|
33
33
|
throw new Error(`Invalid query builder method "${methodName}".`);
|
package/dist/connections.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/connection-knex",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.6.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dist/*"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lowdefy/helpers": "4.
|
|
38
|
+
"@lowdefy/helpers": "4.6.0",
|
|
39
39
|
"knex": "2.5.1",
|
|
40
40
|
"mssql": "10.0.1",
|
|
41
41
|
"mysql": "2.18.1",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@jest/globals": "28.1.3",
|
|
47
|
-
"@lowdefy/ajv": "4.
|
|
47
|
+
"@lowdefy/ajv": "4.6.0",
|
|
48
48
|
"@swc/cli": "0.1.63",
|
|
49
49
|
"@swc/core": "1.3.99",
|
|
50
50
|
"@swc/jest": "0.2.29",
|