noxt-server 0.1.1 → 0.1.3

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.
Files changed (3) hide show
  1. package/config.js +0 -1
  2. package/index.js +1 -0
  3. package/package.json +3 -3
package/config.js CHANGED
@@ -41,7 +41,6 @@ export const handlers = {
41
41
  if (!val) return []; // allow empty
42
42
  val = [].concat(val); // ensure array
43
43
  for (const mod of val) {
44
- console.log(`Importing context module: ${mod}`);
45
44
  if (typeof mod !== 'string' || mod.length === 0 || !fs.existsSync(path.resolve(process.cwd(), mod))) {
46
45
  return new Error(`Each context module must be a valid module path. Invalid: ${mod}`);
47
46
  }
package/index.js CHANGED
@@ -27,6 +27,7 @@ export async function startServer (config) {
27
27
  const context = {};
28
28
  config = await processConfig(config, false);
29
29
  for (const mod of [].concat(config.context).flat(Infinity).filter(Boolean)) {
30
+ console.log(`Importing context module: ${mod}`);
30
31
  Object.assign(context, await import(resolve(mod)));
31
32
  }
32
33
  config = context.config = await processConfig(config,true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noxt-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Server for noxt-js-middleware with CLI and config support",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -28,7 +28,7 @@
28
28
  "js-yaml": "^4.1.0",
29
29
  "minimist": "^1.2.8",
30
30
  "morgan": "^1.10.0",
31
- "noxt-js-middleware": "^1.0.0"
31
+ "noxt-js-middleware": "^1.0.2"
32
32
  },
33
33
  "devDependencies": {
34
34
  "cookie-parser": "^1.4.6",
@@ -36,7 +36,7 @@
36
36
  "js-yaml": "^4.1.0",
37
37
  "minimist": "^1.2.8",
38
38
  "morgan": "^1.10.0",
39
- "noxt-js-middleware": "^1.0.0"
39
+ "noxt-js-middleware": "^1.0.3"
40
40
  },
41
41
  "engines": {
42
42
  "node": ">=18"