@vention/machine-apps-components 0.6.0 → 0.6.1

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 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
- return window.location.hostname.startsWith("192.168") || window.location.hostname.startsWith("localhost");
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-apps-components",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -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;