@equinor/fusion-framework-cli 1.2.12 → 2.0.3

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.
@@ -5,7 +5,7 @@
5
5
  <meta charset="UTF-8" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>Fusion Framework Dev Portal</title>
8
- <script type="module" crossorigin src="/assets/index-66ca5efe.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-9b276023.js"></script>
9
9
 
10
10
  <body>
11
11
  <div id="root"></div>
package/bin/serve.js CHANGED
@@ -54,7 +54,7 @@ export const server = (config) => __awaiter(void 0, void 0, void 0, function* ()
54
54
  selfHandleResponse: true,
55
55
  onProxyRes: responseInterceptor((responseBuffer, proxyRes, req, res) => __awaiter(void 0, void 0, void 0, function* () {
56
56
  const { appKey } = req.params;
57
- if (appManifest.appKey === appKey) {
57
+ if (appManifest.key === appKey) {
58
58
  const { endpoints, environment } = config.appConfig;
59
59
  const response = { endpoints, environment };
60
60
  if (Number(proxyRes.statusCode) === 404) {
@@ -74,7 +74,7 @@ export const server = (config) => __awaiter(void 0, void 0, void 0, function* ()
74
74
  selfHandleResponse: true,
75
75
  onProxyRes: responseInterceptor((responseBuffer, proxyRes, req, res) => __awaiter(void 0, void 0, void 0, function* () {
76
76
  const { appKey } = req.params;
77
- if (appManifest.appKey === appKey) {
77
+ if (appManifest.key === appKey) {
78
78
  const response = Object.assign(Object.assign({}, appManifest), { entry: new URL(appManifest.main, host).href });
79
79
  if (Number(proxyRes.statusCode) === 404) {
80
80
  res.statusCode = 200;
@@ -105,6 +105,6 @@ export const server = (config) => __awaiter(void 0, void 0, void 0, function* ()
105
105
  }
106
106
  }));
107
107
  spinner.succeed(`dev server started`);
108
- console.log('🔗', kleur.underline().green(new URL(`/apps/${appManifest.appKey}`, host).href));
108
+ console.log('🔗', kleur.underline().green(new URL(`/apps/${appManifest.key}`, host).href));
109
109
  });
110
110
  export default server;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/fusion-framework-cli",
3
- "version": "1.2.12",
3
+ "version": "2.0.3",
4
4
  "keywords": [
5
5
  "Fusion",
6
6
  "Fusion Framework",
@@ -35,9 +35,9 @@
35
35
  "vite": "^4.0.0"
36
36
  },
37
37
  "devDependencies": {
38
- "@equinor/fusion-framework-app": "^4.0.20",
38
+ "@equinor/fusion-framework-app": "^5.0.1",
39
39
  "@equinor/fusion-framework-module-context": "^1.2.2",
40
- "@equinor/fusion-framework-react": "^2.0.23",
40
+ "@equinor/fusion-framework-react": "^2.1.0",
41
41
  "@equinor/fusion-react-button": "^0.5.15",
42
42
  "@equinor/fusion-react-context-selector": "^0.1.8",
43
43
  "@equinor/fusion-react-icon": "^0.2.15",
@@ -52,5 +52,5 @@
52
52
  "react-router-dom": "^6.4.3",
53
53
  "typescript": "^4.9.3"
54
54
  },
55
- "gitHead": "64e0a34ac2ada5860a003944b4e1326ad6bb25b8"
55
+ "gitHead": "f59aa259d4e9f08cb1111f3efeb117ff2f023d62"
56
56
  }