@jayfong/x-server-client-helper 1.30.0 → 1.30.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.
@@ -254,11 +254,11 @@ var Shorty = /*#__PURE__*/function (_ShortyRaw) {
254
254
  var _proto = Shorty.prototype;
255
255
 
256
256
  _proto.encode = function encode(data) {
257
- return this.inflate(data);
257
+ return this.deflate(data);
258
258
  };
259
259
 
260
260
  _proto.decode = function decode(data) {
261
- return this.deflate(data);
261
+ return this.inflate(data);
262
262
  };
263
263
 
264
264
  return Shorty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server-client-helper",
3
- "version": "1.30.0",
3
+ "version": "1.30.1",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "_cjs/client_helper.js",
package/utils/shorty.js CHANGED
@@ -247,11 +247,11 @@ export var Shorty = /*#__PURE__*/function (_ShortyRaw) {
247
247
  var _proto = Shorty.prototype;
248
248
 
249
249
  _proto.encode = function encode(data) {
250
- return this.inflate(data);
250
+ return this.deflate(data);
251
251
  };
252
252
 
253
253
  _proto.decode = function decode(data) {
254
- return this.deflate(data);
254
+ return this.inflate(data);
255
255
  };
256
256
 
257
257
  return Shorty;