@capillarytech/cap-ui-utils 1.4.35-alpha.1 → 1.4.35-alpha.2

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.
package/index.js CHANGED
@@ -9,3 +9,4 @@ export { default as loadable, FORCE_REFRESH_NOTIFIER, FORCE_REFRESH_SECONDS } fr
9
9
  export { default as GTMTracker } from './utils/gtmTracker';
10
10
  export { default as compileHandlebars } from './utils/compileHandlebars';
11
11
  export { default as sanitizeTemplateWithRegexp } from "./utils/contentSanitizationHelper";
12
+ export { default as decompressJsonObject } from "./utils/zlibDataDecompress";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capillarytech/cap-ui-utils",
3
- "version": "1.4.35-alpha.1",
3
+ "version": "1.4.35-alpha.2",
4
4
  "description": "Utility functions shared accross all the modules",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -16,7 +16,7 @@ function decodeBase64(base64String) {
16
16
  }
17
17
 
18
18
  // Function to decompress base64-encoded compressed JSON string
19
- export const decompressJsonObject = async (base64Compressed) => {
19
+ const decompressJsonObject = async (base64Compressed) => {
20
20
  try {
21
21
  // Decode the base64 string to buffer
22
22
  if (base64Compressed && typeof base64Compressed === 'string') {
@@ -35,3 +35,4 @@ export const decompressJsonObject = async (base64Compressed) => {
35
35
  }
36
36
  };
37
37
 
38
+ export default decompressJsonObject;