@abtnode/util 1.16.21-beta-46c675eb → 1.16.21-beta-e828f413

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.
Files changed (2) hide show
  1. package/lib/run-script.js +3 -3
  2. package/package.json +10 -10
package/lib/run-script.js CHANGED
@@ -41,7 +41,7 @@ class PrefixTransform extends stream.Transform {
41
41
  }
42
42
 
43
43
  const wrapStream = (next, prefix, state) => {
44
- const transform = new PrefixTransform(`[${prefix}] `, state);
44
+ const transform = new PrefixTransform(prefix ? `[${prefix}] ` : '', state);
45
45
  transform.pipe(next);
46
46
  return transform;
47
47
  };
@@ -106,12 +106,12 @@ const runScript = (script, label, options = {}) => {
106
106
 
107
107
  const stdout = wrapStream(
108
108
  outputFile ? fs.createWriteStream(outputFile, { flags: 'a' }) : process.stdout,
109
- label,
109
+ process.stdout.isTTY ? '' : label,
110
110
  state
111
111
  );
112
112
  const stderr = wrapStream(
113
113
  errorFile ? fs.createWriteStream(errorFile, { flags: 'a' }) : process.stderr,
114
- label,
114
+ process.stdout.isTTY ? '' : label,
115
115
  state
116
116
  );
117
117
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.21-beta-46c675eb",
6
+ "version": "1.16.21-beta-e828f413",
7
7
  "description": "ArcBlock's JavaScript utility",
8
8
  "main": "lib/index.js",
9
9
  "files": [
@@ -18,14 +18,14 @@
18
18
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
19
19
  "license": "Apache-2.0",
20
20
  "dependencies": {
21
- "@abtnode/constant": "1.16.21-beta-46c675eb",
22
- "@abtnode/logger": "1.16.21-beta-46c675eb",
23
- "@blocklet/constant": "1.16.21-beta-46c675eb",
24
- "@blocklet/meta": "1.16.21-beta-46c675eb",
25
- "@ocap/client": "1.18.105",
26
- "@ocap/mcrypto": "1.18.105",
27
- "@ocap/util": "1.18.105",
28
- "@ocap/wallet": "1.18.105",
21
+ "@abtnode/constant": "1.16.21-beta-e828f413",
22
+ "@abtnode/logger": "1.16.21-beta-e828f413",
23
+ "@blocklet/constant": "1.16.21-beta-e828f413",
24
+ "@blocklet/meta": "1.16.21-beta-e828f413",
25
+ "@ocap/client": "1.18.107",
26
+ "@ocap/mcrypto": "1.18.107",
27
+ "@ocap/util": "1.18.107",
28
+ "@ocap/wallet": "1.18.107",
29
29
  "archiver": "^5.3.1",
30
30
  "axios": "^0.27.2",
31
31
  "axios-mock-adapter": "^1.21.2",
@@ -76,5 +76,5 @@
76
76
  "fs-extra": "^10.1.0",
77
77
  "jest": "^27.5.1"
78
78
  },
79
- "gitHead": "a852c7930e8bc84c641579d8e4c009accf478078"
79
+ "gitHead": "936af9cb0549f341d3683ea63085b460bf6ddbf0"
80
80
  }