@skyvexsoftware/stratos-sdk 0.1.2 → 0.1.4

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.
@@ -16,7 +16,7 @@
16
16
  * });
17
17
  */
18
18
  import type { Plugin, UserConfig } from "vite";
19
- import { UI_EXTERNALS } from "./externals";
19
+ import { UI_EXTERNALS } from "./externals.js";
20
20
  /** Modules external in background builds (available in Electron main process) */
21
21
  declare const BG_EXTERNALS: string[];
22
22
  /**
@@ -18,9 +18,9 @@
18
18
  import * as fs from "fs";
19
19
  import * as path from "path";
20
20
  import react from "@vitejs/plugin-react";
21
- import { UI_EXTERNALS } from "./externals";
22
- import { serveExternals } from "./serve-externals";
23
- import { stratosDevServer } from "./stratos-dev-server";
21
+ import { UI_EXTERNALS } from "./externals.js";
22
+ import { serveExternals } from "./serve-externals.js";
23
+ import { stratosDevServer } from "./stratos-dev-server.js";
24
24
  /** Modules external in background builds (available in Electron main process) */
25
25
  const BG_EXTERNALS = [
26
26
  "electron",
@@ -1,4 +1,4 @@
1
- import { UI_EXTERNALS } from "./externals";
1
+ import { UI_EXTERNALS } from "./externals.js";
2
2
  const EXTERNAL_PACKAGES = [
3
3
  ...UI_EXTERNALS,
4
4
  "react/jsx-runtime",
@@ -59,7 +59,10 @@ export function stratosDevServer(options) {
59
59
  function getDevUrl() {
60
60
  const addr = server.httpServer?.address();
61
61
  if (addr && typeof addr === "object") {
62
- const host = addr.address === "::" || addr.address === "0.0.0.0"
62
+ const host = addr.address === "::" ||
63
+ addr.address === "::1" ||
64
+ addr.address === "0.0.0.0" ||
65
+ addr.address === "127.0.0.1"
63
66
  ? "localhost"
64
67
  : addr.address;
65
68
  return `http://${host}:${addr.port}`;
package/package.json CHANGED
@@ -1,12 +1,21 @@
1
1
  {
2
2
  "name": "@skyvexsoftware/stratos-sdk",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Plugin SDK for Stratos — types, hooks, and UI components",
5
5
  "author": {
6
6
  "name": "Skyvex Software",
7
7
  "email": "jordan@skyvexsoftware.com"
8
8
  },
9
9
  "license": "MIT",
10
+ "homepage": "https://skyvexsoftware.com",
11
+ "keywords": [
12
+ "stratos",
13
+ "plugin",
14
+ "sdk",
15
+ "flight-sim",
16
+ "acars",
17
+ "simconnect"
18
+ ],
10
19
  "type": "module",
11
20
  "main": "dist/index.js",
12
21
  "types": "dist/index.d.ts",