@cloud-app-dev/vidc 3.2.19 → 3.2.20

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,2 +1,3 @@
1
- declare const InstanceHistory: History;
1
+ import { VHistory } from '../useHistory/interface';
2
+ declare const InstanceHistory: VHistory;
2
3
  export default InstanceHistory;
@@ -6,6 +6,11 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
6
6
 
7
7
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
8
8
 
9
+ /* eslint-disable no-promise-executor-return */
10
+
11
+ /* eslint-disable @typescript-eslint/no-use-before-define */
12
+
13
+ /* eslint-disable @typescript-eslint/triple-slash-reference */
9
14
  /// <reference path="../../typings/global.d.ts"/>
10
15
  import { AxiosError } from 'axios';
11
16
  import settle from 'axios/lib/core/settle';
@@ -142,6 +147,8 @@ function _getResponse() {
142
147
  }
143
148
 
144
149
  function createRequest(config, signal) {
150
+ var _config$method;
151
+
145
152
  var headers = new Headers(config.headers);
146
153
 
147
154
  if (config.auth) {
@@ -150,7 +157,7 @@ function createRequest(config, signal) {
150
157
  headers.set('Authorization', "Basic ".concat(btoa(username + ':' + password)));
151
158
  }
152
159
 
153
- var method = config.method.toUpperCase();
160
+ var method = config === null || config === void 0 ? void 0 : (_config$method = config.method) === null || _config$method === void 0 ? void 0 : _config$method.toUpperCase();
154
161
  var options = {
155
162
  headers: headers,
156
163
  method: method,
@@ -10,6 +10,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
10
 
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
12
 
13
+ /* eslint-disable no-param-reassign */
13
14
  import Axios from 'axios';
14
15
  import fetchAdapter from "./fetch-adapter";
15
16
  import * as Middleware from "./middleware";
@@ -1,5 +1,5 @@
1
1
  import type { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
2
- export type RsponseType = AxiosRequestConfig & { requestId?: string; cancelHttp?: (cancel: Function) => void; loggerIndex?: number };
2
+ export type RsponseType = AxiosRequestConfig & { requestId?: string; cancelHttp?: (cancel: (o?:any) => void) => void; loggerIndex?: number };
3
3
 
4
4
  export type XHRResponse = {
5
5
  url: string;
@@ -1,2 +1,3 @@
1
- declare function useHistory(): History;
1
+ import { VHistory } from "./interface.d";
2
+ declare function useHistory(): VHistory;
2
3
  export default useHistory;
@@ -0,0 +1,4 @@
1
+ import {History} from 'history';
2
+
3
+
4
+ export type VHistory = History
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "3.2.19",
5
+ "version": "3.2.20",
6
6
  "scripts": {
7
7
  "docs:deploy": "gh-pages -d docs-dist",
8
8
  "build": "npm run entry && father build",