@lowdefy/build 4.0.0-alpha.31 → 4.0.0-alpha.34

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.
@@ -22,6 +22,9 @@ async function validateAuthConfig({ components }) {
22
22
  if (!type.isObject(components.auth)) {
23
23
  throw new Error('lowdefy.auth is not an object.');
24
24
  }
25
+ if (type.isNone(components.auth.authPages)) {
26
+ components.auth.authPages = {};
27
+ }
25
28
  if (type.isNone(components.auth.pages)) {
26
29
  components.auth.pages = {};
27
30
  }
@@ -13,9 +13,10 @@
13
13
  See the License for the specific language governing permissions and
14
14
  limitations under the License.
15
15
  */ import path from 'path';
16
+ import { pathToFileURL } from 'url';
16
17
  async function getUserJavascriptFunction({ context , filePath }) {
17
18
  try {
18
- return (await import(path.resolve(context.directories.config, filePath))).default;
19
+ return (await import(pathToFileURL(path.join(context.directories.config, filePath)))).default;
19
20
  } catch (error) {
20
21
  context.logger.error(`Error importing ${filePath}.`);
21
22
  throw Error(error);