@vulkano/core 1.30.1 → 1.31.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vulkano/core",
3
- "version": "1.30.1",
3
+ "version": "1.31.0",
4
4
  "description": "A MVC framework using Express 4",
5
5
  "license": "MIT",
6
6
  "author": "Vulkano Team",
@@ -37,7 +37,12 @@ module.exports = (props) => {
37
37
  version
38
38
  } = app.pkg || {};
39
39
 
40
- const validEntry = Object.keys(inputs).find( (k) => k.indexOf(entry) >= 0 );
40
+ const validEntry = Object.keys(inputs).find( (k) => {
41
+ const val = inputs[k];
42
+ // dev manifest: keys are short names ("app"/"admin") -> exact key match
43
+ // prod manifest: keys are full paths, each entry carries exact "name" and "isEntry" boolean -> match by name and isEntry
44
+ return k === entry || (val && val.name === entry && val.isEntry);
45
+ });
41
46
 
42
47
  if (!validEntry) {
43
48
  return `<!-- Invalid Entry ${entry} -->`;