@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.
|
@@ -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,
|
package/es/Service/http.js
CHANGED
|
@@ -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:
|
|
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;
|
package/es/useHistory/index.d.ts
CHANGED
package/package.json
CHANGED