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

refactor: examples for js-ipfs 0.41 #270

Merged
merged 4 commits into from
Feb 13, 2020
Merged

refactor: examples for js-ipfs 0.41 #270

merged 4 commits into from
Feb 13, 2020

Conversation

alanshaw
Copy link

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.
@@ -21,46 +20,40 @@ import {
import hexagonsSvg from 'shared/media/images/hexagons.sprite.svg'
import styles from './index.module.css'

const CID_LENGTH = 46
Copy link
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