@graphprotocol/graph-cli 0.91.0 → 0.91.1

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,5 +1,13 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
+ ## 0.91.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1783](https://github.com/graphprotocol/graph-tooling/pull/1783)
8
+ [`ea1d948`](https://github.com/graphprotocol/graph-tooling/commit/ea1d94863783e19a379ce6d545d5f8523d8bf9e8)
9
+ Thanks [@YaroShkvorets](https://github.com/YaroShkvorets)! - Fix bug with network selection
10
+
3
11
  ## 0.91.0
4
12
 
5
13
  ### Minor Changes
@@ -109,7 +109,7 @@ CodegenCommand.flags = {
109
109
  summary: 'IPFS node to use for fetching subgraph data.',
110
110
  char: 'i',
111
111
  default: ipfs_1.DEFAULT_IPFS_URL,
112
- hidden: true
112
+ hidden: true,
113
113
  }),
114
114
  'uncrashable-config': core_1.Flags.file({
115
115
  summary: 'Directory for uncrashable config.',
@@ -324,7 +324,7 @@ InitCommand.flags = {
324
324
  summary: 'IPFS node to use for fetching subgraph data.',
325
325
  char: 'i',
326
326
  default: ipfs_1.DEFAULT_IPFS_URL,
327
- hidden: true
327
+ hidden: true,
328
328
  }),
329
329
  };
330
330
  exports.default = InitCommand;
@@ -444,7 +444,7 @@ async function processInitForm({ protocol: initProtocol, abi: initAbi, abiPath:
444
444
  type: 'input',
445
445
  name: 'source',
446
446
  message: sourceMessage,
447
- skip: () => !isComposedSubgraph,
447
+ skip: () => initFromExample !== undefined || !protocolInstance.hasContract() || isSubstreams,
448
448
  initial: initContract,
449
449
  validate: async (value) => {
450
450
  if (isComposedSubgraph) {
@@ -146,7 +146,7 @@ async function getPlatform(matchstickVersion, logsOpt) {
146
146
  const type = os_1.default.type();
147
147
  const arch = os_1.default.arch();
148
148
  const cpuCore = os_1.default.cpus()[0];
149
- const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|M3|processor)/.test(cpuCore.model);
149
+ const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|M3|M4|processor)/.test(cpuCore.model);
150
150
  const linuxInfo = type === 'Linux' ? await getLinuxInfo.bind(this)() : {};
151
151
  const linuxDistro = linuxInfo.name;
152
152
  const release = linuxInfo.version || os_1.default.release();
@@ -106,7 +106,7 @@ class Protocol {
106
106
  near: ['near'],
107
107
  cosmos: ['cosmos'],
108
108
  substreams: ['substreams'],
109
- subgraph: ['subgraph'],
109
+ // subgraph: ['subgraph'],
110
110
  });
111
111
  }
112
112
  static availableNetworks() {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.91.0",
2
+ "version": "0.91.1",
3
3
  "commands": {
4
4
  "add": {
5
5
  "id": "add",
@@ -462,8 +462,7 @@
462
462
  "ethereum",
463
463
  "near",
464
464
  "cosmos",
465
- "substreams",
466
- "subgraph"
465
+ "substreams"
467
466
  ]
468
467
  },
469
468
  "node": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.91.0",
3
+ "version": "0.91.1",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {