@lingxiteam/assets 1.0.12-alpha.3 → 1.0.12-alpha.4
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/security/fetch.js +1 -1
- package/lib/security/fetch.js +1 -1
- package/package.json +1 -1
package/es/security/fetch.js
CHANGED
|
@@ -117,7 +117,7 @@ var fetch = function fetch(url) {
|
|
|
117
117
|
var optSecurityHeaderKey = (opts.headers || {})[securityHeaderKey];
|
|
118
118
|
var isDebug = (config === null || config === void 0 ? void 0 : config.debug) || window.lxDebug || !!window.localStorage.getItem('lxDebug') || true;
|
|
119
119
|
// 如果在headers 传入disabledSignKey标识 标识不启用加密
|
|
120
|
-
if ((opts === null || opts === void 0 ? void 0 : (_opts$headers = opts.headers) === null || _opts$headers === void 0 ? void 0 : _opts$headers.disabledSignKey)
|
|
120
|
+
if ((opts === null || opts === void 0 ? void 0 : (_opts$headers = opts.headers) === null || _opts$headers === void 0 ? void 0 : _opts$headers.disabledSignKey) === true) {
|
|
121
121
|
var _opts$headers2;
|
|
122
122
|
opts === null || opts === void 0 ? true : (_opts$headers2 = opts.headers) === null || _opts$headers2 === void 0 ? true : delete _opts$headers2.disabledSignKey;
|
|
123
123
|
return originFetch(url, opts);
|
package/lib/security/fetch.js
CHANGED
|
@@ -123,7 +123,7 @@ var fetch = function fetch(url) {
|
|
|
123
123
|
var optSecurityHeaderKey = (opts.headers || {})[_const.securityHeaderKey];
|
|
124
124
|
var isDebug = (config === null || config === void 0 ? void 0 : config.debug) || window.lxDebug || !!window.localStorage.getItem('lxDebug') || true;
|
|
125
125
|
// 如果在headers 传入disabledSignKey标识 标识不启用加密
|
|
126
|
-
if ((opts === null || opts === void 0 ? void 0 : (_opts$headers = opts.headers) === null || _opts$headers === void 0 ? void 0 : _opts$headers.disabledSignKey)
|
|
126
|
+
if ((opts === null || opts === void 0 ? void 0 : (_opts$headers = opts.headers) === null || _opts$headers === void 0 ? void 0 : _opts$headers.disabledSignKey) === true) {
|
|
127
127
|
var _opts$headers2;
|
|
128
128
|
opts === null || opts === void 0 ? true : (_opts$headers2 = opts.headers) === null || _opts$headers2 === void 0 ? true : delete _opts$headers2.disabledSignKey;
|
|
129
129
|
return originFetch(url, opts);
|