export-table-pulgin-csharp 1.1.75 → 1.1.78

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ExportCSPlugin.d.ts","sourceRoot":"","sources":["../src/ExportCSPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAM1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CAsUpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,IAAI,SAAW;IACf,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAOpC"}
1
+ {"version":3,"file":"ExportCSPlugin.d.ts","sourceRoot":"","sources":["../src/ExportCSPlugin.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAA0B,MAAM,kBAAkB,CAAA;AAK1H,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA4UpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,IAAI,SAAW;IACf,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAOpC"}
@@ -26,9 +26,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ExportPlugin = exports.export_stuff = void 0;
27
27
  const export_table_lib_1 = require("export-table-lib");
28
28
  const fs = __importStar(require("fs-extra"));
29
- var isSkipExportDefaults = process.argv.findIndex(v => v == "--SkipDefaults") >= 0;
29
+ var isSkipExportDefaults0 = process.argv.findIndex(v => v == "--SkipDefaults") >= 0;
30
30
  function export_stuff(paras) {
31
- let { datas, fields, inject, name, objects, packagename, tables, xxtea, } = paras;
31
+ var _a;
32
+ let { datas, fields, inject, name, objects, packagename, tables, xxtea, moreOptions, } = paras;
33
+ let isSkipExportDefaults = (_a = !!moreOptions.SkipDefaults) !== null && _a !== void 0 ? _a : false;
34
+ if (isSkipExportDefaults0) {
35
+ isSkipExportDefaults = true;
36
+ }
32
37
  let firstLetterUpper = function (str) {
33
38
  return str.charAt(0).toUpperCase() + str.slice(1);
34
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.1.75",
3
+ "version": "1.1.78",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "@types/node": "^17.0.18",
16
- "export-table-lib": "^1.0.50",
16
+ "export-table-lib": "^1.0.53",
17
17
  "fs": "^0.0.1-security",
18
18
  "fs-extra": "^10.0.0",
19
19
  "fse": "^4.0.1"
@@ -2,7 +2,7 @@
2
2
  import { cmm, HandleSheetParams, Field, foreach, IPlugin, st, PluginBase, HandleBatchParams, iff } from "export-table-lib"
3
3
  import * as fs from "fs-extra"
4
4
 
5
- var isSkipExportDefaults = process.argv.findIndex(v => v == "--SkipDefaults") >= 0
5
+ var isSkipExportDefaults0 = process.argv.findIndex(v => v == "--SkipDefaults") >= 0
6
6
 
7
7
  export function export_stuff(paras: HandleSheetParams): string | null {
8
8
  let {
@@ -14,8 +14,14 @@ export function export_stuff(paras: HandleSheetParams): string | null {
14
14
  packagename,
15
15
  tables,
16
16
  xxtea,
17
+ moreOptions,
17
18
  } = paras;
18
19
 
20
+ let isSkipExportDefaults = !!moreOptions.SkipDefaults ?? false
21
+ if (isSkipExportDefaults0) {
22
+ isSkipExportDefaults = true
23
+ }
24
+
19
25
  let firstLetterUpper = function (str: string) {
20
26
  return str.charAt(0).toUpperCase() + str.slice(1);
21
27
  };