zarro 1.183.1 → 1.183.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.
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
args.push(opts.url);
|
|
254
254
|
const systemArgs = ["nuget", "add", "source"].concat(args);
|
|
255
255
|
let result = await runDotNetWith(systemArgs, { suppressOutput: true });
|
|
256
|
-
if (
|
|
256
|
+
if (system.isError(result)) {
|
|
257
257
|
return result;
|
|
258
258
|
}
|
|
259
259
|
if (opts.enabled === false) {
|
|
@@ -845,7 +845,7 @@ WARNING: 'dotnet pack' ignores --version-suffix when a nuspec file is provided.
|
|
|
845
845
|
rawResult = await runDotNetWith(args, opts);
|
|
846
846
|
}
|
|
847
847
|
catch (e) {
|
|
848
|
-
if (
|
|
848
|
+
if (system.isError(e)) {
|
|
849
849
|
throw wrapSearchError(e);
|
|
850
850
|
}
|
|
851
851
|
throw e;
|
|
@@ -159,7 +159,7 @@ ${tempFileContents}
|
|
|
159
159
|
return [info.exe, (info.args || []).map(q).join(" ")].join(" ");
|
|
160
160
|
}
|
|
161
161
|
function generateError(message, exitCode) {
|
|
162
|
-
if (
|
|
162
|
+
if (system.isError(result)) {
|
|
163
163
|
const errorDetails = gatherErrorDetails(result);
|
|
164
164
|
if (errorDetails) {
|
|
165
165
|
message = `${message}\n${errorDetails}`;
|
|
@@ -226,7 +226,7 @@ ${tempFileContents}
|
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
system.isError = SystemError
|
|
230
|
-
system.isResult = SystemResult
|
|
229
|
+
system.isError = (o) => o instanceof SystemError;
|
|
230
|
+
system.isResult = (o) => o instanceof SystemResult;
|
|
231
231
|
module.exports = system;
|
|
232
232
|
})();
|
package/gulp-tasks/nuget-push.js
CHANGED
|
@@ -32,10 +32,10 @@ const exec_step_1 = require("exec-step");
|
|
|
32
32
|
for (const file of toPush) {
|
|
33
33
|
await ctx.exec(`⬆️ pushing ${file}`, async () => {
|
|
34
34
|
const result = await nugetPush(path.join(folder, file));
|
|
35
|
-
if (
|
|
35
|
+
if (system.isError(result)) {
|
|
36
36
|
throw result;
|
|
37
37
|
}
|
|
38
|
-
if (
|
|
38
|
+
if (system.isResult(result)) {
|
|
39
39
|
const res = result;
|
|
40
40
|
const io = res.stderr.concat(res.stdout);
|
|
41
41
|
const isConflict = io.find(s => s.includes("409"));
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1217,10 +1217,6 @@ declare global {
|
|
|
1217
1217
|
exitCode?: number;
|
|
1218
1218
|
stderr: string[];
|
|
1219
1219
|
stdout: string[];
|
|
1220
|
-
|
|
1221
|
-
isResult(): this is SystemResult;
|
|
1222
|
-
|
|
1223
|
-
isError(): this is SystemError;
|
|
1224
1220
|
}
|
|
1225
1221
|
|
|
1226
1222
|
interface SystemResultBuilder {
|
|
@@ -1255,10 +1251,6 @@ declare global {
|
|
|
1255
1251
|
exitCode: number;
|
|
1256
1252
|
stderr: string[];
|
|
1257
1253
|
stdout: string[];
|
|
1258
|
-
|
|
1259
|
-
isError(o: any): o is SystemError;
|
|
1260
|
-
|
|
1261
|
-
isResult(o: any): o is SystemError;
|
|
1262
1254
|
}
|
|
1263
1255
|
|
|
1264
1256
|
type SystemFunction = (program: string, args?: string[], options?: SystemOptions)
|
|
@@ -1267,7 +1259,6 @@ declare global {
|
|
|
1267
1259
|
interface System
|
|
1268
1260
|
extends SystemFunction {
|
|
1269
1261
|
isError(o: any): o is SystemError;
|
|
1270
|
-
|
|
1271
1262
|
isResult(o: any): o is SystemResult;
|
|
1272
1263
|
}
|
|
1273
1264
|
|