@graphprotocol/graph-cli 0.67.3-alpha-20240124142956-af00244 → 0.67.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.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.67.3-alpha-20240124142956-af00244
3
+ ## 0.67.3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - [#1574](https://github.com/graphprotocol/graph-tooling/pull/1574)
8
- [`af00244`](https://github.com/graphprotocol/graph-tooling/commit/af002449068bda0b9edc42b1f78e37f22dd39231)
9
- Thanks [@saihaj](https://github.com/saihaj)! - add debug logs for git init flow
7
+ - [#1579](https://github.com/graphprotocol/graph-tooling/pull/1579)
8
+ [`bc61adb`](https://github.com/graphprotocol/graph-tooling/commit/bc61adb8ae4f6ba8b467e98ed390a96029b702d8)
9
+ Thanks [@saihaj](https://github.com/saihaj)! - fix line and linea-goerli API URLs
10
10
 
11
11
  ## 0.67.2
12
12
 
@@ -178,6 +178,10 @@ const getEtherscanLikeAPIUrl = (network) => {
178
178
  return `https://api-sepolia.scrollscan.dev/api`;
179
179
  case 'scroll':
180
180
  return `https://blockscout.scroll.io/api`;
181
+ case 'linea':
182
+ return `https://api.lineascan.build/api`;
183
+ case 'linea-goerli':
184
+ return `https://api.linea-goerli.build/api`;
181
185
  default:
182
186
  return `https://api-${network}.etherscan.io/api`;
183
187
  }
@@ -260,6 +264,10 @@ const getPublicRPCEndpoint = (network) => {
260
264
  return 'https://rpc.ankr.com/scroll_sepolia_testnet';
261
265
  case 'scroll':
262
266
  return 'https://rpc.ankr.com/scroll';
267
+ case 'linea':
268
+ return 'https://linea-mainnet.public.blastapi.io';
269
+ case 'linea-goerli':
270
+ return 'https://linea-goerli.public.blastapi.io';
263
271
  default:
264
272
  throw new Error(`Unknown network: ${network}`);
265
273
  }
@@ -743,26 +743,20 @@ const initRepository = async (directory) => await (0, spinner_1.withSpinner)(`In
743
743
  if (gluegun_1.filesystem.exists(gitDir)) {
744
744
  gluegun_1.filesystem.remove(gitDir);
745
745
  }
746
- try {
747
- if (await isInRepo()) {
748
- await gluegun_1.system.run('git add --all', { cwd: directory });
749
- await gluegun_1.system.run('git commit -m "Initialize subgraph"', {
750
- cwd: directory,
751
- });
752
- }
753
- else {
754
- await gluegun_1.system.run('git init', { cwd: directory });
755
- await gluegun_1.system.run('git add --all', { cwd: directory });
756
- await gluegun_1.system.run('git commit -m "Initial commit"', {
757
- cwd: directory,
758
- });
759
- }
760
- return true;
746
+ if (await isInRepo()) {
747
+ await gluegun_1.system.run('git add --all', { cwd: directory });
748
+ await gluegun_1.system.run('git commit -m "Initialize subgraph"', {
749
+ cwd: directory,
750
+ });
761
751
  }
762
- catch (e) {
763
- initDebugger.extend('initRepository')('error: %O', e);
764
- throw e;
752
+ else {
753
+ await gluegun_1.system.run('git init', { cwd: directory });
754
+ await gluegun_1.system.run('git add --all', { cwd: directory });
755
+ await gluegun_1.system.run('git commit -m "Initial commit"', {
756
+ cwd: directory,
757
+ });
765
758
  }
759
+ return true;
766
760
  });
767
761
  const installDependencies = async (directory, commands) => await (0, spinner_1.withSpinner)(`Install dependencies with ${commands.install}`, `Failed to install dependencies`, `Warnings while installing dependencies`, async () => {
768
762
  if (process.env.GRAPH_CLI_TESTS) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.67.3-alpha-20240124142956-af00244",
2
+ "version": "0.67.3",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.67.3-alpha-20240124142956-af00244",
3
+ "version": "0.67.3",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {