dff-util 1.2.3 → 1.2.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/README.md CHANGED
@@ -164,14 +164,6 @@ ConstValue = {
164
164
  "Dec",
165
165
  ],
166
166
 
167
- HTTP_METHODS: {
168
- GET: "GET",
169
- POST: "POST",
170
- PUT: "PUT",
171
- DELETE: "DELETE"
172
- }
173
-
174
-
175
167
  };
176
168
  ```
177
169
 
@@ -375,7 +367,7 @@ export type PaginationResponseType = {
375
367
  status?: string | number;
376
368
  data?: any;
377
369
  error?: any;
378
- count?: number;
370
+ total?: number;
379
371
  skip?: number;
380
372
  limit?: number;
381
373
  };
@@ -42,10 +42,4 @@ export declare const ConstValue: {
42
42
  LIGHT: string;
43
43
  DARK: string;
44
44
  MonthNames: string[];
45
- HTTP_METHODS: {
46
- GET: string;
47
- POST: string;
48
- PUT: string;
49
- DELETE: string;
50
- };
51
45
  };
@@ -62,10 +62,4 @@ exports.ConstValue = {
62
62
  "Nov",
63
63
  "Dec",
64
64
  ],
65
- HTTP_METHODS: {
66
- GET: "GET",
67
- POST: "POST",
68
- PUT: "PUT",
69
- DELETE: "DELETE"
70
- }
71
65
  };
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.2.3",
3
+ "version": "1.2.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {