@nomalism-com/api 0.8.105 → 0.8.106
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
3
|
+
exports.servicePublicPath = exports.serviceAuthPath = exports.serviceHostname = void 0;
|
|
4
4
|
exports.serviceHostname = process.env.REACT_APP_ENV === 'development'
|
|
5
5
|
? process.env.REACT_APP_INTEGRATION_URL
|
|
6
6
|
: process.env.REACT_APP_API_GATEWAY_URL;
|
|
@@ -9,3 +9,4 @@ var serviceApiKeyPath = process.env.REACT_APP_ENV === 'development' ? '/' : 'int
|
|
|
9
9
|
exports.serviceAuthPath = process.env.REACT_APP_API_KEY
|
|
10
10
|
? serviceApiKeyPath
|
|
11
11
|
: serviceJwtPath;
|
|
12
|
+
exports.servicePublicPath = process.env.REACT_APP_ENV === 'development' ? '/' : 'integration/public/';
|
|
@@ -43,6 +43,7 @@ exports.deleteOne = exports.create = exports.update = exports.findByKey = void 0
|
|
|
43
43
|
var client_1 = __importDefault(require("../../shared/client"));
|
|
44
44
|
var _1 = require(".");
|
|
45
45
|
var route = "".concat(_1.serviceHostname).concat(_1.serviceAuthPath, "settings/");
|
|
46
|
+
var publicRoute = "".concat(_1.serviceHostname).concat(_1.servicePublicPath, "settings/");
|
|
46
47
|
var repository = {
|
|
47
48
|
create: function (body) { return __awaiter(void 0, void 0, void 0, function () {
|
|
48
49
|
var response;
|
|
@@ -59,7 +60,7 @@ var repository = {
|
|
|
59
60
|
var response;
|
|
60
61
|
return __generator(this, function (_a) {
|
|
61
62
|
switch (_a.label) {
|
|
62
|
-
case 0: return [4, client_1.default.get("".concat(
|
|
63
|
+
case 0: return [4, client_1.default.get("".concat(publicRoute, "by_key"), { params: params })];
|
|
63
64
|
case 1:
|
|
64
65
|
response = _a.sent();
|
|
65
66
|
return [2, response.data];
|