@openfin/cloud-interop-core-api 0.0.1-alpha.8030466 → 0.0.1-alpha.80405d3

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.
Files changed (3) hide show
  1. package/index.cjs +3 -2
  2. package/index.mjs +3 -2
  3. package/package.json +1 -1
package/index.cjs CHANGED
@@ -5,7 +5,7 @@ require('fs');
5
5
  require('path');
6
6
  var mqtt = require('mqtt');
7
7
 
8
- var u=n=>{let e=n.replaceAll("-","+").replaceAll("_","/");return e.padEnd(e.length+(4-e.length%4)%4,"=")};
8
+ var d=n=>{let t=n.replaceAll("-","+").replaceAll("_","/");return t.padEnd(t.length+(4-t.length%4)%4,"=")};
9
9
 
10
10
  class CloudInteropAPIError extends Error {
11
11
  code;
@@ -600,6 +600,7 @@ class CloudInteropAPI {
600
600
  }
601
601
  }
602
602
  #handleMessage(topic, message, sessionDetails) {
603
+ this.#logger('debug', `Received message on topic: ${topic}`);
603
604
  if (message.length === 0 || !sessionDetails) {
604
605
  // Ignore clean up messages
605
606
  return;
@@ -690,7 +691,7 @@ class CloudInteropAPI {
690
691
  }
691
692
  const payload = parts[1];
692
693
  // Decode base64url encoded payload
693
- const decodedBytes = buffer.Buffer.from(u(payload), 'base64');
694
+ const decodedBytes = buffer.Buffer.from(d(payload), 'base64');
694
695
  const payloadJson = decodedBytes.toString('utf8');
695
696
  // Parse JSON to get the exp claim
696
697
  const claims = JSON.parse(payloadJson);
package/index.mjs CHANGED
@@ -3,7 +3,7 @@ import 'fs';
3
3
  import 'path';
4
4
  import mqtt from 'mqtt';
5
5
 
6
- var u=n=>{let e=n.replaceAll("-","+").replaceAll("_","/");return e.padEnd(e.length+(4-e.length%4)%4,"=")};
6
+ var d=n=>{let t=n.replaceAll("-","+").replaceAll("_","/");return t.padEnd(t.length+(4-t.length%4)%4,"=")};
7
7
 
8
8
  class CloudInteropAPIError extends Error {
9
9
  code;
@@ -598,6 +598,7 @@ class CloudInteropAPI {
598
598
  }
599
599
  }
600
600
  #handleMessage(topic, message, sessionDetails) {
601
+ this.#logger('debug', `Received message on topic: ${topic}`);
601
602
  if (message.length === 0 || !sessionDetails) {
602
603
  // Ignore clean up messages
603
604
  return;
@@ -688,7 +689,7 @@ class CloudInteropAPI {
688
689
  }
689
690
  const payload = parts[1];
690
691
  // Decode base64url encoded payload
691
- const decodedBytes = Buffer.from(u(payload), 'base64');
692
+ const decodedBytes = Buffer.from(d(payload), 'base64');
692
693
  const payloadJson = decodedBytes.toString('utf8');
693
694
  // Parse JSON to get the exp claim
694
695
  const claims = JSON.parse(payloadJson);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/cloud-interop-core-api",
3
- "version": "0.0.1-alpha.8030466",
3
+ "version": "0.0.1-alpha.80405d3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",