@lowdefy/server 4.5.0 → 4.5.1

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 = crypto.randomUUID();
26
+ machine = uuid();
26
27
  localStorage.setItem('lowdefy_machine_id', machine);
27
28
  }
28
29
 
@@ -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: crypto.randomUUID(),
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: crypto.randomUUID(),
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.0",
3
+ "version": "4.5.1",
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.0",
40
- "@lowdefy/api": "4.5.0",
41
- "@lowdefy/block-utils": "4.5.0",
42
- "@lowdefy/blocks-antd": "4.5.0",
43
- "@lowdefy/blocks-basic": "4.5.0",
44
- "@lowdefy/blocks-loaders": "4.5.0",
45
- "@lowdefy/client": "4.5.0",
46
- "@lowdefy/helpers": "4.5.0",
47
- "@lowdefy/layout": "4.5.0",
48
- "@lowdefy/node-utils": "4.5.0",
49
- "@lowdefy/operators-js": "4.5.0",
50
- "@lowdefy/plugin-next-auth": "4.5.0",
39
+ "@lowdefy/actions-core": "4.5.1",
40
+ "@lowdefy/api": "4.5.1",
41
+ "@lowdefy/block-utils": "4.5.1",
42
+ "@lowdefy/blocks-antd": "4.5.1",
43
+ "@lowdefy/blocks-basic": "4.5.1",
44
+ "@lowdefy/blocks-loaders": "4.5.1",
45
+ "@lowdefy/blocks-markdown": "4.5.1",
46
+ "@lowdefy/client": "4.5.1",
47
+ "@lowdefy/connection-axios-http": "4.5.1",
48
+ "@lowdefy/connection-mongodb": "4.5.1",
49
+ "@lowdefy/helpers": "4.5.1",
50
+ "@lowdefy/layout": "4.5.1",
51
+ "@lowdefy/node-utils": "4.5.1",
52
+ "@lowdefy/operators-js": "4.5.1",
53
+ "@lowdefy/operators-nunjucks": "4.5.1",
54
+ "@lowdefy/operators-uuid": "4.5.1",
55
+ "@lowdefy/plugin-next-auth": "4.5.1",
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.0",
65
+ "@lowdefy/build": "4.5.1",
61
66
  "@next/eslint-plugin-next": "13.5.4",
62
67
  "less": "4.2.0",
63
68
  "less-loader": "11.1.3",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/server",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
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.0",
50
- "@lowdefy/api": "4.5.0",
51
- "@lowdefy/block-utils": "4.5.0",
52
- "@lowdefy/blocks-antd": "4.5.0",
53
- "@lowdefy/blocks-basic": "4.5.0",
54
- "@lowdefy/blocks-loaders": "4.5.0",
55
- "@lowdefy/client": "4.5.0",
56
- "@lowdefy/helpers": "4.5.0",
57
- "@lowdefy/layout": "4.5.0",
58
- "@lowdefy/node-utils": "4.5.0",
59
- "@lowdefy/operators-js": "4.5.0",
60
- "@lowdefy/plugin-next-auth": "4.5.0",
49
+ "@lowdefy/actions-core": "4.5.1",
50
+ "@lowdefy/api": "4.5.1",
51
+ "@lowdefy/block-utils": "4.5.1",
52
+ "@lowdefy/blocks-antd": "4.5.1",
53
+ "@lowdefy/blocks-basic": "4.5.1",
54
+ "@lowdefy/blocks-loaders": "4.5.1",
55
+ "@lowdefy/blocks-markdown": "4.5.1",
56
+ "@lowdefy/client": "4.5.1",
57
+ "@lowdefy/connection-axios-http": "4.5.1",
58
+ "@lowdefy/connection-mongodb": "4.5.1",
59
+ "@lowdefy/helpers": "4.5.1",
60
+ "@lowdefy/layout": "4.5.1",
61
+ "@lowdefy/node-utils": "4.5.1",
62
+ "@lowdefy/operators-js": "4.5.1",
63
+ "@lowdefy/operators-nunjucks": "4.5.1",
64
+ "@lowdefy/operators-uuid": "4.5.1",
65
+ "@lowdefy/plugin-next-auth": "4.5.1",
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.0",
75
+ "@lowdefy/build": "4.5.1",
71
76
  "@next/eslint-plugin-next": "13.5.4",
72
77
  "less": "4.2.0",
73
78
  "less-loader": "11.1.3",