@botonic/core 0.54.0 → 0.54.1
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/lib/cjs/pusher-utils.js
CHANGED
|
@@ -13,7 +13,6 @@ function decompressData(compressedData) {
|
|
|
13
13
|
const charData = strData.split('').map(x => x.charCodeAt(0)); // Convert binary string to character-number array
|
|
14
14
|
const binData = new Uint8Array(charData); // Turn number array into byte-array
|
|
15
15
|
const data = (0, pako_1.inflate)(binData);
|
|
16
|
-
|
|
17
|
-
return String.fromCharCode.apply(null, new Uint8Array(data)); // Convert gunzipped byteArray back to ascii string
|
|
16
|
+
return new TextDecoder('utf-8').decode(data);
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=pusher-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pusher-utils.js","sourceRoot":"","sources":["../../src/pusher-utils.ts"],"names":[],"mappings":";;AAQA,
|
|
1
|
+
{"version":3,"file":"pusher-utils.js","sourceRoot":"","sources":["../../src/pusher-utils.ts"],"names":[],"mappings":";;AAQA,wCAMC;AAdD,+BAA8B;AAE9B;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,cAAsB;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,CAAA,CAAC,0CAA0C;IAC/E,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,kDAAkD;IAC/G,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAA,CAAC,oCAAoC;IAC7E,MAAM,IAAI,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,CAAA;IAC7B,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAC9C,CAAC"}
|
package/lib/esm/pusher-utils.js
CHANGED
|
@@ -13,7 +13,6 @@ function decompressData(compressedData) {
|
|
|
13
13
|
const charData = strData.split('').map(x => x.charCodeAt(0)); // Convert binary string to character-number array
|
|
14
14
|
const binData = new Uint8Array(charData); // Turn number array into byte-array
|
|
15
15
|
const data = (0, pako_1.inflate)(binData);
|
|
16
|
-
|
|
17
|
-
return String.fromCharCode.apply(null, new Uint8Array(data)); // Convert gunzipped byteArray back to ascii string
|
|
16
|
+
return new TextDecoder('utf-8').decode(data);
|
|
18
17
|
}
|
|
19
18
|
//# sourceMappingURL=pusher-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pusher-utils.js","sourceRoot":"","sources":["../../src/pusher-utils.ts"],"names":[],"mappings":";;AAQA,
|
|
1
|
+
{"version":3,"file":"pusher-utils.js","sourceRoot":"","sources":["../../src/pusher-utils.ts"],"names":[],"mappings":";;AAQA,wCAMC;AAdD,+BAA8B;AAE9B;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,cAAsB;IACnD,MAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,CAAA,CAAC,0CAA0C;IAC/E,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA,CAAC,kDAAkD;IAC/G,MAAM,OAAO,GAAG,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAA,CAAC,oCAAoC;IAC7E,MAAM,IAAI,GAAG,IAAA,cAAO,EAAC,OAAO,CAAC,CAAA;IAC7B,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAC9C,CAAC"}
|
package/package.json
CHANGED
package/src/pusher-utils.ts
CHANGED
|
@@ -11,6 +11,5 @@ export function decompressData(compressedData: string): string {
|
|
|
11
11
|
const charData = strData.split('').map(x => x.charCodeAt(0)) // Convert binary string to character-number array
|
|
12
12
|
const binData = new Uint8Array(charData) // Turn number array into byte-array
|
|
13
13
|
const data = inflate(binData)
|
|
14
|
-
|
|
15
|
-
return String.fromCharCode.apply(null, new Uint8Array(data)) // Convert gunzipped byteArray back to ascii string
|
|
14
|
+
return new TextDecoder('utf-8').decode(data)
|
|
16
15
|
}
|