@vention/machine-apps-components 0.6.0 → 0.6.2
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/index.esm.js +4 -1
- package/package.json +1 -1
- package/src/hooks/use-i18n.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -3822,7 +3822,10 @@ function getExecutionEngineHttpUrl(processName) {
|
|
|
3822
3822
|
* @returns true if running on edge, false otherwise
|
|
3823
3823
|
*/
|
|
3824
3824
|
function isOnEdge() {
|
|
3825
|
-
|
|
3825
|
+
const {
|
|
3826
|
+
hostname
|
|
3827
|
+
} = window.location;
|
|
3828
|
+
return hostname.startsWith("192.168") || hostname.startsWith("10.") || hostname.startsWith("100.") || hostname === "localhost" || hostname === "127.0.0.1" || hostname.endsWith(".ts.net");
|
|
3826
3829
|
}
|
|
3827
3830
|
/**
|
|
3828
3831
|
* Gets the API base URL for the specified process/service
|
package/package.json
CHANGED
package/src/hooks/use-i18n.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { FormatLengthOptions } from "../i18n/utils";
|
|
|
3
3
|
export interface UseI18nReturn {
|
|
4
4
|
t: (key: string, options?: {
|
|
5
5
|
defaultValue?: string;
|
|
6
|
-
}) => string;
|
|
6
|
+
} & Record<string, string>) => string;
|
|
7
7
|
formatDate: (utcTimestamp: number, format?: string) => string;
|
|
8
8
|
formatValueToDisplayUnit: (value: number, options?: FormatLengthOptions) => string;
|
|
9
9
|
convertDisplayValueToMm: (value: number) => number;
|