@graphprotocol/graph-cli 0.61.0 → 0.61.1-alpha-20231114193632-06208b4

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.61.1-alpha-20231114193632-06208b4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1503](https://github.com/graphprotocol/graph-tooling/pull/1503)
8
+ [`06208b4`](https://github.com/graphprotocol/graph-tooling/commit/06208b423a831949a8603f0c7d5d9d120d3373d8)
9
+ Thanks [@saihaj](https://github.com/saihaj)! - sanitize special characters in codegeneration
10
+
3
11
  ## 0.61.0
4
12
 
5
13
  ### Minor Changes
@@ -40,6 +40,8 @@ class AbiCodeGenerator {
40
40
  constructor(abi) {
41
41
  this.abi = abi;
42
42
  this.abi = abi;
43
+ // Sanitize the name of the ABI to make it a valid class name
44
+ this.abi.name = abi.name.replace(/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]+/g, '_');
43
45
  }
44
46
  generateModuleImports() {
45
47
  const imports = [
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.61.0",
2
+ "version": "0.61.1-alpha-20231114193632-06208b4",
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.61.0",
3
+ "version": "0.61.1-alpha-20231114193632-06208b4",
4
4
  "description": "CLI for building for and deploying to The Graph",
5
5
  "license": "(Apache-2.0 OR MIT)",
6
6
  "engines": {