@graphprotocol/graph-cli 0.37.3-alpha-20230110163550-d64bef6 → 0.37.3-alpha-20230110164921-a0dbdfc

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,6 +1,6 @@
1
1
  # @graphprotocol/graph-cli
2
2
 
3
- ## 0.37.3-alpha-20230110163550-d64bef6
3
+ ## 0.37.3-alpha-20230110164921-a0dbdfc
4
4
 
5
5
  ### Patch Changes
6
6
 
package/dist/subgraph.js CHANGED
@@ -83,7 +83,10 @@ class Subgraph {
83
83
  let msg = errors.reduce((msg, errors, entity) => {
84
84
  errors = errors.groupBy((error) => error.get('directive'));
85
85
  let inner_msgs = errors.reduce((msg, errors, directive) => {
86
- return `${msg}${directive ? `${directive}:` : ''}
86
+ return `${msg}${directive
87
+ ? `
88
+ ${directive}:`
89
+ : ''}
87
90
  ${errors
88
91
  .map(error => error
89
92
  .get('message')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/graph-cli",
3
- "version": "0.37.3-alpha-20230110163550-d64bef6",
3
+ "version": "0.37.3-alpha-20230110164921-a0dbdfc",
4
4
  "license": "(Apache-2.0 OR MIT)",
5
5
  "description": "CLI for building for and deploying to The Graph",
6
6
  "main": "dist/cli.js",
package/src/subgraph.ts CHANGED
@@ -88,7 +88,12 @@ export default class Subgraph {
88
88
  errors = errors.groupBy((error: any) => error.get('directive'))
89
89
  let inner_msgs = errors.reduce(
90
90
  (msg: string, errors: any[], directive: string) => {
91
- return `${msg}${directive ? `${directive}:` : ''}
91
+ return `${msg}${
92
+ directive
93
+ ? `
94
+ ${directive}:`
95
+ : ''
96
+ }
92
97
  ${errors
93
98
  .map(error =>
94
99
  error