nextemos 4.0.9 → 4.1.0
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/dist/helpers/fetchRequest.js +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +1 -1
|
@@ -20,6 +20,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
+
const nextemos_config_1 = require("../nextemos-config");
|
|
23
24
|
const __1 = require("../");
|
|
24
25
|
/**
|
|
25
26
|
* İstek yapmak için bir HTTP istemcisi oluşturur.
|
|
@@ -34,7 +35,7 @@ const fetchRequest = () => {
|
|
|
34
35
|
*/
|
|
35
36
|
const request = (_a) => __awaiter(void 0, void 0, void 0, function* () {
|
|
36
37
|
var { url, method, params } = _a, options = __rest(_a, ["url", "method", "params"]);
|
|
37
|
-
const { cacheStrategy } = (0,
|
|
38
|
+
const { cacheStrategy } = (0, nextemos_config_1.getConfig)();
|
|
38
39
|
const apiURL = new URL(url);
|
|
39
40
|
if (params)
|
|
40
41
|
Object.keys(params).forEach(key => apiURL.searchParams.append(key, params[key]));
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./nextemos-config"), exports);
|
|
18
17
|
__exportStar(require("./helpers"), exports);
|
|
19
18
|
__exportStar(require("./interfaces"), exports);
|
|
20
19
|
__exportStar(require("./enums"), exports);
|