zarro 1.114.2 → 1.114.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.
@@ -27,6 +27,11 @@
27
27
  else if (dnc) {
28
28
  throw new Error("You must set the NUGET_API_KEY environment variable to be able to push packages with the dotnet executable");
29
29
  }
30
+ const pushTimeout = env.resolve("NUGET_PUSH_TIMEOUT"), timeout = parseInt(pushTimeout);
31
+ if (!isNaN(timeout)) {
32
+ args.push(dnc ? "-t" : "-Timeout");
33
+ args.push(timeout.toString());
34
+ }
30
35
  if (env.resolveFlag("DRY_RUN")) {
31
36
  console.log(`nuget publish dry run: ${nuget} ${args.join(" ")}`);
32
37
  return;
@@ -46,6 +46,13 @@
46
46
  } else if (dnc) {
47
47
  throw new Error("You must set the NUGET_API_KEY environment variable to be able to push packages with the dotnet executable");
48
48
  }
49
+ const
50
+ pushTimeout = env.resolve("NUGET_PUSH_TIMEOUT"),
51
+ timeout = parseInt(pushTimeout);
52
+ if (!isNaN(timeout)) {
53
+ args.push(dnc ? "-t" : "-Timeout");
54
+ args.push(timeout.toString());
55
+ }
49
56
  if (env.resolveFlag("DRY_RUN")) {
50
57
  console.log(`nuget publish dry run: ${ nuget } ${ args.join(" ") }`);
51
58
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zarro",
3
- "version": "1.114.2",
3
+ "version": "1.114.3",
4
4
  "description": "Some glue to make gulp easier, perhaps even zero- or close-to-zero-conf",
5
5
  "bin": {
6
6
  "zarro": "./index.js"