@aave-dao/aave-helpers-js 1.0.4 → 1.0.6
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/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -49,8 +49,8 @@ program.command("ipfs").description("generates the ipfs hash for specified sourc
|
|
|
49
49
|
const filePath = (0, path.join)(process.cwd(), source);
|
|
50
50
|
if (!(0, fs.existsSync)(filePath)) throw new Error("FILE_NOT_FOUND");
|
|
51
51
|
const content = (0, fs.readFileSync)(filePath, "utf8");
|
|
52
|
-
(0, _bgd_labs_toolbox.Aip)((0, _bgd_labs_toolbox.parseFrontmatterMd)(content));
|
|
53
|
-
const bs58Hash = (0, _bgd_labs_toolbox.cidV0ToBs58)(await (0, _bgd_labs_toolbox.hash)(content));
|
|
52
|
+
(0, _bgd_labs_toolbox.Aip)((0, _bgd_labs_toolbox.parseFrontmatterMd)(content).data);
|
|
53
|
+
const bs58Hash = await (0, _bgd_labs_toolbox.cidV0ToBs58)(await (0, _bgd_labs_toolbox.hash)(content));
|
|
54
54
|
if (upload) {
|
|
55
55
|
const [pinata, thegraph] = await Promise.all([uploadToPinata(content), uploadToTheGraph(content)]);
|
|
56
56
|
if (verbose) {
|
package/dist/cli.mjs
CHANGED
|
@@ -49,8 +49,8 @@ program.command("ipfs").description("generates the ipfs hash for specified sourc
|
|
|
49
49
|
const filePath = join(process.cwd(), source);
|
|
50
50
|
if (!existsSync(filePath)) throw new Error("FILE_NOT_FOUND");
|
|
51
51
|
const content = readFileSync(filePath, "utf8");
|
|
52
|
-
Aip(parseFrontmatterMd(content));
|
|
53
|
-
const bs58Hash = cidV0ToBs58(await hash(content));
|
|
52
|
+
Aip(parseFrontmatterMd(content).data);
|
|
53
|
+
const bs58Hash = await cidV0ToBs58(await hash(content));
|
|
54
54
|
if (upload) {
|
|
55
55
|
const [pinata, thegraph] = await Promise.all([uploadToPinata(content), uploadToTheGraph(content)]);
|
|
56
56
|
if (verbose) {
|