@noah-libjs/request 0.0.49 → 0.0.50

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
10
  import axios, { Axios } from 'axios';
11
11
  import utils from 'axios/lib/utils';
12
- import { MyLog, EventEmitter, getSearchParamsAll, isNil, isObject, isFunction, safe_async_call, expect_array, isString, cache_fetch, get } from '@noah-libjs/utils';
12
+ import { MyLog, EventEmitter, getSearchParamsAll, isNil, isObjectLike, isFunction, safe_async_call, expect_array, isString, cache_fetch, get } from '@noah-libjs/utils';
13
13
  import bind from 'axios/lib/helpers/bind';
14
14
  var codeMessage = {
15
15
  200: '服务器成功返回请求的数据。',
@@ -275,7 +275,7 @@ Object.defineProperty(Request, "logger", {
275
275
  });
276
276
  var request = new Request();
277
277
  function doUnboxing(res) {
278
- var isBoxing = (!isNil(res === null || res === void 0 ? void 0 : res.code) || !isNil(res === null || res === void 0 ? void 0 : res.status)) && isObject(res.data);
278
+ var isBoxing = (!isNil(res === null || res === void 0 ? void 0 : res.code) || !isNil(res === null || res === void 0 ? void 0 : res.status)) && isObjectLike(res.data);
279
279
  if (isBoxing) {
280
280
  return res.data;
281
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noah-libjs/request",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -21,7 +21,7 @@
21
21
  "access": "public"
22
22
  },
23
23
  "dependencies": {
24
- "@noah-libjs/utils": "^0.0.49",
24
+ "@noah-libjs/utils": "^0.0.50",
25
25
  "axios": "^0.26.1",
26
26
  "store": "2.x"
27
27
  },
@@ -32,5 +32,5 @@
32
32
  "keywords": [],
33
33
  "author": "",
34
34
  "license": "MIT",
35
- "gitHead": "79e2242954102e2d87978912eff9ab8d7cbd1b7d"
35
+ "gitHead": "d7a3ef40f91e9151067ef7c877fdbf1b52b66fdf"
36
36
  }