@rootintf/json-msg 1.1.3 → 1.1.5

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.
@@ -174,7 +174,7 @@ var JSON_Msg = (function() {
174
174
  validate : function (json) {
175
175
  const b_valid = schema_Msg(json);
176
176
  if (!b_valid)
177
- log_(l_.VALIDATION, 'JSON_Msg: validate: ', schema_Msg.errors);
177
+ log_(l_.VALIDATION, () => ['JSON_Msg: validate: ', schema_Msg.errors]);
178
178
  return b_valid;
179
179
  },
180
180
  // TODO: requires a separate ajv module require, and JTD specific schema
@@ -196,7 +196,7 @@ var JSON_Msg_msg = (function() {
196
196
  return false;
197
197
  const b_valid= schema_Msg_msg(json);
198
198
  if (!b_valid)
199
- log_(l_.VALIDATION, 'JSON_Msg_msg: validate: ', schema_Msg_msg.errors);
199
+ log_(l_.VALIDATION, () => ['JSON_Msg_msg: validate: ', schema_Msg_msg.errors]);
200
200
  return b_valid;
201
201
  }
202
202
  }
@@ -224,7 +224,7 @@ var JSON_MsgAck_msg = (function() {
224
224
  return false;
225
225
  const b_valid= schema_MsgAck_msg(json);
226
226
  if (!b_valid)
227
- log_(l_.VALIDATION, 'JSON_MsgAck: validate: ', schema_MsgAck_msg.errors);
227
+ log_(l_.VALIDATION, () => ['JSON_MsgAck: validate: ', schema_MsgAck_msg.errors]);
228
228
  return b_valid;
229
229
  }
230
230
  }
@@ -172,7 +172,7 @@ var JSON_Msg = (function() {
172
172
  validate : function (json) {
173
173
  const b_valid = schema_Msg(json);
174
174
  if (!b_valid)
175
- log_(l_.VALIDATION, 'JSON_Msg: validate: ', schema_Msg.errors);
175
+ log_(l_.VALIDATION, () => ['JSON_Msg: validate: ', schema_Msg.errors]);
176
176
  return b_valid;
177
177
  },
178
178
  // TODO: requires a separate ajv module require, and JTD specific schema
@@ -194,7 +194,7 @@ var JSON_Msg_msg = (function() {
194
194
  return false;
195
195
  const b_valid= schema_Msg_msg(json);
196
196
  if (!b_valid)
197
- log_(l_.VALIDATION, 'JSON_Msg_msg: validate: ', schema_Msg_msg.errors);
197
+ log_(l_.VALIDATION, () => ['JSON_Msg_msg: validate: ', schema_Msg_msg.errors]);
198
198
  return b_valid;
199
199
  }
200
200
  }
@@ -222,7 +222,7 @@ var JSON_MsgAck_msg = (function() {
222
222
  return false;
223
223
  const b_valid= schema_MsgAck_msg(json);
224
224
  if (!b_valid)
225
- log_(l_.VALIDATION, 'JSON_MsgAck: validate: ', schema_MsgAck_msg.errors);
225
+ log_(l_.VALIDATION, () => ['JSON_MsgAck: validate: ', schema_MsgAck_msg.errors]);
226
226
  return b_valid;
227
227
  }
228
228
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rootintf/json-msg",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "dist/json-msg.cjs.js",
6
6
  "browser": "dist/json-msg.es.mjs",
@@ -27,7 +27,7 @@ var JSON_Msg = (function() {
27
27
  validate : function (json) {
28
28
  const b_valid = schema_Msg(json);
29
29
  if (!b_valid)
30
- log_(l_.VALIDATION, 'JSON_Msg: validate: ', schema_Msg.errors)
30
+ log_(l_.VALIDATION, () => ['JSON_Msg: validate: ', schema_Msg.errors])
31
31
  return b_valid;
32
32
  },
33
33
  // TODO: requires a separate ajv module require, and JTD specific schema
@@ -49,7 +49,7 @@ var JSON_Msg_msg = (function() {
49
49
  return false;
50
50
  const b_valid= schema_Msg_msg(json);
51
51
  if (!b_valid)
52
- log_(l_.VALIDATION, 'JSON_Msg_msg: validate: ', schema_Msg_msg.errors)
52
+ log_(l_.VALIDATION, () => ['JSON_Msg_msg: validate: ', schema_Msg_msg.errors])
53
53
  return b_valid;
54
54
  }
55
55
  }
@@ -77,7 +77,7 @@ var JSON_MsgAck_msg = (function() {
77
77
  return false;
78
78
  const b_valid= schema_MsgAck_msg(json);
79
79
  if (!b_valid)
80
- log_(l_.VALIDATION, 'JSON_MsgAck: validate: ', schema_MsgAck_msg.errors)
80
+ log_(l_.VALIDATION, () => ['JSON_MsgAck: validate: ', schema_MsgAck_msg.errors])
81
81
  return b_valid;
82
82
  }
83
83
  }