@less-is-more/less-js 1.4.32-5 → 1.4.33-0
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/package.json +1 -1
- package/src/cache.js +2 -2
package/package.json
CHANGED
package/src/cache.js
CHANGED
|
@@ -88,14 +88,14 @@ module.exports = class Cache {
|
|
|
88
88
|
|
|
89
89
|
static _zip(text) {
|
|
90
90
|
const zipData = zlib
|
|
91
|
-
.
|
|
91
|
+
.gzipSync(Buffer.from(text, "utf-8"))
|
|
92
92
|
.toString("base64");
|
|
93
93
|
return zipData;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
static _unzip(base64) {
|
|
97
97
|
const buffer = Buffer.from(base64, "base64");
|
|
98
|
-
const text = zlib.
|
|
98
|
+
const text = zlib.gunzipSync(buffer).toString();
|
|
99
99
|
return text;
|
|
100
100
|
}
|
|
101
101
|
|