@frontman-ai/astro 0.5.1 → 0.5.2

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/dist/index.js CHANGED
@@ -122,7 +122,7 @@ var clientCss = "https://app.frontman.sh/frontman.css";
122
122
  var devClientJs = "http://localhost:5173/src/Main.res.mjs";
123
123
 
124
124
  // src/FrontmanAstro__Config.res.mjs
125
- var packageVersion = "0.5.1" ;
125
+ var packageVersion = "0.5.2" ;
126
126
  var host = process.env["FRONTMAN_HOST"];
127
127
  var defaultHost = host !== void 0 ? host : apiHost;
128
128
  var ensureConfig = (function(c2) {
@@ -2684,6 +2684,7 @@ var defaultConfig_stdoutPatterns = [
2684
2684
  "hmr",
2685
2685
  "error",
2686
2686
  "Error",
2687
+ "ERROR",
2687
2688
  "astro",
2688
2689
  "build"
2689
2690
  ];
@@ -2831,12 +2832,16 @@ function handleStdoutWrite(state, message4) {
2831
2832
  }
2832
2833
  function interceptStdout(_state) {
2833
2834
  (function(_state2) {
2834
- const originalWrite = process.stdout.write.bind(process.stdout);
2835
- process.stdout.write = (chunk, ...args) => {
2836
- const message4 = typeof chunk === "string" ? chunk : chunk.toString();
2837
- handleStdoutWrite(_state2, message4);
2838
- return originalWrite(chunk, ...args);
2835
+ const interceptStream = (stream) => {
2836
+ const originalWrite = stream.write.bind(stream);
2837
+ stream.write = (chunk, ...args) => {
2838
+ const message4 = typeof chunk === "string" ? chunk : chunk.toString();
2839
+ handleStdoutWrite(_state2, message4);
2840
+ return originalWrite(chunk, ...args);
2841
+ };
2839
2842
  };
2843
+ interceptStream(process.stdout);
2844
+ interceptStream(process.stderr);
2840
2845
  })(_state);
2841
2846
  }
2842
2847
  function interceptUncaughtErrors(state) {
@@ -353,7 +353,7 @@ var clientCss = "https://app.frontman.sh/frontman.css";
353
353
  var devClientJs = "http://localhost:5173/src/Main.res.mjs";
354
354
 
355
355
  // src/FrontmanAstro__Config.res.mjs
356
- var packageVersion = "0.5.1" ;
356
+ var packageVersion = "0.5.2" ;
357
357
  var host = process.env["FRONTMAN_HOST"];
358
358
  var defaultHost = host !== void 0 ? host : apiHost;
359
359
  var ensureConfig = (function(c2) {
@@ -2684,6 +2684,7 @@ var defaultConfig_stdoutPatterns = [
2684
2684
  "hmr",
2685
2685
  "error",
2686
2686
  "Error",
2687
+ "ERROR",
2687
2688
  "astro",
2688
2689
  "build"
2689
2690
  ];
@@ -2831,12 +2832,16 @@ function handleStdoutWrite(state, message4) {
2831
2832
  }
2832
2833
  function interceptStdout(_state) {
2833
2834
  (function(_state2) {
2834
- const originalWrite = process.stdout.write.bind(process.stdout);
2835
- process.stdout.write = (chunk, ...args) => {
2836
- const message4 = typeof chunk === "string" ? chunk : chunk.toString();
2837
- handleStdoutWrite(_state2, message4);
2838
- return originalWrite(chunk, ...args);
2835
+ const interceptStream = (stream) => {
2836
+ const originalWrite = stream.write.bind(stream);
2837
+ stream.write = (chunk, ...args) => {
2838
+ const message4 = typeof chunk === "string" ? chunk : chunk.toString();
2839
+ handleStdoutWrite(_state2, message4);
2840
+ return originalWrite(chunk, ...args);
2841
+ };
2839
2842
  };
2843
+ interceptStream(process.stdout);
2844
+ interceptStream(process.stderr);
2840
2845
  })(_state);
2841
2846
  }
2842
2847
  function interceptUncaughtErrors(state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontman-ai/astro",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Astro integration for Frontman",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Frontman AI",
@@ -38,16 +38,11 @@
38
38
  "./integration": "./dist/integration.js",
39
39
  "./toolbar": "./dist/toolbar.js"
40
40
  },
41
- "files": [
42
- "dist",
43
- "index.d.ts",
44
- "README.md"
45
- ],
41
+ "files": ["dist", "index.d.ts", "README.md"],
46
42
  "scripts": {
47
43
  "build:rescript": "rescript build",
48
44
  "build:bundle": "tsup",
49
- "build": "yarn build:rescript && yarn build:bundle",
50
- "prepublishOnly": "yarn build"
45
+ "build": "yarn build:rescript && yarn build:bundle"
51
46
  },
52
47
  "engines": {
53
48
  "node": ">=18.0.0"