create-wirejs-app 2.0.4 → 2.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wirejs-app",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "Initializes a wirejs package.",
5
5
  "author": "Jon Wire",
6
6
  "license": "MIT",
@@ -4,8 +4,12 @@ let API_URL = '/api';
4
4
  const indexModule = await import('./index.js');
5
5
 
6
6
  try {
7
- const backendConfig = await import('./config.js');
8
- if (backendConfig.apiUrl) API_URL = backendConfig.apiUrl;
7
+ const backendConfigModule = await import('./config.js');
8
+ const backendConfig = backendConfigModule.default;
9
+ console.log("backend config found", backendConfig);
10
+ if (backendConfig.apiUrl) {
11
+ API_URL = backendConfig.apiUrl;
12
+ }
9
13
  } catch {
10
14
  console.log("No backend API config found.");
11
15
  }
@@ -9,7 +9,7 @@
9
9
  ],
10
10
  "dependencies": {
11
11
  "wirejs-dom": "^1.0.34",
12
- "wirejs-resources": "^0.1.4-alpha",
12
+ "wirejs-resources": "^0.1.5-alpha",
13
13
  "dompurify": "^3.2.3",
14
14
  "marked": "^15.0.6"
15
15
  },