usf-cli 1.2.6 → 1.2.8

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": "usf-cli",
3
- "version": "1.2.6",
3
+ "version": "1.2.8",
4
4
  "description": "usf-cli helps uos stateless function developers with local running, boosting their development efficiency.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -6,7 +6,7 @@ import JSZip from "jszip";
6
6
  import axios from "axios";
7
7
  import COS from "cos-nodejs-sdk-v5";
8
8
 
9
- const UOS_FUNCTION_DOMAIN = "https://func.unity.cn";
9
+ const UOS_FUNCTION_DOMAIN = process.env.USF_CLI_DOMAIN || "https://func.unity.cn";
10
10
 
11
11
  const igonreList = [
12
12
  ".DS_Store",
@@ -186,6 +186,10 @@ const createScf = async function (auth, entries) {
186
186
  };
187
187
 
188
188
  const loadingAnimation = function (loadingLabel) {
189
+ if (!process.stdout.isTTY) {
190
+ console.log(`${loadingLabel}...`);
191
+ return setInterval(() => {}, 1000); // Return a dummy interval to keep stepWrapper happy
192
+ }
189
193
  const frames = ["-", "\\", "|", "/"];
190
194
  let i = 0;
191
195