@lowdefy/server-dev 4.0.0-alpha.35 → 4.0.0-alpha.37

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.
@@ -0,0 +1,20 @@
1
+ /*
2
+ Copyright 2020-2022 Lowdefy, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ */
16
+
17
+ export default {
18
+ get: () => undefined,
19
+ set: () => undefined,
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/server-dev",
3
- "version": "4.0.0-alpha.35",
3
+ "version": "4.0.0-alpha.37",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -40,30 +40,30 @@
40
40
  "next": "next"
41
41
  },
42
42
  "dependencies": {
43
- "@lowdefy/actions-core": "4.0.0-alpha.35",
44
- "@lowdefy/api": "4.0.0-alpha.35",
45
- "@lowdefy/blocks-antd": "4.0.0-alpha.35",
46
- "@lowdefy/blocks-basic": "4.0.0-alpha.35",
47
- "@lowdefy/blocks-color-selectors": "4.0.0-alpha.35",
48
- "@lowdefy/blocks-echarts": "4.0.0-alpha.35",
49
- "@lowdefy/blocks-loaders": "4.0.0-alpha.35",
50
- "@lowdefy/blocks-markdown": "4.0.0-alpha.35",
51
- "@lowdefy/blocks-qr": "4.0.0-alpha.35",
52
- "@lowdefy/build": "4.0.0-alpha.35",
53
- "@lowdefy/client": "4.0.0-alpha.35",
54
- "@lowdefy/connection-axios-http": "4.0.0-alpha.35",
55
- "@lowdefy/engine": "4.0.0-alpha.35",
56
- "@lowdefy/helpers": "4.0.0-alpha.35",
57
- "@lowdefy/layout": "4.0.0-alpha.35",
58
- "@lowdefy/node-utils": "4.0.0-alpha.35",
59
- "@lowdefy/operators-change-case": "4.0.0-alpha.35",
60
- "@lowdefy/operators-diff": "4.0.0-alpha.35",
61
- "@lowdefy/operators-js": "4.0.0-alpha.35",
62
- "@lowdefy/operators-mql": "4.0.0-alpha.35",
63
- "@lowdefy/operators-nunjucks": "4.0.0-alpha.35",
64
- "@lowdefy/operators-uuid": "4.0.0-alpha.35",
65
- "@lowdefy/operators-yaml": "4.0.0-alpha.35",
66
- "@lowdefy/plugin-next-auth": "4.0.0-alpha.35",
43
+ "@lowdefy/actions-core": "4.0.0-alpha.37",
44
+ "@lowdefy/api": "4.0.0-alpha.37",
45
+ "@lowdefy/blocks-antd": "4.0.0-alpha.37",
46
+ "@lowdefy/blocks-basic": "4.0.0-alpha.37",
47
+ "@lowdefy/blocks-color-selectors": "4.0.0-alpha.37",
48
+ "@lowdefy/blocks-echarts": "4.0.0-alpha.37",
49
+ "@lowdefy/blocks-loaders": "4.0.0-alpha.37",
50
+ "@lowdefy/blocks-markdown": "4.0.0-alpha.37",
51
+ "@lowdefy/blocks-qr": "4.0.0-alpha.37",
52
+ "@lowdefy/build": "4.0.0-alpha.37",
53
+ "@lowdefy/client": "4.0.0-alpha.37",
54
+ "@lowdefy/connection-axios-http": "4.0.0-alpha.37",
55
+ "@lowdefy/engine": "4.0.0-alpha.37",
56
+ "@lowdefy/helpers": "4.0.0-alpha.37",
57
+ "@lowdefy/layout": "4.0.0-alpha.37",
58
+ "@lowdefy/node-utils": "4.0.0-alpha.37",
59
+ "@lowdefy/operators-change-case": "4.0.0-alpha.37",
60
+ "@lowdefy/operators-diff": "4.0.0-alpha.37",
61
+ "@lowdefy/operators-js": "4.0.0-alpha.37",
62
+ "@lowdefy/operators-mql": "4.0.0-alpha.37",
63
+ "@lowdefy/operators-nunjucks": "4.0.0-alpha.37",
64
+ "@lowdefy/operators-uuid": "4.0.0-alpha.37",
65
+ "@lowdefy/operators-yaml": "4.0.0-alpha.37",
66
+ "@lowdefy/plugin-next-auth": "4.0.0-alpha.37",
67
67
  "chokidar": "3.5.3",
68
68
  "dotenv": "16.0.1",
69
69
  "next": "12.3.1",
@@ -89,5 +89,5 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "d1cfcdb0b425ca9eb1259bdabe9cdf51df7f900c"
92
+ "gitHead": "855e81894be16837be556de36a036215f1efe021"
93
93
  }
@@ -22,11 +22,13 @@ import config from '../../../build/config.json';
22
22
  import adapters from '../../../build/plugins/auth/adapters.js';
23
23
  import callbacks from '../../../build/plugins/auth/callbacks.js';
24
24
  import events from '../../../build/plugins/auth/events.js';
25
+ import fileCache from '../../../lib/fileCache.js';
25
26
  import providers from '../../../build/plugins/auth/providers.js';
26
27
 
27
28
  export const authOptions = getNextAuthConfig(
28
29
  createApiContext({
29
30
  config,
31
+ fileCache,
30
32
  logger: console,
31
33
  }),
32
34
  { authJson, plugins: { adapters, callbacks, events, providers } }
@@ -17,6 +17,7 @@
17
17
  import { createApiContext, getPageConfig } from '@lowdefy/api';
18
18
 
19
19
  import config from '../../../build/config.json';
20
+ import fileCache from '../../../lib/fileCache.js';
20
21
  import getServerSession from '../../../lib/auth/getServerSession.js';
21
22
 
22
23
  export default async function handler(req, res) {
@@ -24,6 +25,7 @@ export default async function handler(req, res) {
24
25
  const apiContext = createApiContext({
25
26
  buildDirectory: './build',
26
27
  config,
28
+ fileCache,
27
29
  logger: console,
28
30
  session,
29
31
  });
@@ -19,6 +19,7 @@ import { getSecretsFromEnv } from '@lowdefy/node-utils';
19
19
 
20
20
  import config from '../../../../build/config.json';
21
21
  import connections from '../../../../build/plugins/connections.js';
22
+ import fileCache from '../../../../lib/fileCache.js';
22
23
  import getServerSession from '../../../../lib/auth/getServerSession.js';
23
24
  import operators from '../../../../build/plugins/operators/server.js';
24
25
 
@@ -32,6 +33,7 @@ export default async function handler(req, res) {
32
33
  buildDirectory: './build',
33
34
  config,
34
35
  connections,
36
+ fileCache,
35
37
  logger: console,
36
38
  operators,
37
39
  secrets: getSecretsFromEnv(),
package/pages/api/root.js CHANGED
@@ -17,6 +17,7 @@
17
17
  import { createApiContext, getRootConfig } from '@lowdefy/api';
18
18
 
19
19
  import config from '../../build/config.json';
20
+ import fileCache from '../../lib/fileCache.js';
20
21
  import getServerSession from '../../lib/auth/getServerSession.js';
21
22
 
22
23
  export default async function handler(req, res) {
@@ -24,6 +25,7 @@ export default async function handler(req, res) {
24
25
  const apiContext = createApiContext({
25
26
  buildDirectory: './build',
26
27
  config,
28
+ fileCache,
27
29
  logger: console,
28
30
  session,
29
31
  });