@ipsme/msgenv-mqtt 0.1.6 → 0.1.7

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.
@@ -31406,7 +31406,7 @@ class MsgEnvSingleton {
31406
31406
  function subscribe_(handler) {
31407
31407
  if (handler.subscription_ID !== undefined)
31408
31408
  return;
31409
- logr_.log(l_.CONNECTIONS, cfg_.prefix + 'MsgEnv: subscribe');
31409
+ logr_.log(l_.CONNECTIONS, () => [cfg_.prefix + 'MsgEnv: subscribe']);
31410
31410
  // handler.subscription_ID= systemPreferences.subscribeNotification(cfg_.channel, function(event, userInfo, object) {
31411
31411
  // LOGR_.log(l_.REFL, cfg_.prefix +'MsgEnv: onNotification: ', userInfo.msg);
31412
31412
  // this(userInfo.msg);
@@ -31420,7 +31420,7 @@ function subscribe_(handler) {
31420
31420
  }
31421
31421
  // we have to use the ID, rather than the handler itself to unsubsribe
31422
31422
  function unsubscribe_(handler) {
31423
- logr_.log(l_.CONNECTIONS, cfg_.prefix + 'MsgEnv: unsubscribe');
31423
+ logr_.log(l_.CONNECTIONS, () => [cfg_.prefix + 'MsgEnv: unsubscribe']);
31424
31424
  // systemPreferences.unsubscribeNotification(handler.subscription_ID);
31425
31425
  let instance = MsgEnvSingleton.getInstance();
31426
31426
  instance.client.removeListener('message', handler.subscription_ID);
@@ -31430,7 +31430,7 @@ function unsubscribe_(handler) {
31430
31430
  // Normally a {name, object, userInfo} tuple, but in electron it is apparently not possible
31431
31431
  // to specify the (sender) object explicitly; gets set automagically?!
31432
31432
  function publish_(msg) {
31433
- logr_.log(l_.REFLECTION, cfg_.prefix + 'MsgEnv: postNotification: ', msg);
31433
+ logr_.log(l_.REFLECTION, () => [cfg_.prefix + 'MsgEnv: postNotification: ', msg]);
31434
31434
  // systemPreferences.postNotification(cfg_.channel, { "msg" : msg }, true);
31435
31435
  let instance = MsgEnvSingleton.getInstance();
31436
31436
  instance.client.publish(kstr_TOPIC, msg);
@@ -31404,7 +31404,7 @@ class MsgEnvSingleton {
31404
31404
  function subscribe_(handler) {
31405
31405
  if (handler.subscription_ID !== undefined)
31406
31406
  return;
31407
- logr_.log(l_.CONNECTIONS, cfg_.prefix + 'MsgEnv: subscribe');
31407
+ logr_.log(l_.CONNECTIONS, () => [cfg_.prefix + 'MsgEnv: subscribe']);
31408
31408
  // handler.subscription_ID= systemPreferences.subscribeNotification(cfg_.channel, function(event, userInfo, object) {
31409
31409
  // LOGR_.log(l_.REFL, cfg_.prefix +'MsgEnv: onNotification: ', userInfo.msg);
31410
31410
  // this(userInfo.msg);
@@ -31418,7 +31418,7 @@ function subscribe_(handler) {
31418
31418
  }
31419
31419
  // we have to use the ID, rather than the handler itself to unsubsribe
31420
31420
  function unsubscribe_(handler) {
31421
- logr_.log(l_.CONNECTIONS, cfg_.prefix + 'MsgEnv: unsubscribe');
31421
+ logr_.log(l_.CONNECTIONS, () => [cfg_.prefix + 'MsgEnv: unsubscribe']);
31422
31422
  // systemPreferences.unsubscribeNotification(handler.subscription_ID);
31423
31423
  let instance = MsgEnvSingleton.getInstance();
31424
31424
  instance.client.removeListener('message', handler.subscription_ID);
@@ -31428,7 +31428,7 @@ function unsubscribe_(handler) {
31428
31428
  // Normally a {name, object, userInfo} tuple, but in electron it is apparently not possible
31429
31429
  // to specify the (sender) object explicitly; gets set automagically?!
31430
31430
  function publish_(msg) {
31431
- logr_.log(l_.REFLECTION, cfg_.prefix + 'MsgEnv: postNotification: ', msg);
31431
+ logr_.log(l_.REFLECTION, () => [cfg_.prefix + 'MsgEnv: postNotification: ', msg]);
31432
31432
  // systemPreferences.postNotification(cfg_.channel, { "msg" : msg }, true);
31433
31433
  let instance = MsgEnvSingleton.getInstance();
31434
31434
  instance.client.publish(kstr_TOPIC, msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ipsme/msgenv-mqtt",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -79,7 +79,7 @@ class MsgEnvSingleton {
79
79
  function subscribe_(handler) {
80
80
  if (handler.subscription_ID !== undefined)
81
81
  return;
82
- logr_.log(l_.CONNECTIONS, cfg_.prefix +'MsgEnv: subscribe');
82
+ logr_.log(l_.CONNECTIONS, () => [cfg_.prefix +'MsgEnv: subscribe'] );
83
83
  // handler.subscription_ID= systemPreferences.subscribeNotification(cfg_.channel, function(event, userInfo, object) {
84
84
  // LOGR_.log(l_.REFL, cfg_.prefix +'MsgEnv: onNotification: ', userInfo.msg);
85
85
  // this(userInfo.msg);
@@ -96,7 +96,7 @@ function subscribe_(handler) {
96
96
 
97
97
  // we have to use the ID, rather than the handler itself to unsubsribe
98
98
  function unsubscribe_(handler) {
99
- logr_.log(l_.CONNECTIONS, cfg_.prefix +'MsgEnv: unsubscribe');
99
+ logr_.log(l_.CONNECTIONS, () => [cfg_.prefix +'MsgEnv: unsubscribe'] );
100
100
  // systemPreferences.unsubscribeNotification(handler.subscription_ID);
101
101
  let instance = MsgEnvSingleton.getInstance();
102
102
  instance.client.removeListener('message', handler.subscription_ID);
@@ -107,7 +107,7 @@ function unsubscribe_(handler) {
107
107
  // Normally a {name, object, userInfo} tuple, but in electron it is apparently not possible
108
108
  // to specify the (sender) object explicitly; gets set automagically?!
109
109
  function publish_(msg) {
110
- logr_.log(l_.REFLECTION, cfg_.prefix +'MsgEnv: postNotification: ', msg);
110
+ logr_.log(l_.REFLECTION, () => [cfg_.prefix +'MsgEnv: postNotification: ', msg] );
111
111
  // systemPreferences.postNotification(cfg_.channel, { "msg" : msg }, true);
112
112
  let instance = MsgEnvSingleton.getInstance();
113
113
  instance.client.publish(kstr_TOPIC, msg);