malinajs 0.7.7 → 0.7.9

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/malina.js +11 -3
  2. package/package.json +1 -1
package/malina.js CHANGED
@@ -4982,8 +4982,9 @@
4982
4982
 
4983
4983
  this.require('$context');
4984
4984
 
4985
+ let deepChecking = this.config.deepCheckingProps;
4985
4986
  let reference = null;
4986
- let propsFn = [], propsSetter = [], $class = [], staticProps = true, deepChecking = false;
4987
+ let propsFn = [], propsSetter = [], $class = [], staticProps = true;
4987
4988
  let slotBlocks = [];
4988
4989
  let anchorBlocks = [];
4989
4990
 
@@ -5050,7 +5051,7 @@
5050
5051
  childName: slot.name,
5051
5052
  parentName: parentSlot.elArg || 'default'
5052
5053
  }, (ctx, n) => {
5053
- ctx.writeLine(`slots.${n.childName} = $option.slots?.${n.parentName};`);
5054
+ ctx.write(true, `${n.childName}: $option.slots?.${n.parentName}`);
5054
5055
  }));
5055
5056
  return;
5056
5057
  }
@@ -5134,6 +5135,12 @@
5134
5135
  let inner, outer;
5135
5136
  if(name[0] == ':') inner = name.substring(1);
5136
5137
  else inner = name.substring(5);
5138
+ let mods = inner.split('|');
5139
+ inner = mods.shift();
5140
+ mods.forEach(mod => {
5141
+ if (mod == 'deep') deepChecking = true;
5142
+ else throw new Error('Wrong modifier: ' + mod);
5143
+ });
5137
5144
  if(value) outer = unwrapExp(value);
5138
5145
  else outer = inner;
5139
5146
  assert(isSimpleName(inner), `Wrong property: '${inner}'`);
@@ -6865,7 +6872,7 @@
6865
6872
  });
6866
6873
  }
6867
6874
 
6868
- const version = '0.7.7';
6875
+ const version = '0.7.9';
6869
6876
 
6870
6877
 
6871
6878
  async function compile(source, config = {}) {
@@ -6884,6 +6891,7 @@
6884
6891
  css: true,
6885
6892
  passClass: true,
6886
6893
  immutable: false,
6894
+ deepCheckingProps: false,
6887
6895
  useGroupReferencing: true
6888
6896
  }, config);
6889
6897
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "malinajs",
3
- "version": "0.7.7",
3
+ "version": "0.7.9",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build": "npm run build_runtime && rollup -c",