@goplus123/core-api 1.1.4 → 1.1.5

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/dist/index.cjs CHANGED
@@ -1833,16 +1833,16 @@ var WsRpcClient = (_class7 = class {
1833
1833
  if (lowered === "false") return false;
1834
1834
  }
1835
1835
  }
1836
+ const rawStatus = this.pickField(value, ["status", "statusCode", "httpStatus", "http_code"]);
1837
+ if (rawStatus !== void 0) {
1838
+ const status = this.normalizeNumber(rawStatus);
1839
+ return typeof status === "number" ? status === 200 : false;
1840
+ }
1836
1841
  const rawCode = this.pickField(value, ["code", "errCode", "errorCode", "resultCode"]);
1837
1842
  if (rawCode !== void 0) {
1838
1843
  const code = this.normalizeNumber(rawCode);
1839
1844
  return typeof code === "number" ? code === 0 || code === 200 : false;
1840
1845
  }
1841
- const rawStatus = this.pickField(value, ["status", "statusCode", "httpStatus", "http_code"]);
1842
- if (rawStatus !== void 0) {
1843
- const status = this.normalizeNumber(rawStatus);
1844
- return typeof status === "number" ? status === 0 || status === 200 : false;
1845
- }
1846
1846
  if (this.options.unwrapData && "data" in value) return true;
1847
1847
  return true;
1848
1848
  }
package/dist/index.js CHANGED
@@ -1833,16 +1833,16 @@ var WsRpcClient = class {
1833
1833
  if (lowered === "false") return false;
1834
1834
  }
1835
1835
  }
1836
+ const rawStatus = this.pickField(value, ["status", "statusCode", "httpStatus", "http_code"]);
1837
+ if (rawStatus !== void 0) {
1838
+ const status = this.normalizeNumber(rawStatus);
1839
+ return typeof status === "number" ? status === 200 : false;
1840
+ }
1836
1841
  const rawCode = this.pickField(value, ["code", "errCode", "errorCode", "resultCode"]);
1837
1842
  if (rawCode !== void 0) {
1838
1843
  const code = this.normalizeNumber(rawCode);
1839
1844
  return typeof code === "number" ? code === 0 || code === 200 : false;
1840
1845
  }
1841
- const rawStatus = this.pickField(value, ["status", "statusCode", "httpStatus", "http_code"]);
1842
- if (rawStatus !== void 0) {
1843
- const status = this.normalizeNumber(rawStatus);
1844
- return typeof status === "number" ? status === 0 || status === 200 : false;
1845
- }
1846
1846
  if (this.options.unwrapData && "data" in value) return true;
1847
1847
  return true;
1848
1848
  }