@lowdefy/server 4.5.0 → 4.5.2
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.
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { v4 as uuid } from 'uuid';
|
|
16
17
|
|
|
17
18
|
// What if this fails?
|
|
18
19
|
// What about public usage
|
|
@@ -22,7 +23,7 @@ function createLogUsage({ usageDataRef }) {
|
|
|
22
23
|
let isOffline = false;
|
|
23
24
|
let machine = localStorage.getItem('lowdefy_machine_id');
|
|
24
25
|
if (!machine) {
|
|
25
|
-
machine =
|
|
26
|
+
machine = uuid();
|
|
26
27
|
localStorage.setItem('lowdefy_machine_id', machine);
|
|
27
28
|
}
|
|
28
29
|
|
package/lib/server/apiWrapper.js
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import path from 'path';
|
|
18
|
-
import crypto from 'crypto';
|
|
19
18
|
import { createApiContext } from '@lowdefy/api';
|
|
20
19
|
import { getSecretsFromEnv } from '@lowdefy/node-utils';
|
|
20
|
+
import { v4 as uuid } from 'uuid';
|
|
21
21
|
|
|
22
22
|
import config from '../../build/config.json';
|
|
23
23
|
import connections from '../../build/plugins/connections.js';
|
|
@@ -36,7 +36,7 @@ function apiWrapper(handler) {
|
|
|
36
36
|
return async function wrappedHandler(req, res) {
|
|
37
37
|
const context = {
|
|
38
38
|
// Important to give absolute path so Next can trace build files
|
|
39
|
-
rid:
|
|
39
|
+
rid: uuid(),
|
|
40
40
|
buildDirectory: path.join(process.cwd(), 'build'),
|
|
41
41
|
config,
|
|
42
42
|
connections,
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import path from 'path';
|
|
18
|
-
import crypto from 'crypto';
|
|
19
18
|
import { createApiContext } from '@lowdefy/api';
|
|
19
|
+
import { v4 as uuid } from 'uuid';
|
|
20
20
|
|
|
21
21
|
import config from '../../build/config.json';
|
|
22
22
|
import createLogger from './log/createLogger.js';
|
|
@@ -31,7 +31,7 @@ function serverSidePropsWrapper(handler) {
|
|
|
31
31
|
return async function wrappedHandler(nextContext) {
|
|
32
32
|
const context = {
|
|
33
33
|
// Important to give absolute path so Next can trace build files
|
|
34
|
-
rid:
|
|
34
|
+
rid: uuid(),
|
|
35
35
|
buildDirectory: path.join(process.cwd(), 'build'),
|
|
36
36
|
config,
|
|
37
37
|
fileCache,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/server",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -36,18 +36,23 @@
|
|
|
36
36
|
".npmrc"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lowdefy/actions-core": "4.5.
|
|
40
|
-
"@lowdefy/api": "4.5.
|
|
41
|
-
"@lowdefy/block-utils": "4.5.
|
|
42
|
-
"@lowdefy/blocks-antd": "4.5.
|
|
43
|
-
"@lowdefy/blocks-basic": "4.5.
|
|
44
|
-
"@lowdefy/blocks-loaders": "4.5.
|
|
45
|
-
"@lowdefy/
|
|
46
|
-
"@lowdefy/
|
|
47
|
-
"@lowdefy/
|
|
48
|
-
"@lowdefy/
|
|
49
|
-
"@lowdefy/
|
|
50
|
-
"@lowdefy/
|
|
39
|
+
"@lowdefy/actions-core": "4.5.2",
|
|
40
|
+
"@lowdefy/api": "4.5.2",
|
|
41
|
+
"@lowdefy/block-utils": "4.5.2",
|
|
42
|
+
"@lowdefy/blocks-antd": "4.5.2",
|
|
43
|
+
"@lowdefy/blocks-basic": "4.5.2",
|
|
44
|
+
"@lowdefy/blocks-loaders": "4.5.2",
|
|
45
|
+
"@lowdefy/blocks-markdown": "4.5.2",
|
|
46
|
+
"@lowdefy/client": "4.5.2",
|
|
47
|
+
"@lowdefy/connection-axios-http": "4.5.2",
|
|
48
|
+
"@lowdefy/connection-mongodb": "4.5.2",
|
|
49
|
+
"@lowdefy/helpers": "4.5.2",
|
|
50
|
+
"@lowdefy/layout": "4.5.2",
|
|
51
|
+
"@lowdefy/node-utils": "4.5.2",
|
|
52
|
+
"@lowdefy/operators-js": "4.5.2",
|
|
53
|
+
"@lowdefy/operators-nunjucks": "4.5.2",
|
|
54
|
+
"@lowdefy/operators-uuid": "4.5.2",
|
|
55
|
+
"@lowdefy/plugin-next-auth": "4.5.2",
|
|
51
56
|
"next": "13.5.4",
|
|
52
57
|
"next-auth": "4.24.5",
|
|
53
58
|
"pino": "8.16.2",
|
|
@@ -57,7 +62,7 @@
|
|
|
57
62
|
"react-icons": "4.12.0"
|
|
58
63
|
},
|
|
59
64
|
"devDependencies": {
|
|
60
|
-
"@lowdefy/build": "4.5.
|
|
65
|
+
"@lowdefy/build": "4.5.2",
|
|
61
66
|
"@next/eslint-plugin-next": "13.5.4",
|
|
62
67
|
"less": "4.2.0",
|
|
63
68
|
"less-loader": "11.1.3",
|
package/package.original.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/server",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -46,18 +46,23 @@
|
|
|
46
46
|
"prepublishOnly": "pnpm build"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@lowdefy/actions-core": "4.5.
|
|
50
|
-
"@lowdefy/api": "4.5.
|
|
51
|
-
"@lowdefy/block-utils": "4.5.
|
|
52
|
-
"@lowdefy/blocks-antd": "4.5.
|
|
53
|
-
"@lowdefy/blocks-basic": "4.5.
|
|
54
|
-
"@lowdefy/blocks-loaders": "4.5.
|
|
55
|
-
"@lowdefy/
|
|
56
|
-
"@lowdefy/
|
|
57
|
-
"@lowdefy/
|
|
58
|
-
"@lowdefy/
|
|
59
|
-
"@lowdefy/
|
|
60
|
-
"@lowdefy/
|
|
49
|
+
"@lowdefy/actions-core": "4.5.2",
|
|
50
|
+
"@lowdefy/api": "4.5.2",
|
|
51
|
+
"@lowdefy/block-utils": "4.5.2",
|
|
52
|
+
"@lowdefy/blocks-antd": "4.5.2",
|
|
53
|
+
"@lowdefy/blocks-basic": "4.5.2",
|
|
54
|
+
"@lowdefy/blocks-loaders": "4.5.2",
|
|
55
|
+
"@lowdefy/blocks-markdown": "4.5.2",
|
|
56
|
+
"@lowdefy/client": "4.5.2",
|
|
57
|
+
"@lowdefy/connection-axios-http": "4.5.2",
|
|
58
|
+
"@lowdefy/connection-mongodb": "4.5.2",
|
|
59
|
+
"@lowdefy/helpers": "4.5.2",
|
|
60
|
+
"@lowdefy/layout": "4.5.2",
|
|
61
|
+
"@lowdefy/node-utils": "4.5.2",
|
|
62
|
+
"@lowdefy/operators-js": "4.5.2",
|
|
63
|
+
"@lowdefy/operators-nunjucks": "4.5.2",
|
|
64
|
+
"@lowdefy/operators-uuid": "4.5.2",
|
|
65
|
+
"@lowdefy/plugin-next-auth": "4.5.2",
|
|
61
66
|
"next": "13.5.4",
|
|
62
67
|
"next-auth": "4.24.5",
|
|
63
68
|
"pino": "8.16.2",
|
|
@@ -67,7 +72,7 @@
|
|
|
67
72
|
"react-icons": "4.12.0"
|
|
68
73
|
},
|
|
69
74
|
"devDependencies": {
|
|
70
|
-
"@lowdefy/build": "4.5.
|
|
75
|
+
"@lowdefy/build": "4.5.2",
|
|
71
76
|
"@next/eslint-plugin-next": "13.5.4",
|
|
72
77
|
"less": "4.2.0",
|
|
73
78
|
"less-loader": "11.1.3",
|