chyz 2.0.0-rc.15 → 2.0.0-rc.16

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.
@@ -1,7 +1,7 @@
1
1
  import { Component } from "./Component";
2
2
  export declare class RestClient extends Component {
3
- post(url: string, args: any[], headers?: any): any;
4
- get(url: string, args: any[], headers?: any): any;
3
+ post(url: string, args?: any[], headers?: any): any;
4
+ get(url: string, args?: any[], headers?: any): any;
5
5
  Rest(params: any): any;
6
6
  }
7
7
  //# sourceMappingURL=RestClient.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RestClient.d.ts","sourceRoot":"","sources":["../../src/base/RestClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAItC,qBAAa,UAAW,SAAQ,SAAS;IAC9B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAC,OAAO,GAAC,GAAM;IAI5C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAC,OAAO,GAAC,GAAM;IAI3C,IAAI,CAAC,MAAM,EAAE,GAAG;CAG1B"}
1
+ {"version":3,"file":"RestClient.d.ts","sourceRoot":"","sources":["../../src/base/RestClient.ts"],"names":[],"mappings":"AAUA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAItC,qBAAa,UAAW,SAAQ,SAAS;IAC9B,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,EAAC,OAAO,CAAC,EAAC,GAAG;IAI3C,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,EAAC,OAAO,CAAC,EAAC,GAAG;IAI1C,IAAI,CAAC,MAAM,EAAE,GAAG;CAG1B"}
@@ -12,10 +12,10 @@ exports.RestClient = void 0;
12
12
  const Component_1 = require("./Component");
13
13
  const axios = require('axios');
14
14
  class RestClient extends Component_1.Component {
15
- post(url, args, headers = {}) {
15
+ post(url, args, headers) {
16
16
  return axios.post(url, args, headers);
17
17
  }
18
- get(url, args, headers = {}) {
18
+ get(url, args, headers) {
19
19
  return axios.get(url, args, headers);
20
20
  }
21
21
  Rest(params) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chyz",
3
- "version": "2.0.0-rc.15",
3
+ "version": "2.0.0-rc.16",
4
4
  "description": "Nodejs Micro service Framework",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",