@pulse-editor/cli 0.1.1-beta.7 → 0.1.1-beta.9

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.
@@ -94,12 +94,12 @@ else {
94
94
  /* Production mode */
95
95
  app.use(`/${pulseConfig.id}/${pulseConfig.version}`, express.static('dist'));
96
96
  app.listen(3030, '0.0.0.0', () => {
97
- console.log(`\
98
- 🎉 Your Pulse extension \x1b[1m${pulseConfig.displayName}\x1b[0m is LIVE!
99
-
100
- ⚡️ Local: http://localhost:3030/${pulseConfig.id}/${pulseConfig.version}/
101
- ⚡️ Network: http://${getLocalNetworkIP()}:3030/${pulseConfig.id}/${pulseConfig.version}/
102
-
97
+ console.log(`\
98
+ 🎉 Your Pulse extension \x1b[1m${pulseConfig.displayName}\x1b[0m is LIVE!
99
+
100
+ ⚡️ Local: http://localhost:3030/${pulseConfig.id}/${pulseConfig.version}/
101
+ ⚡️ Network: http://${getLocalNetworkIP()}:3030/${pulseConfig.id}/${pulseConfig.version}/
102
+
103
103
  ✨ Try it out in the Pulse Editor and let the magic happen! 🚀`);
104
104
  });
105
105
  }
@@ -1,23 +1,23 @@
1
- const { createInstance } = require("@module-federation/runtime");
2
-
3
- async function loadAndCall(func, req, appId, origin, version) {
4
- // here we assign the return value of the init() function, which can be used to do some more complex
5
- // things with the module federation runtime
6
- const instance = createInstance({
7
- name: "server_function_runner",
8
- remotes: [
9
- {
10
- name: appId + "_server",
11
- entry: `${origin}/${appId}/${version}/server/remoteEntry.js`,
12
- },
13
- ],
14
- });
15
-
16
- const loadedFunc = (await instance.loadRemote(`${appId}_server/${func}`))
17
- .default;
18
-
19
- const res = await loadedFunc(req);
20
- return res;
21
- }
22
-
23
- module.exports = { loadAndCall };
1
+ const { createInstance } = require("@module-federation/runtime");
2
+
3
+ async function loadAndCall(func, req, appId, origin, version) {
4
+ // here we assign the return value of the init() function, which can be used to do some more complex
5
+ // things with the module federation runtime
6
+ const instance = createInstance({
7
+ name: "server_function_runner",
8
+ remotes: [
9
+ {
10
+ name: appId + "_server",
11
+ entry: `${origin}/${appId}/${version}/server/remoteEntry.js`,
12
+ },
13
+ ],
14
+ });
15
+
16
+ const loadedFunc = (await instance.loadRemote(`${appId}_server/${func}`))
17
+ .default;
18
+
19
+ const res = await loadedFunc(req);
20
+ return res;
21
+ }
22
+
23
+ module.exports = { loadAndCall };
@@ -1,11 +1,11 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Pulse App</title>
7
- </head>
8
- <body style="height: 100vh; width: 100vw">
9
- <div id="root" style="height: 100%; width: 100%"></div>
10
- </body>
11
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Pulse App</title>
7
+ </head>
8
+ <body style="height: 100vh; width: 100vw">
9
+ <div id="root" style="height: 100%; width: 100%"></div>
10
+ </body>
11
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulse-editor/cli",
3
- "version": "0.1.1-beta.7",
3
+ "version": "0.1.1-beta.9",
4
4
  "license": "MIT",
5
5
  "bin": {
6
6
  "pulse": "dist/cli.js"
@@ -24,30 +24,30 @@
24
24
  "cors": "^2.8.5",
25
25
  "cross-env": "^10.1.0",
26
26
  "dotenv": "^17.2.3",
27
- "execa": "^9.6.0",
28
- "express": "^5.1.0",
29
- "ink": "^6.5.0",
27
+ "execa": "^9.6.1",
28
+ "express": "^5.2.1",
29
+ "ink": "^6.5.1",
30
30
  "ink-select-input": "^6.2.0",
31
31
  "ink-spinner": "^5.0.0",
32
32
  "ink-text-input": "^6.0.0",
33
33
  "livereload": "^0.10.3",
34
34
  "meow": "^14.0.0",
35
35
  "openid-client": "^6.8.1",
36
- "react": "^19.2.0",
37
- "react-dom": "^19.2.0",
38
- "rimraf": "^6.1.0",
39
- "tsx": "^4.20.6"
36
+ "react": "19.2.0",
37
+ "react-dom": "19.2.0",
38
+ "rimraf": "^6.1.2",
39
+ "tsx": "^4.21.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@module-federation/enhanced": "0.21.4",
43
- "@module-federation/node": "2.7.23",
44
- "@module-federation/runtime": "0.21.4",
42
+ "@module-federation/enhanced": "0.21.6",
43
+ "@module-federation/node": "2.7.25",
44
+ "@module-federation/runtime": "0.21.6",
45
45
  "@sindresorhus/tsconfig": "^8.1.0",
46
46
  "@types/connect-livereload": "^0.6.3",
47
47
  "@types/cors": "^2.8.19",
48
- "@types/express": "^5.0.5",
48
+ "@types/express": "^5.0.6",
49
49
  "@types/livereload": "^0.9.5",
50
- "@types/react": "^19.2.6",
50
+ "@types/react": "^19.2.7",
51
51
  "@types/react-dom": "^19.2.3",
52
52
  "@vdemedes/prettier-config": "^2.0.1",
53
53
  "ava": "^6.4.1",
@@ -56,7 +56,7 @@
56
56
  "eslint-plugin-react": "^7.37.5",
57
57
  "eslint-plugin-react-hooks": "^7.0.1",
58
58
  "ink-testing-library": "^4.0.0",
59
- "prettier": "^3.6.2",
59
+ "prettier": "^3.7.4",
60
60
  "ts-node": "^10.9.2",
61
61
  "typescript": "^5.9.3",
62
62
  "xo": "^1.2.3"