Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CJS compatibility #28

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"moment": "^2.29.4",
"moment-parseplus": "^2.0.3",
"moonbeam-types-bundle": "^2.0.9",
"node-fetch": "2",
"p-map": "^4.0.0",
"p-queue": "^6.6.2",
"pg": "^8.8.0",
Expand Down
8 changes: 4 additions & 4 deletions src/tools/run-moonbeam-fork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ const main = async () => {
let polkadotVersion: string;
let polkadotBinaryPath: string;
if (!argv.dev) {
const polkadotReleases = await (
const polkadotReleases = (await (
await fetch("https://api.github.com/repos/paritytech/polkadot/releases")
).json();
).json()) as any;

const latestPolkadotVersion = polkadotReleases.find((release: any) =>
release.assets.find((asset: any) => asset.name === "polkadot")
Expand Down Expand Up @@ -186,9 +186,9 @@ const main = async () => {
process.stdout.write(` ${chalk.green(polkadotVersion.trim())} ✓\n`);
}

const moonbeamReleases = await (
const moonbeamReleases = (await (
await fetch("https://api.github.com/repos/purestake/moonbeam/releases")
).json();
).json()) as any;

const latestMoonbeamVersion = semver.valid(
semver.coerce(
Expand Down