create-kerf-component 5.0.0-beta.116 → 5.0.0-beta.118
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/catalog.js
CHANGED
|
@@ -467,6 +467,11 @@ function validateComposition(component, at, diagnostics, packageRoot) {
|
|
|
467
467
|
diagnostics.push(
|
|
468
468
|
`${sourceAt}: ${helperSource?.export} is not listed in composition.wiring.helpers`,
|
|
469
469
|
);
|
|
470
|
+
if (
|
|
471
|
+
helperSource?.returnsDisposer !== undefined &&
|
|
472
|
+
typeof helperSource.returnsDisposer !== 'boolean'
|
|
473
|
+
)
|
|
474
|
+
diagnostics.push(`${sourceAt}.returnsDisposer: expected boolean`);
|
|
470
475
|
const file = resolve(packageRoot, helperSource?.source ?? '');
|
|
471
476
|
if (!helperSource?.source || !existsSync(file))
|
|
472
477
|
diagnostics.push(
|
|
@@ -246,7 +246,8 @@
|
|
|
246
246
|
"required": ["export", "source"],
|
|
247
247
|
"properties": {
|
|
248
248
|
"export": { "type": "string", "minLength": 1 },
|
|
249
|
-
"source": { "type": "string", "minLength": 1 }
|
|
249
|
+
"source": { "type": "string", "minLength": 1 },
|
|
250
|
+
"returnsDisposer": { "type": "boolean" }
|
|
250
251
|
},
|
|
251
252
|
"additionalProperties": false
|
|
252
253
|
}
|
|
@@ -352,7 +352,8 @@
|
|
|
352
352
|
"required": ["export", "source"],
|
|
353
353
|
"properties": {
|
|
354
354
|
"export": { "type": "string", "minLength": 1 },
|
|
355
|
-
"source": { "type": "string", "minLength": 1 }
|
|
355
|
+
"source": { "type": "string", "minLength": 1 },
|
|
356
|
+
"returnsDisposer": { "type": "boolean" }
|
|
356
357
|
},
|
|
357
358
|
"additionalProperties": false
|
|
358
359
|
}
|
package/package.json
CHANGED
package/template/package.json
CHANGED