com.typhoon.unitysdk 1.0.99 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # 更新日志
2
- ## [1.0.99] - 2024-10-30
2
+ ## [1.1.1] - 2024-10-30
3
3
 
4
4
  ### 修复
5
+ * 修复iniconfig value 参数问题
6
+
7
+
8
+ ## [1.0.99] - 2024-10-30
9
+
10
+ ### 修复
5
11
  * iniconfig 命名bug
6
12
 
7
13
 
@@ -26,13 +26,13 @@ namespace TyphoonUnitySDK
26
26
  {
27
27
  var elements = e.Split('=');
28
28
  var key = elements[0];
29
- var value = "";
29
+ var value1 = "";
30
30
  if (elements.Length > 1)
31
31
  {
32
- value = elements[1];
32
+ value1 = elements[1];
33
33
  }
34
34
 
35
- return new { key, value };
35
+ return new { key, value = value1 };
36
36
  }).ToList();
37
37
  var match = items.LastOrDefault(e => e.key == inputKey);
38
38
  if (match == null)
@@ -73,7 +73,7 @@ namespace TyphoonUnitySDK
73
73
  Set(inputKey, value, e => e.ToString());
74
74
  }
75
75
 
76
- private string Get(string key)
76
+ private string Get(string inputKey)
77
77
  {
78
78
  CreateFileIfNotExists();
79
79
  var lines = File.ReadAllLines(_filePath).ToList();
@@ -89,7 +89,7 @@ namespace TyphoonUnitySDK
89
89
 
90
90
  return new { key, value };
91
91
  }).ToList();
92
- var last = items.LastOrDefault(e => e.key == key);
92
+ var last = items.LastOrDefault(e => e.key == inputKey);
93
93
  if (last == null)
94
94
  {
95
95
  return "";
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.0.99","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"3.2.0"}],"version_log":"## [1.0.99] - 2024-10-30\r\n\r\n### 修复\n* iniconfig 命名bug\r\n\r\n","major_flag":false,"write_time_stamp":1730275028000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"3.2.0"}}
1
+ {"name":"com.typhoon.unitysdk","displayName":"typhoon unity sdk","version":"1.1.1","description":"","unity":"2018.1","type":"tool","hideInEditor":false,"author":{"name":"Jan Zhang","email":"","url":""},"changelogUrl":"","documentationUrl":"","keywords":["typhoon"],"license":"","licensesUrl":"","customDependencies":[{"PackageName":"com.unity.nuget.newtonsoft-json","Value":"3.2.0"}],"version_log":"## [1.1.1] - 2024-10-30\r\n\r\n### 修复\n* 修复iniconfig value 参数问题\r\n\r\n","major_flag":false,"write_time_stamp":1730275396000,"others":{"items":[]},"dependencies":{"com.unity.nuget.newtonsoft-json":"3.2.0"}}