pubm 0.2.11 → 0.2.12
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/bin/cli.js +8 -0
- package/dist/index.cjs +8 -0
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -6797,6 +6797,9 @@ var NpmRegistry = class extends Registry {
|
|
|
6797
6797
|
if (error instanceof NonZeroExitError4 && error.output?.stderr.includes("EOTP")) {
|
|
6798
6798
|
return false;
|
|
6799
6799
|
}
|
|
6800
|
+
if (this.isProvenanceError(error)) {
|
|
6801
|
+
return this.publish();
|
|
6802
|
+
}
|
|
6800
6803
|
throw this.classifyPublishError(error);
|
|
6801
6804
|
}
|
|
6802
6805
|
}
|
|
@@ -6850,6 +6853,11 @@ ${stderr}` : ""}`,
|
|
|
6850
6853
|
requiredManifest: "package.json"
|
|
6851
6854
|
};
|
|
6852
6855
|
}
|
|
6856
|
+
isProvenanceError(error) {
|
|
6857
|
+
if (!(error instanceof NonZeroExitError4)) return false;
|
|
6858
|
+
const stderr = error.output?.stderr ?? "";
|
|
6859
|
+
return stderr.includes("verifying sigstore provenance") || stderr.includes("provenance bundle");
|
|
6860
|
+
}
|
|
6853
6861
|
classifyPublishError(error) {
|
|
6854
6862
|
if (error instanceof NonZeroExitError4) {
|
|
6855
6863
|
const stderr = error.output?.stderr ?? "";
|
package/dist/index.cjs
CHANGED
|
@@ -6253,6 +6253,9 @@ var NpmRegistry = class extends Registry {
|
|
|
6253
6253
|
if (error instanceof import_tinyexec6.NonZeroExitError && error.output?.stderr.includes("EOTP")) {
|
|
6254
6254
|
return false;
|
|
6255
6255
|
}
|
|
6256
|
+
if (this.isProvenanceError(error)) {
|
|
6257
|
+
return this.publish();
|
|
6258
|
+
}
|
|
6256
6259
|
throw this.classifyPublishError(error);
|
|
6257
6260
|
}
|
|
6258
6261
|
}
|
|
@@ -6306,6 +6309,11 @@ ${stderr}` : ""}`,
|
|
|
6306
6309
|
requiredManifest: "package.json"
|
|
6307
6310
|
};
|
|
6308
6311
|
}
|
|
6312
|
+
isProvenanceError(error) {
|
|
6313
|
+
if (!(error instanceof import_tinyexec6.NonZeroExitError)) return false;
|
|
6314
|
+
const stderr = error.output?.stderr ?? "";
|
|
6315
|
+
return stderr.includes("verifying sigstore provenance") || stderr.includes("provenance bundle");
|
|
6316
|
+
}
|
|
6309
6317
|
classifyPublishError(error) {
|
|
6310
6318
|
if (error instanceof import_tinyexec6.NonZeroExitError) {
|
|
6311
6319
|
const stderr = error.output?.stderr ?? "";
|
package/dist/index.js
CHANGED
|
@@ -6218,6 +6218,9 @@ var NpmRegistry = class extends Registry {
|
|
|
6218
6218
|
if (error instanceof NonZeroExitError4 && error.output?.stderr.includes("EOTP")) {
|
|
6219
6219
|
return false;
|
|
6220
6220
|
}
|
|
6221
|
+
if (this.isProvenanceError(error)) {
|
|
6222
|
+
return this.publish();
|
|
6223
|
+
}
|
|
6221
6224
|
throw this.classifyPublishError(error);
|
|
6222
6225
|
}
|
|
6223
6226
|
}
|
|
@@ -6271,6 +6274,11 @@ ${stderr}` : ""}`,
|
|
|
6271
6274
|
requiredManifest: "package.json"
|
|
6272
6275
|
};
|
|
6273
6276
|
}
|
|
6277
|
+
isProvenanceError(error) {
|
|
6278
|
+
if (!(error instanceof NonZeroExitError4)) return false;
|
|
6279
|
+
const stderr = error.output?.stderr ?? "";
|
|
6280
|
+
return stderr.includes("verifying sigstore provenance") || stderr.includes("provenance bundle");
|
|
6281
|
+
}
|
|
6274
6282
|
classifyPublishError(error) {
|
|
6275
6283
|
if (error instanceof NonZeroExitError4) {
|
|
6276
6284
|
const stderr = error.output?.stderr ?? "";
|