@gearbox-protocol/deploy-tools 4.12.3 → 4.13.0

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.
Files changed (2) hide show
  1. package/dist/index.mjs +23 -8
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -350902,7 +350902,7 @@ function launchForks() {
350902
350902
  "--endpoint <url>",
350903
350903
  "Endpoint to call for fork creation"
350904
350904
  ).default("https://anvil.gearbox.foundation/api/forks")
350905
- ).addOption(new Option("--api-key <key>", "anvil-manager api key")).addOption(
350905
+ ).addOption(new Option("--no-wait", "Ignore response")).addOption(new Option("--api-key <key>", "anvil-manager api key")).addOption(
350906
350906
  new Option(
350907
350907
  "--template <json_file>",
350908
350908
  "Json file with POST requests payloads"
@@ -350920,18 +350920,33 @@ function launchForks() {
350920
350920
  if (!Array.isArray(requests)) {
350921
350921
  throw new Error("template must contain array of requets");
350922
350922
  }
350923
- await Promise.all(
350924
- requests.map(
350925
- (r) => fetch(endpoint, {
350923
+ if (opts.noWait) {
350924
+ requests.forEach((r) => {
350925
+ fetch(endpoint, {
350926
350926
  method: "POST",
350927
350927
  headers: {
350928
350928
  "Content-Type": "application/json",
350929
350929
  Authorization: `Bearer ${apiKey}`
350930
350930
  },
350931
350931
  body: JSON.stringify(r)
350932
- })
350933
- )
350934
- );
350932
+ }).catch(() => {
350933
+ });
350934
+ });
350935
+ process.exit(0);
350936
+ } else {
350937
+ await Promise.all(
350938
+ requests.map(
350939
+ (r) => fetch(endpoint, {
350940
+ method: "POST",
350941
+ headers: {
350942
+ "Content-Type": "application/json",
350943
+ Authorization: `Bearer ${apiKey}`
350944
+ },
350945
+ body: JSON.stringify(r)
350946
+ })
350947
+ )
350948
+ );
350949
+ }
350935
350950
  });
350936
350951
  }
350937
350952
 
@@ -351972,7 +351987,7 @@ function getRenderer(opts) {
351972
351987
  }
351973
351988
 
351974
351989
  // package.json
351975
- var version3 = "4.12.3";
351990
+ var version3 = "4.13.0";
351976
351991
 
351977
351992
  // src/version.ts
351978
351993
  var version_default = version3;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "4.12.3",
4
+ "version": "4.13.0",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"