export-table-pulgin-csharp 1.0.27 → 1.0.28
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 +6 -1
- package/package.json +2 -2
- package/src/index.ts +6 -1
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,CAsQpE;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
|
@@ -214,7 +214,12 @@ ${(0, export_table_lib_1.foreach)(fields, f => {
|
|
|
214
214
|
`;
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
|
-
return
|
|
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
|
+
}
|
|
222
|
+
`;
|
|
218
223
|
}
|
|
219
224
|
})}
|
|
220
225
|
|
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.28",
|
|
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
|
@@ -191,7 +191,12 @@ ${foreach(fields, f => {
|
|
|
191
191
|
}
|
|
192
192
|
`
|
|
193
193
|
} else {
|
|
194
|
-
return
|
|
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
|
+
}
|
|
199
|
+
`
|
|
195
200
|
}
|
|
196
201
|
}
|
|
197
202
|
)}
|