Skip to content

Commit

Permalink
Fixing lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Jan 6, 2025
1 parent 693c8a9 commit 4accb11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions packages/umi-uploader-cascade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"test": "ava"
},
"dependencies": {
"node-fetch": "^2.6.7"
"node-fetch": "^2.6.7",
"form-data": "^3.0.0"
},
"peerDependencies": {
"@metaplex-foundation/umi": "workspace:^"
Expand All @@ -42,8 +43,7 @@
"@metaplex-foundation/umi-rpc-web3js": "workspace:^",
"ava": "^5.1.0",
"typescript": "^4.5.4",
"@types/node-fetch": "^2.6.2",
"form-data": "^3.0.0"
"@types/node-fetch": "^2.6.2"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 3 additions & 1 deletion packages/umi-uploader-cascade/src/createCascadeUploader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
UploaderUploadOptions,
} from '@metaplex-foundation/umi';
import fetch from 'node-fetch';

const FormData = require('form-data');

const CASCADE_API_URL = 'https://gateway-api.pastel.network/';
Expand Down Expand Up @@ -65,7 +66,7 @@ export function createCascadeUploader(
Api_key: apiKey,
},
method: 'POST',
body: body,
body,
}
);

Expand All @@ -80,6 +81,7 @@ export function createCascadeUploader(
} catch (e) {
return [];
}
// eslint-disable-next-line no-console
console.log(uris);
return uris;
};
Expand Down
7 changes: 3 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4accb11

Please sign in to comment.