construct-hub 0.3.14 → 0.3.15

Sign up to get free protection for your applications and to get access to all the features.
package/.jsii CHANGED
@@ -13308,6 +13308,6 @@
13308
13308
  "symbolId": "src/package-sources/npmjs:NpmJsProps"
13309
13309
  }
13310
13310
  },
13311
- "version": "0.3.14",
13312
- "fingerprint": "P+sT4zwgdJOIbf/MiyqlzhZEsAw/+87VZOlSCgYXKss="
13311
+ "version": "0.3.15",
13312
+ "fingerprint": "YnfZtGtdrgTvYpbiC6GehJNtep78nspvciFt+x5z7as="
13313
13313
  }
@@ -21256,7 +21256,7 @@ async function logInWithCodeArtifact({ endpoint, domain, domainOwner, apiEndpoin
21256
21256
  await shellOut("npm", "config", "set", `${protoRelativeEndpoint}:always-auth=true`);
21257
21257
  }
21258
21258
  async function codeArtifactPublishPackage(tarball, opts) {
21259
- var _a;
21259
+ var _a, _b;
21260
21260
  const cwd = await (0, import_fs_extra.mkdtemp)((0, import_path.join)((0, import_os.tmpdir)(), "npm-publish-"));
21261
21261
  const oldHome = process.env.HOME;
21262
21262
  try {
@@ -21272,8 +21272,8 @@ async function codeArtifactPublishPackage(tarball, opts) {
21272
21272
  throw new Error(`npm publish was killed by signal ${signal}`);
21273
21273
  }
21274
21274
  const result = JSON.parse(stdout.toString("utf-8"));
21275
- if (((_a = result.error) == null ? void 0 : _a.code) === "E409") {
21276
- console.log("E409 - The package already exist; assuming idempotent success!");
21275
+ if (((_a = result.error) == null ? void 0 : _a.code) === "E409" || ((_b = result.error) == null ? void 0 : _b.code) === "EPUBLISHCONFLICT") {
21276
+ console.log(`${result.error.code} - The package already exist; assuming idempotent success!`);
21277
21277
  return;
21278
21278
  } else {
21279
21279
  throw new Error(`npm publish returned ${JSON.stringify(result)}`);