mol_plot_all 1.2.573 → 1.2.574

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/node.test.js CHANGED
@@ -9705,9 +9705,9 @@ var $;
9705
9705
  const def = this.lang_default();
9706
9706
  if (lang === def)
9707
9707
  throw error;
9708
- return {};
9709
9708
  }
9710
9709
  }
9710
+ return {};
9711
9711
  }
9712
9712
  static text(key) {
9713
9713
  const lang = this.lang();
@@ -9887,8 +9887,8 @@ var $;
9887
9887
  for (let def of $mol_view_tree_classes(tree).sub) {
9888
9888
  if (!/^\$\w+$/.test(def.type))
9889
9889
  throw def.error('Wrong component name');
9890
- var parent = def.sub[0];
9891
- var members = {};
9890
+ const parent = def.sub[0];
9891
+ const members = {};
9892
9892
  for (let param of $mol_view_tree_class_props(def).sub) {
9893
9893
  try {
9894
9894
  var needSet = false;
@@ -9929,12 +9929,12 @@ var $;
9929
9929
  if (val)
9930
9930
  items.push(val.join(""));
9931
9931
  });
9932
- return [`[`, items.join(' , '), `]`, (item_type ? ` as readonly ( ${item_type} )[]` : ` as readonly any[]`)];
9932
+ return [`[`, items.join(' , '), `]`, (item_type ? ` as ( ${item_type} )[]` : ` as any[]`)];
9933
9933
  case (value.type[0] === '$'):
9934
9934
  if (!definition)
9935
9935
  throw value.error('Objects should be bound');
9936
9936
  needCache = true;
9937
- var overs = [];
9937
+ const overs = [];
9938
9938
  value.sub.forEach(over => {
9939
9939
  if (/^[-\/]?$/.test(over.type))
9940
9940
  return '';
@@ -9966,21 +9966,28 @@ var $;
9966
9966
  const object_args = value.select('/', '').sub.map(arg => getValue(arg)).join(' , ');
9967
9967
  return ['(( obj )=>{\n', ...overs, '\t\t\treturn obj\n\t\t})( new this.$.', SourceNode(value.row, value.col, fileName, value.type), '( ', object_args, ' ) )'];
9968
9968
  case (value.type === '*'):
9969
- var opts = [];
9970
- value.sub.forEach(opt => {
9969
+ const opts = [];
9970
+ for (const opt of value.sub) {
9971
9971
  if (opt.type === '-')
9972
- return '';
9972
+ continue;
9973
9973
  if (opt.type === '^') {
9974
9974
  opts.push(`\t\t\t...super.${param.type}() ,\n`);
9975
- return;
9975
+ continue;
9976
9976
  }
9977
- var key = /(.*?)(?:\?(\w+))?$/.exec(opt.type);
9978
- var ns = needSet;
9979
- var v = getValue(opt.sub[0]);
9980
- var arg = key[2] ? ` ( ${key[2]}? : any )=> ` : '';
9981
- opts.push(...['\t\t\t"', SourceNode(opt.row, opt.col, fileName, key[1] + '" : '), arg, ' ', ...(v || []), ' ,\n']);
9977
+ const key = /(.*?)(?:\?(\w+))?$/.exec(opt.type);
9978
+ const ns = needSet;
9979
+ const v = getValue(opt.sub[0]);
9980
+ const arg = key[2] ? ` ( ${key[2]}? : any )=> ` : '';
9981
+ opts.push(...[
9982
+ '\t\t\t"',
9983
+ SourceNode(opt.row, opt.col, fileName, key[1] + '" : '),
9984
+ arg,
9985
+ ' ',
9986
+ ...(v || []),
9987
+ ' ,\n'
9988
+ ]);
9982
9989
  needSet = ns;
9983
- });
9990
+ }
9984
9991
  return ['({\n', opts.join(''), '\t\t})'];
9985
9992
  case (value.type === '<=>'):
9986
9993
  if (value.sub.length === 1) {
@@ -10027,7 +10034,7 @@ var $;
10027
10034
  ...val
10028
10035
  ];
10029
10036
  val = ['return ', ...val];
10030
- var decl = ['\t', SourceNode(param.row, param.col, fileName, propName[1]), '(', args.join(','), ') {\n\t\t', ...val, '\n\t}\n\n'];
10037
+ let decl = ['\t', SourceNode(param.row, param.col, fileName, propName[1]), '(', args.join(','), ') {\n\t\t', ...val, '\n\t}\n\n'];
10031
10038
  if (needCache) {
10032
10039
  if (propName[2])
10033
10040
  decl = ['\t@ $', 'mol_mem_key\n', ...decl];