@navservice/core 1.74.0 → 1.75.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/build/es/index.js +1 -2
- package/build/lib/index.cjs +1 -2
- package/package.json +1 -1
package/build/es/index.js
CHANGED
|
@@ -155,7 +155,7 @@ const _environment = class {
|
|
|
155
155
|
window.sessionStorage.setItem("ENVIRONMENT", props);
|
|
156
156
|
}
|
|
157
157
|
static get get() {
|
|
158
|
-
return window.sessionStorage.
|
|
158
|
+
return window.sessionStorage.getItem("ENVIRONMENT");
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
const utils_environment = _environment;
|
|
@@ -180,7 +180,6 @@ const _api_api = class _api {
|
|
|
180
180
|
if (isNavSoftware && isSandbox) return "https://api-sandbox.navsoftware.com.br";
|
|
181
181
|
if (isNavSoftware) return "https://api.navsoftware.com.br";
|
|
182
182
|
} catch (error) {
|
|
183
|
-
console.log(error, 'errr 1');
|
|
184
183
|
throw new Error(`Ambiente não reconhecido: ${error}`);
|
|
185
184
|
}
|
|
186
185
|
}
|
package/build/lib/index.cjs
CHANGED
|
@@ -235,7 +235,7 @@ const _environment = class _environment {
|
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
237
237
|
static get get() {
|
|
238
|
-
return window.sessionStorage.
|
|
238
|
+
return window.sessionStorage.getItem("ENVIRONMENT");
|
|
239
239
|
}
|
|
240
240
|
};
|
|
241
241
|
/* export default */ const utils_environment = (_environment);
|
|
@@ -279,7 +279,6 @@ const _api_api = class _api {
|
|
|
279
279
|
return "https://api.navsoftware.com.br";
|
|
280
280
|
}
|
|
281
281
|
} catch (error) {
|
|
282
|
-
console.log(error, 'errr 1');
|
|
283
282
|
throw new Error(`Ambiente não reconhecido: ${error}`);
|
|
284
283
|
}
|
|
285
284
|
}
|