@hzab/data-model 1.8.9-alpha.0 → 1.8.9-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/data-model",
3
- "version": "1.8.9-alpha.0",
3
+ "version": "1.8.9-alpha.1",
4
4
  "description": "data model",
5
5
  "main": "src",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "version:patch": "npm version patch",
14
14
  "version:minior": "npm version minor",
15
15
  "version:major": "npm version major",
16
- "publish": "npm publish --access public",
16
+ "publish:stable": "npm publish --access public",
17
17
  "prepare": "husky install",
18
18
  "docs": "typedoc"
19
19
  },
package/src/data-model.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import _ from "lodash";
2
- import axios from "./axios";
2
+ import { axios, axiosDef } from "./axios";
3
3
 
4
4
  import { objToFormData, formDataToObj, _$Temp, setDefaultAxios, setDefaultErrMsg, setNetworkErrMsg } from "./utils";
5
5
 
@@ -458,8 +458,8 @@ class DataModel {
458
458
  }
459
459
 
460
460
  handleRes(response = {}, resolve, reject) {
461
- if (axios.isCancel(response)) {
462
- console.info("errorHandler axios.isCancel", response);
461
+ if (axiosDef.isCancel(response)) {
462
+ console.info("errorHandler axiosDef.isCancel", response);
463
463
  return;
464
464
  }
465
465
  if (this.isResponse) {
@@ -504,8 +504,8 @@ class DataModel {
504
504
  }
505
505
 
506
506
  errorHandler(err = {}, reject) {
507
- if (axios.isCancel(err)) {
508
- console.info("errorHandler axios.isCancel", err);
507
+ if (axiosDef.isCancel(err)) {
508
+ console.info("errorHandler axiosDef.isCancel", err);
509
509
  return;
510
510
  }
511
511
  if (this.isResponse) {