@bearei/fetch
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -12,3 +12,3 @@ import type { FetchOptions } from './fetch'; | ||
*/ | ||
baseUrl?: string; | ||
baseURL?: string; | ||
} | ||
@@ -15,0 +15,0 @@ export declare const CONFIGS: Map<any, any>; |
@@ -439,9 +439,9 @@ /******/ (function() { // webpackBootstrap | ||
var handleFullURL = function handleFullURL() { | ||
var fullUrl; | ||
var fullURL; | ||
try { | ||
fullUrl = new URL(url); | ||
fullURL = new URL(url); | ||
} catch (error) { | ||
fullUrl = new URL("".concat(config_1.CONFIGS.get('baseUrl')).concat(url)); | ||
fullURL = new URL("".concat(config_1.CONFIGS.get('baseURL')).concat(url)); | ||
} | ||
return fullUrl; | ||
return fullURL; | ||
}; | ||
@@ -448,0 +448,0 @@ var _handleFullURL = handleFullURL(), |
@@ -527,9 +527,9 @@ /******/ (function() { // webpackBootstrap | ||
var handleFullURL = function handleFullURL() { | ||
var fullUrl; | ||
var fullURL; | ||
try { | ||
fullUrl = new URL(url); | ||
fullURL = new URL(url); | ||
} catch (error) { | ||
fullUrl = new URL("".concat(config_1.CONFIGS.get('baseUrl')).concat(url)); | ||
fullURL = new URL("".concat(config_1.CONFIGS.get('baseURL')).concat(url)); | ||
} | ||
return fullUrl; | ||
return fullURL; | ||
}; | ||
@@ -536,0 +536,0 @@ var _handleFullURL = handleFullURL(), |
@@ -83,9 +83,9 @@ /******/ (function() { // webpackBootstrap | ||
var handleFullURL = function handleFullURL() { | ||
var fullUrl; | ||
var fullURL; | ||
try { | ||
fullUrl = new URL(url); | ||
fullURL = new URL(url); | ||
} catch (error) { | ||
fullUrl = new URL("".concat(config_1.CONFIGS.get('baseUrl')).concat(url)); | ||
fullURL = new URL("".concat(config_1.CONFIGS.get('baseURL')).concat(url)); | ||
} | ||
return fullUrl; | ||
return fullURL; | ||
}; | ||
@@ -92,0 +92,0 @@ var _handleFullURL = handleFullURL(), |
@@ -12,3 +12,3 @@ import type { FetchOptions } from './fetch'; | ||
*/ | ||
baseUrl?: string; | ||
baseURL?: string; | ||
} | ||
@@ -15,0 +15,0 @@ export declare const CONFIGS: Map<any, any>; |
@@ -289,9 +289,9 @@ /******/ var __webpack_modules__ = ({ | ||
var handleFullURL = function handleFullURL() { | ||
var fullUrl; | ||
var fullURL; | ||
try { | ||
fullUrl = new URL(url); | ||
fullURL = new URL(url); | ||
} catch (error) { | ||
fullUrl = new URL("".concat(_config__WEBPACK_IMPORTED_MODULE_0__/* .CONFIGS.get */ .O.get('baseUrl')).concat(url)); | ||
fullURL = new URL("".concat(_config__WEBPACK_IMPORTED_MODULE_0__/* .CONFIGS.get */ .O.get('baseURL')).concat(url)); | ||
} | ||
return fullUrl; | ||
return fullURL; | ||
}; | ||
@@ -298,0 +298,0 @@ var _handleFullURL = handleFullURL(), |
@@ -374,9 +374,9 @@ /******/ var __webpack_modules__ = ({ | ||
var handleFullURL = function handleFullURL() { | ||
var fullUrl; | ||
var fullURL; | ||
try { | ||
fullUrl = new URL(url); | ||
fullURL = new URL(url); | ||
} catch (error) { | ||
fullUrl = new URL("".concat(_config__WEBPACK_IMPORTED_MODULE_0__/* .CONFIGS.get */ .O.get('baseUrl')).concat(url)); | ||
fullURL = new URL("".concat(_config__WEBPACK_IMPORTED_MODULE_0__/* .CONFIGS.get */ .O.get('baseURL')).concat(url)); | ||
} | ||
return fullUrl; | ||
return fullURL; | ||
}; | ||
@@ -383,0 +383,0 @@ var _handleFullURL = handleFullURL(), |
@@ -91,9 +91,9 @@ /******/ var __webpack_modules__ = ({ | ||
var handleFullURL = function handleFullURL() { | ||
var fullUrl; | ||
var fullURL; | ||
try { | ||
fullUrl = new URL(url); | ||
fullURL = new URL(url); | ||
} catch (error) { | ||
fullUrl = new URL("".concat(_config__WEBPACK_IMPORTED_MODULE_0__/* .CONFIGS.get */ .O.get('baseUrl')).concat(url)); | ||
fullURL = new URL("".concat(_config__WEBPACK_IMPORTED_MODULE_0__/* .CONFIGS.get */ .O.get('baseURL')).concat(url)); | ||
} | ||
return fullUrl; | ||
return fullURL; | ||
}; | ||
@@ -100,0 +100,0 @@ var _handleFullURL = handleFullURL(), |
{ | ||
"name": "@bearei/fetch", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"main": "./lib/commonjs/index", | ||
@@ -5,0 +5,0 @@ "module": "./lib/module/index", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package