@aliyun-obv/api 0.0.57 → 0.0.59
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/api.es.js +3 -9
- package/package.json +3 -3
package/dist/api.es.js
CHANGED
|
@@ -37,10 +37,7 @@ var __spreadValues$4 = (a, b) => {
|
|
|
37
37
|
}
|
|
38
38
|
return a;
|
|
39
39
|
};
|
|
40
|
-
var __publicField = (obj, key, value) =>
|
|
41
|
-
__defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
42
|
-
return value;
|
|
43
|
-
};
|
|
40
|
+
var __publicField = (obj, key, value) => __defNormalProp$4(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
44
41
|
var __async$6 = (__this, __arguments, generator) => {
|
|
45
42
|
return new Promise((resolve, reject) => {
|
|
46
43
|
var fulfilled = (value) => {
|
|
@@ -118,8 +115,7 @@ class BaseFetch {
|
|
|
118
115
|
}
|
|
119
116
|
get(_0) {
|
|
120
117
|
return __async$6(this, arguments, function* (api, params = {}, options = {}) {
|
|
121
|
-
if (isTest)
|
|
122
|
-
return Promise.resolve({ res: void 0 });
|
|
118
|
+
if (isTest) return Promise.resolve({ res: void 0 });
|
|
123
119
|
try {
|
|
124
120
|
const { url: newApi, init: newInit } = yield this.beforeRequest(
|
|
125
121
|
api,
|
|
@@ -148,8 +144,7 @@ class BaseFetch {
|
|
|
148
144
|
_post(_0) {
|
|
149
145
|
return __async$6(this, arguments, function* (api, params = {}, options = {}, defaultInit) {
|
|
150
146
|
var _a;
|
|
151
|
-
if (isTest)
|
|
152
|
-
return Promise.resolve({ res: void 0 });
|
|
147
|
+
if (isTest) return Promise.resolve({ res: void 0 });
|
|
153
148
|
try {
|
|
154
149
|
const contentType = ((_a = options == null ? void 0 : options.headers) == null ? void 0 : _a["Content-Type"]) || "application/x-www-form-urlencoded";
|
|
155
150
|
const fetchInit = _.merge({}, defaultInit, {
|
|
@@ -519,7 +514,6 @@ const errorHandler = (request, error, options) => {
|
|
|
519
514
|
request
|
|
520
515
|
);
|
|
521
516
|
}
|
|
522
|
-
return "";
|
|
523
517
|
}
|
|
524
518
|
let errorMessage = error.message;
|
|
525
519
|
throw errorMessage;
|
package/package.json
CHANGED
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
"urijs": "^1.19.1",
|
|
11
11
|
"lodash": "^4.17.21",
|
|
12
12
|
"@alicloud/console-base-error-prompt-proxy": "^1.9.12",
|
|
13
|
-
"@aliyun-obv/i18n": "0.0.
|
|
14
|
-
"@aliyun-obv/utils": "0.0.
|
|
13
|
+
"@aliyun-obv/i18n": "0.0.59",
|
|
14
|
+
"@aliyun-obv/utils": "0.0.59",
|
|
15
15
|
"@alifd/next": "^1.27.11",
|
|
16
16
|
"styled-components": "^5.2.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {},
|
|
19
|
-
"version": "0.0.
|
|
19
|
+
"version": "0.0.59"
|
|
20
20
|
}
|