@dokebi/module 0.4.3 → 0.4.4

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 (2) hide show
  1. package/dist/index.js +4 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -124,7 +124,9 @@ function moduleContext(context, name, declared, controllers, points) {
124
124
  });
125
125
  }
126
126
  export function defineModule(definition) {
127
- const version = definition.version ?? '0.1.0';
127
+ // Read after the check below would be too late for the check itself; `?.` so that nothing
128
+ // (null, undefined) is INVALID_DEFINITION, not a TypeError (audit R9-g13-5).
129
+ const version = definition?.version ?? '0.1.0';
128
130
  if (definition === null ||
129
131
  typeof definition !== 'object' ||
130
132
  types.isProxy(definition) ||
@@ -275,7 +277,7 @@ class ModuleGroupRuntime {
275
277
  }
276
278
  export const createPlugin = definePlugin({
277
279
  name: 'dokebi-module',
278
- version: '0.4.3',
280
+ version: '0.4.4',
279
281
  core: '^0.4.0',
280
282
  options,
281
283
  entry: parseEntry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dokebi/module",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Feature modules for Dokebi apps: controllers, models, views and routes in one folder mounted under a prefix.",
5
5
  "keywords": [
6
6
  "dokebi",
@@ -95,8 +95,8 @@
95
95
  "devDependencies": {
96
96
  "@dokebi/controller": "0.4.2",
97
97
  "@dokebi/template-ejs": "0.4.3",
98
- "@dokebi/template-inertia": "0.4.6",
99
- "@dokebi/web": "0.4.6"
98
+ "@dokebi/template-inertia": "0.4.7",
99
+ "@dokebi/web": "0.4.7"
100
100
  },
101
101
  "publishConfig": {
102
102
  "access": "public",