This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> [email protected] test /Users/dignifiedquire/opensource/ipfs/orbit-db | |
> mocha | |
Orbit Client | |
1) Uncaught error outside test suite | |
2) Uncaught error outside test suite | |
3) Uncaught error outside test suite |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// before | |
async.each( | |
Object.keys(this.transports), | |
(key, cb) => this.transports[key].close(cb), | |
() => { | |
// Ignoring close errors | |
callback() | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const _ = require('lodash') | |
const Promise = require('bluebird') | |
module.exports = function loadAllPages (callFx, opts) { | |
opts['page'] = opts.page || 1 | |
const res = [] | |
return Promise | |
.resolve(callFx(opts)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const _ = require('highland') | |
// Fake dagservice get | |
const get = (hash, cb) => { | |
cb(null, { | |
type: 'file', | |
data: Math.random() + hash, | |
links: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const exec = require('child_process').execSync | |
const path = require('path') | |
const fs = require('fs') | |
const glob = require('glob') | |
const name = process.argv[2] | |
console.log('Starting to transform %s', name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
├── dist # auto-generated by the transpile and minification task. | |
│ ├── index.js | |
│ └── index.min.js | |
├── lib # auto-generated source tree, transpiled using babel. Makes the code es5 compatible | |
│ ├── index.js | |
│ └── ... | |
├── src # source code. Can use the latest features (ES2015) in JavaScript. | |
│ ├── index.js | |
│ └── ... | |
├── test # tests folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"lint": "dignified-lint", | |
"build": "dignified-build", | |
"test": "dignified-test", | |
"test:node": "dignified-test node", | |
"test:browser": "dignified-test browser", | |
"release": "dignified-release" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const API = require('ipfs-api/src') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var API = require('ipfs-api') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://npmcdn.com/ipfs-api/dist/index.js"></script> | |
<script src="https://npmcdn.com/ipfs-api/dist/index.min.js"></script> |