@arrirpc/codegen-rust 0.63.1 → 0.63.3

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
@@ -1743,7 +1743,7 @@ function rustRecordFromSchema(schema, context) {
1743
1743
  if _index_ != 0 {
1744
1744
  ${target}.push(',');
1745
1745
  }
1746
- ${target}.push_str(format!("\\"{}\\":", _key_).as_str());
1746
+ ${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
1747
1747
  match _value_ {
1748
1748
  Some(value_val) => {
1749
1749
  ${innerType.toJsonTemplate("value_val", target)};
@@ -1760,7 +1760,7 @@ function rustRecordFromSchema(schema, context) {
1760
1760
  if _index_ != 0 {
1761
1761
  ${target}.push(',');
1762
1762
  }
1763
- ${target}.push_str(format!("\\"{}\\":", _key_).as_str());
1763
+ ${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
1764
1764
  ${innerType.toJsonTemplate(`_value_`, target)};
1765
1765
  }
1766
1766
  ${target}.push('}')`;
package/dist/index.mjs CHANGED
@@ -1735,7 +1735,7 @@ function rustRecordFromSchema(schema, context) {
1735
1735
  if _index_ != 0 {
1736
1736
  ${target}.push(',');
1737
1737
  }
1738
- ${target}.push_str(format!("\\"{}\\":", _key_).as_str());
1738
+ ${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
1739
1739
  match _value_ {
1740
1740
  Some(value_val) => {
1741
1741
  ${innerType.toJsonTemplate("value_val", target)};
@@ -1752,7 +1752,7 @@ function rustRecordFromSchema(schema, context) {
1752
1752
  if _index_ != 0 {
1753
1753
  ${target}.push(',');
1754
1754
  }
1755
- ${target}.push_str(format!("\\"{}\\":", _key_).as_str());
1755
+ ${target}.push_str(format!("{}:", serialize_string(_key_)).as_str());
1756
1756
  ${innerType.toJsonTemplate(`_value_`, target)};
1757
1757
  }
1758
1758
  ${target}.push('}')`;
package/package.json CHANGED
@@ -22,8 +22,8 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "pathe": "^1.1.2",
25
- "@arrirpc/codegen-utils": "0.63.1"
25
+ "@arrirpc/codegen-utils": "0.63.3"
26
26
  },
27
27
  "devDependencies": {},
28
- "version": "0.63.1"
28
+ "version": "0.63.3"
29
29
  }