export-table-pulgin-csharp 1.0.26 → 1.0.29
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.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/package.json +2 -2
- package/src/index.ts +7 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAG1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAG1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAwQpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,IAAI,SAAW;IACf,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAOpC;AAED,eAAO,MAAM,aAAa,gBAEzB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -211,6 +211,14 @@ ${(0, export_table_lib_1.foreach)(fields, f => {
|
|
|
211
211
|
}
|
|
212
212
|
return _tempDictBy${convMemberName(f.name)}.GetValueOrDefault(${convMemberName(f.name)});
|
|
213
213
|
}
|
|
214
|
+
`;
|
|
215
|
+
}
|
|
216
|
+
else if (f.type == "number" || f.type == "string") {
|
|
217
|
+
return `
|
|
218
|
+
public static ${RowClass}[] GetConfigsBy${convMemberName(f.name)}(int ${convMemberName(f.name)})
|
|
219
|
+
{
|
|
220
|
+
return Configs.Where(c => c.${convMemberName(f.name)} == ${convMemberName(f.name)}).ToArray();
|
|
221
|
+
}
|
|
214
222
|
`;
|
|
215
223
|
}
|
|
216
224
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "export-table-pulgin-csharp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@types/node": "^17.0.18",
|
|
17
|
-
"export-table-lib": "
|
|
17
|
+
"export-table-lib": "latest",
|
|
18
18
|
"fs": "^0.0.1-security",
|
|
19
19
|
"fs-extra": "^10.0.0",
|
|
20
20
|
"fse": "^4.0.1"
|
package/src/index.ts
CHANGED
|
@@ -189,6 +189,13 @@ ${foreach(fields, f => {
|
|
|
189
189
|
}
|
|
190
190
|
return _tempDictBy${convMemberName(f.name)}.GetValueOrDefault(${convMemberName(f.name)});
|
|
191
191
|
}
|
|
192
|
+
`
|
|
193
|
+
} else if (f.type == "number" || f.type == "string") {
|
|
194
|
+
return `
|
|
195
|
+
public static ${RowClass}[] GetConfigsBy${convMemberName(f.name)}(int ${convMemberName(f.name)})
|
|
196
|
+
{
|
|
197
|
+
return Configs.Where(c => c.${convMemberName(f.name)} == ${convMemberName(f.name)}).ToArray();
|
|
198
|
+
}
|
|
192
199
|
`
|
|
193
200
|
} else {
|
|
194
201
|
return ""
|