@larksuiteoapi/node-sdk 1.0.6 → 1.0.7

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/es/index.js CHANGED
@@ -14102,6 +14102,7 @@ class Client extends Client$1 {
14102
14102
  }))
14103
14103
  .catch((e) => {
14104
14104
  this.logger.error(e);
14105
+ throw e;
14105
14106
  });
14106
14107
  return res;
14107
14108
  });
package/lib/index.js CHANGED
@@ -14117,6 +14117,7 @@ class Client extends Client$1 {
14117
14117
  }))
14118
14118
  .catch((e) => {
14119
14119
  this.logger.error(e);
14120
+ throw e;
14120
14121
  });
14121
14122
  return res;
14122
14123
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@larksuiteoapi/node-sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "larksuite open sdk for nodejs",
5
5
  "keywords": [
6
6
  "feishu",
package/types/index.d.ts CHANGED
@@ -10,7 +10,6 @@
10
10
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
11
  */
12
12
 
13
- import * as axios from 'axios';
14
13
  import { AxiosRequestConfig } from 'axios';
15
14
 
16
15
  interface Cache {
@@ -29725,7 +29724,7 @@ declare class Client extends Client$1 {
29725
29724
  domain: string;
29726
29725
  constructor(params: IClientParams);
29727
29726
  formatPayload(payload?: IPayload, options?: IRequestOptions): Promise<Required<IPayload>>;
29728
- request(payload: AxiosRequestConfig, options?: IRequestOptions): Promise<void | axios.AxiosResponse<any, any>>;
29727
+ request<T = any>(payload: AxiosRequestConfig, options?: IRequestOptions): Promise<T>;
29729
29728
  }
29730
29729
 
29731
29730
  declare const withAll: (withList: IRequestOptions[]) => IRequestOptions;