dff-util 1.2.3 → 1.2.4
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/README.md +0 -8
- package/dist/main/const-value.d.ts +0 -6
- package/dist/main/const-value.js +0 -6
- package/dist/main/http.d.ts +6 -0
- package/dist/main/http.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/main/const-value.js
CHANGED
package/dist/main/http.d.ts
CHANGED
|
@@ -14,6 +14,12 @@ export declare const BaseHeaders: {
|
|
|
14
14
|
authorization: null;
|
|
15
15
|
'x-request-id': null;
|
|
16
16
|
};
|
|
17
|
+
export declare const HttpMethods: {
|
|
18
|
+
GET: string;
|
|
19
|
+
POST: string;
|
|
20
|
+
PUT: string;
|
|
21
|
+
DELETE: string;
|
|
22
|
+
};
|
|
17
23
|
export declare class Http {
|
|
18
24
|
static API_BASE_URL: string;
|
|
19
25
|
static TOKEN_URL: string;
|
package/dist/main/http.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Http = exports.BaseHeaders = exports.HttpHeaders = exports.RespType = void 0;
|
|
12
|
+
exports.Http = exports.HttpMethods = exports.BaseHeaders = exports.HttpHeaders = exports.RespType = void 0;
|
|
13
13
|
const util_1 = require("./util");
|
|
14
14
|
var RespType;
|
|
15
15
|
(function (RespType) {
|
|
@@ -28,6 +28,12 @@ exports.BaseHeaders = {
|
|
|
28
28
|
authorization: null,
|
|
29
29
|
'x-request-id': null,
|
|
30
30
|
};
|
|
31
|
+
exports.HttpMethods = {
|
|
32
|
+
GET: "GET",
|
|
33
|
+
POST: "POST",
|
|
34
|
+
PUT: "PUT",
|
|
35
|
+
DELETE: "DELETE"
|
|
36
|
+
};
|
|
31
37
|
class Http {
|
|
32
38
|
static RespData(response_1) {
|
|
33
39
|
return __awaiter(this, arguments, void 0, function* (response, type = RespType.JSON) {
|