@memberjunction/codegen-lib 0.9.27 → 0.9.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/logging.js CHANGED
@@ -8,33 +8,33 @@ const config_1 = require("./config");
8
8
  const core_1 = require("@memberjunction/core");
9
9
  const path_1 = __importDefault(require("path"));
10
10
  function logError(message, ...args) {
11
- logToConsole(message, true, args);
12
- logToFile(message, true, args);
11
+ logToConsole(message, true, ...args);
12
+ logToFile(message, true, ...args);
13
13
  }
14
14
  exports.logError = logError;
15
15
  function logStatus(message, ...args) {
16
- logToConsole(message, false, args);
17
- logToFile(message, false, args);
16
+ logToConsole(message, false, ...args);
17
+ logToFile(message, false, ...args);
18
18
  }
19
19
  exports.logStatus = logStatus;
20
20
  function logToConsole(message, isError, ...args) {
21
21
  if (config_1.configInfo.logging.console) {
22
22
  if (isError)
23
- (0, core_1.LogError)(message, null, args);
23
+ (0, core_1.LogError)(message, null, ...args);
24
24
  else
25
- (0, core_1.LogStatus)(message, null, args);
25
+ (0, core_1.LogStatus)(message, null, ...args);
26
26
  }
27
27
  }
28
28
  function logToFile(message, isError, ...args) {
29
29
  if (config_1.configInfo.logging.log) {
30
30
  if (config_1.configInfo.logging.logFile === null || config_1.configInfo.logging.logFile === undefined || config_1.configInfo.logging.logFile === '')
31
- (0, core_1.LogError)('ERROR: No log file specified in config.json');
31
+ (0, core_1.LogError)('ERROR: No log file specified in config.json', null, ...args);
32
32
  else {
33
33
  const file = path_1.default.join(config_1.currentWorkingDirectory, config_1.configInfo.logging.logFile);
34
34
  if (isError)
35
- (0, core_1.LogError)(message, file, args);
35
+ (0, core_1.LogError)(message, file, ...args);
36
36
  else
37
- (0, core_1.LogStatus)(message, file, args);
37
+ (0, core_1.LogStatus)(message, file, ...args);
38
38
  }
39
39
  }
40
40
  }
@@ -1 +1 @@
1
- {"version":3,"file":"logging.js","sourceRoot":"","sources":["../src/logging.ts"],"names":[],"mappings":";;;;;;AA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AAI,CAAC,CAAA;aACnE;YACH,MAAM,IAAI,GAAW,cAAI,CAAC,IAAI,CAAC,gCAAuB,EAAE,mBAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;YACnF,IAAI,OAAO;gBACR,IAAA,eAAQ,EAAC,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,CAAA;;gBAEhC,IAAA,gBAAS,EAAC,OAAO,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,CAAA;SACtC;KACH;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/codegen-lib",
3
- "version": "0.9.27",
3
+ "version": "0.9.28",
4
4
  "description": "Library used by the CodeGen executable to generate code for the MemberJunction platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "typescript": "^5.0.3"
20
20
  },
21
21
  "dependencies": {
22
- "@memberjunction/core": "^0.9.67",
23
- "@memberjunction/global": "^0.9.70",
24
- "@memberjunction/sqlserver-dataprovider": "^0.9.62",
22
+ "@memberjunction/core": "^0.9.68",
23
+ "@memberjunction/global": "^0.9.71",
24
+ "@memberjunction/sqlserver-dataprovider": "^0.9.63",
25
25
  "env-var": "^7.4.1",
26
26
  "fs-extra": "^11.1.1",
27
27
  "typeorm": "^0.3.17"