Skip to content

Commit eeededc

Browse files
committed
revert pinata sdk update
1 parent d907691 commit eeededc

File tree

4 files changed

+32
-77
lines changed

4 files changed

+32
-77
lines changed

dist/index.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -130787,10 +130787,7 @@ module.exports = {
130787130787
throw new Error("[pinata] Secret is empty. (input `pinataSecret`)");
130788130788
}
130789130789

130790-
return new pinataSDK({
130791-
pinataApiKey: pinataKey,
130792-
pinataSecretApiKey: pinataSecret,
130793-
});
130790+
return pinataSDK(pinataKey, pinataSecret);
130794130791
},
130795130792
upload: async (api, options) => {
130796130793
const { path, pinName, pinataPinName, verbose } = options;

package-lock.json

+29-68
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@actions/core": "^1.10.0",
3939
"@actions/github": "^5.1.1",
4040
"@filebase/client": "0.0.2",
41-
"@pinata/sdk": "2.1.0",
41+
"@pinata/sdk": "1.1.23",
4242
"files-from-path": "0.2.6",
4343
"ipfs-http-client": "55.0.0",
4444
"it-last": "1.0.5",

pinners/pinata.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ module.exports = {
1919
throw new Error("[pinata] Secret is empty. (input `pinataSecret`)");
2020
}
2121

22-
return new pinataSDK({
23-
pinataApiKey: pinataKey,
24-
pinataSecretApiKey: pinataSecret,
25-
});
22+
return pinataSDK(pinataKey, pinataSecret);
2623
},
2724
upload: async (api, options) => {
2825
const { path, pinName, pinataPinName, verbose } = options;

0 commit comments

Comments
 (0)