@marko/runtime-tags 6.0.116 → 6.0.117

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.
@@ -2252,7 +2252,7 @@ function getBindingPropTree(binding) {
2252
2252
  }
2253
2253
  } else if (binding.aliases.size === 1) {
2254
2254
  const [restAlias] = binding.aliases;
2255
- if (restAlias.excludeProperties !== void 0) {
2255
+ if (hasSupersetExcludeProperties(binding, restAlias.excludeProperties)) {
2256
2256
  props.rest = getBindingPropTree(restAlias);
2257
2257
  props.props = {};
2258
2258
  if (restAlias.type === 2 /* input */) {
@@ -2272,6 +2272,17 @@ function getBindingPropTree(binding) {
2272
2272
  }
2273
2273
  return props;
2274
2274
  }
2275
+ function hasSupersetExcludeProperties(binding, excludeProperties) {
2276
+ if (excludeProperties === void 0) {
2277
+ return false;
2278
+ }
2279
+ for (const prop of binding.propertyAliases.keys()) {
2280
+ if (!propsUtil.has(excludeProperties, prop)) {
2281
+ return false;
2282
+ }
2283
+ }
2284
+ return true;
2285
+ }
2275
2286
 
2276
2287
  // src/translator/util/entry-builder.ts
2277
2288
  var import_compiler9 = require("@marko/compiler");
@@ -100,6 +100,7 @@ export declare function createSources(state: Sources["state"], param: Sources["p
100
100
  export declare function compareSources(a: Sources, b: Sources): number;
101
101
  export declare function mergeSources(a: undefined | Sources, b: undefined | Sources): Sources | undefined;
102
102
  export declare const bindingUtil: Sorted<Binding>;
103
+ export declare const propsUtil: Sorted<string>;
103
104
  export declare function dropReferences(node: t.Node | t.Node[]): void;
104
105
  export declare function getCanonicalBinding(binding: Binding): Binding;
105
106
  export declare function getAllTagReferenceNodes(tag: t.MarkoTag, referenceNodes?: t.Node[]): t.Node[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marko/runtime-tags",
3
- "version": "6.0.116",
3
+ "version": "6.0.117",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",