@graphprotocol/graph-cli 0.37.3-alpha-20230112213511-df1c6b2 → 0.37.3-alpha-20230113132704-4100b25
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
|
@@ -9,7 +9,7 @@ const conversions_1 = __importDefault(require("./conversions"));
|
|
|
9
9
|
// Conversion utilities
|
|
10
10
|
const conversionsForTypeSystems = (fromTypeSystem, toTypeSystem) => {
|
|
11
11
|
let conversions = conversions_1.default.getIn([fromTypeSystem, toTypeSystem]);
|
|
12
|
-
if (conversions
|
|
12
|
+
if (conversions === undefined) {
|
|
13
13
|
throw new Error(`Conversions from '${fromTypeSystem}' to '${toTypeSystem}' are not supported`);
|
|
14
14
|
}
|
|
15
15
|
return conversions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphprotocol/graph-cli",
|
|
3
|
-
"version": "0.37.3-alpha-
|
|
3
|
+
"version": "0.37.3-alpha-20230113132704-4100b25",
|
|
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",
|
|
@@ -6,7 +6,7 @@ import TYPE_CONVERSIONS from './conversions'
|
|
|
6
6
|
|
|
7
7
|
const conversionsForTypeSystems = (fromTypeSystem: string, toTypeSystem: string) => {
|
|
8
8
|
let conversions = TYPE_CONVERSIONS.getIn([fromTypeSystem, toTypeSystem])
|
|
9
|
-
if (conversions
|
|
9
|
+
if (conversions === undefined) {
|
|
10
10
|
throw new Error(
|
|
11
11
|
`Conversions from '${fromTypeSystem}' to '${toTypeSystem}' are not supported`,
|
|
12
12
|
)
|