Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

refactor: examples for js-ipfs 0.41#270

Merged
alanshaw merged 4 commits intomasterfrom
refactor/js-ipfs-0.41
Feb 13, 2020
Merged

refactor: examples for js-ipfs 0.41#270
alanshaw merged 4 commits intomasterfrom
refactor/js-ipfs-0.41

Conversation

@alanshaw
Copy link
Copy Markdown

This also removes the react-live preview component that uses buble.

buble does not support for await...of loops. Instead we just run the code (in the same way that react-live does) without the transpile.

This also removes the `react-live` preview component that uses `buble`.

`buble` does not support `for await...of` loops. Instead we just run the code (in the same way that `react-live` does) without the transpile.
import hexagonsSvg from 'shared/media/images/hexagons.sprite.svg'
import styles from './index.module.css'

const CID_LENGTH = 46
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed in favour of is-ipfs because string length is a terrible check for whether something is a CID 😂

@alanshaw alanshaw merged commit aebddb8 into master Feb 13, 2020
@alanshaw alanshaw deleted the refactor/js-ipfs-0.41 branch February 13, 2020 17:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants