steel-frame 7.1.0 → 7.1.2
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.
|
@@ -515,7 +515,13 @@ export function ignoreParams(path, internal, allowReactiveId, restrictDestructio
|
|
|
515
515
|
// param is object destruction
|
|
516
516
|
else if (path.isObjectPattern()) {
|
|
517
517
|
if (restrictDestruction) {
|
|
518
|
-
|
|
518
|
+
for (const element of path.get("properties")) {
|
|
519
|
+
const key = element.get("key");
|
|
520
|
+
/* istanbul ignore else */
|
|
521
|
+
if (key.isIdentifier() && isReactiveName(key.node.name, internal)) {
|
|
522
|
+
err(Errors.RulesOfVasille, key, "Extract reactive fields inside the function body", internal);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
519
525
|
}
|
|
520
526
|
ignoreObjectPattern(path, internal);
|
|
521
527
|
}
|
package/build/export/index.d.ts
CHANGED
|
@@ -388,4 +388,4 @@ export declare function impute<Args extends unknown[], Value>(ctx: SteelContext<
|
|
|
388
388
|
export declare function impute<Class>(className: abstract new (...args: unknown[]) => Class, value: () => Class): Class;
|
|
389
389
|
/** Share a setting value when it is missing */
|
|
390
390
|
export declare function impute(key: string, value: string): string;
|
|
391
|
-
export type { WebComponent, WebComponentAdapter, WebComponentAttributes, WebComponentEventHandler, WebComponentProps, WebComponentEvents, WebTagOptions, AttrType, StyleType, WebRouter, ElementStyleProps, IdeSide, AppSide, SsgRouterMode, NavigationMode, ClassItem, WebRouterInitialization, } from "vasille-web/types";
|
|
391
|
+
export type { WebComponent, WebComponentAdapter, WebComponentAttributes, WebComponentEventHandler, WebComponentProps, WebComponentEvents, WebTagOptions, AttrType, StyleType, WebRouter, ElementStyleProps, IdeSide, AppSide, SsgRouterMode, NavigationMode, ClassItem, WebRouterInitialization, CssStyleInjector, StyleSheetProps, } from "vasille-web/types";
|