teraprox-core-sdk 0.3.10 → 0.3.11
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/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -382,7 +382,8 @@ var CoreServiceBuilder = class {
|
|
|
382
382
|
if (this._fallbackControllers[context]) {
|
|
383
383
|
return this._fallbackControllers[context];
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const endpointStr = this._httpEndpoint ? context ? `${this._httpEndpoint}/${context}` : this._httpEndpoint : null;
|
|
386
|
+
const endpoint = baseEndPoint != null ? baseEndPoint : endpointStr;
|
|
386
387
|
if (!endpoint) {
|
|
387
388
|
console.warn(`[CoreServiceBuilder] HttpEndpoint nulo para "${context}". Usando NullHttpController.`);
|
|
388
389
|
const controller = new NullHttpController();
|
|
@@ -1465,7 +1466,7 @@ var RecursoDisplayer = ({
|
|
|
1465
1466
|
onSaveRecurso,
|
|
1466
1467
|
singleReturn = false
|
|
1467
1468
|
}) => {
|
|
1468
|
-
const arvoreEstruturalController = useHttpController("
|
|
1469
|
+
const arvoreEstruturalController = useHttpController("");
|
|
1469
1470
|
const branchLevelController = useHttpController("branchLevel");
|
|
1470
1471
|
const [branches, setBranches] = (0, import_react17.useState)([]);
|
|
1471
1472
|
const dispatch = (0, import_react_redux3.useDispatch)();
|
package/dist/index.mjs
CHANGED
|
@@ -277,7 +277,8 @@ var CoreServiceBuilder = class {
|
|
|
277
277
|
if (this._fallbackControllers[context]) {
|
|
278
278
|
return this._fallbackControllers[context];
|
|
279
279
|
}
|
|
280
|
-
const
|
|
280
|
+
const endpointStr = this._httpEndpoint ? context ? `${this._httpEndpoint}/${context}` : this._httpEndpoint : null;
|
|
281
|
+
const endpoint = baseEndPoint != null ? baseEndPoint : endpointStr;
|
|
281
282
|
if (!endpoint) {
|
|
282
283
|
console.warn(`[CoreServiceBuilder] HttpEndpoint nulo para "${context}". Usando NullHttpController.`);
|
|
283
284
|
const controller = new NullHttpController();
|
|
@@ -1360,7 +1361,7 @@ var RecursoDisplayer = ({
|
|
|
1360
1361
|
onSaveRecurso,
|
|
1361
1362
|
singleReturn = false
|
|
1362
1363
|
}) => {
|
|
1363
|
-
const arvoreEstruturalController = useHttpController("
|
|
1364
|
+
const arvoreEstruturalController = useHttpController("");
|
|
1364
1365
|
const branchLevelController = useHttpController("branchLevel");
|
|
1365
1366
|
const [branches, setBranches] = useState12([]);
|
|
1366
1367
|
const dispatch = useDispatch2();
|
package/package.json
CHANGED