Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Run core tests in the browser #55

Merged
merged 1 commit into from
Jan 24, 2016
Merged

Run core tests in the browser #55

merged 1 commit into from
Jan 24, 2016

Conversation

fbaiodias
Copy link
Member

This is mostly the same as ipfs/js-ipfs-repo#26.

Changed IPFS core to allow it to be instantiated with a custom ipfs-repo, but if none is provided it will use the default with fs-blob-store for node, or with local-storage-blob-store for the browser.

Also had to replace let's by const's on the tests because of Firefox.

@@ -0,0 +1,5 @@
const isNode = !global.window

module.exports = isNode
Copy link
Member

Choose a reason for hiding this comment

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

nice one!

@daviddias
Copy link
Member

@xicombd this is pretty awesome! thank you once again for contributing 👍 🎉

daviddias added a commit that referenced this pull request Jan 24, 2016
Run core tests in the browser
@daviddias daviddias merged commit 731c24c into ipfs:master Jan 24, 2016
@fbaiodias fbaiodias deleted the browser branch January 24, 2016 21:54
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
They moved to @Hapi namespace and now spew warnings on npm install.
vasco-santos pushed a commit that referenced this pull request Sep 21, 2021
* fix: replace node buffers with uint8arrays

BREAKING CHANGES:

- All deps of this module use Uint8Arrays instead of node Buffers

* chore: remove browser build steps
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