Skip to content

Commit

Permalink
Add debug line to investigate test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
chrischrischris committed Oct 18, 2023
1 parent d26bfa8 commit be01bd7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/blocks/caas-config/caas-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ const fgKeyReplacer = (key, value) => (key === 'fetchCardsFromFloodgateTree' ? u

const getEncodedObject = async (obj, replacer = null) => {
if (!window.CompressionStream) {
console.log('USING CompressionStream pollyfill');
await import('../../deps/compression-streams-pollyfill.js');
}

Expand All @@ -775,9 +776,11 @@ const getEncodedObject = async (obj, replacer = null) => {

const b64encode = (buf) => btoa(String.fromCharCode(...new Uint8Array(buf)));

console.log(JSON.stringify(obj, fgKeyReplacer));
const stream = objToStream(obj);
const compressedResponse = await compressStream(stream);
const buffer = await responseToBuffer(compressedResponse);
console.log(new Int32Array(buffer));
return b64encode(buffer);
};

Expand Down

0 comments on commit be01bd7

Please sign in to comment.