@wireweave/core 1.5.0 → 2.0.0-beta.0

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/dist/index.cjs CHANGED
@@ -819,7 +819,7 @@ function peg$parse(input, options) {
819
819
  function peg$f20(label, attrs) {
820
820
  return createNode("Input", {
821
821
  label: label || null,
822
- ...attrsToObject(attrs, true)
822
+ ...attrsToObject(attrs)
823
823
  });
824
824
  }
825
825
  function peg$f21(label, attrs) {
@@ -6229,15 +6229,11 @@ function peg$parse(input, options) {
6229
6229
  loc: location()
6230
6230
  };
6231
6231
  }
6232
- function attrsToObject(attrs, renameType = false) {
6232
+ function attrsToObject(attrs) {
6233
6233
  if (!attrs || attrs.length === 0) return {};
6234
6234
  const result = {};
6235
6235
  for (const attr of attrs) {
6236
- if (renameType && attr.name === "type") {
6237
- result.inputType = attr.value;
6238
- } else {
6239
- result[attr.name] = attr.value;
6240
- }
6236
+ result[attr.name] = attr.value;
6241
6237
  }
6242
6238
  return result;
6243
6239
  }
package/dist/index.js CHANGED
@@ -679,7 +679,7 @@ function peg$parse(input, options) {
679
679
  function peg$f20(label, attrs) {
680
680
  return createNode("Input", {
681
681
  label: label || null,
682
- ...attrsToObject(attrs, true)
682
+ ...attrsToObject(attrs)
683
683
  });
684
684
  }
685
685
  function peg$f21(label, attrs) {
@@ -6089,15 +6089,11 @@ function peg$parse(input, options) {
6089
6089
  loc: location()
6090
6090
  };
6091
6091
  }
6092
- function attrsToObject(attrs, renameType = false) {
6092
+ function attrsToObject(attrs) {
6093
6093
  if (!attrs || attrs.length === 0) return {};
6094
6094
  const result = {};
6095
6095
  for (const attr of attrs) {
6096
- if (renameType && attr.name === "type") {
6097
- result.inputType = attr.value;
6098
- } else {
6099
- result[attr.name] = attr.value;
6100
- }
6096
+ result[attr.name] = attr.value;
6101
6097
  }
6102
6098
  return result;
6103
6099
  }
package/dist/parser.cjs CHANGED
@@ -414,7 +414,7 @@ function peg$parse(input, options) {
414
414
  function peg$f20(label, attrs) {
415
415
  return createNode("Input", {
416
416
  label: label || null,
417
- ...attrsToObject(attrs, true)
417
+ ...attrsToObject(attrs)
418
418
  });
419
419
  }
420
420
  function peg$f21(label, attrs) {
@@ -5824,15 +5824,11 @@ function peg$parse(input, options) {
5824
5824
  loc: location()
5825
5825
  };
5826
5826
  }
5827
- function attrsToObject(attrs, renameType = false) {
5827
+ function attrsToObject(attrs) {
5828
5828
  if (!attrs || attrs.length === 0) return {};
5829
5829
  const result = {};
5830
5830
  for (const attr of attrs) {
5831
- if (renameType && attr.name === "type") {
5832
- result.inputType = attr.value;
5833
- } else {
5834
- result[attr.name] = attr.value;
5835
- }
5831
+ result[attr.name] = attr.value;
5836
5832
  }
5837
5833
  return result;
5838
5834
  }
package/dist/parser.js CHANGED
@@ -385,7 +385,7 @@ function peg$parse(input, options) {
385
385
  function peg$f20(label, attrs) {
386
386
  return createNode("Input", {
387
387
  label: label || null,
388
- ...attrsToObject(attrs, true)
388
+ ...attrsToObject(attrs)
389
389
  });
390
390
  }
391
391
  function peg$f21(label, attrs) {
@@ -5795,15 +5795,11 @@ function peg$parse(input, options) {
5795
5795
  loc: location()
5796
5796
  };
5797
5797
  }
5798
- function attrsToObject(attrs, renameType = false) {
5798
+ function attrsToObject(attrs) {
5799
5799
  if (!attrs || attrs.length === 0) return {};
5800
5800
  const result = {};
5801
5801
  for (const attr of attrs) {
5802
- if (renameType && attr.name === "type") {
5803
- result.inputType = attr.value;
5804
- } else {
5805
- result[attr.name] = attr.value;
5806
- }
5802
+ result[attr.name] = attr.value;
5807
5803
  }
5808
5804
  return result;
5809
5805
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wireweave/core",
3
- "version": "1.5.0",
3
+ "version": "2.0.0-beta.0",
4
4
  "description": "Core parser and renderer for wireweave",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",