@openfin/cloud-interop-core-api 0.0.1-alpha.e6aa806 → 0.0.1-alpha.e704592

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 +2 -2
  2. package/index.mjs +2 -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;
@@ -688,7 +688,7 @@ class CloudInteropAPI {
688
688
  }
689
689
  const payload = parts[1];
690
690
  // Decode base64url encoded payload
691
- const decodedBytes = buffer.Buffer.from(u(payload), 'base64');
691
+ const decodedBytes = buffer.Buffer.from(d(payload), 'base64');
692
692
  const payloadJson = decodedBytes.toString('utf8');
693
693
  // Parse JSON to get the exp claim
694
694
  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;
@@ -686,7 +686,7 @@ class CloudInteropAPI {
686
686
  }
687
687
  const payload = parts[1];
688
688
  // Decode base64url encoded payload
689
- const decodedBytes = Buffer.from(u(payload), 'base64');
689
+ const decodedBytes = Buffer.from(d(payload), 'base64');
690
690
  const payloadJson = decodedBytes.toString('utf8');
691
691
  // Parse JSON to get the exp claim
692
692
  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.e6aa806",
3
+ "version": "0.0.1-alpha.e704592",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.cjs",