@graphprotocol/graph-cli 0.60.1-alpha-20231103131654-82a8eec → 0.60.1-alpha-20231103131932-a02eb0c
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 +2 -2
- package/dist/compiler/index.js +0 -6
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# @graphprotocol/graph-cli
|
|
2
2
|
|
|
3
|
-
## 0.60.1-alpha-
|
|
3
|
+
## 0.60.1-alpha-20231103131932-a02eb0c
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- [#1490](https://github.com/graphprotocol/graph-tooling/pull/1490)
|
|
8
|
-
[`
|
|
8
|
+
[`a02eb0c`](https://github.com/graphprotocol/graph-tooling/commit/a02eb0c4070500e5c8d018741c4f4c16bbd0c6c6)
|
|
9
9
|
Thanks [@mangas](https://github.com/mangas)! - dependencies updates:
|
|
10
10
|
- Updated dependency [`prettier@3.0.3` ↗︎](https://www.npmjs.com/package/prettier/v/3.0.3) (from
|
|
11
11
|
`1.19.1`, in `dependencies`)
|
package/dist/compiler/index.js
CHANGED
|
@@ -444,11 +444,9 @@ class Compiler {
|
|
|
444
444
|
keyPath: ['dataSources', i, 'source', 'package', 'file'],
|
|
445
445
|
value: await this._uploadFileToIPFS(dataSource.getIn(['source', 'package', 'file']), uploadedFiles, spinner),
|
|
446
446
|
});
|
|
447
|
-
console.log("####11");
|
|
448
447
|
console.log(dataSource.getIn(["mapping", "file"]));
|
|
449
448
|
console.log(dataSource.toJS());
|
|
450
449
|
if (dataSource.getIn(["mapping", "file"])) {
|
|
451
|
-
console.log("####10");
|
|
452
450
|
updates.push({
|
|
453
451
|
keyPath: ['dataSources', i, 'mapping', 'file'],
|
|
454
452
|
value: await this._uploadFileToIPFS(dataSource.getIn(['mapping', 'file']), uploadedFiles, spinner),
|
|
@@ -506,14 +504,11 @@ class Compiler {
|
|
|
506
504
|
return immutable_1.default.fromJS({ '/': `/ipfs/${hash}` });
|
|
507
505
|
}
|
|
508
506
|
async _uploadSubgraphDefinitionToIPFS(subgraph) {
|
|
509
|
-
console.log("####1");
|
|
510
507
|
const str = js_yaml_1.default.safeDump(subgraph.toJS(), { noRefs: true, sortKeys: true });
|
|
511
|
-
console.log("####2");
|
|
512
508
|
const file = { path: 'subgraph.yaml', content: Buffer.from(str, 'utf-8') };
|
|
513
509
|
return await this._uploadToIPFS(file);
|
|
514
510
|
}
|
|
515
511
|
async _uploadToIPFS(file) {
|
|
516
|
-
console.log("####4");
|
|
517
512
|
try {
|
|
518
513
|
const files = this.ipfs.addAll([file]);
|
|
519
514
|
// We get back async iterable
|
|
@@ -523,7 +518,6 @@ class Compiler {
|
|
|
523
518
|
// we grab the file and pin it
|
|
524
519
|
const uploadedFile = value;
|
|
525
520
|
await this.ipfs.pin.add(uploadedFile.cid);
|
|
526
|
-
console.log("####5");
|
|
527
521
|
return uploadedFile.cid.toString();
|
|
528
522
|
}
|
|
529
523
|
catch (e) {
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED