From 42885b20a4f63335306bf02af8658437984584fb Mon Sep 17 00:00:00 2001 From: haad Date: Fri, 31 Mar 2017 10:54:56 +0200 Subject: [PATCH] Write permissions for databases Use latest store modules from npm Update README Update docs Update examples Update benchmarks Update dependencies Add Getting Started guide Add new a screenshot Add a new live demo Add persistency tests for snapshot saving/loading and events Add network stress tests (but skip them by default as they're very heavy and lengthy) Add browser benchmarks Add log() alias for eventlog() database Add possibility to create database if it doesn't exist yet Add support for orbitdb addresses Add a test for starting replication when peers connect Add debug build Use IPFS nodeID as default user id Use ipfs-pubsub-room Handle closing of databases properly Handle cache errors Clean up tests, re-organize code files Clean up code style Support for CLI Remove obsolete scripts --- .gitignore | 13 +- API.md | 606 +- CHANGELOG.md | 9 + GUIDE.md | 336 + Makefile | 6 +- README.md | 120 +- benchmarks/benchmark-add.js | 69 + benchmarks/benchmark-replication.js | 155 + benchmarks/browser/benchmark-add.html | 78 + .../browser/benchmark-replication-sender.html | 135 + benchmarks/browser/benchmark-replication.html | 150 + circle.yml | 2 +- conf/webpack.config.js | 27 +- conf/webpack.debug.config.js | 37 + conf/webpack.example.config.js | 59 +- dist/orbitdb.js | 14498 ---------------- dist/orbitdb.min.js | 9 +- examples/benchmark.js | 50 - .../browser-webpack-example/browser.css | 41 + .../browser-webpack-example/index.html | 50 + .../browser/browser-webpack-example/index.js | 19 + examples/browser/browser.css | 41 + examples/browser/browser.html | 153 +- examples/browser/example.js | 276 + examples/browser/index.html | 12 - examples/browser/index.js | 110 - examples/eventlog.js | 65 +- examples/keyvalue.js | 79 +- package-lock.json | 10305 +++++++++++ package.json | 55 +- screenshots/example1.png | Bin 0 -> 189158 bytes scripts/post_install.sh | 4 - src/OrbitDB.js | 368 +- src/access-controller.js | 85 + src/ipfs-access-controller.js | 39 + src/orbit-db-address.js | 48 + test/counterdb.test.js | 239 +- test/create-open.test.js | 238 + test/docstore.test.js | 309 +- test/eventlog.test.js | 597 +- test/feed.test.js | 670 +- test/ipfs-daemons.conf.js | 38 - test/kvstore.test.js | 272 +- test/mocha.opts | 1 + test/network-stress.tests.js | 265 + test/persistency.js | 251 +- test/promise-map-series.js | 16 - test/replicate-and-load.test.js | 153 + test/replicate-automatically.test.js | 100 + test/replicate.test.js | 211 +- test/test-config.js | 18 - test/test-daemons.js | 9 - test/utils/config.js | 75 + test/utils/start-ipfs.js | 18 + test/utils/stop-ipfs.js | 23 + test/{ => utils}/test-utils.js | 0 test/utils/wait-for-peers.js | 16 + test/write-permissions.test.js | 221 + 58 files changed, 15113 insertions(+), 16736 deletions(-) create mode 100644 GUIDE.md create mode 100644 benchmarks/benchmark-add.js create mode 100644 benchmarks/benchmark-replication.js create mode 100644 benchmarks/browser/benchmark-add.html create mode 100644 benchmarks/browser/benchmark-replication-sender.html create mode 100644 benchmarks/browser/benchmark-replication.html create mode 100644 conf/webpack.debug.config.js delete mode 100644 dist/orbitdb.js delete mode 100644 examples/benchmark.js create mode 100644 examples/browser/browser-webpack-example/browser.css create mode 100644 examples/browser/browser-webpack-example/index.html create mode 100644 examples/browser/browser-webpack-example/index.js create mode 100644 examples/browser/browser.css create mode 100644 examples/browser/example.js delete mode 100644 examples/browser/index.html delete mode 100644 examples/browser/index.js create mode 100644 package-lock.json create mode 100644 screenshots/example1.png delete mode 100755 scripts/post_install.sh create mode 100644 src/access-controller.js create mode 100644 src/ipfs-access-controller.js create mode 100644 src/orbit-db-address.js create mode 100644 test/create-open.test.js delete mode 100644 test/ipfs-daemons.conf.js create mode 100644 test/network-stress.tests.js delete mode 100644 test/promise-map-series.js create mode 100644 test/replicate-and-load.test.js create mode 100644 test/replicate-automatically.test.js delete mode 100644 test/test-config.js delete mode 100644 test/test-daemons.js create mode 100644 test/utils/config.js create mode 100644 test/utils/start-ipfs.js create mode 100644 test/utils/stop-ipfs.js rename test/{ => utils}/test-utils.js (100%) create mode 100644 test/utils/wait-for-peers.js create mode 100644 test/write-permissions.test.js diff --git a/.gitignore b/.gitignore index 90e9793e8..50c9cf975 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,8 @@ *sublime* node_modules/ -*.log -.vagrant/ -.idea/ -dump.rdb -Vagrantfile -examples/browser/bundle.js -examples/browser/*.map +examples/browser/browser-webpack-example/bundle.js +examples/browser/browser-webpack-example/*.map examples/browser/lib dist/*.map -orbit-db/ -ipfs/ +dist/orbitdb.js +orbitdb/ diff --git a/API.md b/API.md index ff5cb247c..cd675c5d6 100644 --- a/API.md +++ b/API.md @@ -1,17 +1,21 @@ # orbit-db API documentation OrbitDB provides various types of databases for different data models: -- [kvstore](#kvstorename) is a key-value database just like your favourite key-value database. -- [eventlog](#eventlogname) is an append-only log with traversable history. Useful for *"latest N"* use cases or as a message queue. -- [feed](#feedname) is a log with traversable history. Entries can be added and removed. Useful for *"shopping cart" type of use cases, or for example as a feed of blog posts or "tweets". -- [counter](#countername) for counting. Useful for example counting events separate from log/feed data. -- [docstore](##docstorename-options) is a document database to which documents can be stored and indexed by a specified key. Useful for example building search indices or version controlling documents and data. +- [log](#lognameaddress) is an append-only log with traversable history. Useful for *"latest N"* use cases or as a message queue. +- [feed](#feednameaddress) is a log with traversable history. Entries can be added and removed. Useful for *"shopping cart" type of use cases, or for example as a feed of blog posts or "tweets". +- [keyvalue](#keyvaluenameaddress) is a key-value database just like your favourite key-value database. +- [docs](#docsnameaddress-options) is a document database to which documents can be stored and indexed by a specified key. Useful for example building search indices or version controlling documents and data. +- [counter](#counternameaddress) for counting. Useful for example counting events separate from log/feed data. Which database to use depends on your use case and data model. -## Getting Started +## Usage + +Read the **[GETTING STARTED](https://github.com/orbitdb/orbit-db/blob/master/GUIDE.md)** guide for a more in-depth tutorial and to understand how OrbitDB works. -Install `orbit-db` and [ipfs](https://www.npmjs.com/package/ipfs) from npm: +### Using as a module + +Install [orbit-db](https://www.npmjs.com/package/orbit-db) and [ipfs](https://www.npmjs.com/package/ipfs) from npm: ``` npm install orbit-db ipfs @@ -24,13 +28,33 @@ const IPFS = require('ipfs') const OrbitDB = require('orbit-db') const ipfs = new IPFS() -const orbitdb = new OrbitDB(ipfs) +ipfs.on('ready', () => { + const orbitdb = new OrbitDB(ipfs) + + // Create / Open a database + const db = await orbitdb.log('hello') + await db.load() + + // Listen for updates from peers + db.events.on('replicated', (address) => { + console.log(db.iterator({ limit: -1 }).collect()) + }) + + // Add an entry + const hash = await db.add('world') + console.log(hash) + + // Query + const result = db.iterator({ limit: -1 }).collect() + console.log(result) +}) ``` `orbitdb` is now the [OrbitDB](#orbitdb) instance we can use to interact with the databases. -This will tell `orbit-db` to use the [Javascript implementation](https://github.com/ipfs/js-ipfs) of IPFS. Choose this options if you're using `orbitd-db` to develop **Browser** applications. +This will tell `orbit-db` to use the [Javascript implementation](https://github.com/ipfs/js-ipfs) of IPFS. Choose this options if you're using `orbitd-db` to develop **browser** applications. +### Using with a running IPFS daemon Alternatively, you can use [ipfs-api](https://npmjs.org/package/ipfs-api) to use `orbit-db` with a locally running IPFS daemon: ``` @@ -43,396 +67,378 @@ const OrbitDB = require('orbit-db') const ipfs = IpfsApi('localhost', '5001') const orbitdb = new OrbitDB(ipfs) +const db = await orbitdb.log('hello') +... ``` `orbitdb` is now the [OrbitDB](#orbitdb) instance we can use to interact with the databases. -Choose this options if you're using `orbitd-db` to develop **Desktop** (or "headless") applications, eg. with [Electron](https://electron.atom.io). - - -## Usage - -- [orbitdb](#orbitdb) - - [kvstore(name)](#kvstorename) - - [put(key, value)](#kvstorename) - - [set(key, value)](#kvstorename) - - [get(key)](#kvstorename) - - [events](#kvstorename) - - [eventlog(name)](#eventlogname) - - [add(event)](#eventlogname) - - [get(hash)](#eventlogname) - - [iterator([options])](#eventlogname) - - [events](#eventlogname) - - [feed(name)](#feedname) - - [add(data)](#feedname) - - [get(hash)](#feedname) - - [iterator([options])](#feedname) - - [remove(hash)](#feedname) - - [events](#feedname) - - [docstore(name, options)](#docstorename-options) - - [put(doc)](#docstorename-options) - - [get(hash)](#docstorename-options) - - [query(mapper)](#docstorename-options) - - [del(key)](#docstorename-options) - - [events](#docstorename-options) - - [counter(name)](#countername) - - [value](#countername) - - [inc([amount])](#countername) - - [events](#countername) - - [disconnect()](#disconnect) +Choose this options if you're using `orbitd-db` to develop **backend** or **desktop** applications, eg. with [Electron](https://electron.atom.io). + + +## API + +- [OrbitDB](#orbitdb) + - [constructor(ipfs, [directory], [options])](#constructoripfs-directory-options) + - [keyvalue(name|address)](#keyvaluenameaddress) + - [put(key, value)](#putkey-value) + - [set(key, value)](#setkey-value) + - [get(key)](#getkey) + - [log(name|address)](#lognameaddress) + - [add(event)](#addevent) + - [get(hash)](#gethash) + - [iterator([options])](#iteratoroptions) + - [feed(name|address)](#feednameaddress) + - [add(data)](#adddata) + - [get(hash)](#gethash-1) + - [remove(hash)](#removehash) + - [iterator([options])](#iteratoroptions) + - [docs(name|address, options)](#docsnameaddress-options) + - [put(doc)](#putdoc) + - [get(hash)](#getkey-1) + - [query(mapper)](#querymapper) + - [del(key)](#delkey) + - [counter(name|address)](#counternameaddress) + - [value](#value) + - [inc([value])](#incvalue) + - [stop()](#stop) +- [Store](#store) + - [load()](#load) + - [close()](#close) + - [drop()](#drop) - [events](#events) - - [orbitdb](#events) - - [stores](#events) - -## orbitdb - -After creating an instance of `orbitd-db`, you can now access the different data stores. + - [key](#key) + - [type](#type) -### kvstore(name) - - Package: - [orbit-db-kvstore](https://github.com/haadcode/orbit-db-kvstore) - - ```javascript - const db = orbitdb.kvstore('application.settings') - ``` +## OrbitDB - - **put(key, value)** - ```javascript - db.put('hello', { name: 'World' }).then(() => ...) - ``` +### constructor(ipfs, [directory], [options]) - - **set(key, value)** - ```javascript - db.set('hello', { name: 'Friend' }).then(() => ...) - ``` - - - **get(key)** - ```javascript - const value = db.get('hello') - // { name: 'Friend' } - ``` +```javascript +const IPFS = require('ipfs') +const OrbitDB = require('orbit-db') - - **load()** +const ipfs = new IPFS() +ipfs.on('ready', () => { + const orbitdb = new OrbitDB(ipfs) +}) +``` - Load the locally persisted database state to memory. +After creating an `OrbitDB` instance , you can access the different data stores. Creating a database instance, eg. with `orbitdb.keyvalue(...)`, returns a *Promise* that resolves to a [database instance](#store). See the [Store](#store) section for details of common methods and properties. - ```javascript - db.events.on('ready', () => { - /* query */ - }) - db.load() - ``` +```javascript +const db = await orbitdb.kvstore('profile') +``` - - **events** +### keyvalue(name|address) - ```javascript - db.events.on('ready', () => /* local database loaded in memory */ ) - db.events.on('synced', () => /* query for updated results */ ) - ``` +Module: [orbit-db-kvstore](https://github.com/orbitdb/orbit-db-kvstore) - See [events](#events) for full description. +```javascript +const db = await orbitdb.keyvalue('application.settings') +// Or: +const db = await orbitdb.keyvalue(anotherkvdb.address) +``` -### eventlog(name) +**See the [Store](#store) section for details of common methods and properties.** - Package: - [orbit-db-eventstore](https://github.com/haadcode/orbit-db-eventstore) +#### put(key, value) + ```javascript + await db.put('hello', { name: 'World' }) + ``` +#### set(key, value) ```javascript - const db = orbitdb.eventlog('site.visitors') + await db.set('hello', { name: 'Friend' }) + ``` + +#### get(key) + ```javascript + const value = db.get('hello') + // { name: 'Friend' } ``` - - **add(event)** - ```javascript - db.add({ name: 'User1' }).then((hash) => ...) - ``` - - - **get(hash)** - ```javascript - const event = db.get(hash) - .map((e) => e.payload.value) - // { name: 'User1' } - ``` - - - **iterator([options])** +### log(name|address) - **options** : It is an object which supports the following properties +Module: [orbit-db-eventstore](https://github.com/orbitdb/orbit-db-eventstore) - `gt - (string)` Greater than +```javascript +const db = await orbitdb.eventlog('site.visitors') +// Or: +const db = await orbitdb.eventlog(anotherlogdb.address) +``` - `gte - (string)` Greater than or equal to +**See the [Store](#store) section for details of common methods and properties.** - `lt - (string)` Less than +#### add(event) + ```javascript + const hash = await db.add({ name: 'User1' }) + ``` + +#### get(hash) + ```javascript + const event = db.get(hash) + .map((e) => e.payload.value) + // { name: 'User1' } + ``` + +#### iterator([options]) - `lte - (string)` Less than or equal to +**options** : It is an object which supports the following properties - `limit - (integer)` Limiting the entries of result +`gt - (string)` Greater than - `reverse - (boolean)` If set to true will result in reversing the result. +`gte - (string)` Greater than or equal to - ```javascript - const all = db.iterator({ limit: -1 }) - .collect() - .map((e) => e.payload.value) - // [{ name: 'User1' }] - ``` - - - **load()** +`lt - (string)` Less than + +`lte - (string)` Less than or equal to - Load the locally persisted database state to memory. +`limit - (integer)` Limiting the entries of result - ```javascript - db.events.on('ready', () => { - /* query */ - }) - db.load() - ``` +`reverse - (boolean)` If set to true will result in reversing the result. - - **events** +```javascript +const all = db.iterator({ limit: -1 }) + .collect() + .map((e) => e.payload.value) +// [{ name: 'User1' }] +``` - ```javascript - db.events.on('ready', () => /* local database loaded in memory */ ) - db.events.on('synced', () => /* query for updated results */ ) - ``` +### feed(name|address) - See [events](#events) for full description. +Module: [orbit-db-feedstore](https://github.com/orbitdb/orbit-db-feedstore) -### feed(name) +```javascript +const db = await orbitdb.feed('orbit-db.issues') +// Or: +const db = await orbitdb.feed(anotherfeeddb.address) +``` - Package: - [orbit-db-feedstore](https://github.com/haadcode/orbit-db-feedstore) +See the [Store](#store) section for details of common methods and properties. +#### add(data) ```javascript - const db = orbitdb.feed('orbit-db.issues') + const hash = await db.add({ name: 'User1' }) ``` + +#### get(hash) + ```javascript + const event = db.get(hash) + .map((e) => e.payload.value) + // { name: 'User1' } + ``` + +#### remove(hash) + ```javascript + const hash = await db.remove(hash) + ``` + +#### iterator([options]) - - **add(data)** - ```javascript - db.add({ name: 'User1' }).then((hash) => ...) - ``` - - - **get(hash)** - ```javascript - const event = db.get(hash) - .map((e) => e.payload.value) - // { name: 'User1' } - ``` - - - **iterator([options])** - - **options** : It is an object which supports the following properties +**options** : It is an object which supports the following properties - `gt - (string)` Greater than +`gt - (string)` Greater than - `gte - (string)` Greater than or equal to +`gte - (string)` Greater than or equal to - `lt - (string)` Less than +`lt - (string)` Less than - `lte - (string)` Less than or equal to +`lte - (string)` Less than or equal to - `limit - (integer)` Limiting the entries of result +`limit - (integer)` Limiting the entries of result - `reverse - (boolean)` If set to true will result in reversing the result. - ```javascript - const all = db.iterator({ limit: -1 }) - .collect() - .map((e) => e.payload.value) - // [{ name: 'User1' }] - ``` +`reverse - (boolean)` If set to true will result in reversing the result. - - **remove(hash)** - ```javascript - db.remove(hash).then((removed) => ...) - ``` - - - **load()** +```javascript +const all = db.iterator({ limit: -1 }) + .collect() + .map((e) => e.payload.value) +// [{ name: 'User1' }] +``` - Load the locally persisted database state to memory. +### docs(name|address, options) - ```javascript - db.events.on('ready', () => { - /* query */ - }) - db.load() - ``` +Module: [orbit-db-docstore](https://github.com/orbitdb/orbit-db-docstore) - - **events** +```javascript +const db = await orbitdb.docs('orbit.users.shamb0t.profile') +// Or: +const db = await orbitdb.docs(anotherdocdb.address) +``` - ```javascript - db.events.on('ready', () => /* local database loaded in memory */ ) - db.events.on('synced', () => /* query for updated results */ ) - ``` +By default, documents are indexed by field `_id`. You can also specify the field to index by: - See [events](#events) for full description. +```javascript +const db = await orbitdb.docs('orbit.users.shamb0t.profile', { indexBy: 'name' }) +``` -### docstore(name, options) +**See the [Store](#store) section for details of common methods and properties.** - Package: - [orbit-db-docstore](https://github.com/shamb0t/orbit-db-docstore) +#### put(doc) + ```javascript + const hash = await db.put({ _id: 'QmAwesomeIpfsHash', name: 'shamb0t', followers: 500 }) + ``` + +#### get(key) + ```javascript + const profile = db.get('shamb0t') + .map((e) => e.payload.value) + // [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }] + ``` + +#### query(mapper) + ```javascript + const all = db.query((doc) => doc.followers >= 500) + // [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }] + ``` +#### del(key) ```javascript - const db = orbitdb.docstore('orbit.users.shamb0t.profile') + const hash = await db.del('shamb0t') ``` + +### counter(name|address) + +Module: [orbit-db-counterstore](https://github.com/orbitdb/orbit-db-counterstore) + +```javascript +const counter = await orbitdb.counter('song_123.play_count') +// Or: +const counter = await orbitdb.counter(anothercounterdb.address) +``` - By default, documents are indexed by field '_id'. You can also specify the field to index by: +**See the [Store](#store) section for details of common methods and properties.** +#### value ```javascript - const db = orbitdb.docstore('orbit.users.shamb0t.profile', { indexBy: 'name' }) + counter.value // 0 ``` - - **put(doc)** - ```javascript - db.put({ _id: 'QmAwesomeIpfsHash', name: 'shamb0t', followers: 500 }).then((hash) => ...) - ``` - - - **get(key)** - ```javascript - const profile = db.get('shamb0t') - .map((e) => e.payload.value) - // [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }] - ``` - - - **query(mapper)** - ```javascript - const all = db.query((doc) => doc.followers >= 500) - // [{ _id: 'shamb0t', name: 'shamb0t', followers: 500 }] - ``` - - - **del(key)** - ```javascript - db.del('shamb0t').then((removed) => ...) - ``` +#### inc([value]) + ```javascript + await counter.inc() + counter.value // 1 + await counter.inc(7) + counter.value // 8 + await counter.inc(-2) + counter.value // 8 + ``` - - **load()** +### stop() - Load the locally persisted database state to memory. + Stop OrbitDB, close databases and disconnect the databases from the network. - ```javascript - db.events.on('ready', () => { - /* query */ - }) - db.load() - ``` + ```javascript + orbitdb.stop() + ``` - - **events** +## Store - ```javascript - db.events.on('ready', () => /* local database loaded in memory */ ) - db.events.on('synced', () => /* query for updated results */ ) - ``` +Every database (store) has the following methods available in addition to their specific methods. - See [events](#events) for full description. +#### load() -### counter(name) +Load the locally persisted database state to memory. - Package: - [orbit-db-counterstore](https://github.com/haadcode/orbit-db-counterstore) +With events: +```javascript +db.events.on('ready', () => { + /* database is now ready to be queried */ +}) +db.load() +``` - ```javascript - const counter = orbitdb.counter('song_123.play_count') - ``` +Async: +```javascript +await db.load() +/* database is now ready to be queried */ +``` - - **value** - ```javascript - counter.value // 0 - ``` - - - **inc([value])** - ```javascript - counter.inc() - counter.value // 1 - counter.inc(7) - counter.value // 8 - counter.inc(-2) - counter.value // 8 - ``` - - - **load()** +#### close() - Load the locally persisted database state to memory. +Close the database. - ```javascript - db.events.on('ready', () => { - /* query */ - }) - db.load() - ``` +Async: +```javascript +await db.close() +``` - - **events** +#### drop() - ```javascript - db.events.on('ready', () => /* local database loaded in memory */ ) - db.events.on('synced', () => /* query for updated results */ ) - ``` +Remove the database locally. This does not delete any data from peers. - See [events](#events) for full description. +```javascript +await db.drop() +``` -### disconnect() +#### key - ```javascript - orbitdb.disconnect() - ``` +The [keypair]([orbit-db-keystore]()) used to access the database. -### events +#### type - - **stores** +The type of the database as a string. - Each database in `orbit-db` contains an `events` ([EventEmitter](https://nodejs.org/api/events.html)) object that emits events that describe what's happening in the database. +#### events - - `synced` - (dbname) +Each database in `orbit-db` contains an `events` ([EventEmitter](https://nodejs.org/api/events.html)) object that emits events that describe what's happening in the database. Events can be listened to with: +```javascript +db.events.on(name, callback) +``` - Emitted when an update happens in the databases. Eg. when the database was synchronized with a peer. This is usually a good place to requery the database - for updated results, eg. if a value of a key was changed or if there are new - events in an event log. +- **`replicated`** - (address) - ```javascript - db.events.on('synced', () => ... ) - ``` + Emitted when a the database was synced with another peer. This is usually a good place to re-query the database for updated results, eg. if a value of a key was changed or if there are new events in an event log. - - `sync` - (dbname) + ```javascript + db.events.on('replicated', (address) => ... ) + ``` - Emitted before starting a database sync with a peer. +- **`replicate`** - (address) - ```javascript - db.events.on('sync', (dbname) => ... ) - ``` + Emitted before replicating a part of the database with a peer. - - `load` - (dbname) + ```javascript + db.events.on('replicate', (address) => ... ) + ``` + +- **`replicate.progress`** - (address, hash, entry, progress, have) - Emitted before loading the local database. + Emitted while replicating a database. *address* is id of the database that emitted the event. *hash* is the multihash of the entry that was just loaded. *entry* is the database operation entry. *progress* is the current progress. *have* is a map of database pieces we have. - ```javascript - db.events.on('load', (dbname) => ... ) - ``` + ```javascript + db.events.on('replicate.progress', (address, hash, entry, progress, have) => ... ) + ``` - - `ready` - (dbname) +- **`load`** - (dbname) - Emitted after fully loading the local database. + Emitted before loading the database. - ```javascript - db.events.on('ready', (dbname) => ... ) - ``` + ```javascript + db.events.on('load', (dbname) => ... ) + ``` - - `write` - (dbname, hash, entry) +- **`load.progress`** - (address, hash, entry, progress, total) - Emitted after an entry was added locally to the database. *hash* is the IPFS hash of the latest state of the database. *entry* is the added database op. + Emitted while loading the local database, once for each entry. *dbname* is the name of the database that emitted the event. *hash* is the multihash of the entry that was just loaded. *entry* is the database operation entry. *progress* is a sequential number starting from 0 upon calling `load()`. - ```javascript - db.events.on('write', (dbname, hash, entry) => ... ) - ``` + ```javascript + db.events.on('load.progress', (address, hash, entry, progress, total) => ... ) + ``` - - `load.progress` - (dbname, hash, entry, progress) +- **`ready`** - (dbname) - Emitted while loading the local database, once for each entry. *dbname* is the name of the database that emitted the event. *hash* is the multihash of the entry that was just loaded. *entry* is the database operation entry. *progress* is a sequential number starting from 0 upon calling `load()`. + Emitted after fully loading the local database. - ```javascript - db.events.on('load.progress', (dbname, hash, entry, progress) => ... ) - ``` + ```javascript + db.events.on('ready', (dbname) => ... ) + ``` - - `error` - (error) +- **`write`** - (dbname, hash, entry) - Emitted on an error. + Emitted after an entry was added locally to the database. *hash* is the IPFS hash of the latest state of the database. *entry* is the added database op. - ```javascript - db.events.on('error', (err) => ... ) - ``` + ```javascript + db.events.on('write', (dbname, hash, entry) => ... ) + ``` diff --git a/CHANGELOG.md b/CHANGELOG.md index a2c211a82..8d1b3f7a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,13 @@ # Changelog +## v2.0.0 +- addresses +- write-permissions +- replication +- performance +- use ipfs, no more ipfs-daemon +- async/await +- logging + ## v0.12.0 - IPFS pubsub diff --git a/GUIDE.md b/GUIDE.md new file mode 100644 index 000000000..44ff7cfa9 --- /dev/null +++ b/GUIDE.md @@ -0,0 +1,336 @@ +# Getting Started with OrbitDB + +This guide will get you familiar using OrbitDB in your JavaScript application. OrbitDB and IPFS both work in Node.js applications as well as in browser applications. + +This guide is still being worked on and we would love to get [feedback and suggestions](https://github.com/orbitdb/orbit-db/issues) on how to improve it! + +## Table of Contents + +- [Background](#background) +- [Install](#install) +- [Setup](#setup) +- [Create a database](#create-a-database) + - [Address](#address) + - [Manifest](#manifest) +- [Keys](#keys) +- [Access Control](#access-control) + - [Public databases](#public-databases) +- [Add an entry](#add-an-entry) +- [Get an entry](#get-an-entry) +- [Persistency](#persistency) +- [Replicating a database](#replicating-a-database) + +## Background + +OrbitDB is a peer-to-peer database meaning that each peer has its own instance of a specific database. A database is replicated between the peers automatically resulting in an up-to-date view of the database upon updates from any peer. That is to say, the database gets pulled to the clients. + +This means that each application contains the full database that they're using. This in turn changes the data modeling as compared to client-server model where there's usually one big database for all entries: in OrbitDB, the data should be stored, "partitioned" or "sharded" based on the access rights for that data. For example, in a twitter-like application, tweets would not be saved in a global "tweets" database to which millions of users write concurretnly, but rather, ***each user would have their own database*** for their tweets. To follow a user, a peer would subscribe to a user's feed, ie. replicate their feed database. + +OrbitDB supports multiple data models (see more details below) and as such the developer has a variety ways to structure data. Combined with the peer-to-peer paradigm, the data modeling is important factor to build scalable decentralized applications. + +This may not be intuitive or you might not be sure what the best approach would be and we'd be happy to help you decide on your data modeling and application needs, [feel free to reach out](https://github.com/orbitdb/orbit-db/issues)! + +## Install + +Install [orbit-db](https://github.com/orbitdb/orbit-db) and [ipfs](https://www.npmjs.com/package/ipfs) from npm: + +``` +npm install orbit-db ipfs +``` + +## Setup + +Require OrbitDB and IPFS in your program and create the instances: + +```javascript +const IPFS = require('ipfs') +const OrbitDB = require('orbit-db') + +const ipfs = new IPFS() +ipfs.on('ready', () => { + const orbitdb = new OrbitDB(ipfs) +}) +``` + +`orbitdb` is now the [OrbitDB](#orbitdb) instance we can use to interact with the databases. + +## Create a database + +First, choose the data model you want to use. The available data models are: +- [Key-Value](https://github.com/orbitdb/orbit-db/blob/master/API.md##keyvaluenameaddress) +- [Log](https://github.com/orbitdb/orbit-db/blob/master/API.md#lognameaddress) (append-only log) +- [Feed](https://github.com/orbitdb/orbit-db/blob/master/API.md#feednameaddress) (same as log database but entries can be removed) +- [Documents](https://github.com/orbitdb/orbit-db/blob/master/API.md#docsnameaddress-options) (store indexed JSON documents) +- [Counters](https://github.com/orbitdb/orbit-db/blob/master/API.md#counternameaddress) + +Then, create a database instance (we'll use Key-Value database in this example): + +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + const db = await orbitdb.keyvalue('first-database') +}) +``` + +### Address + +When a database is created, it will be assigned an address by OrbitDB. The address consists of three parts: +``` +/orbitdb/Qmd8TmZrWASypEp4Er9tgWP4kCNQnW4ncSnvjvyHQ3EVSU/first-database +``` + +The first part, `/orbitdb`, specifies the protocol in use. The second part, an IPFS multihash `Qmd8TmZrWASypEp4Er9tgWP4kCNQnW4ncSnvjvyHQ3EVSU`, is the database manifest which contains the database info such as the name and type, and a pointer to the access controller. The last part, `first-database`, is the name of the database. + +In order to replicate the database with peers, the address is what you need to give to other peers in order for them to start replicating the database. + +The database address can be accessed as `db.address` from the database instance: +``` +const address = db.address +// address == '/orbitdb/Qmdgwt7w4uBsw8LXduzCd18zfGXeTmBsiR8edQ1hSfzcJC/first-database' +``` + +For example: +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + const db = await orbitdb.keyvalue('first-database') + console.log(db.address.toString()) + // /orbitdb/Qmd8TmZrWASypEp4Er9tgWP4kCNQnW4ncSnvjvyHQ3EVSU/first-database +}) +``` + +#### Manifest + +The second part of the address, the IPFS multihash `Qmdgwt7w4uBsw8LXduzCd18zfGXeTmBsiR8edQ1hSfzcJC`, is the manifest of a database. It's an IPFS object that contains information about the database. + +The database manifest can be fetched from IPFS and it looks like this: + +```json +{ + "Data": "{\"name\":\"a\",\"type\":\"feed\",\"accessController\":\"/ipfs/QmdjrCN7SqGxRapsm6LuoS4HrWmLeQHVM6f1Zk5A3UveqA\"}", + "Hash": "Qmdgwt7w4uBsw8LXduzCd18zfGXeTmBsiR8edQ1hSfzcJC", + "Size": 102, + "Links": [] +} +``` + +### Keys + +Each entry in a database is signed by who created that entry. The signing key, the key that a peer uses to sign entries, can be accessed as a member variable of the database instance: +``` +db.key +``` + +The key contains the keypair used to sign the database entries. The public key can be retrieved with: +``` +db.key.getPublic('hex') +``` + +The key can also be accessed from the OrbitDB instance: `orbitdb.key.getPublic('hex')`. + +If you want to give access to other peers to write to a database, you need to get their the public key in hex and add it to the access controller upon creating the database. If you want others to give you the access to write, you'll need to give them your public key (output of `orbitdb.key.getPublic('hex')`). For more information, see: [Access Control](https://github.com/orbitdb/orbit-db/blob/master/GUIDE.md#access-control). + +### Access Control + +You can specify the peers that have write-access to a database. You can define a set of peers that can write to a database or allow anyone write to a database. **By default and if not specified otherwise, the only creator of the database will be given write-access**. + +***Note!*** *OrbitDB currently supports only write-access and the keys of the writers need to be known when creating a database. That is, the access rights can't be changed after a database has been created. In the future we'll support read access control and dynamic access control in a way that access rights can be added and removed to a database at any point in time without changing the database address. At the moment, if access rights need to be changed, the address of the database will change.* + +Access rights are setup by passing an `access` object that defines the access rights of the database when created. OrbitDB currently supports write-access. The access rights are specified as an array of public keys of the peers who can write to the database. + +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + + const access = { + // Give write access to ourselves + write: [orbitdb.key.getPublic('hex')], + } + + const db = await orbitdb.keyvalue('first-database', access) + console.log(db.address.toString()) + // /orbitdb/Qmd8TmZrWASypEp4Er9tgWP4kCNQnW4ncSnvjvyHQ3EVSU/first-database +}) +``` + +To give write access to another peer, you'll need to get their public key with some means. They'll need to give you the output of their OrbitDB instance's key: `orbitdb.key.getPublic('hex')`. + +The keys look like this: +`042c07044e7ea51a489c02854db5e09f0191690dc59db0afd95328c9db614a2976e088cab7c86d7e48183191258fc59dc699653508ce25bf0369d67f33d5d77839` + +Give access to another peer to write to the database: +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + + const access = { + // Setup write access + write: [ + // Give access to ourselves + orbitdb.key.getPublic('hex'), + // Give access to the second peer + '042c07044e7ea51a489c02854db5e09f0191690dc59db0afd95328c9db614a2976e088cab7c86d7e48183191258fc59dc699653508ce25bf0369d67f33d5d77839', + ], + } + + const db = await orbitdb.keyvalue('first-database', access) + console.log(db.address.toString()) + // /orbitdb/Qmdgwt7w4uBsw8LXduzCd18zfGXeTmBsiR8edQ1hSfzcJC/first-database + + // Second peer opens the database from the address + const db2 = await orbitdb.keyvalue(db1.address.toString()) +}) +``` + +#### Public databases + +The access control mechanism also support "public" databases to which anyone can write to. + +This can be done by adding a `*` to the write access array: +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + + const access = { + // Give write access to everyone + write: ['*'], + } + + const db = await orbitdb.keyvalue('first-database', access) + console.log(db.address.toString()) + // /orbitdb/QmRrauSxaAvNjpZcm2Cq6y9DcrH8wQQWGjtokF4tgCUxGP/first-database +}) +``` + +Note how the access controller hash is different compared to the previous example! + +## Add an entry + +To add an entry to the database, we simply call `db.put(key, value)`. + +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + const db = await orbitdb.keyvalue('first-database') + await db.put('name', 'hello') +}) +``` + +For adding entries to other databases, see: +- [log.add()](https://github.com/orbitdb/orbit-db/blob/master/API.md#addevent) +- [feed.add()](https://github.com/orbitdb/orbit-db/blob/master/API.md#adddata) +- [docs.put()](https://github.com/orbitdb/orbit-db/blob/master/API.md#putdoc) +- [counter.inc()](https://github.com/orbitdb/orbit-db/blob/master/API.md#incvalue) + +**Parallelism** + +We currently don't support parallel updates. Updates to a database need to be executed in a sequential manner. The write throughput is several hundreds or thousands of writes per second (depending on your platform and hardware, YMMV), so this shouldn't slow down your app too much. If it does, [lets us know](https://github.com/orbitdb/orbit-db/issues)! + +Update the database one after another: +```javascript +await db.put('key1', 'hello1') +await db.put('key2', 'hello2') +await db.put('key3', 'hello3') +``` + +Not: +```javascript +// This is not supported atm! +Promise.all([ + db.put('key1', 'hello1'), + db.put('key2', 'hello2'), + db.put('key3', 'hello3') +]) +``` + +## Get an entry + +To get a value or entry from the database, we call the appropriate query function which is different per database type. + +Key-Value: +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + const db = await orbitdb.keyvalue('first-database') + await db.put('name', 'hello') + const value = db.get('name') +}) +``` + +Other databases, see: +- [log.iterator()](https://github.com/orbitdb/orbit-db/blob/master/API.md#iteratoroptions) +- [feed.iterator()](https://github.com/orbitdb/orbit-db/blob/master/API.md#iteratoroptions-1) +- [docs.get()](https://github.com/orbitdb/orbit-db/blob/master/API.md#getkey-1) +- [docs.query()](https://github.com/orbitdb/orbit-db/blob/master/API.md#querymapper) +- [counter.value](https://github.com/orbitdb/orbit-db/blob/master/API.md#value) + +## Persistency + +OrbitDB saves the state of the database automatically on disk. This means that upon opening a database, the developer can choose to load locally the persisted before using the database. **Loading the database locally before using it is highly recommended!** + +```javascript +const ipfs = new IPFS() +ipfs.on('ready', async () => { + const orbitdb = new OrbitDB(ipfs) + + const db1 = await orbitdb.keyvalue('first-database') + await db1.put('name', 'hello') + await db1.close() + + const db2 = await orbitdb.keyvalue('first-database') + await db2.load() + const value = db2.get('name') + // 'hello' +}) +``` + +If the developer doesn't call `load()`, the database will be operational but will not have the persisted data available immediately. Instead, OrbitDB will load the data on the background as new updates come in from peers. + +## Replicating a database + +In order to have the same data, ie. a query returns the same result for all peers, an OrbitDB database must be replicated between the peers. This happens automatically in OrbitDB in a way that a peer only needs to open an OrbitDB from an address and it'll start replicating the database. + +To know when database was updated, we can listen for the `replicated` event of a database: `db2.events.on('replicated', () => ...)`. When the `replicated` event is fired, it means we received updates for the database from a peer. This is a good time to query the database for new results. + +Replicate a database between two nodes: + +```javascript +// Create the first peer +const ipfs1 = new IPFS({ repo: './ipfs1' }) +ipfs1.on('ready', async () => { + // Create the database + const orbitdb1 = new OrbitDB(ipfs1, './orbitdb1') + const db1 = await orbitdb.log('events') + + // Create the second peer + const ipfs2 = new IPFS({ repo: './ipfs2' }) + ipfs2.on('ready', async () => { + // Open the first database for the second peer, + // ie. replicate the database + const orbitdb2 = new OrbitDB(ipfs2, './orbitdb2') + const db2 = await orbitdb2.log(db1.address.toString()) + + // When the second database replicated new heads, query the database + db2.events.on('replicated', () => { + const result = db2.iterator({ limit: -1 }).collect() + console.log(result.join('\n')) + }) + + // Start adding entries to the first database + setInterval(async () => { + await db1.add({ time: new Date().getTime() }) + }, 1000) + }) +}) +``` + +## More information + +Is this guide missing something you'd like to understand or found an error? Please [open an issue](https://github.com/orbitdb/orbit-db/issues) and let us know what's missing! diff --git a/Makefile b/Makefile index 8cad818ef..942a9e4ba 100644 --- a/Makefile +++ b/Makefile @@ -10,13 +10,13 @@ build: test npm run build mkdir -p examples/browser/lib/ cp dist/orbitdb.min.js examples/browser/lib/orbitdb.min.js - cp node_modules/ipfs-daemon/dist/ipfs-browser-daemon.min.js examples/browser/lib/ipfs-browser-daemon.min.js + cp node_modules/ipfs/dist/index.min.js examples/browser/lib/ipfs.min.js @echo "Build success!" @echo "Output: 'dist/', 'examples/browser/'" clean: - rm -rf orbit-db/ - rm -rf ipfs/ + rm -rf orbitdb/ rm -rf node_modules/ + rm package-lock.json .PHONY: test build diff --git a/README.md b/README.md index cded02241..725b4f7bf 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,31 @@ # orbit-db -[![npm version](https://badge.fury.io/js/orbit-db.svg)](https://badge.fury.io/js/orbit-db) -[![CircleCI Status](https://circleci.com/gh/orbitdb/orbit-db.svg?style=shield)](https://circleci.com/gh/orbitdb/orbit-db) [![](https://img.shields.io/badge/freenode-%23orbitdb-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23orbitdb) -[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) -[![Project Status](https://badge.waffle.io/haadcode/orbit.svg?label=In%20Progress&title=In%20Progress)](https://waffle.io/haadcode/orbit?source=haadcode%2Forbit-db,haadcode%2Forbit-db-counterstore,haadcode%2Forbit-db-eventstore,haadcode%2Forbit-db-feedstore,haadcode%2Forbit-db-kvstore,haadcode%2Forbit-db-store,haadcode%2Fipfs-log) +[![CircleCI Status](https://circleci.com/gh/orbitdb/orbit-db.svg?style=shield)](https://circleci.com/gh/orbitdb/orbit-db) +[![npm version](https://badge.fury.io/js/orbit-db.svg)](https://www.npmjs.com/package/orbit-db) +[![node](https://img.shields.io/node/v/orbit-db.svg)](https://www.npmjs.com/package/orbit-db) +[![Project Status](https://badge.waffle.io/orbitdb/orbit-db.svg?columns=In%20Progress&title=In%20Progress)](https://waffle.io/orbitdb/orbit-db) -> Distributed, peer-to-peer database for the decentralized web. +> A peer-to-peer database for the decentralized web `orbit-db` is a serverless, distributed, peer-to-peer database. `orbit-db` uses [IPFS](https://ipfs.io) as its data storage and [IPFS Pubsub](https://github.com/ipfs/go-ipfs/blob/master/core/commands/pubsub.go#L23) to automatically sync databases with peers. It's an eventually consistent database that uses [CRDTs](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type) for conflict-free database merges making `orbit-db` and excellent choice for offline-first applications. Data in `orbit-db` can be stored in a -- **[Key-Value Store](https://github.com/orbitdb/orbit-db-kvstore)** -- **[Eventlog](https://github.com/orbitdb/orbit-db-eventstore)** (append-only log) -- **[Feed](https://github.com/orbitdb/orbit-db-feedstore)** (add and remove log) -- **[Documents](https://github.com/orbitdb/orbit-db-docstore)** (indexed by custom fields) -- **[Counters](https://github.com/orbitdb/orbit-db-counterstore)** +- **[Key-Value Store](https://github.com/orbitdb/orbit-db/blob/master/API.md#keyvaluenameaddress)** +- **[Log Database](https://github.com/orbitdb/orbit-db/blob/master/API.md#lognameaddress)** (append-only log) +- **[Feed](https://github.com/orbitdb/orbit-db/blob/master/API.md#feednameaddress)** (same as log database but entries can be removed) +- **[Document Store](https://github.com/orbitdb/orbit-db/blob/master/API.md#docsnameaddress-options)** (store indexed JSON documents) +- **[Counters](https://github.com/orbitdb/orbit-db/blob/master/API.md#counternameaddress)** This is the Javascript implementation and it works both in **Node.js** and **Browsers**. -To get started, try out the **[OrbitDB CLI](https://github.com/orbitdb/orbit-db-cli)** or check the [live demo](https://ipfs.io/ipfs/QmUETzzv9FxBwPn4H6q3i6QXTzicvV3MMuKN53JQU3yMSG/)! +To get started, try the **[OrbitDB CLI](https://github.com/orbitdb/orbit-db-cli)**, read the **[Getting Started Guide](https://github.com/orbitdb/orbit-db/blob/master/GUIDE.md)** or check **[Live demo 1](https://ipfs.io/ipfs/QmRosp97r8GGUEdj5Wvivrn5nBkuyajhRXFUcWCp5Zubbo/)** and **[Live demo 2](https://ipfs.io/ipfs/QmasHFRj6unJ3nSmtPn97tWDaQWEZw3W9Eh3gUgZktuZDZ/)**! - +

+ + +

## Table of Contents @@ -36,6 +39,8 @@ To get started, try out the **[OrbitDB CLI](https://github.com/orbitdb/orbit-db- ## Usage +Read the **[GETTING STARTED](https://github.com/orbitdb/orbit-db/blob/master/GUIDE.md)** guide for a more in-depth tutorial and to understand how OrbitDB works. + ### CLI For the CLI tool to manage orbit-db database, see **[OrbitDB CLI](https://github.com/orbitdb/orbit-db-cli)**. @@ -46,51 +51,49 @@ It can be installed from Npm with: npm install orbit-db-cli -g ``` -### Library +### As a library -`orbit-db` can be used in your Javascript programs as a module. This works both in Node.js as well as in the browsers. - -To start, install the module with: +Install dependencies: ``` -npm install orbit-db ipfs-daemon +npm install orbit-db ipfs ``` +Use it as a module: + ```javascript -const IPFS = require('ipfs-daemon/src/ipfs-node-daemon') +const IPFS = require('ipfs') const OrbitDB = require('orbit-db') const ipfs = new IPFS() ipfs.on('error', (e) => console.error(e)) -ipfs.on('ready', (e) => { +ipfs.on('ready', async () => { + // Create a database const orbitdb = new OrbitDB(ipfs) - - const db = orbitdb.eventlog("feed name") - - db.add("hello world") - .then(() => { - const latest = db.iterator({ limit: 5 }).collect() - console.log(JSON.stringify(latest, null, 2)) - }) + const db = await orbitdb.log('database name') + // Add an entry to the database + const hash = await db.add('hello world') + // Get last 5 entries + const latest = db.iterator({ limit: 5 }).collect() + console.log(JSON.stringify(latest, null, 2)) }) ``` -*For more details, see examples for [kvstore](https://github.com/orbitdb/orbit-db-kvstore#usage), [eventlog](https://github.com/orbitdb/orbit-db-eventstore#usage), [feed](https://github.com/orbitdb/orbit-db-feedstore#usage), [docstore](https://github.com/shamb0t/orbit-db-docstore#usage) and [counter](https://github.com/orbitdb/orbit-db-counterstore#usage).* +*For more details, see examples for [kvstore](https://github.com/orbitdb/orbit-db-kvstore#usage), [eventlog](https://github.com/haadcode/orbit-db-eventstore#usage), [feed](https://github.com/haadcode/orbit-db-feedstore#usage), [docstore](https://github.com/shamb0t/orbit-db-docstore#usage) and [counter](https://github.com/haadcode/orbit-db-counterstore#usage).* ## API See [API documentation](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbit-db-api-documentation) for the full documentation. - [Getting Started](https://github.com/orbitdb/orbit-db/blob/master/API.md#getting-started) -- [orbitdb](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbitdb) - - [kvstore(name)](https://github.com/orbitdb/orbit-db/blob/master/API.md#kvstorename) - - [eventlog(name)](https://github.com/orbitdb/orbit-db/blob/master/API.md#eventlogname) - - [feed(name)](https://github.com/orbitdb/orbit-db/blob/master/API.md#feedname) - - [docstore(name, options)](https://github.com/orbitdb/orbit-db/blob/master/API.md#docstorename-options) - - [counter(name)](https://github.com/orbitdb/orbit-db/blob/master/API.md#countername) - - [disconnect()](https://github.com/orbitdb/orbit-db/blob/master/API.md#disconnect) - - [events](https://github.com/orbitdb/orbit-db/blob/master/API.md#events) +- [OrbitDB](https://github.com/orbitdb/orbit-db/blob/master/API.md#orbitdb) + - [keyvalue](https://github.com/orbitdb/orbit-db/blob/master/API.md#keyvaluenameaddress) + - [log](https://github.com/orbitdb/orbit-db/blob/master/API.md#lognameaddress) + - [feed](https://github.com/orbitdb/orbit-db/blob/master/API.md#feednameaddress) + - [docstore](https://github.com/orbitdb/orbit-db/blob/master/API.md#docsnameaddress-options) + - [counter](https://github.com/orbitdb/orbit-db/blob/master/API.md#counternameaddress) + - [common](https://github.com/orbitdb/orbit-db/blob/master/API.md#store) ## Examples @@ -105,13 +108,15 @@ npm install ### Browser example ``` -npm run build:examples +npm run build npm run examples:browser ``` - +

+ +

-Check the code in [examples/browser/browser.html](https://github.com/orbitdb/orbit-db/blob/master/examples/browser/browser.html). +Check the code in [examples/browser/browser.html](https://github.com/orbitdb/orbit-db/blob/master/examples/browser/browser.html) and try the [live example](https://ipfs.io/ipfs/QmRosp97r8GGUEdj5Wvivrn5nBkuyajhRXFUcWCp5Zubbo/). ### Node.js example @@ -123,17 +128,12 @@ npm run examples:node **Eventlog** -Check the code in [examples/eventlog.js](https://github.com/orbitdb/orbit-db/blob/master/examples/eventlog.js) and run it with: +See the code in [examples/eventlog.js](https://github.com/orbitdb/orbit-db/blob/master/examples/eventlog.js) and run it with: ``` -LOG=debug node examples/eventlog.js +node examples/eventlog.js ``` -**Key-Value** - -Check the code in [examples/keyvalue.js](https://github.com/orbitdb/orbit-db/blob/master/examples/keyvalue.js) and run it with: -``` -LOG=debug node examples/keyvalue.js -``` +More examples at [examples](https://github.com/orbitdb/orbit-db/tree/master/examples). ## Development @@ -149,19 +149,27 @@ npm run build #### Benchmark ``` -node examples/benchmark.js +node benchmarks/benchmark-add.js +``` + +#### Logging + +To enable OrbitDB's logging output, set a global ENV variable called `LOG` to `debug`,`warn` or `error`: + +``` +LOG=debug node ``` ## Background -Check out a visualization of the data flow at https://github.com/haadcode/proto2. +OrbitDB uses an append-only log as its operations log, implemented in [ipfs-log](https://github.com/haadcode/ipfs-log). -**TODO** +To understand a little bit about the architecture, check out a visualization of the data flow at https://github.com/haadcode/proto2 or a live demo: http://celebdil.benet.ai:8080/ipfs/Qmezm7g8mBpWyuPk6D84CNcfLKJwU6mpXuEN5GJZNkX3XK/. +**TODO:** - list of modules used - orbit-db-pubsub - crdts -- ipfs-log ## Contributing @@ -169,6 +177,14 @@ We would be happy to accept PRs! If you want to work on something, it'd be good A good place to start are the issues labelled ["help wanted"](https://github.com/orbitdb/orbit-db/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+sort%3Areactions-%2B1-desc) or the project's [status board](https://waffle.io/orbitdb/orbit-db). +## Sponsors + +The development of OrbitDB has been sponsored by: + +* [Protocol Labs](https://protocol.ai/) + +If you want to sponsor developers to work on OrbitDB, please reach out to @haadcode. + ## License -[MIT](LICENSE) ©️ 2016 Haadcode +[MIT](LICENSE) ©️ 2017 Haadcode diff --git a/benchmarks/benchmark-add.js b/benchmarks/benchmark-add.js new file mode 100644 index 000000000..2a48c07bc --- /dev/null +++ b/benchmarks/benchmark-add.js @@ -0,0 +1,69 @@ +'use strict' + +const IPFS = require('ipfs') +const IPFSRepo = require('ipfs-repo') +const DatastoreLevel = require('datastore-level') +const OrbitDB = require('../src/OrbitDB') + +// Metrics +let totalQueries = 0 +let seconds = 0 +let queriesPerSecond = 0 +let lastTenSeconds = 0 + +// Main loop +const queryLoop = async (db) => { + await db.add(totalQueries) + totalQueries ++ + lastTenSeconds ++ + queriesPerSecond ++ + setImmediate(() => queryLoop(db)) +} + +// Start +console.log("Starting IPFS daemon...") + +const repoConf = { + storageBackends: { + blocks: DatastoreLevel, + }, +} + +const ipfs = new IPFS({ + repo: new IPFSRepo('./orbitdb/benchmarks/ipfs', repoConf), + start: false, + EXPERIMENTAL: { + pubsub: false, + sharding: false, + dht: false, + }, +}) + +ipfs.on('error', (err) => console.error(err)) + +ipfs.on('ready', async () => { + try { + const orbit = new OrbitDB(ipfs, './orbitdb/benchmarks') + const db = await orbit.eventlog('orbit-db.benchmark', { + replicate: false, + }) + + // Metrics output + setInterval(() => { + seconds ++ + if(seconds % 10 === 0) { + console.log(`--> Average of ${lastTenSeconds/10} q/s in the last 10 seconds`) + if(lastTenSeconds === 0) + throw new Error("Problems!") + lastTenSeconds = 0 + } + console.log(`${queriesPerSecond} queries per second, ${totalQueries} queries in ${seconds} seconds (Oplog: ${db._oplog.length})`) + queriesPerSecond = 0 + }, 1000) + // Start the main loop + queryLoop(db) + } catch (e) { + console.log(e) + process.exit(1) + } +}) diff --git a/benchmarks/benchmark-replication.js b/benchmarks/benchmark-replication.js new file mode 100644 index 000000000..4e7e608db --- /dev/null +++ b/benchmarks/benchmark-replication.js @@ -0,0 +1,155 @@ +'use strict' + +const IPFS = require('ipfs') +const IPFSRepo = require('ipfs-repo') +const DatastoreLevel = require('datastore-level') +const OrbitDB = require('../src/OrbitDB') +const startIpfs = require('../test/utils/start-ipfs') +const pMapSeries = require('p-map-series') + +// Metrics +let metrics1 = { + totalQueries: 0, + seconds: 0, + queriesPerSecond: 0, + lastTenSeconds: 0, +} + +let metrics2 = { + totalQueries: 0, + seconds: 0, + queriesPerSecond: 0, + lastTenSeconds: 0, +} + +const ipfsConf = { + Addresses: { + API: '/ip4/127.0.0.1/tcp/0', + Swarm: ['/ip4/0.0.0.0/tcp/0'], + Gateway: '/ip4/0.0.0.0/tcp/0' + }, + Bootstrap: [], +} + +const repoConf = { + storageBackends: { + blocks: DatastoreLevel, + }, +} + +const defaultConfig = Object.assign({}, { + start: true, + EXPERIMENTAL: { + pubsub: true, + sharding: false, + dht: false, + }, + config: ipfsConf +}) + +const conf1 = Object.assign({}, defaultConfig, { + repo: new IPFSRepo('./orbitdb/benchmarks/replication/client1/ipfs', repoConf) +}) + +const conf2 = Object.assign({}, defaultConfig, { + repo: new IPFSRepo('./orbitdb/benchmarks/replication/client2/ipfs', repoConf) +}) + +// Write loop +const queryLoop = async (db) => { + if (metrics1.totalQueries < updateCount) { + try { + await db.add(metrics1.totalQueries) + } catch (e) { + console.error("!!", e) + } + metrics1.totalQueries ++ + metrics1.lastTenSeconds ++ + metrics1.queriesPerSecond ++ + setImmediate(() => queryLoop(db)) + } +} + +// Metrics output function +const outputMetrics = (name, db, metrics) => { + metrics.seconds ++ + console.log(`[${name}] ${metrics.queriesPerSecond} queries per second, ${metrics.totalQueries} queries in ${metrics.seconds} seconds (Oplog: ${db._oplog.length})`) + metrics.queriesPerSecond = 0 + + if(metrics.seconds % 10 === 0) { + console.log(`[${name}] --> Average of ${metrics.lastTenSeconds/10} q/s in the last 10 seconds`) + metrics.lastTenSeconds = 0 + } +} + +const database = 'benchmark-replication' +const updateCount = 2000 + +// Start +console.log("Starting IPFS daemons...") + +pMapSeries([conf1, conf2], d => startIpfs(d)) + .then(async ([ipfs1, ipfs2]) => { + try { + // Create the databases + const orbit1 = new OrbitDB(ipfs1, './orbitdb/benchmarks/replication/client1') + const orbit2 = new OrbitDB(ipfs2, './orbitdb/benchmarks/replication/client2') + const db1 = await orbit1.eventlog(database, { overwrite: true }) + const db2 = await orbit2.eventlog(db1.address.toString()) + + let db1Connected = false + let db2Connected = false + + console.log('Waiting for peers to connect...') + + db1.events.on('peer', () => { + db1Connected = true + console.log('Peer 1 connected') + }) + + db2.events.on('peer', () => { + db2Connected = true + console.log('Peer 2 connected') + }) + + const startInterval = setInterval(() => { + if (db1Connected && db2Connected) { + clearInterval(startInterval) + // Start the write loop + queryLoop(db1) + + // Metrics output for the writer, once/sec + const writeInterval = setInterval(() => { + outputMetrics("WRITE", db1, metrics1) + if (metrics1.totalQueries === updateCount) { + clearInterval(writeInterval) + } + }, 1000) + + // Metrics output for the reader + let prevCount = 0 + setInterval(() => { + try { + const result = db2.iterator({ limit: -1 }).collect() + metrics2.totalQueries = result.length + metrics2.queriesPerSecond = metrics2.totalQueries - prevCount + metrics2.lastTenSeconds += metrics2.queriesPerSecond + prevCount = metrics2.totalQueries + + outputMetrics("READ", db2, metrics2) + + if (db2._oplog.length === updateCount) { + console.log("Finished") + process.exit(0) + } + } catch (e) { + console.error("!", e) + } + }, 1000) + } + }, 100) + } catch (e) { + console.log(e) + process.exit(1) + } + }) diff --git a/benchmarks/browser/benchmark-add.html b/benchmarks/browser/benchmark-add.html new file mode 100644 index 000000000..1d84751c5 --- /dev/null +++ b/benchmarks/browser/benchmark-add.html @@ -0,0 +1,78 @@ + + + + + +

OrbitDB - Benchmark log.add()

+ +

Description

+
Add an entry to a log database. Measure throughput in write operations per second.
+ +

Results

+

+
+    
+    
+
+    
+  
+
diff --git a/benchmarks/browser/benchmark-replication-sender.html b/benchmarks/browser/benchmark-replication-sender.html
new file mode 100644
index 000000000..718cbecdd
--- /dev/null
+++ b/benchmarks/browser/benchmark-replication-sender.html
@@ -0,0 +1,135 @@
+
+  
+    
+  
+  
+    

OrbitDB - Benchmark Replication

+ +

Description

+
Two peers
+ +

Results

+

+
+    
+    
+
+    
+  
+
diff --git a/benchmarks/browser/benchmark-replication.html b/benchmarks/browser/benchmark-replication.html
new file mode 100644
index 000000000..f75004b6b
--- /dev/null
+++ b/benchmarks/browser/benchmark-replication.html
@@ -0,0 +1,150 @@
+
+  
+    
+  
+  
+    

OrbitDB - Benchmark Replication

+ +

Description

+
Two peers
+ +

Results

+

+
+    
+    
+
+    
+  
+
diff --git a/circle.yml b/circle.yml
index ee1c24bbf..39a11139f 100644
--- a/circle.yml
+++ b/circle.yml
@@ -1,3 +1,3 @@
 machine:
   node:
-    version: 6.1.0
+    version: 8.2.0
diff --git a/conf/webpack.config.js b/conf/webpack.config.js
index e7d0c0c7f..2746223d2 100644
--- a/conf/webpack.config.js
+++ b/conf/webpack.config.js
@@ -1,7 +1,8 @@
 'use strict'
 
-const webpack = require('webpack')
 const path = require('path')
+const webpack = require('webpack')
+const Uglify = require('uglifyjs-webpack-plugin')
 
 module.exports = {
   entry: './src/OrbitDB.js',
@@ -10,7 +11,23 @@ module.exports = {
     library: 'OrbitDB',
     filename: './dist/orbitdb.min.js'
   },
-  devtool: 'source-map',
+  target: 'web',
+  devtool: 'none',
+  externals: {
+    fs: '{}',
+  },
+  node: {
+    console: false,
+    Buffer: true
+  },
+  plugins: [
+    new webpack.DefinePlugin({
+      'process.env': {
+        'NODE_ENV': JSON.stringify(process.env.NODE_ENV)
+      }
+    }),
+    new Uglify(),
+  ],
   resolve: {
     modules: [
       'node_modules',
@@ -24,10 +41,4 @@ module.exports = {
     ],
     moduleExtensions: ['-loader']
   },
-  node: {
-    console: false,
-    Buffer: true
-  },
-  plugins: [],
-  target: 'web'
 }
diff --git a/conf/webpack.debug.config.js b/conf/webpack.debug.config.js
new file mode 100644
index 000000000..192a1bd54
--- /dev/null
+++ b/conf/webpack.debug.config.js
@@ -0,0 +1,37 @@
+'use strict'
+
+const path = require('path')
+const Uglify = require('uglifyjs-webpack-plugin')
+
+module.exports = {
+  entry: './src/OrbitDB.js',
+  output: {
+    libraryTarget: 'var',
+    library: 'OrbitDB',
+    filename: './dist/orbitdb.js'
+  },
+  target: 'web',
+  devtool: 'none',
+  externals: {
+    fs: '{}',
+  },
+  node: {
+    console: false,
+    Buffer: true
+  },
+  plugins: [
+  ],
+  resolve: {
+    modules: [
+      'node_modules',
+      path.resolve(__dirname, '../node_modules')
+    ]
+  },
+  resolveLoader: {
+    modules: [
+      'node_modules',
+      path.resolve(__dirname, '../node_modules')
+    ],
+    moduleExtensions: ['-loader']
+  },
+}
diff --git a/conf/webpack.example.config.js b/conf/webpack.example.config.js
index cf3150a4a..2bc62713a 100644
--- a/conf/webpack.example.config.js
+++ b/conf/webpack.example.config.js
@@ -1,43 +1,43 @@
-const webpack = require('webpack')
+'use strict'
+
 const path = require('path')
+const webpack = require('webpack')
+const Uglify = require('uglifyjs-webpack-plugin')
+
+const uglifyOptions = {
+  uglifyOptions: {
+    mangle: false,
+  },
+}
 
 module.exports = {
-  entry: './examples/browser/index.js',
+  entry: './examples/browser/browser-webpack-example/index.js',
   output: {
-    filename: './examples/browser/bundle.js'
-  },
-  devtool: 'sourcemap',
-  stats: { 
-    colors: true, 
-    cached: false 
+    filename: './examples/browser/browser-webpack-example/bundle.js'
   },
+  target: 'web',
+  devtool: 'none',
   node: {
     console: false,
+    Buffer: true,
     process: 'mock',
-    Buffer: true
+  },
+  externals: {
+    fs: '{}',
   },
   plugins: [
-    new webpack.optimize.UglifyJsPlugin({
-      mangle: false,
-      compress: { warnings: false }
-    })
+    new webpack.DefinePlugin({
+      'process.env': {
+        'NODE_ENV': JSON.stringify(process.env.NODE_ENV)
+      }
+    }),
+    new Uglify(uglifyOptions),
   ],
   resolve: {
     modules: [
       'node_modules',
       path.resolve(__dirname, '../node_modules')
     ],
-    alias: {
-      // These are needed because node-libs-browser depends on outdated
-      // versions
-      //
-      // Can be dropped once https://github.com/devongovett/browserify-zlib/pull/18
-      // is shipped
-      zlib: 'browserify-zlib-next',
-      // Can be dropped once https://github.com/webpack/node-libs-browser/pull/41
-      // is shipped
-      http: 'stream-http'
-    }
   },
   resolveLoader: {
     modules: [
@@ -46,15 +46,4 @@ module.exports = {
     ],
     moduleExtensions: ['-loader']
   },
-  module: {
-    rules: [{
-      test: /\.json$/,
-      loader: 'json-loader'
-    }]
-  },
-  node: {
-    Buffer: true
-  },
-  plugins: [],
-  target: 'web'
 }
diff --git a/dist/orbitdb.js b/dist/orbitdb.js
deleted file mode 100644
index a7aaccdb4..000000000
--- a/dist/orbitdb.js
+++ /dev/null
@@ -1,14498 +0,0 @@
-var OrbitDB =
-/******/ (function(modules) { // webpackBootstrap
-/******/ 	// The module cache
-/******/ 	var installedModules = {};
-/******/
-/******/ 	// The require function
-/******/ 	function __webpack_require__(moduleId) {
-/******/
-/******/ 		// Check if module is in cache
-/******/ 		if(installedModules[moduleId])
-/******/ 			return installedModules[moduleId].exports;
-/******/
-/******/ 		// Create a new module (and put it into the cache)
-/******/ 		var module = installedModules[moduleId] = {
-/******/ 			i: moduleId,
-/******/ 			l: false,
-/******/ 			exports: {}
-/******/ 		};
-/******/
-/******/ 		// Execute the module function
-/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
-/******/
-/******/ 		// Flag the module as loaded
-/******/ 		module.l = true;
-/******/
-/******/ 		// Return the exports of the module
-/******/ 		return module.exports;
-/******/ 	}
-/******/
-/******/
-/******/ 	// expose the modules object (__webpack_modules__)
-/******/ 	__webpack_require__.m = modules;
-/******/
-/******/ 	// expose the module cache
-/******/ 	__webpack_require__.c = installedModules;
-/******/
-/******/ 	// identity function for calling harmony imports with the correct context
-/******/ 	__webpack_require__.i = function(value) { return value; };
-/******/
-/******/ 	// define getter function for harmony exports
-/******/ 	__webpack_require__.d = function(exports, name, getter) {
-/******/ 		if(!__webpack_require__.o(exports, name)) {
-/******/ 			Object.defineProperty(exports, name, {
-/******/ 				configurable: false,
-/******/ 				enumerable: true,
-/******/ 				get: getter
-/******/ 			});
-/******/ 		}
-/******/ 	};
-/******/
-/******/ 	// getDefaultExport function for compatibility with non-harmony modules
-/******/ 	__webpack_require__.n = function(module) {
-/******/ 		var getter = module && module.__esModule ?
-/******/ 			function getDefault() { return module['default']; } :
-/******/ 			function getModuleExports() { return module; };
-/******/ 		__webpack_require__.d(getter, 'a', getter);
-/******/ 		return getter;
-/******/ 	};
-/******/
-/******/ 	// Object.prototype.hasOwnProperty.call
-/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
-/******/
-/******/ 	// __webpack_public_path__
-/******/ 	__webpack_require__.p = "";
-/******/
-/******/ 	// Load entry module and return exports
-/******/ 	return __webpack_require__(__webpack_require__.s = 191);
-/******/ })
-/************************************************************************/
-/******/ ([
-/* 0 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-exports.__esModule = true;
-
-exports.default = function (instance, Constructor) {
-  if (!(instance instanceof Constructor)) {
-    throw new TypeError("Cannot call a class as a function");
-  }
-};
-
-/***/ }),
-/* 1 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-exports.__esModule = true;
-
-var _defineProperty = __webpack_require__(56);
-
-var _defineProperty2 = _interopRequireDefault(_defineProperty);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-exports.default = function () {
-  function defineProperties(target, props) {
-    for (var i = 0; i < props.length; i++) {
-      var descriptor = props[i];
-      descriptor.enumerable = descriptor.enumerable || false;
-      descriptor.configurable = true;
-      if ("value" in descriptor) descriptor.writable = true;
-      (0, _defineProperty2.default)(target, descriptor.key, descriptor);
-    }
-  }
-
-  return function (Constructor, protoProps, staticProps) {
-    if (protoProps) defineProperties(Constructor.prototype, protoProps);
-    if (staticProps) defineProperties(Constructor, staticProps);
-    return Constructor;
-  };
-}();
-
-/***/ }),
-/* 2 */
-/***/ (function(module, exports) {
-
-var core = module.exports = {version: '2.4.0'};
-if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
-
-/***/ }),
-/* 3 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var store      = __webpack_require__(46)('wks')
-  , uid        = __webpack_require__(33)
-  , Symbol     = __webpack_require__(4).Symbol
-  , USE_SYMBOL = typeof Symbol == 'function';
-
-var $exports = module.exports = function(name){
-  return store[name] || (store[name] =
-    USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
-};
-
-$exports.store = store;
-
-/***/ }),
-/* 4 */
-/***/ (function(module, exports) {
-
-// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
-var global = module.exports = typeof window != 'undefined' && window.Math == Math
-  ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();
-if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
-
-/***/ }),
-/* 5 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var isObject = __webpack_require__(18);
-module.exports = function(it){
-  if(!isObject(it))throw TypeError(it + ' is not an object!');
-  return it;
-};
-
-/***/ }),
-/* 6 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// Thank's IE8 for his funny defineProperty
-module.exports = !__webpack_require__(17)(function(){
-  return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
-});
-
-/***/ }),
-/* 7 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var global    = __webpack_require__(4)
-  , core      = __webpack_require__(2)
-  , ctx       = __webpack_require__(22)
-  , hide      = __webpack_require__(11)
-  , PROTOTYPE = 'prototype';
-
-var $export = function(type, name, source){
-  var IS_FORCED = type & $export.F
-    , IS_GLOBAL = type & $export.G
-    , IS_STATIC = type & $export.S
-    , IS_PROTO  = type & $export.P
-    , IS_BIND   = type & $export.B
-    , IS_WRAP   = type & $export.W
-    , exports   = IS_GLOBAL ? core : core[name] || (core[name] = {})
-    , expProto  = exports[PROTOTYPE]
-    , target    = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]
-    , key, own, out;
-  if(IS_GLOBAL)source = name;
-  for(key in source){
-    // contains in native
-    own = !IS_FORCED && target && target[key] !== undefined;
-    if(own && key in exports)continue;
-    // export native or passed
-    out = own ? target[key] : source[key];
-    // prevent global pollution for namespaces
-    exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]
-    // bind timers to global for call from export context
-    : IS_BIND && own ? ctx(out, global)
-    // wrap global constructors for prevent change them in library
-    : IS_WRAP && target[key] == out ? (function(C){
-      var F = function(a, b, c){
-        if(this instanceof C){
-          switch(arguments.length){
-            case 0: return new C;
-            case 1: return new C(a);
-            case 2: return new C(a, b);
-          } return new C(a, b, c);
-        } return C.apply(this, arguments);
-      };
-      F[PROTOTYPE] = C[PROTOTYPE];
-      return F;
-    // make static versions for prototype methods
-    })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
-    // export proto methods to core.%CONSTRUCTOR%.methods.%NAME%
-    if(IS_PROTO){
-      (exports.virtual || (exports.virtual = {}))[key] = out;
-      // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME%
-      if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out);
-    }
-  }
-};
-// type bitmap
-$export.F = 1;   // forced
-$export.G = 2;   // global
-$export.S = 4;   // static
-$export.P = 8;   // proto
-$export.B = 16;  // bind
-$export.W = 32;  // wrap
-$export.U = 64;  // safe
-$export.R = 128; // real proto method for `library` 
-module.exports = $export;
-
-/***/ }),
-/* 8 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var anObject       = __webpack_require__(5)
-  , IE8_DOM_DEFINE = __webpack_require__(61)
-  , toPrimitive    = __webpack_require__(48)
-  , dP             = Object.defineProperty;
-
-exports.f = __webpack_require__(6) ? Object.defineProperty : function defineProperty(O, P, Attributes){
-  anObject(O);
-  P = toPrimitive(P, true);
-  anObject(Attributes);
-  if(IE8_DOM_DEFINE)try {
-    return dP(O, P, Attributes);
-  } catch(e){ /* empty */ }
-  if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
-  if('value' in Attributes)O[P] = Attributes.value;
-  return O;
-};
-
-/***/ }),
-/* 9 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(106), __esModule: true };
-
-/***/ }),
-/* 10 */
-/***/ (function(module, exports) {
-
-var hasOwnProperty = {}.hasOwnProperty;
-module.exports = function(it, key){
-  return hasOwnProperty.call(it, key);
-};
-
-/***/ }),
-/* 11 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var dP         = __webpack_require__(8)
-  , createDesc = __webpack_require__(30);
-module.exports = __webpack_require__(6) ? function(object, key, value){
-  return dP.f(object, key, createDesc(1, value));
-} : function(object, key, value){
-  object[key] = value;
-  return object;
-};
-
-/***/ }),
-/* 12 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// to indexed object, toObject with fallback for non-array-like ES3 strings
-var IObject = __webpack_require__(62)
-  , defined = __webpack_require__(39);
-module.exports = function(it){
-  return IObject(defined(it));
-};
-
-/***/ }),
-/* 13 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(111), __esModule: true };
-
-/***/ }),
-/* 14 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(110), __esModule: true };
-
-/***/ }),
-/* 15 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-exports.__esModule = true;
-
-var _setPrototypeOf = __webpack_require__(101);
-
-var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
-
-var _create = __webpack_require__(99);
-
-var _create2 = _interopRequireDefault(_create);
-
-var _typeof2 = __webpack_require__(58);
-
-var _typeof3 = _interopRequireDefault(_typeof2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-exports.default = function (subClass, superClass) {
-  if (typeof superClass !== "function" && superClass !== null) {
-    throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : (0, _typeof3.default)(superClass)));
-  }
-
-  subClass.prototype = (0, _create2.default)(superClass && superClass.prototype, {
-    constructor: {
-      value: subClass,
-      enumerable: false,
-      writable: true,
-      configurable: true
-    }
-  });
-  if (superClass) _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
-};
-
-/***/ }),
-/* 16 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-exports.__esModule = true;
-
-var _typeof2 = __webpack_require__(58);
-
-var _typeof3 = _interopRequireDefault(_typeof2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-exports.default = function (self, call) {
-  if (!self) {
-    throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
-  }
-
-  return call && ((typeof call === "undefined" ? "undefined" : (0, _typeof3.default)(call)) === "object" || typeof call === "function") ? call : self;
-};
-
-/***/ }),
-/* 17 */
-/***/ (function(module, exports) {
-
-module.exports = function(exec){
-  try {
-    return !!exec();
-  } catch(e){
-    return true;
-  }
-};
-
-/***/ }),
-/* 18 */
-/***/ (function(module, exports) {
-
-module.exports = function(it){
-  return typeof it === 'object' ? it !== null : typeof it === 'function';
-};
-
-/***/ }),
-/* 19 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.2.14 / 15.2.3.14 Object.keys(O)
-var $keys       = __webpack_require__(68)
-  , enumBugKeys = __webpack_require__(41);
-
-module.exports = Object.keys || function keys(O){
-  return $keys(O, enumBugKeys);
-};
-
-/***/ }),
-/* 20 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(global) {/*!
- * The buffer module from node.js, for the browser.
- *
- * @author   Feross Aboukhadijeh  
- * @license  MIT
- */
-/* eslint-disable no-proto */
-
-
-
-var base64 = __webpack_require__(104)
-var ieee754 = __webpack_require__(154)
-var isArray = __webpack_require__(157)
-
-exports.Buffer = Buffer
-exports.SlowBuffer = SlowBuffer
-exports.INSPECT_MAX_BYTES = 50
-
-/**
- * If `Buffer.TYPED_ARRAY_SUPPORT`:
- *   === true    Use Uint8Array implementation (fastest)
- *   === false   Use Object implementation (most compatible, even IE6)
- *
- * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,
- * Opera 11.6+, iOS 4.2+.
- *
- * Due to various browser bugs, sometimes the Object implementation will be used even
- * when the browser supports typed arrays.
- *
- * Note:
- *
- *   - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,
- *     See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.
- *
- *   - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.
- *
- *   - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of
- *     incorrect length in some situations.
-
- * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they
- * get the Object implementation, which is slower but behaves correctly.
- */
-Buffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined
-  ? global.TYPED_ARRAY_SUPPORT
-  : typedArraySupport()
-
-/*
- * Export kMaxLength after typed array support is determined.
- */
-exports.kMaxLength = kMaxLength()
-
-function typedArraySupport () {
-  try {
-    var arr = new Uint8Array(1)
-    arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}
-    return arr.foo() === 42 && // typed array instances can be augmented
-        typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`
-        arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`
-  } catch (e) {
-    return false
-  }
-}
-
-function kMaxLength () {
-  return Buffer.TYPED_ARRAY_SUPPORT
-    ? 0x7fffffff
-    : 0x3fffffff
-}
-
-function createBuffer (that, length) {
-  if (kMaxLength() < length) {
-    throw new RangeError('Invalid typed array length')
-  }
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    // Return an augmented `Uint8Array` instance, for best performance
-    that = new Uint8Array(length)
-    that.__proto__ = Buffer.prototype
-  } else {
-    // Fallback: Return an object instance of the Buffer class
-    if (that === null) {
-      that = new Buffer(length)
-    }
-    that.length = length
-  }
-
-  return that
-}
-
-/**
- * The Buffer constructor returns instances of `Uint8Array` that have their
- * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
- * `Uint8Array`, so the returned instances will have all the node `Buffer` methods
- * and the `Uint8Array` methods. Square bracket notation works as expected -- it
- * returns a single octet.
- *
- * The `Uint8Array` prototype remains unmodified.
- */
-
-function Buffer (arg, encodingOrOffset, length) {
-  if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {
-    return new Buffer(arg, encodingOrOffset, length)
-  }
-
-  // Common case.
-  if (typeof arg === 'number') {
-    if (typeof encodingOrOffset === 'string') {
-      throw new Error(
-        'If encoding is specified then the first argument must be a string'
-      )
-    }
-    return allocUnsafe(this, arg)
-  }
-  return from(this, arg, encodingOrOffset, length)
-}
-
-Buffer.poolSize = 8192 // not used by this implementation
-
-// TODO: Legacy, not needed anymore. Remove in next major version.
-Buffer._augment = function (arr) {
-  arr.__proto__ = Buffer.prototype
-  return arr
-}
-
-function from (that, value, encodingOrOffset, length) {
-  if (typeof value === 'number') {
-    throw new TypeError('"value" argument must not be a number')
-  }
-
-  if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {
-    return fromArrayBuffer(that, value, encodingOrOffset, length)
-  }
-
-  if (typeof value === 'string') {
-    return fromString(that, value, encodingOrOffset)
-  }
-
-  return fromObject(that, value)
-}
-
-/**
- * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
- * if value is a number.
- * Buffer.from(str[, encoding])
- * Buffer.from(array)
- * Buffer.from(buffer)
- * Buffer.from(arrayBuffer[, byteOffset[, length]])
- **/
-Buffer.from = function (value, encodingOrOffset, length) {
-  return from(null, value, encodingOrOffset, length)
-}
-
-if (Buffer.TYPED_ARRAY_SUPPORT) {
-  Buffer.prototype.__proto__ = Uint8Array.prototype
-  Buffer.__proto__ = Uint8Array
-  if (typeof Symbol !== 'undefined' && Symbol.species &&
-      Buffer[Symbol.species] === Buffer) {
-    // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
-    Object.defineProperty(Buffer, Symbol.species, {
-      value: null,
-      configurable: true
-    })
-  }
-}
-
-function assertSize (size) {
-  if (typeof size !== 'number') {
-    throw new TypeError('"size" argument must be a number')
-  } else if (size < 0) {
-    throw new RangeError('"size" argument must not be negative')
-  }
-}
-
-function alloc (that, size, fill, encoding) {
-  assertSize(size)
-  if (size <= 0) {
-    return createBuffer(that, size)
-  }
-  if (fill !== undefined) {
-    // Only pay attention to encoding if it's a string. This
-    // prevents accidentally sending in a number that would
-    // be interpretted as a start offset.
-    return typeof encoding === 'string'
-      ? createBuffer(that, size).fill(fill, encoding)
-      : createBuffer(that, size).fill(fill)
-  }
-  return createBuffer(that, size)
-}
-
-/**
- * Creates a new filled Buffer instance.
- * alloc(size[, fill[, encoding]])
- **/
-Buffer.alloc = function (size, fill, encoding) {
-  return alloc(null, size, fill, encoding)
-}
-
-function allocUnsafe (that, size) {
-  assertSize(size)
-  that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)
-  if (!Buffer.TYPED_ARRAY_SUPPORT) {
-    for (var i = 0; i < size; ++i) {
-      that[i] = 0
-    }
-  }
-  return that
-}
-
-/**
- * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.
- * */
-Buffer.allocUnsafe = function (size) {
-  return allocUnsafe(null, size)
-}
-/**
- * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.
- */
-Buffer.allocUnsafeSlow = function (size) {
-  return allocUnsafe(null, size)
-}
-
-function fromString (that, string, encoding) {
-  if (typeof encoding !== 'string' || encoding === '') {
-    encoding = 'utf8'
-  }
-
-  if (!Buffer.isEncoding(encoding)) {
-    throw new TypeError('"encoding" must be a valid string encoding')
-  }
-
-  var length = byteLength(string, encoding) | 0
-  that = createBuffer(that, length)
-
-  var actual = that.write(string, encoding)
-
-  if (actual !== length) {
-    // Writing a hex string, for example, that contains invalid characters will
-    // cause everything after the first invalid character to be ignored. (e.g.
-    // 'abxxcd' will be treated as 'ab')
-    that = that.slice(0, actual)
-  }
-
-  return that
-}
-
-function fromArrayLike (that, array) {
-  var length = array.length < 0 ? 0 : checked(array.length) | 0
-  that = createBuffer(that, length)
-  for (var i = 0; i < length; i += 1) {
-    that[i] = array[i] & 255
-  }
-  return that
-}
-
-function fromArrayBuffer (that, array, byteOffset, length) {
-  array.byteLength // this throws if `array` is not a valid ArrayBuffer
-
-  if (byteOffset < 0 || array.byteLength < byteOffset) {
-    throw new RangeError('\'offset\' is out of bounds')
-  }
-
-  if (array.byteLength < byteOffset + (length || 0)) {
-    throw new RangeError('\'length\' is out of bounds')
-  }
-
-  if (byteOffset === undefined && length === undefined) {
-    array = new Uint8Array(array)
-  } else if (length === undefined) {
-    array = new Uint8Array(array, byteOffset)
-  } else {
-    array = new Uint8Array(array, byteOffset, length)
-  }
-
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    // Return an augmented `Uint8Array` instance, for best performance
-    that = array
-    that.__proto__ = Buffer.prototype
-  } else {
-    // Fallback: Return an object instance of the Buffer class
-    that = fromArrayLike(that, array)
-  }
-  return that
-}
-
-function fromObject (that, obj) {
-  if (Buffer.isBuffer(obj)) {
-    var len = checked(obj.length) | 0
-    that = createBuffer(that, len)
-
-    if (that.length === 0) {
-      return that
-    }
-
-    obj.copy(that, 0, 0, len)
-    return that
-  }
-
-  if (obj) {
-    if ((typeof ArrayBuffer !== 'undefined' &&
-        obj.buffer instanceof ArrayBuffer) || 'length' in obj) {
-      if (typeof obj.length !== 'number' || isnan(obj.length)) {
-        return createBuffer(that, 0)
-      }
-      return fromArrayLike(that, obj)
-    }
-
-    if (obj.type === 'Buffer' && isArray(obj.data)) {
-      return fromArrayLike(that, obj.data)
-    }
-  }
-
-  throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')
-}
-
-function checked (length) {
-  // Note: cannot use `length < kMaxLength()` here because that fails when
-  // length is NaN (which is otherwise coerced to zero.)
-  if (length >= kMaxLength()) {
-    throw new RangeError('Attempt to allocate Buffer larger than maximum ' +
-                         'size: 0x' + kMaxLength().toString(16) + ' bytes')
-  }
-  return length | 0
-}
-
-function SlowBuffer (length) {
-  if (+length != length) { // eslint-disable-line eqeqeq
-    length = 0
-  }
-  return Buffer.alloc(+length)
-}
-
-Buffer.isBuffer = function isBuffer (b) {
-  return !!(b != null && b._isBuffer)
-}
-
-Buffer.compare = function compare (a, b) {
-  if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {
-    throw new TypeError('Arguments must be Buffers')
-  }
-
-  if (a === b) return 0
-
-  var x = a.length
-  var y = b.length
-
-  for (var i = 0, len = Math.min(x, y); i < len; ++i) {
-    if (a[i] !== b[i]) {
-      x = a[i]
-      y = b[i]
-      break
-    }
-  }
-
-  if (x < y) return -1
-  if (y < x) return 1
-  return 0
-}
-
-Buffer.isEncoding = function isEncoding (encoding) {
-  switch (String(encoding).toLowerCase()) {
-    case 'hex':
-    case 'utf8':
-    case 'utf-8':
-    case 'ascii':
-    case 'latin1':
-    case 'binary':
-    case 'base64':
-    case 'ucs2':
-    case 'ucs-2':
-    case 'utf16le':
-    case 'utf-16le':
-      return true
-    default:
-      return false
-  }
-}
-
-Buffer.concat = function concat (list, length) {
-  if (!isArray(list)) {
-    throw new TypeError('"list" argument must be an Array of Buffers')
-  }
-
-  if (list.length === 0) {
-    return Buffer.alloc(0)
-  }
-
-  var i
-  if (length === undefined) {
-    length = 0
-    for (i = 0; i < list.length; ++i) {
-      length += list[i].length
-    }
-  }
-
-  var buffer = Buffer.allocUnsafe(length)
-  var pos = 0
-  for (i = 0; i < list.length; ++i) {
-    var buf = list[i]
-    if (!Buffer.isBuffer(buf)) {
-      throw new TypeError('"list" argument must be an Array of Buffers')
-    }
-    buf.copy(buffer, pos)
-    pos += buf.length
-  }
-  return buffer
-}
-
-function byteLength (string, encoding) {
-  if (Buffer.isBuffer(string)) {
-    return string.length
-  }
-  if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&
-      (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {
-    return string.byteLength
-  }
-  if (typeof string !== 'string') {
-    string = '' + string
-  }
-
-  var len = string.length
-  if (len === 0) return 0
-
-  // Use a for loop to avoid recursion
-  var loweredCase = false
-  for (;;) {
-    switch (encoding) {
-      case 'ascii':
-      case 'latin1':
-      case 'binary':
-        return len
-      case 'utf8':
-      case 'utf-8':
-      case undefined:
-        return utf8ToBytes(string).length
-      case 'ucs2':
-      case 'ucs-2':
-      case 'utf16le':
-      case 'utf-16le':
-        return len * 2
-      case 'hex':
-        return len >>> 1
-      case 'base64':
-        return base64ToBytes(string).length
-      default:
-        if (loweredCase) return utf8ToBytes(string).length // assume utf8
-        encoding = ('' + encoding).toLowerCase()
-        loweredCase = true
-    }
-  }
-}
-Buffer.byteLength = byteLength
-
-function slowToString (encoding, start, end) {
-  var loweredCase = false
-
-  // No need to verify that "this.length <= MAX_UINT32" since it's a read-only
-  // property of a typed array.
-
-  // This behaves neither like String nor Uint8Array in that we set start/end
-  // to their upper/lower bounds if the value passed is out of range.
-  // undefined is handled specially as per ECMA-262 6th Edition,
-  // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.
-  if (start === undefined || start < 0) {
-    start = 0
-  }
-  // Return early if start > this.length. Done here to prevent potential uint32
-  // coercion fail below.
-  if (start > this.length) {
-    return ''
-  }
-
-  if (end === undefined || end > this.length) {
-    end = this.length
-  }
-
-  if (end <= 0) {
-    return ''
-  }
-
-  // Force coersion to uint32. This will also coerce falsey/NaN values to 0.
-  end >>>= 0
-  start >>>= 0
-
-  if (end <= start) {
-    return ''
-  }
-
-  if (!encoding) encoding = 'utf8'
-
-  while (true) {
-    switch (encoding) {
-      case 'hex':
-        return hexSlice(this, start, end)
-
-      case 'utf8':
-      case 'utf-8':
-        return utf8Slice(this, start, end)
-
-      case 'ascii':
-        return asciiSlice(this, start, end)
-
-      case 'latin1':
-      case 'binary':
-        return latin1Slice(this, start, end)
-
-      case 'base64':
-        return base64Slice(this, start, end)
-
-      case 'ucs2':
-      case 'ucs-2':
-      case 'utf16le':
-      case 'utf-16le':
-        return utf16leSlice(this, start, end)
-
-      default:
-        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
-        encoding = (encoding + '').toLowerCase()
-        loweredCase = true
-    }
-  }
-}
-
-// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect
-// Buffer instances.
-Buffer.prototype._isBuffer = true
-
-function swap (b, n, m) {
-  var i = b[n]
-  b[n] = b[m]
-  b[m] = i
-}
-
-Buffer.prototype.swap16 = function swap16 () {
-  var len = this.length
-  if (len % 2 !== 0) {
-    throw new RangeError('Buffer size must be a multiple of 16-bits')
-  }
-  for (var i = 0; i < len; i += 2) {
-    swap(this, i, i + 1)
-  }
-  return this
-}
-
-Buffer.prototype.swap32 = function swap32 () {
-  var len = this.length
-  if (len % 4 !== 0) {
-    throw new RangeError('Buffer size must be a multiple of 32-bits')
-  }
-  for (var i = 0; i < len; i += 4) {
-    swap(this, i, i + 3)
-    swap(this, i + 1, i + 2)
-  }
-  return this
-}
-
-Buffer.prototype.swap64 = function swap64 () {
-  var len = this.length
-  if (len % 8 !== 0) {
-    throw new RangeError('Buffer size must be a multiple of 64-bits')
-  }
-  for (var i = 0; i < len; i += 8) {
-    swap(this, i, i + 7)
-    swap(this, i + 1, i + 6)
-    swap(this, i + 2, i + 5)
-    swap(this, i + 3, i + 4)
-  }
-  return this
-}
-
-Buffer.prototype.toString = function toString () {
-  var length = this.length | 0
-  if (length === 0) return ''
-  if (arguments.length === 0) return utf8Slice(this, 0, length)
-  return slowToString.apply(this, arguments)
-}
-
-Buffer.prototype.equals = function equals (b) {
-  if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')
-  if (this === b) return true
-  return Buffer.compare(this, b) === 0
-}
-
-Buffer.prototype.inspect = function inspect () {
-  var str = ''
-  var max = exports.INSPECT_MAX_BYTES
-  if (this.length > 0) {
-    str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')
-    if (this.length > max) str += ' ... '
-  }
-  return ''
-}
-
-Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {
-  if (!Buffer.isBuffer(target)) {
-    throw new TypeError('Argument must be a Buffer')
-  }
-
-  if (start === undefined) {
-    start = 0
-  }
-  if (end === undefined) {
-    end = target ? target.length : 0
-  }
-  if (thisStart === undefined) {
-    thisStart = 0
-  }
-  if (thisEnd === undefined) {
-    thisEnd = this.length
-  }
-
-  if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
-    throw new RangeError('out of range index')
-  }
-
-  if (thisStart >= thisEnd && start >= end) {
-    return 0
-  }
-  if (thisStart >= thisEnd) {
-    return -1
-  }
-  if (start >= end) {
-    return 1
-  }
-
-  start >>>= 0
-  end >>>= 0
-  thisStart >>>= 0
-  thisEnd >>>= 0
-
-  if (this === target) return 0
-
-  var x = thisEnd - thisStart
-  var y = end - start
-  var len = Math.min(x, y)
-
-  var thisCopy = this.slice(thisStart, thisEnd)
-  var targetCopy = target.slice(start, end)
-
-  for (var i = 0; i < len; ++i) {
-    if (thisCopy[i] !== targetCopy[i]) {
-      x = thisCopy[i]
-      y = targetCopy[i]
-      break
-    }
-  }
-
-  if (x < y) return -1
-  if (y < x) return 1
-  return 0
-}
-
-// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
-// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
-//
-// Arguments:
-// - buffer - a Buffer to search
-// - val - a string, Buffer, or number
-// - byteOffset - an index into `buffer`; will be clamped to an int32
-// - encoding - an optional encoding, relevant is val is a string
-// - dir - true for indexOf, false for lastIndexOf
-function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {
-  // Empty buffer means no match
-  if (buffer.length === 0) return -1
-
-  // Normalize byteOffset
-  if (typeof byteOffset === 'string') {
-    encoding = byteOffset
-    byteOffset = 0
-  } else if (byteOffset > 0x7fffffff) {
-    byteOffset = 0x7fffffff
-  } else if (byteOffset < -0x80000000) {
-    byteOffset = -0x80000000
-  }
-  byteOffset = +byteOffset  // Coerce to Number.
-  if (isNaN(byteOffset)) {
-    // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer
-    byteOffset = dir ? 0 : (buffer.length - 1)
-  }
-
-  // Normalize byteOffset: negative offsets start from the end of the buffer
-  if (byteOffset < 0) byteOffset = buffer.length + byteOffset
-  if (byteOffset >= buffer.length) {
-    if (dir) return -1
-    else byteOffset = buffer.length - 1
-  } else if (byteOffset < 0) {
-    if (dir) byteOffset = 0
-    else return -1
-  }
-
-  // Normalize val
-  if (typeof val === 'string') {
-    val = Buffer.from(val, encoding)
-  }
-
-  // Finally, search either indexOf (if dir is true) or lastIndexOf
-  if (Buffer.isBuffer(val)) {
-    // Special case: looking for empty string/buffer always fails
-    if (val.length === 0) {
-      return -1
-    }
-    return arrayIndexOf(buffer, val, byteOffset, encoding, dir)
-  } else if (typeof val === 'number') {
-    val = val & 0xFF // Search for a byte value [0-255]
-    if (Buffer.TYPED_ARRAY_SUPPORT &&
-        typeof Uint8Array.prototype.indexOf === 'function') {
-      if (dir) {
-        return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)
-      } else {
-        return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)
-      }
-    }
-    return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)
-  }
-
-  throw new TypeError('val must be string, number or Buffer')
-}
-
-function arrayIndexOf (arr, val, byteOffset, encoding, dir) {
-  var indexSize = 1
-  var arrLength = arr.length
-  var valLength = val.length
-
-  if (encoding !== undefined) {
-    encoding = String(encoding).toLowerCase()
-    if (encoding === 'ucs2' || encoding === 'ucs-2' ||
-        encoding === 'utf16le' || encoding === 'utf-16le') {
-      if (arr.length < 2 || val.length < 2) {
-        return -1
-      }
-      indexSize = 2
-      arrLength /= 2
-      valLength /= 2
-      byteOffset /= 2
-    }
-  }
-
-  function read (buf, i) {
-    if (indexSize === 1) {
-      return buf[i]
-    } else {
-      return buf.readUInt16BE(i * indexSize)
-    }
-  }
-
-  var i
-  if (dir) {
-    var foundIndex = -1
-    for (i = byteOffset; i < arrLength; i++) {
-      if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
-        if (foundIndex === -1) foundIndex = i
-        if (i - foundIndex + 1 === valLength) return foundIndex * indexSize
-      } else {
-        if (foundIndex !== -1) i -= i - foundIndex
-        foundIndex = -1
-      }
-    }
-  } else {
-    if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength
-    for (i = byteOffset; i >= 0; i--) {
-      var found = true
-      for (var j = 0; j < valLength; j++) {
-        if (read(arr, i + j) !== read(val, j)) {
-          found = false
-          break
-        }
-      }
-      if (found) return i
-    }
-  }
-
-  return -1
-}
-
-Buffer.prototype.includes = function includes (val, byteOffset, encoding) {
-  return this.indexOf(val, byteOffset, encoding) !== -1
-}
-
-Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {
-  return bidirectionalIndexOf(this, val, byteOffset, encoding, true)
-}
-
-Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {
-  return bidirectionalIndexOf(this, val, byteOffset, encoding, false)
-}
-
-function hexWrite (buf, string, offset, length) {
-  offset = Number(offset) || 0
-  var remaining = buf.length - offset
-  if (!length) {
-    length = remaining
-  } else {
-    length = Number(length)
-    if (length > remaining) {
-      length = remaining
-    }
-  }
-
-  // must be an even number of digits
-  var strLen = string.length
-  if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')
-
-  if (length > strLen / 2) {
-    length = strLen / 2
-  }
-  for (var i = 0; i < length; ++i) {
-    var parsed = parseInt(string.substr(i * 2, 2), 16)
-    if (isNaN(parsed)) return i
-    buf[offset + i] = parsed
-  }
-  return i
-}
-
-function utf8Write (buf, string, offset, length) {
-  return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)
-}
-
-function asciiWrite (buf, string, offset, length) {
-  return blitBuffer(asciiToBytes(string), buf, offset, length)
-}
-
-function latin1Write (buf, string, offset, length) {
-  return asciiWrite(buf, string, offset, length)
-}
-
-function base64Write (buf, string, offset, length) {
-  return blitBuffer(base64ToBytes(string), buf, offset, length)
-}
-
-function ucs2Write (buf, string, offset, length) {
-  return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
-}
-
-Buffer.prototype.write = function write (string, offset, length, encoding) {
-  // Buffer#write(string)
-  if (offset === undefined) {
-    encoding = 'utf8'
-    length = this.length
-    offset = 0
-  // Buffer#write(string, encoding)
-  } else if (length === undefined && typeof offset === 'string') {
-    encoding = offset
-    length = this.length
-    offset = 0
-  // Buffer#write(string, offset[, length][, encoding])
-  } else if (isFinite(offset)) {
-    offset = offset | 0
-    if (isFinite(length)) {
-      length = length | 0
-      if (encoding === undefined) encoding = 'utf8'
-    } else {
-      encoding = length
-      length = undefined
-    }
-  // legacy write(string, encoding, offset, length) - remove in v0.13
-  } else {
-    throw new Error(
-      'Buffer.write(string, encoding, offset[, length]) is no longer supported'
-    )
-  }
-
-  var remaining = this.length - offset
-  if (length === undefined || length > remaining) length = remaining
-
-  if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {
-    throw new RangeError('Attempt to write outside buffer bounds')
-  }
-
-  if (!encoding) encoding = 'utf8'
-
-  var loweredCase = false
-  for (;;) {
-    switch (encoding) {
-      case 'hex':
-        return hexWrite(this, string, offset, length)
-
-      case 'utf8':
-      case 'utf-8':
-        return utf8Write(this, string, offset, length)
-
-      case 'ascii':
-        return asciiWrite(this, string, offset, length)
-
-      case 'latin1':
-      case 'binary':
-        return latin1Write(this, string, offset, length)
-
-      case 'base64':
-        // Warning: maxLength not taken into account in base64Write
-        return base64Write(this, string, offset, length)
-
-      case 'ucs2':
-      case 'ucs-2':
-      case 'utf16le':
-      case 'utf-16le':
-        return ucs2Write(this, string, offset, length)
-
-      default:
-        if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)
-        encoding = ('' + encoding).toLowerCase()
-        loweredCase = true
-    }
-  }
-}
-
-Buffer.prototype.toJSON = function toJSON () {
-  return {
-    type: 'Buffer',
-    data: Array.prototype.slice.call(this._arr || this, 0)
-  }
-}
-
-function base64Slice (buf, start, end) {
-  if (start === 0 && end === buf.length) {
-    return base64.fromByteArray(buf)
-  } else {
-    return base64.fromByteArray(buf.slice(start, end))
-  }
-}
-
-function utf8Slice (buf, start, end) {
-  end = Math.min(buf.length, end)
-  var res = []
-
-  var i = start
-  while (i < end) {
-    var firstByte = buf[i]
-    var codePoint = null
-    var bytesPerSequence = (firstByte > 0xEF) ? 4
-      : (firstByte > 0xDF) ? 3
-      : (firstByte > 0xBF) ? 2
-      : 1
-
-    if (i + bytesPerSequence <= end) {
-      var secondByte, thirdByte, fourthByte, tempCodePoint
-
-      switch (bytesPerSequence) {
-        case 1:
-          if (firstByte < 0x80) {
-            codePoint = firstByte
-          }
-          break
-        case 2:
-          secondByte = buf[i + 1]
-          if ((secondByte & 0xC0) === 0x80) {
-            tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)
-            if (tempCodePoint > 0x7F) {
-              codePoint = tempCodePoint
-            }
-          }
-          break
-        case 3:
-          secondByte = buf[i + 1]
-          thirdByte = buf[i + 2]
-          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {
-            tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)
-            if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {
-              codePoint = tempCodePoint
-            }
-          }
-          break
-        case 4:
-          secondByte = buf[i + 1]
-          thirdByte = buf[i + 2]
-          fourthByte = buf[i + 3]
-          if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {
-            tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)
-            if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {
-              codePoint = tempCodePoint
-            }
-          }
-      }
-    }
-
-    if (codePoint === null) {
-      // we did not generate a valid codePoint so insert a
-      // replacement char (U+FFFD) and advance only 1 byte
-      codePoint = 0xFFFD
-      bytesPerSequence = 1
-    } else if (codePoint > 0xFFFF) {
-      // encode to utf16 (surrogate pair dance)
-      codePoint -= 0x10000
-      res.push(codePoint >>> 10 & 0x3FF | 0xD800)
-      codePoint = 0xDC00 | codePoint & 0x3FF
-    }
-
-    res.push(codePoint)
-    i += bytesPerSequence
-  }
-
-  return decodeCodePointsArray(res)
-}
-
-// Based on http://stackoverflow.com/a/22747272/680742, the browser with
-// the lowest limit is Chrome, with 0x10000 args.
-// We go 1 magnitude less, for safety
-var MAX_ARGUMENTS_LENGTH = 0x1000
-
-function decodeCodePointsArray (codePoints) {
-  var len = codePoints.length
-  if (len <= MAX_ARGUMENTS_LENGTH) {
-    return String.fromCharCode.apply(String, codePoints) // avoid extra slice()
-  }
-
-  // Decode in chunks to avoid "call stack size exceeded".
-  var res = ''
-  var i = 0
-  while (i < len) {
-    res += String.fromCharCode.apply(
-      String,
-      codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)
-    )
-  }
-  return res
-}
-
-function asciiSlice (buf, start, end) {
-  var ret = ''
-  end = Math.min(buf.length, end)
-
-  for (var i = start; i < end; ++i) {
-    ret += String.fromCharCode(buf[i] & 0x7F)
-  }
-  return ret
-}
-
-function latin1Slice (buf, start, end) {
-  var ret = ''
-  end = Math.min(buf.length, end)
-
-  for (var i = start; i < end; ++i) {
-    ret += String.fromCharCode(buf[i])
-  }
-  return ret
-}
-
-function hexSlice (buf, start, end) {
-  var len = buf.length
-
-  if (!start || start < 0) start = 0
-  if (!end || end < 0 || end > len) end = len
-
-  var out = ''
-  for (var i = start; i < end; ++i) {
-    out += toHex(buf[i])
-  }
-  return out
-}
-
-function utf16leSlice (buf, start, end) {
-  var bytes = buf.slice(start, end)
-  var res = ''
-  for (var i = 0; i < bytes.length; i += 2) {
-    res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
-  }
-  return res
-}
-
-Buffer.prototype.slice = function slice (start, end) {
-  var len = this.length
-  start = ~~start
-  end = end === undefined ? len : ~~end
-
-  if (start < 0) {
-    start += len
-    if (start < 0) start = 0
-  } else if (start > len) {
-    start = len
-  }
-
-  if (end < 0) {
-    end += len
-    if (end < 0) end = 0
-  } else if (end > len) {
-    end = len
-  }
-
-  if (end < start) end = start
-
-  var newBuf
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    newBuf = this.subarray(start, end)
-    newBuf.__proto__ = Buffer.prototype
-  } else {
-    var sliceLen = end - start
-    newBuf = new Buffer(sliceLen, undefined)
-    for (var i = 0; i < sliceLen; ++i) {
-      newBuf[i] = this[i + start]
-    }
-  }
-
-  return newBuf
-}
-
-/*
- * Need to make sure that buffer isn't trying to write out of bounds.
- */
-function checkOffset (offset, ext, length) {
-  if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')
-  if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')
-}
-
-Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {
-  offset = offset | 0
-  byteLength = byteLength | 0
-  if (!noAssert) checkOffset(offset, byteLength, this.length)
-
-  var val = this[offset]
-  var mul = 1
-  var i = 0
-  while (++i < byteLength && (mul *= 0x100)) {
-    val += this[offset + i] * mul
-  }
-
-  return val
-}
-
-Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {
-  offset = offset | 0
-  byteLength = byteLength | 0
-  if (!noAssert) {
-    checkOffset(offset, byteLength, this.length)
-  }
-
-  var val = this[offset + --byteLength]
-  var mul = 1
-  while (byteLength > 0 && (mul *= 0x100)) {
-    val += this[offset + --byteLength] * mul
-  }
-
-  return val
-}
-
-Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 1, this.length)
-  return this[offset]
-}
-
-Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 2, this.length)
-  return this[offset] | (this[offset + 1] << 8)
-}
-
-Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 2, this.length)
-  return (this[offset] << 8) | this[offset + 1]
-}
-
-Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 4, this.length)
-
-  return ((this[offset]) |
-      (this[offset + 1] << 8) |
-      (this[offset + 2] << 16)) +
-      (this[offset + 3] * 0x1000000)
-}
-
-Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 4, this.length)
-
-  return (this[offset] * 0x1000000) +
-    ((this[offset + 1] << 16) |
-    (this[offset + 2] << 8) |
-    this[offset + 3])
-}
-
-Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {
-  offset = offset | 0
-  byteLength = byteLength | 0
-  if (!noAssert) checkOffset(offset, byteLength, this.length)
-
-  var val = this[offset]
-  var mul = 1
-  var i = 0
-  while (++i < byteLength && (mul *= 0x100)) {
-    val += this[offset + i] * mul
-  }
-  mul *= 0x80
-
-  if (val >= mul) val -= Math.pow(2, 8 * byteLength)
-
-  return val
-}
-
-Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {
-  offset = offset | 0
-  byteLength = byteLength | 0
-  if (!noAssert) checkOffset(offset, byteLength, this.length)
-
-  var i = byteLength
-  var mul = 1
-  var val = this[offset + --i]
-  while (i > 0 && (mul *= 0x100)) {
-    val += this[offset + --i] * mul
-  }
-  mul *= 0x80
-
-  if (val >= mul) val -= Math.pow(2, 8 * byteLength)
-
-  return val
-}
-
-Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 1, this.length)
-  if (!(this[offset] & 0x80)) return (this[offset])
-  return ((0xff - this[offset] + 1) * -1)
-}
-
-Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 2, this.length)
-  var val = this[offset] | (this[offset + 1] << 8)
-  return (val & 0x8000) ? val | 0xFFFF0000 : val
-}
-
-Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 2, this.length)
-  var val = this[offset + 1] | (this[offset] << 8)
-  return (val & 0x8000) ? val | 0xFFFF0000 : val
-}
-
-Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 4, this.length)
-
-  return (this[offset]) |
-    (this[offset + 1] << 8) |
-    (this[offset + 2] << 16) |
-    (this[offset + 3] << 24)
-}
-
-Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 4, this.length)
-
-  return (this[offset] << 24) |
-    (this[offset + 1] << 16) |
-    (this[offset + 2] << 8) |
-    (this[offset + 3])
-}
-
-Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 4, this.length)
-  return ieee754.read(this, offset, true, 23, 4)
-}
-
-Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 4, this.length)
-  return ieee754.read(this, offset, false, 23, 4)
-}
-
-Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 8, this.length)
-  return ieee754.read(this, offset, true, 52, 8)
-}
-
-Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {
-  if (!noAssert) checkOffset(offset, 8, this.length)
-  return ieee754.read(this, offset, false, 52, 8)
-}
-
-function checkInt (buf, value, offset, ext, max, min) {
-  if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance')
-  if (value > max || value < min) throw new RangeError('"value" argument is out of bounds')
-  if (offset + ext > buf.length) throw new RangeError('Index out of range')
-}
-
-Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {
-  value = +value
-  offset = offset | 0
-  byteLength = byteLength | 0
-  if (!noAssert) {
-    var maxBytes = Math.pow(2, 8 * byteLength) - 1
-    checkInt(this, value, offset, byteLength, maxBytes, 0)
-  }
-
-  var mul = 1
-  var i = 0
-  this[offset] = value & 0xFF
-  while (++i < byteLength && (mul *= 0x100)) {
-    this[offset + i] = (value / mul) & 0xFF
-  }
-
-  return offset + byteLength
-}
-
-Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {
-  value = +value
-  offset = offset | 0
-  byteLength = byteLength | 0
-  if (!noAssert) {
-    var maxBytes = Math.pow(2, 8 * byteLength) - 1
-    checkInt(this, value, offset, byteLength, maxBytes, 0)
-  }
-
-  var i = byteLength - 1
-  var mul = 1
-  this[offset + i] = value & 0xFF
-  while (--i >= 0 && (mul *= 0x100)) {
-    this[offset + i] = (value / mul) & 0xFF
-  }
-
-  return offset + byteLength
-}
-
-Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)
-  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
-  this[offset] = (value & 0xff)
-  return offset + 1
-}
-
-function objectWriteUInt16 (buf, value, offset, littleEndian) {
-  if (value < 0) value = 0xffff + value + 1
-  for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {
-    buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>
-      (littleEndian ? i : 1 - i) * 8
-  }
-}
-
-Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset] = (value & 0xff)
-    this[offset + 1] = (value >>> 8)
-  } else {
-    objectWriteUInt16(this, value, offset, true)
-  }
-  return offset + 2
-}
-
-Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset] = (value >>> 8)
-    this[offset + 1] = (value & 0xff)
-  } else {
-    objectWriteUInt16(this, value, offset, false)
-  }
-  return offset + 2
-}
-
-function objectWriteUInt32 (buf, value, offset, littleEndian) {
-  if (value < 0) value = 0xffffffff + value + 1
-  for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {
-    buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff
-  }
-}
-
-Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset + 3] = (value >>> 24)
-    this[offset + 2] = (value >>> 16)
-    this[offset + 1] = (value >>> 8)
-    this[offset] = (value & 0xff)
-  } else {
-    objectWriteUInt32(this, value, offset, true)
-  }
-  return offset + 4
-}
-
-Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset] = (value >>> 24)
-    this[offset + 1] = (value >>> 16)
-    this[offset + 2] = (value >>> 8)
-    this[offset + 3] = (value & 0xff)
-  } else {
-    objectWriteUInt32(this, value, offset, false)
-  }
-  return offset + 4
-}
-
-Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) {
-    var limit = Math.pow(2, 8 * byteLength - 1)
-
-    checkInt(this, value, offset, byteLength, limit - 1, -limit)
-  }
-
-  var i = 0
-  var mul = 1
-  var sub = 0
-  this[offset] = value & 0xFF
-  while (++i < byteLength && (mul *= 0x100)) {
-    if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
-      sub = 1
-    }
-    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
-  }
-
-  return offset + byteLength
-}
-
-Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) {
-    var limit = Math.pow(2, 8 * byteLength - 1)
-
-    checkInt(this, value, offset, byteLength, limit - 1, -limit)
-  }
-
-  var i = byteLength - 1
-  var mul = 1
-  var sub = 0
-  this[offset + i] = value & 0xFF
-  while (--i >= 0 && (mul *= 0x100)) {
-    if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
-      sub = 1
-    }
-    this[offset + i] = ((value / mul) >> 0) - sub & 0xFF
-  }
-
-  return offset + byteLength
-}
-
-Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)
-  if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)
-  if (value < 0) value = 0xff + value + 1
-  this[offset] = (value & 0xff)
-  return offset + 1
-}
-
-Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset] = (value & 0xff)
-    this[offset + 1] = (value >>> 8)
-  } else {
-    objectWriteUInt16(this, value, offset, true)
-  }
-  return offset + 2
-}
-
-Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset] = (value >>> 8)
-    this[offset + 1] = (value & 0xff)
-  } else {
-    objectWriteUInt16(this, value, offset, false)
-  }
-  return offset + 2
-}
-
-Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset] = (value & 0xff)
-    this[offset + 1] = (value >>> 8)
-    this[offset + 2] = (value >>> 16)
-    this[offset + 3] = (value >>> 24)
-  } else {
-    objectWriteUInt32(this, value, offset, true)
-  }
-  return offset + 4
-}
-
-Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {
-  value = +value
-  offset = offset | 0
-  if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)
-  if (value < 0) value = 0xffffffff + value + 1
-  if (Buffer.TYPED_ARRAY_SUPPORT) {
-    this[offset] = (value >>> 24)
-    this[offset + 1] = (value >>> 16)
-    this[offset + 2] = (value >>> 8)
-    this[offset + 3] = (value & 0xff)
-  } else {
-    objectWriteUInt32(this, value, offset, false)
-  }
-  return offset + 4
-}
-
-function checkIEEE754 (buf, value, offset, ext, max, min) {
-  if (offset + ext > buf.length) throw new RangeError('Index out of range')
-  if (offset < 0) throw new RangeError('Index out of range')
-}
-
-function writeFloat (buf, value, offset, littleEndian, noAssert) {
-  if (!noAssert) {
-    checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)
-  }
-  ieee754.write(buf, value, offset, littleEndian, 23, 4)
-  return offset + 4
-}
-
-Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {
-  return writeFloat(this, value, offset, true, noAssert)
-}
-
-Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {
-  return writeFloat(this, value, offset, false, noAssert)
-}
-
-function writeDouble (buf, value, offset, littleEndian, noAssert) {
-  if (!noAssert) {
-    checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)
-  }
-  ieee754.write(buf, value, offset, littleEndian, 52, 8)
-  return offset + 8
-}
-
-Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {
-  return writeDouble(this, value, offset, true, noAssert)
-}
-
-Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {
-  return writeDouble(this, value, offset, false, noAssert)
-}
-
-// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
-Buffer.prototype.copy = function copy (target, targetStart, start, end) {
-  if (!start) start = 0
-  if (!end && end !== 0) end = this.length
-  if (targetStart >= target.length) targetStart = target.length
-  if (!targetStart) targetStart = 0
-  if (end > 0 && end < start) end = start
-
-  // Copy 0 bytes; we're done
-  if (end === start) return 0
-  if (target.length === 0 || this.length === 0) return 0
-
-  // Fatal error conditions
-  if (targetStart < 0) {
-    throw new RangeError('targetStart out of bounds')
-  }
-  if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
-  if (end < 0) throw new RangeError('sourceEnd out of bounds')
-
-  // Are we oob?
-  if (end > this.length) end = this.length
-  if (target.length - targetStart < end - start) {
-    end = target.length - targetStart + start
-  }
-
-  var len = end - start
-  var i
-
-  if (this === target && start < targetStart && targetStart < end) {
-    // descending copy from end
-    for (i = len - 1; i >= 0; --i) {
-      target[i + targetStart] = this[i + start]
-    }
-  } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {
-    // ascending copy from start
-    for (i = 0; i < len; ++i) {
-      target[i + targetStart] = this[i + start]
-    }
-  } else {
-    Uint8Array.prototype.set.call(
-      target,
-      this.subarray(start, start + len),
-      targetStart
-    )
-  }
-
-  return len
-}
-
-// Usage:
-//    buffer.fill(number[, offset[, end]])
-//    buffer.fill(buffer[, offset[, end]])
-//    buffer.fill(string[, offset[, end]][, encoding])
-Buffer.prototype.fill = function fill (val, start, end, encoding) {
-  // Handle string cases:
-  if (typeof val === 'string') {
-    if (typeof start === 'string') {
-      encoding = start
-      start = 0
-      end = this.length
-    } else if (typeof end === 'string') {
-      encoding = end
-      end = this.length
-    }
-    if (val.length === 1) {
-      var code = val.charCodeAt(0)
-      if (code < 256) {
-        val = code
-      }
-    }
-    if (encoding !== undefined && typeof encoding !== 'string') {
-      throw new TypeError('encoding must be a string')
-    }
-    if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {
-      throw new TypeError('Unknown encoding: ' + encoding)
-    }
-  } else if (typeof val === 'number') {
-    val = val & 255
-  }
-
-  // Invalid ranges are not set to a default, so can range check early.
-  if (start < 0 || this.length < start || this.length < end) {
-    throw new RangeError('Out of range index')
-  }
-
-  if (end <= start) {
-    return this
-  }
-
-  start = start >>> 0
-  end = end === undefined ? this.length : end >>> 0
-
-  if (!val) val = 0
-
-  var i
-  if (typeof val === 'number') {
-    for (i = start; i < end; ++i) {
-      this[i] = val
-    }
-  } else {
-    var bytes = Buffer.isBuffer(val)
-      ? val
-      : utf8ToBytes(new Buffer(val, encoding).toString())
-    var len = bytes.length
-    for (i = 0; i < end - start; ++i) {
-      this[i + start] = bytes[i % len]
-    }
-  }
-
-  return this
-}
-
-// HELPER FUNCTIONS
-// ================
-
-var INVALID_BASE64_RE = /[^+\/0-9A-Za-z-_]/g
-
-function base64clean (str) {
-  // Node strips out invalid characters like \n and \t from the string, base64-js does not
-  str = stringtrim(str).replace(INVALID_BASE64_RE, '')
-  // Node converts strings with length < 2 to ''
-  if (str.length < 2) return ''
-  // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
-  while (str.length % 4 !== 0) {
-    str = str + '='
-  }
-  return str
-}
-
-function stringtrim (str) {
-  if (str.trim) return str.trim()
-  return str.replace(/^\s+|\s+$/g, '')
-}
-
-function toHex (n) {
-  if (n < 16) return '0' + n.toString(16)
-  return n.toString(16)
-}
-
-function utf8ToBytes (string, units) {
-  units = units || Infinity
-  var codePoint
-  var length = string.length
-  var leadSurrogate = null
-  var bytes = []
-
-  for (var i = 0; i < length; ++i) {
-    codePoint = string.charCodeAt(i)
-
-    // is surrogate component
-    if (codePoint > 0xD7FF && codePoint < 0xE000) {
-      // last char was a lead
-      if (!leadSurrogate) {
-        // no lead yet
-        if (codePoint > 0xDBFF) {
-          // unexpected trail
-          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
-          continue
-        } else if (i + 1 === length) {
-          // unpaired lead
-          if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
-          continue
-        }
-
-        // valid lead
-        leadSurrogate = codePoint
-
-        continue
-      }
-
-      // 2 leads in a row
-      if (codePoint < 0xDC00) {
-        if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
-        leadSurrogate = codePoint
-        continue
-      }
-
-      // valid surrogate pair
-      codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000
-    } else if (leadSurrogate) {
-      // valid bmp char, but last char was a lead
-      if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)
-    }
-
-    leadSurrogate = null
-
-    // encode utf8
-    if (codePoint < 0x80) {
-      if ((units -= 1) < 0) break
-      bytes.push(codePoint)
-    } else if (codePoint < 0x800) {
-      if ((units -= 2) < 0) break
-      bytes.push(
-        codePoint >> 0x6 | 0xC0,
-        codePoint & 0x3F | 0x80
-      )
-    } else if (codePoint < 0x10000) {
-      if ((units -= 3) < 0) break
-      bytes.push(
-        codePoint >> 0xC | 0xE0,
-        codePoint >> 0x6 & 0x3F | 0x80,
-        codePoint & 0x3F | 0x80
-      )
-    } else if (codePoint < 0x110000) {
-      if ((units -= 4) < 0) break
-      bytes.push(
-        codePoint >> 0x12 | 0xF0,
-        codePoint >> 0xC & 0x3F | 0x80,
-        codePoint >> 0x6 & 0x3F | 0x80,
-        codePoint & 0x3F | 0x80
-      )
-    } else {
-      throw new Error('Invalid code point')
-    }
-  }
-
-  return bytes
-}
-
-function asciiToBytes (str) {
-  var byteArray = []
-  for (var i = 0; i < str.length; ++i) {
-    // Node's code seems to be doing this and not & 0x7F..
-    byteArray.push(str.charCodeAt(i) & 0xFF)
-  }
-  return byteArray
-}
-
-function utf16leToBytes (str, units) {
-  var c, hi, lo
-  var byteArray = []
-  for (var i = 0; i < str.length; ++i) {
-    if ((units -= 2) < 0) break
-
-    c = str.charCodeAt(i)
-    hi = c >> 8
-    lo = c % 256
-    byteArray.push(lo)
-    byteArray.push(hi)
-  }
-
-  return byteArray
-}
-
-function base64ToBytes (str) {
-  return base64.toByteArray(base64clean(str))
-}
-
-function blitBuffer (src, dst, offset, length) {
-  for (var i = 0; i < length; ++i) {
-    if ((i + offset >= dst.length) || (i >= src.length)) break
-    dst[i + offset] = src[i]
-  }
-  return i
-}
-
-function isnan (val) {
-  return val !== val // eslint-disable-line no-self-compare
-}
-
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35)))
-
-/***/ }),
-/* 21 */
-/***/ (function(module, exports) {
-
-var toString = {}.toString;
-
-module.exports = function(it){
-  return toString.call(it).slice(8, -1);
-};
-
-/***/ }),
-/* 22 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// optional / simple context binding
-var aFunction = __webpack_require__(38);
-module.exports = function(fn, that, length){
-  aFunction(fn);
-  if(that === undefined)return fn;
-  switch(length){
-    case 1: return function(a){
-      return fn.call(that, a);
-    };
-    case 2: return function(a, b){
-      return fn.call(that, a, b);
-    };
-    case 3: return function(a, b, c){
-      return fn.call(that, a, b, c);
-    };
-  }
-  return function(/* ...args */){
-    return fn.apply(that, arguments);
-  };
-};
-
-/***/ }),
-/* 23 */
-/***/ (function(module, exports) {
-
-module.exports = {};
-
-/***/ }),
-/* 24 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-module.exports = function drain (op, done) {
-  var read, abort
-
-  function sink (_read) {
-    read = _read
-    if(abort) return sink.abort()
-    //this function is much simpler to write if you
-    //just use recursion, but by using a while loop
-    //we do not blow the stack if the stream happens to be sync.
-    ;(function next() {
-        var loop = true, cbed = false
-        while(loop) {
-          cbed = false
-          read(null, function (end, data) {
-            cbed = true
-            if(end = end || abort) {
-              loop = false
-              if(done) done(end === true ? null : end)
-              else if(end && end !== true)
-                throw end
-            }
-            else if(op && false === op(data) || abort) {
-              loop = false
-              read(abort || true, done || function () {})
-            }
-            else if(!loop){
-              next()
-            }
-          })
-          if(!cbed) {
-            loop = false
-            return
-          }
-        }
-      })()
-  }
-
-  sink.abort = function (err, cb) {
-    if('function' == typeof err)
-      cb = err, err = true
-    abort = err || true
-    if(read) return read(abort, cb || function () {})
-  }
-
-  return sink
-}
-
-
-/***/ }),
-/* 25 */
-/***/ (function(module, exports) {
-
-module.exports = function prop (key) {
-  return key && (
-    'string' == typeof key
-    ? function (data) { return data[key] }
-    : 'object' === typeof key && 'function' === typeof key.exec //regexp
-    ? function (data) { var v = key.exec(data); return v && v[0] }
-    : key
-  )
-}
-
-
-/***/ }),
-/* 26 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _promise = __webpack_require__(27);
-
-var _promise2 = _interopRequireDefault(_promise);
-
-var _assign = __webpack_require__(9);
-
-var _assign2 = _interopRequireDefault(_assign);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var EventEmitter = __webpack_require__(36).EventEmitter;
-var Log = __webpack_require__(90);
-var Index = __webpack_require__(98);
-
-var DefaultOptions = {
-  Index: Index,
-  maxHistory: 256
-};
-
-var Store = function () {
-  function Store(ipfs, id, dbname) {
-    var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-    (0, _classCallCheck3.default)(this, Store);
-
-    this.id = id;
-    this.dbname = dbname;
-    this.events = new EventEmitter();
-
-    var opts = (0, _assign2.default)({}, DefaultOptions);
-    (0, _assign2.default)(opts, options);
-
-    this.options = opts;
-    this._ipfs = ipfs;
-    this._index = new this.options.Index(this.id);
-    this._oplog = Log.create(this._ipfs);
-    this._lastWrite = [];
-  }
-
-  (0, _createClass3.default)(Store, [{
-    key: 'loadHistory',
-    value: function loadHistory(hash) {
-      var _this = this;
-
-      if (this._lastWrite.includes(hash)) return _promise2.default.resolve([]);
-
-      if (hash) this._lastWrite.push(hash);
-
-      if (hash && this.options.maxHistory > 0) {
-        this.events.emit('load', this.dbname, hash);
-        return Log.fromMultihash(this._ipfs, hash, this.options.maxHistory, this._onLoadProgress.bind(this)).then(function (log) {
-          return Log.join(_this._ipfs, _this._oplog, log);
-        }).then(function (merged) {
-          _this._index.updateIndex(_this._oplog);
-          _this.events.emit('load.end', _this.dbname);
-          _this.events.emit('ready', _this.dbname);
-          return _this;
-        });
-      } else {
-        this.events.emit('ready', this.dbname);
-        return _promise2.default.resolve(this);
-      }
-    }
-  }, {
-    key: 'sync',
-    value: function sync(hash) {
-      var _this2 = this;
-
-      if (!hash || this._lastWrite.includes(hash)) return _promise2.default.resolve(hash);
-
-      var newItems = [];
-      if (hash) this._lastWrite.push(hash);
-      this.events.emit('sync', this.dbname);
-      var startTime = new Date().getTime();
-      return Log.fromMultihash(this._ipfs, hash, this.options.maxHistory, this._onLoadProgress.bind(this)).then(function (log) {
-        _this2._oplog = Log.join(_this2._ipfs, _this2._oplog, log);
-        _this2._index.updateIndex(_this2._oplog);
-        _this2.events.emit('load.end', _this2.dbname);
-        _this2.events.emit('synced', _this2.dbname);
-      }).then(function () {
-        return Log.toMultihash(_this2._ipfs, _this2._oplog);
-      });
-    }
-  }, {
-    key: '_addOperation',
-    value: function _addOperation(data) {
-      var _this3 = this;
-
-      var result = void 0,
-          logHash = void 0;
-      if (this._oplog) {
-        return Log.append(this._ipfs, this._oplog, data).then(function (res) {
-          return _this3._oplog = res;
-        }).then(function () {
-          return Log.toMultihash(_this3._ipfs, _this3._oplog);
-        }).then(function (hash) {
-          return logHash = hash;
-        }).then(function () {
-          return _this3._lastWrite.push(logHash);
-        }).then(function () {
-          return _this3._index.updateIndex(_this3._oplog, [result]);
-        }).then(function () {
-          return _this3.events.emit('write', _this3.dbname, logHash);
-        }).then(function () {
-          return _this3.events.emit('data', _this3.dbname, _this3._oplog.items[_this3._oplog.items.length - 1].hash);
-        }).then(function () {
-          return _this3._oplog.items[_this3._oplog.items.length - 1].hash;
-        });
-      }
-    }
-  }, {
-    key: '_onLoadProgress',
-    value: function _onLoadProgress(hash, entry, parent, depth) {
-      this.events.emit('load.progress', this.dbname, depth);
-    }
-  }]);
-  return Store;
-}();
-
-module.exports = Store;
-
-/***/ }),
-/* 27 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(113), __esModule: true };
-
-/***/ }),
-/* 28 */
-/***/ (function(module, exports) {
-
-module.exports = true;
-
-/***/ }),
-/* 29 */
-/***/ (function(module, exports) {
-
-exports.f = {}.propertyIsEnumerable;
-
-/***/ }),
-/* 30 */
-/***/ (function(module, exports) {
-
-module.exports = function(bitmap, value){
-  return {
-    enumerable  : !(bitmap & 1),
-    configurable: !(bitmap & 2),
-    writable    : !(bitmap & 4),
-    value       : value
-  };
-};
-
-/***/ }),
-/* 31 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var def = __webpack_require__(8).f
-  , has = __webpack_require__(10)
-  , TAG = __webpack_require__(3)('toStringTag');
-
-module.exports = function(it, tag, stat){
-  if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});
-};
-
-/***/ }),
-/* 32 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 7.1.13 ToObject(argument)
-var defined = __webpack_require__(39);
-module.exports = function(it){
-  return Object(defined(it));
-};
-
-/***/ }),
-/* 33 */
-/***/ (function(module, exports) {
-
-var id = 0
-  , px = Math.random();
-module.exports = function(key){
-  return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
-};
-
-/***/ }),
-/* 34 */
-/***/ (function(module, exports, __webpack_require__) {
-
-exports.nextTick = function nextTick(fn) {
-	setTimeout(fn, 0);
-};
-
-exports.platform = exports.arch = 
-exports.execPath = exports.title = 'browser';
-exports.pid = 1;
-exports.browser = true;
-exports.env = {};
-exports.argv = [];
-
-exports.binding = function (name) {
-	throw new Error('No such module. (Possibly not yet loaded)')
-};
-
-(function () {
-    var cwd = '/';
-    var path;
-    exports.cwd = function () { return cwd };
-    exports.chdir = function (dir) {
-        if (!path) path = __webpack_require__(160);
-        cwd = path.resolve(dir, cwd);
-    };
-})();
-
-exports.exit = exports.kill = 
-exports.umask = exports.dlopen = 
-exports.uptime = exports.memoryUsage = 
-exports.uvCounters = function() {};
-exports.features = {};
-
-
-/***/ }),
-/* 35 */
-/***/ (function(module, exports) {
-
-var g;
-
-// This works in non-strict mode
-g = (function() {
-	return this;
-})();
-
-try {
-	// This works if eval is allowed (see CSP)
-	g = g || Function("return this")() || (1,eval)("this");
-} catch(e) {
-	// This works if the window reference is available
-	if(typeof window === "object")
-		g = window;
-}
-
-// g can still be undefined, but nothing to do about it...
-// We return undefined, instead of nothing here, so it's
-// easier to handle this case. if(!global) { ...}
-
-module.exports = g;
-
-
-/***/ }),
-/* 36 */
-/***/ (function(module, exports) {
-
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-function EventEmitter() {
-  this._events = this._events || {};
-  this._maxListeners = this._maxListeners || undefined;
-}
-module.exports = EventEmitter;
-
-// Backwards-compat with node 0.10.x
-EventEmitter.EventEmitter = EventEmitter;
-
-EventEmitter.prototype._events = undefined;
-EventEmitter.prototype._maxListeners = undefined;
-
-// By default EventEmitters will print a warning if more than 10 listeners are
-// added to it. This is a useful default which helps finding memory leaks.
-EventEmitter.defaultMaxListeners = 10;
-
-// Obviously not all Emitters should be limited to 10. This function allows
-// that to be increased. Set to zero for unlimited.
-EventEmitter.prototype.setMaxListeners = function(n) {
-  if (!isNumber(n) || n < 0 || isNaN(n))
-    throw TypeError('n must be a positive number');
-  this._maxListeners = n;
-  return this;
-};
-
-EventEmitter.prototype.emit = function(type) {
-  var er, handler, len, args, i, listeners;
-
-  if (!this._events)
-    this._events = {};
-
-  // If there is no 'error' event listener then throw.
-  if (type === 'error') {
-    if (!this._events.error ||
-        (isObject(this._events.error) && !this._events.error.length)) {
-      er = arguments[1];
-      if (er instanceof Error) {
-        throw er; // Unhandled 'error' event
-      } else {
-        // At least give some kind of context to the user
-        var err = new Error('Uncaught, unspecified "error" event. (' + er + ')');
-        err.context = er;
-        throw err;
-      }
-    }
-  }
-
-  handler = this._events[type];
-
-  if (isUndefined(handler))
-    return false;
-
-  if (isFunction(handler)) {
-    switch (arguments.length) {
-      // fast cases
-      case 1:
-        handler.call(this);
-        break;
-      case 2:
-        handler.call(this, arguments[1]);
-        break;
-      case 3:
-        handler.call(this, arguments[1], arguments[2]);
-        break;
-      // slower
-      default:
-        args = Array.prototype.slice.call(arguments, 1);
-        handler.apply(this, args);
-    }
-  } else if (isObject(handler)) {
-    args = Array.prototype.slice.call(arguments, 1);
-    listeners = handler.slice();
-    len = listeners.length;
-    for (i = 0; i < len; i++)
-      listeners[i].apply(this, args);
-  }
-
-  return true;
-};
-
-EventEmitter.prototype.addListener = function(type, listener) {
-  var m;
-
-  if (!isFunction(listener))
-    throw TypeError('listener must be a function');
-
-  if (!this._events)
-    this._events = {};
-
-  // To avoid recursion in the case that type === "newListener"! Before
-  // adding it to the listeners, first emit "newListener".
-  if (this._events.newListener)
-    this.emit('newListener', type,
-              isFunction(listener.listener) ?
-              listener.listener : listener);
-
-  if (!this._events[type])
-    // Optimize the case of one listener. Don't need the extra array object.
-    this._events[type] = listener;
-  else if (isObject(this._events[type]))
-    // If we've already got an array, just append.
-    this._events[type].push(listener);
-  else
-    // Adding the second element, need to change to array.
-    this._events[type] = [this._events[type], listener];
-
-  // Check for listener leak
-  if (isObject(this._events[type]) && !this._events[type].warned) {
-    if (!isUndefined(this._maxListeners)) {
-      m = this._maxListeners;
-    } else {
-      m = EventEmitter.defaultMaxListeners;
-    }
-
-    if (m && m > 0 && this._events[type].length > m) {
-      this._events[type].warned = true;
-      console.error('(node) warning: possible EventEmitter memory ' +
-                    'leak detected. %d listeners added. ' +
-                    'Use emitter.setMaxListeners() to increase limit.',
-                    this._events[type].length);
-      if (typeof console.trace === 'function') {
-        // not supported in IE 10
-        console.trace();
-      }
-    }
-  }
-
-  return this;
-};
-
-EventEmitter.prototype.on = EventEmitter.prototype.addListener;
-
-EventEmitter.prototype.once = function(type, listener) {
-  if (!isFunction(listener))
-    throw TypeError('listener must be a function');
-
-  var fired = false;
-
-  function g() {
-    this.removeListener(type, g);
-
-    if (!fired) {
-      fired = true;
-      listener.apply(this, arguments);
-    }
-  }
-
-  g.listener = listener;
-  this.on(type, g);
-
-  return this;
-};
-
-// emits a 'removeListener' event iff the listener was removed
-EventEmitter.prototype.removeListener = function(type, listener) {
-  var list, position, length, i;
-
-  if (!isFunction(listener))
-    throw TypeError('listener must be a function');
-
-  if (!this._events || !this._events[type])
-    return this;
-
-  list = this._events[type];
-  length = list.length;
-  position = -1;
-
-  if (list === listener ||
-      (isFunction(list.listener) && list.listener === listener)) {
-    delete this._events[type];
-    if (this._events.removeListener)
-      this.emit('removeListener', type, listener);
-
-  } else if (isObject(list)) {
-    for (i = length; i-- > 0;) {
-      if (list[i] === listener ||
-          (list[i].listener && list[i].listener === listener)) {
-        position = i;
-        break;
-      }
-    }
-
-    if (position < 0)
-      return this;
-
-    if (list.length === 1) {
-      list.length = 0;
-      delete this._events[type];
-    } else {
-      list.splice(position, 1);
-    }
-
-    if (this._events.removeListener)
-      this.emit('removeListener', type, listener);
-  }
-
-  return this;
-};
-
-EventEmitter.prototype.removeAllListeners = function(type) {
-  var key, listeners;
-
-  if (!this._events)
-    return this;
-
-  // not listening for removeListener, no need to emit
-  if (!this._events.removeListener) {
-    if (arguments.length === 0)
-      this._events = {};
-    else if (this._events[type])
-      delete this._events[type];
-    return this;
-  }
-
-  // emit removeListener for all listeners on all events
-  if (arguments.length === 0) {
-    for (key in this._events) {
-      if (key === 'removeListener') continue;
-      this.removeAllListeners(key);
-    }
-    this.removeAllListeners('removeListener');
-    this._events = {};
-    return this;
-  }
-
-  listeners = this._events[type];
-
-  if (isFunction(listeners)) {
-    this.removeListener(type, listeners);
-  } else if (listeners) {
-    // LIFO order
-    while (listeners.length)
-      this.removeListener(type, listeners[listeners.length - 1]);
-  }
-  delete this._events[type];
-
-  return this;
-};
-
-EventEmitter.prototype.listeners = function(type) {
-  var ret;
-  if (!this._events || !this._events[type])
-    ret = [];
-  else if (isFunction(this._events[type]))
-    ret = [this._events[type]];
-  else
-    ret = this._events[type].slice();
-  return ret;
-};
-
-EventEmitter.prototype.listenerCount = function(type) {
-  if (this._events) {
-    var evlistener = this._events[type];
-
-    if (isFunction(evlistener))
-      return 1;
-    else if (evlistener)
-      return evlistener.length;
-  }
-  return 0;
-};
-
-EventEmitter.listenerCount = function(emitter, type) {
-  return emitter.listenerCount(type);
-};
-
-function isFunction(arg) {
-  return typeof arg === 'function';
-}
-
-function isNumber(arg) {
-  return typeof arg === 'number';
-}
-
-function isObject(arg) {
-  return typeof arg === 'object' && arg !== null;
-}
-
-function isUndefined(arg) {
-  return arg === void 0;
-}
-
-
-/***/ }),
-/* 37 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(105), __esModule: true };
-
-/***/ }),
-/* 38 */
-/***/ (function(module, exports) {
-
-module.exports = function(it){
-  if(typeof it != 'function')throw TypeError(it + ' is not a function!');
-  return it;
-};
-
-/***/ }),
-/* 39 */
-/***/ (function(module, exports) {
-
-// 7.2.1 RequireObjectCoercible(argument)
-module.exports = function(it){
-  if(it == undefined)throw TypeError("Can't call method on  " + it);
-  return it;
-};
-
-/***/ }),
-/* 40 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var isObject = __webpack_require__(18)
-  , document = __webpack_require__(4).document
-  // in old IE typeof document.createElement is 'object'
-  , is = isObject(document) && isObject(document.createElement);
-module.exports = function(it){
-  return is ? document.createElement(it) : {};
-};
-
-/***/ }),
-/* 41 */
-/***/ (function(module, exports) {
-
-// IE 8- don't enum bug keys
-module.exports = (
-  'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
-).split(',');
-
-/***/ }),
-/* 42 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
-var anObject    = __webpack_require__(5)
-  , dPs         = __webpack_require__(132)
-  , enumBugKeys = __webpack_require__(41)
-  , IE_PROTO    = __webpack_require__(45)('IE_PROTO')
-  , Empty       = function(){ /* empty */ }
-  , PROTOTYPE   = 'prototype';
-
-// Create object with fake `null` prototype: use iframe Object with cleared prototype
-var createDict = function(){
-  // Thrash, waste and sodomy: IE GC bug
-  var iframe = __webpack_require__(40)('iframe')
-    , i      = enumBugKeys.length
-    , lt     = '<'
-    , gt     = '>'
-    , iframeDocument;
-  iframe.style.display = 'none';
-  __webpack_require__(60).appendChild(iframe);
-  iframe.src = 'javascript:'; // eslint-disable-line no-script-url
-  // createDict = iframe.contentWindow.Object;
-  // html.removeChild(iframe);
-  iframeDocument = iframe.contentWindow.document;
-  iframeDocument.open();
-  iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
-  iframeDocument.close();
-  createDict = iframeDocument.F;
-  while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];
-  return createDict();
-};
-
-module.exports = Object.create || function create(O, Properties){
-  var result;
-  if(O !== null){
-    Empty[PROTOTYPE] = anObject(O);
-    result = new Empty;
-    Empty[PROTOTYPE] = null;
-    // add "__proto__" for Object.getPrototypeOf polyfill
-    result[IE_PROTO] = O;
-  } else result = createDict();
-  return Properties === undefined ? result : dPs(result, Properties);
-};
-
-
-/***/ }),
-/* 43 */
-/***/ (function(module, exports) {
-
-exports.f = Object.getOwnPropertySymbols;
-
-/***/ }),
-/* 44 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// most Object methods by ES6 should accept primitives
-var $export = __webpack_require__(7)
-  , core    = __webpack_require__(2)
-  , fails   = __webpack_require__(17);
-module.exports = function(KEY, exec){
-  var fn  = (core.Object || {})[KEY] || Object[KEY]
-    , exp = {};
-  exp[KEY] = exec(fn);
-  $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);
-};
-
-/***/ }),
-/* 45 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var shared = __webpack_require__(46)('keys')
-  , uid    = __webpack_require__(33);
-module.exports = function(key){
-  return shared[key] || (shared[key] = uid(key));
-};
-
-/***/ }),
-/* 46 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var global = __webpack_require__(4)
-  , SHARED = '__core-js_shared__'
-  , store  = global[SHARED] || (global[SHARED] = {});
-module.exports = function(key){
-  return store[key] || (store[key] = {});
-};
-
-/***/ }),
-/* 47 */
-/***/ (function(module, exports) {
-
-// 7.1.4 ToInteger
-var ceil  = Math.ceil
-  , floor = Math.floor;
-module.exports = function(it){
-  return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
-};
-
-/***/ }),
-/* 48 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 7.1.1 ToPrimitive(input [, PreferredType])
-var isObject = __webpack_require__(18);
-// instead of the ES6 spec version, we didn't implement @@toPrimitive case
-// and the second argument - flag - preferred type is a string
-module.exports = function(it, S){
-  if(!isObject(it))return it;
-  var fn, val;
-  if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
-  if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;
-  if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
-  throw TypeError("Can't convert object to primitive value");
-};
-
-/***/ }),
-/* 49 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var global         = __webpack_require__(4)
-  , core           = __webpack_require__(2)
-  , LIBRARY        = __webpack_require__(28)
-  , wksExt         = __webpack_require__(50)
-  , defineProperty = __webpack_require__(8).f;
-module.exports = function(name){
-  var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
-  if(name.charAt(0) != '_' && !(name in $Symbol))defineProperty($Symbol, name, {value: wksExt.f(name)});
-};
-
-/***/ }),
-/* 50 */
-/***/ (function(module, exports, __webpack_require__) {
-
-exports.f = __webpack_require__(3);
-
-/***/ }),
-/* 51 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var drain = __webpack_require__(24)
-
-module.exports = function reduce (reducer, acc, cb ) {
-  if(!cb) cb = acc, acc = null
-  var sink = drain(function (data) {
-    acc = reducer(acc, data)
-  }, function (err) {
-    cb(err, acc)
-  })
-  if (arguments.length === 2)
-    return function (source) {
-      source(null, function (end, data) {
-        //if ended immediately, and no initial...
-        if(end) return cb(end === true ? null : end)
-        acc = data; sink(source)
-      })
-    }
-  else
-    return sink
-}
-
-
-/***/ }),
-/* 52 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var abortCb = __webpack_require__(78)
-
-module.exports = function values (array, onAbort) {
-  if(!array)
-    return function (abort, cb) {
-      if(abort) return abortCb(cb, abort, onAbort)
-      return cb(true)
-    }
-  if(!Array.isArray(array))
-    array = Object.keys(array).map(function (k) {
-      return array[k]
-    })
-  var i = 0
-  return function (abort, cb) {
-    if(abort)
-      return abortCb(cb, abort, onAbort)
-    if(i >= array.length)
-      cb(true)
-    else
-      cb(null, array[i++])
-  }
-}
-
-
-/***/ }),
-/* 53 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var tester = __webpack_require__(79)
-
-module.exports = function filter (test) {
-  //regexp
-  test = tester(test)
-  return function (read) {
-    return function next (end, cb) {
-      var sync, loop = true
-      while(loop) {
-        loop = false
-        sync = true
-        read(end, function (end, data) {
-          if(!end && !test(data))
-            return sync ? loop = true : next(end, cb)
-          cb(end, data)
-        })
-        sync = false
-      }
-    }
-  }
-}
-
-
-
-/***/ }),
-/* 54 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _defineProperty2 = __webpack_require__(103);
-
-var _defineProperty3 = _interopRequireDefault(_defineProperty2);
-
-var _iterator2 = __webpack_require__(57);
-
-var _iterator3 = _interopRequireDefault(_iterator2);
-
-var _getPrototypeOf = __webpack_require__(14);
-
-var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
-
-var _assign = __webpack_require__(9);
-
-var _assign2 = _interopRequireDefault(_assign);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-var _possibleConstructorReturn2 = __webpack_require__(16);
-
-var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
-var _inherits2 = __webpack_require__(15);
-
-var _inherits3 = _interopRequireDefault(_inherits2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Store = __webpack_require__(26);
-var EventIndex = __webpack_require__(55);
-
-var EventStore = function (_Store) {
-  (0, _inherits3.default)(EventStore, _Store);
-
-  function EventStore(ipfs, id, dbname) {
-    var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-    (0, _classCallCheck3.default)(this, EventStore);
-
-    if (options.Index === undefined) (0, _assign2.default)(options, { Index: EventIndex });
-    return (0, _possibleConstructorReturn3.default)(this, (EventStore.__proto__ || (0, _getPrototypeOf2.default)(EventStore)).call(this, ipfs, id, dbname, options));
-  }
-
-  (0, _createClass3.default)(EventStore, [{
-    key: 'add',
-    value: function add(data) {
-      return this._addOperation({
-        op: 'ADD',
-        key: null,
-        value: data,
-        meta: {
-          ts: new Date().getTime()
-        }
-      });
-    }
-  }, {
-    key: 'get',
-    value: function get(hash) {
-      return this.iterator({ gte: hash, limit: 1 }).collect()[0];
-    }
-  }, {
-    key: 'iterator',
-    value: function iterator(options) {
-      var _iterator;
-
-      var messages = this._query(options);
-      var currentIndex = 0;
-      var iterator = (_iterator = {}, (0, _defineProperty3.default)(_iterator, _iterator3.default, function () {
-        return this;
-      }), (0, _defineProperty3.default)(_iterator, 'next', function next() {
-        var item = { value: null, done: true };
-        if (currentIndex < messages.length) {
-          item = { value: messages[currentIndex], done: false };
-          currentIndex++;
-        }
-        return item;
-      }), (0, _defineProperty3.default)(_iterator, 'collect', function collect() {
-        return messages;
-      }), _iterator);
-
-      return iterator;
-    }
-  }, {
-    key: '_query',
-    value: function _query(opts) {
-      if (!opts) opts = {};
-
-      var amount = opts.limit ? opts.limit > -1 ? opts.limit : this._index.get().length : 1; // Return 1 if no limit is provided
-      var events = this._index.get().slice();
-      var result = [];
-
-      if (opts.gt || opts.gte) {
-        // Greater than case
-        result = this._read(events, opts.gt ? opts.gt : opts.gte, amount, opts.gte ? true : false);
-      } else {
-        // Lower than and lastN case, search latest first by reversing the sequence
-        result = this._read(events.reverse(), opts.lt ? opts.lt : opts.lte, amount, opts.lte || !opts.lt).reverse();
-      }
-
-      return result;
-    }
-  }, {
-    key: '_read',
-    value: function _read(ops, hash, amount, inclusive) {
-      // Find the index of the gt/lt hash, or start from the beginning of the array if not found
-      var index = ops.map(function (e) {
-        return e.hash;
-      }).indexOf(hash);
-      var startIndex = Math.max(index, 0);
-      // If gte/lte is set, we include the given hash, if not, start from the next element
-      startIndex += inclusive ? 0 : 1;
-      // Slice the array to its requested size
-      var res = ops.slice(startIndex).slice(0, amount);
-      return res;
-    }
-  }]);
-  return EventStore;
-}(Store);
-
-module.exports = EventStore;
-
-/***/ }),
-/* 55 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _keys = __webpack_require__(13);
-
-var _keys2 = _interopRequireDefault(_keys);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var EventIndex = function () {
-  function EventIndex() {
-    (0, _classCallCheck3.default)(this, EventIndex);
-
-    this._index = {};
-  }
-
-  (0, _createClass3.default)(EventIndex, [{
-    key: 'get',
-    value: function get() {
-      var _this = this;
-
-      return (0, _keys2.default)(this._index).map(function (f) {
-        return _this._index[f];
-      });
-    }
-  }, {
-    key: 'updateIndex',
-    value: function updateIndex(oplog) {
-      var _this2 = this;
-
-      oplog.items.reduce(function (handled, item) {
-        if (!handled.includes(item.hash) && !_this2._index[item.hash]) {
-          handled.push(item.hash);
-          if (item.payload.op === 'ADD') _this2._index[item.hash] = item;
-        }
-        return handled;
-      }, []);
-    }
-  }]);
-  return EventIndex;
-}();
-
-module.exports = EventIndex;
-
-/***/ }),
-/* 56 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(108), __esModule: true };
-
-/***/ }),
-/* 57 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(115), __esModule: true };
-
-/***/ }),
-/* 58 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-exports.__esModule = true;
-
-var _iterator = __webpack_require__(57);
-
-var _iterator2 = _interopRequireDefault(_iterator);
-
-var _symbol = __webpack_require__(102);
-
-var _symbol2 = _interopRequireDefault(_symbol);
-
-var _typeof = typeof _symbol2.default === "function" && typeof _iterator2.default === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj; };
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-exports.default = typeof _symbol2.default === "function" && _typeof(_iterator2.default) === "symbol" ? function (obj) {
-  return typeof obj === "undefined" ? "undefined" : _typeof(obj);
-} : function (obj) {
-  return obj && typeof _symbol2.default === "function" && obj.constructor === _symbol2.default && obj !== _symbol2.default.prototype ? "symbol" : typeof obj === "undefined" ? "undefined" : _typeof(obj);
-};
-
-/***/ }),
-/* 59 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// getting tag from 19.1.3.6 Object.prototype.toString()
-var cof = __webpack_require__(21)
-  , TAG = __webpack_require__(3)('toStringTag')
-  // ES3 wrong here
-  , ARG = cof(function(){ return arguments; }()) == 'Arguments';
-
-// fallback for IE11 Script Access Denied error
-var tryGet = function(it, key){
-  try {
-    return it[key];
-  } catch(e){ /* empty */ }
-};
-
-module.exports = function(it){
-  var O, T, B;
-  return it === undefined ? 'Undefined' : it === null ? 'Null'
-    // @@toStringTag case
-    : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T
-    // builtinTag case
-    : ARG ? cof(O)
-    // ES3 arguments fallback
-    : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;
-};
-
-/***/ }),
-/* 60 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = __webpack_require__(4).document && document.documentElement;
-
-/***/ }),
-/* 61 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = !__webpack_require__(6) && !__webpack_require__(17)(function(){
-  return Object.defineProperty(__webpack_require__(40)('div'), 'a', {get: function(){ return 7; }}).a != 7;
-});
-
-/***/ }),
-/* 62 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// fallback for non-array-like ES3 and non-enumerable old V8 strings
-var cof = __webpack_require__(21);
-module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
-  return cof(it) == 'String' ? it.split('') : Object(it);
-};
-
-/***/ }),
-/* 63 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var LIBRARY        = __webpack_require__(28)
-  , $export        = __webpack_require__(7)
-  , redefine       = __webpack_require__(69)
-  , hide           = __webpack_require__(11)
-  , has            = __webpack_require__(10)
-  , Iterators      = __webpack_require__(23)
-  , $iterCreate    = __webpack_require__(125)
-  , setToStringTag = __webpack_require__(31)
-  , getPrototypeOf = __webpack_require__(67)
-  , ITERATOR       = __webpack_require__(3)('iterator')
-  , BUGGY          = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`
-  , FF_ITERATOR    = '@@iterator'
-  , KEYS           = 'keys'
-  , VALUES         = 'values';
-
-var returnThis = function(){ return this; };
-
-module.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){
-  $iterCreate(Constructor, NAME, next);
-  var getMethod = function(kind){
-    if(!BUGGY && kind in proto)return proto[kind];
-    switch(kind){
-      case KEYS: return function keys(){ return new Constructor(this, kind); };
-      case VALUES: return function values(){ return new Constructor(this, kind); };
-    } return function entries(){ return new Constructor(this, kind); };
-  };
-  var TAG        = NAME + ' Iterator'
-    , DEF_VALUES = DEFAULT == VALUES
-    , VALUES_BUG = false
-    , proto      = Base.prototype
-    , $native    = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]
-    , $default   = $native || getMethod(DEFAULT)
-    , $entries   = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined
-    , $anyNative = NAME == 'Array' ? proto.entries || $native : $native
-    , methods, key, IteratorPrototype;
-  // Fix native
-  if($anyNative){
-    IteratorPrototype = getPrototypeOf($anyNative.call(new Base));
-    if(IteratorPrototype !== Object.prototype){
-      // Set @@toStringTag to native iterators
-      setToStringTag(IteratorPrototype, TAG, true);
-      // fix for some old engines
-      if(!LIBRARY && !has(IteratorPrototype, ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);
-    }
-  }
-  // fix Array#{values, @@iterator}.name in V8 / FF
-  if(DEF_VALUES && $native && $native.name !== VALUES){
-    VALUES_BUG = true;
-    $default = function values(){ return $native.call(this); };
-  }
-  // Define iterator
-  if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){
-    hide(proto, ITERATOR, $default);
-  }
-  // Plug for library
-  Iterators[NAME] = $default;
-  Iterators[TAG]  = returnThis;
-  if(DEFAULT){
-    methods = {
-      values:  DEF_VALUES ? $default : getMethod(VALUES),
-      keys:    IS_SET     ? $default : getMethod(KEYS),
-      entries: $entries
-    };
-    if(FORCED)for(key in methods){
-      if(!(key in proto))redefine(proto, key, methods[key]);
-    } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
-  }
-  return methods;
-};
-
-/***/ }),
-/* 64 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var pIE            = __webpack_require__(29)
-  , createDesc     = __webpack_require__(30)
-  , toIObject      = __webpack_require__(12)
-  , toPrimitive    = __webpack_require__(48)
-  , has            = __webpack_require__(10)
-  , IE8_DOM_DEFINE = __webpack_require__(61)
-  , gOPD           = Object.getOwnPropertyDescriptor;
-
-exports.f = __webpack_require__(6) ? gOPD : function getOwnPropertyDescriptor(O, P){
-  O = toIObject(O);
-  P = toPrimitive(P, true);
-  if(IE8_DOM_DEFINE)try {
-    return gOPD(O, P);
-  } catch(e){ /* empty */ }
-  if(has(O, P))return createDesc(!pIE.f.call(O, P), O[P]);
-};
-
-/***/ }),
-/* 65 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
-var toIObject = __webpack_require__(12)
-  , gOPN      = __webpack_require__(66).f
-  , toString  = {}.toString;
-
-var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
-  ? Object.getOwnPropertyNames(window) : [];
-
-var getWindowNames = function(it){
-  try {
-    return gOPN(it);
-  } catch(e){
-    return windowNames.slice();
-  }
-};
-
-module.exports.f = function getOwnPropertyNames(it){
-  return windowNames && toString.call(it) == '[object Window]' ? getWindowNames(it) : gOPN(toIObject(it));
-};
-
-
-/***/ }),
-/* 66 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
-var $keys      = __webpack_require__(68)
-  , hiddenKeys = __webpack_require__(41).concat('length', 'prototype');
-
-exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O){
-  return $keys(O, hiddenKeys);
-};
-
-/***/ }),
-/* 67 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
-var has         = __webpack_require__(10)
-  , toObject    = __webpack_require__(32)
-  , IE_PROTO    = __webpack_require__(45)('IE_PROTO')
-  , ObjectProto = Object.prototype;
-
-module.exports = Object.getPrototypeOf || function(O){
-  O = toObject(O);
-  if(has(O, IE_PROTO))return O[IE_PROTO];
-  if(typeof O.constructor == 'function' && O instanceof O.constructor){
-    return O.constructor.prototype;
-  } return O instanceof Object ? ObjectProto : null;
-};
-
-/***/ }),
-/* 68 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var has          = __webpack_require__(10)
-  , toIObject    = __webpack_require__(12)
-  , arrayIndexOf = __webpack_require__(118)(false)
-  , IE_PROTO     = __webpack_require__(45)('IE_PROTO');
-
-module.exports = function(object, names){
-  var O      = toIObject(object)
-    , i      = 0
-    , result = []
-    , key;
-  for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
-  // Don't enum bug & hidden keys
-  while(names.length > i)if(has(O, key = names[i++])){
-    ~arrayIndexOf(result, key) || result.push(key);
-  }
-  return result;
-};
-
-/***/ }),
-/* 69 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = __webpack_require__(11);
-
-/***/ }),
-/* 70 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var ctx                = __webpack_require__(22)
-  , invoke             = __webpack_require__(121)
-  , html               = __webpack_require__(60)
-  , cel                = __webpack_require__(40)
-  , global             = __webpack_require__(4)
-  , process            = global.process
-  , setTask            = global.setImmediate
-  , clearTask          = global.clearImmediate
-  , MessageChannel     = global.MessageChannel
-  , counter            = 0
-  , queue              = {}
-  , ONREADYSTATECHANGE = 'onreadystatechange'
-  , defer, channel, port;
-var run = function(){
-  var id = +this;
-  if(queue.hasOwnProperty(id)){
-    var fn = queue[id];
-    delete queue[id];
-    fn();
-  }
-};
-var listener = function(event){
-  run.call(event.data);
-};
-// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
-if(!setTask || !clearTask){
-  setTask = function setImmediate(fn){
-    var args = [], i = 1;
-    while(arguments.length > i)args.push(arguments[i++]);
-    queue[++counter] = function(){
-      invoke(typeof fn == 'function' ? fn : Function(fn), args);
-    };
-    defer(counter);
-    return counter;
-  };
-  clearTask = function clearImmediate(id){
-    delete queue[id];
-  };
-  // Node.js 0.8-
-  if(__webpack_require__(21)(process) == 'process'){
-    defer = function(id){
-      process.nextTick(ctx(run, id, 1));
-    };
-  // Browsers with MessageChannel, includes WebWorkers
-  } else if(MessageChannel){
-    channel = new MessageChannel;
-    port    = channel.port2;
-    channel.port1.onmessage = listener;
-    defer = ctx(port.postMessage, port, 1);
-  // Browsers with postMessage, skip WebWorkers
-  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
-  } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){
-    defer = function(id){
-      global.postMessage(id + '', '*');
-    };
-    global.addEventListener('message', listener, false);
-  // IE8-
-  } else if(ONREADYSTATECHANGE in cel('script')){
-    defer = function(id){
-      html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){
-        html.removeChild(this);
-        run.call(id);
-      };
-    };
-  // Rest old browsers
-  } else {
-    defer = function(id){
-      setTimeout(ctx(run, id, 1), 0);
-    };
-  }
-}
-module.exports = {
-  set:   setTask,
-  clear: clearTask
-};
-
-/***/ }),
-/* 71 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 7.1.15 ToLength
-var toInteger = __webpack_require__(47)
-  , min       = Math.min;
-module.exports = function(it){
-  return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
-};
-
-/***/ }),
-/* 72 */
-/***/ (function(module, exports) {
-
-
-
-/***/ }),
-/* 73 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var $at  = __webpack_require__(137)(true);
-
-// 21.1.3.27 String.prototype[@@iterator]()
-__webpack_require__(63)(String, 'String', function(iterated){
-  this._t = String(iterated); // target
-  this._i = 0;                // next index
-// 21.1.5.2.1 %StringIteratorPrototype%.next()
-}, function(){
-  var O     = this._t
-    , index = this._i
-    , point;
-  if(index >= O.length)return {value: undefined, done: true};
-  point = $at(O, index);
-  this._i += point.length;
-  return {value: point, done: false};
-});
-
-/***/ }),
-/* 74 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(140);
-var global        = __webpack_require__(4)
-  , hide          = __webpack_require__(11)
-  , Iterators     = __webpack_require__(23)
-  , TO_STRING_TAG = __webpack_require__(3)('toStringTag');
-
-for(var collections = ['NodeList', 'DOMTokenList', 'MediaList', 'StyleSheetList', 'CSSRuleList'], i = 0; i < 5; i++){
-  var NAME       = collections[i]
-    , Collection = global[NAME]
-    , proto      = Collection && Collection.prototype;
-  if(proto && !proto[TO_STRING_TAG])hide(proto, TO_STRING_TAG, NAME);
-  Iterators[NAME] = Iterators.Array;
-}
-
-/***/ }),
-/* 75 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var sources  = __webpack_require__(173)
-var sinks    = __webpack_require__(167)
-var throughs = __webpack_require__(179)
-
-exports = module.exports = __webpack_require__(163)
-
-for(var k in sources)
-  exports[k] = sources[k]
-
-for(var k in throughs)
-  exports[k] = throughs[k]
-
-for(var k in sinks)
-  exports[k] = sinks[k]
-
-
-
-/***/ }),
-/* 76 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var abortCb = __webpack_require__(78)
-
-module.exports = function once (value, onAbort) {
-  return function (abort, cb) {
-    if(abort)
-      return abortCb(cb, abort, onAbort)
-    if(value != null) {
-      var _value = value; value = null
-      cb(null, _value)
-    } else
-      cb(true)
-  }
-}
-
-
-
-
-/***/ }),
-/* 77 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-function id (e) { return e }
-var prop = __webpack_require__(25)
-var filter = __webpack_require__(53)
-
-//drop items you have already seen.
-module.exports = function unique (field, invert) {
-  field = prop(field) || id
-  var seen = {}
-  return filter(function (data) {
-    var key = field(data)
-    if(seen[key]) return !!invert //false, by default
-    else seen[key] = true
-    return !invert //true by default
-  })
-}
-
-
-
-/***/ }),
-/* 78 */
-/***/ (function(module, exports) {
-
-module.exports = function abortCb(cb, abort, onAbort) {
-  cb(abort)
-  onAbort && onAbort(abort === true ? null: abort)
-  return
-}
-
-
-
-/***/ }),
-/* 79 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var prop = __webpack_require__(25)
-
-function id (e) { return e }
-
-module.exports = function tester (test) {
-  return (
-    'object' === typeof test && 'function' === typeof test.test //regexp
-    ? function (data) { return test.test(data) }
-    : prop (test) || id
-  )
-}
-
-
-/***/ }),
-/* 80 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var apply = Function.prototype.apply;
-
-// DOM APIs, for completeness
-
-exports.setTimeout = function() {
-  return new Timeout(apply.call(setTimeout, window, arguments), clearTimeout);
-};
-exports.setInterval = function() {
-  return new Timeout(apply.call(setInterval, window, arguments), clearInterval);
-};
-exports.clearTimeout =
-exports.clearInterval = function(timeout) {
-  if (timeout) {
-    timeout.close();
-  }
-};
-
-function Timeout(id, clearFn) {
-  this._id = id;
-  this._clearFn = clearFn;
-}
-Timeout.prototype.unref = Timeout.prototype.ref = function() {};
-Timeout.prototype.close = function() {
-  this._clearFn.call(window, this._id);
-};
-
-// Does not start the time, just sets up the members needed.
-exports.enroll = function(item, msecs) {
-  clearTimeout(item._idleTimeoutId);
-  item._idleTimeout = msecs;
-};
-
-exports.unenroll = function(item) {
-  clearTimeout(item._idleTimeoutId);
-  item._idleTimeout = -1;
-};
-
-exports._unrefActive = exports.active = function(item) {
-  clearTimeout(item._idleTimeoutId);
-
-  var msecs = item._idleTimeout;
-  if (msecs >= 0) {
-    item._idleTimeoutId = setTimeout(function onTimeout() {
-      if (item._onTimeout)
-        item._onTimeout();
-    }, msecs);
-  }
-};
-
-// setimmediate attaches itself to the global object
-__webpack_require__(186);
-exports.setImmediate = setImmediate;
-exports.clearImmediate = clearImmediate;
-
-
-/***/ }),
-/* 81 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(Buffer) {
-
-var _stringify = __webpack_require__(37);
-
-var _stringify2 = _interopRequireDefault(_stringify);
-
-var _promise = __webpack_require__(27);
-
-var _promise2 = _interopRequireDefault(_promise);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var pull = __webpack_require__(75);
-var BlobStore = __webpack_require__(153);
-var Lock = __webpack_require__(158);
-
-var filePath = void 0;
-var store = void 0;
-var cache = {};
-var lock = new Lock();
-
-var Cache = function () {
-  function Cache() {
-    (0, _classCallCheck3.default)(this, Cache);
-  }
-
-  (0, _createClass3.default)(Cache, null, [{
-    key: 'set',
-    value: function set(key, value) {
-      return new _promise2.default(function (resolve, reject) {
-        if (cache[key] === value) return resolve();
-
-        cache[key] = value;
-        if (filePath && store) {
-          lock(filePath, function (release) {
-            // console.log("write cache:", filePath, JSON.stringify(cache, null, 2))
-            pull(pull.values([cache]), pull.map(function (v) {
-              return (0, _stringify2.default)(v, null, 2);
-            }), store.write(filePath, release(function (err) {
-              if (err) {
-                return reject(err);
-              }
-              resolve();
-            })));
-          });
-        } else {
-          resolve();
-        }
-      });
-    }
-  }, {
-    key: 'get',
-    value: function get(key) {
-      return cache[key];
-    }
-  }, {
-    key: 'loadCache',
-    value: function loadCache(cachePath) {
-      var cacheFile = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'orbit-db.cache';
-
-      cache = {};
-
-      if (!cachePath) return _promise2.default.resolve();
-
-      // console.log("cache data:", cachePath)
-      store = new BlobStore(cachePath);
-      filePath = cacheFile;
-
-      return new _promise2.default(function (resolve, reject) {
-
-        // console.log("load cache:", cacheFile)
-        store.exists(cacheFile, function (err, exists) {
-          if (err || !exists) {
-            return resolve();
-          }
-
-          lock(cacheFile, function (release) {
-            pull(store.read(cacheFile), pull.collect(release(function (err, res) {
-              if (err) {
-                return reject(err);
-              }
-
-              cache = JSON.parse(Buffer.concat(res).toString() || '{}');
-
-              resolve();
-            })));
-          });
-        });
-      });
-    }
-  }, {
-    key: 'reset',
-    value: function reset() {
-      cache = {};
-      store = null;
-    }
-  }]);
-  return Cache;
-}();
-
-module.exports = Cache;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer))
-
-/***/ }),
-/* 82 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _getPrototypeOf = __webpack_require__(14);
-
-var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
-
-var _assign = __webpack_require__(9);
-
-var _assign2 = _interopRequireDefault(_assign);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-var _possibleConstructorReturn2 = __webpack_require__(16);
-
-var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
-var _inherits2 = __webpack_require__(15);
-
-var _inherits3 = _interopRequireDefault(_inherits2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Store = __webpack_require__(26);
-var CounterIndex = __webpack_require__(93);
-
-var CounterStore = function (_Store) {
-  (0, _inherits3.default)(CounterStore, _Store);
-
-  function CounterStore(ipfs, id, dbname) {
-    var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-    (0, _classCallCheck3.default)(this, CounterStore);
-
-    if (!options.Index) (0, _assign2.default)(options, { Index: CounterIndex });
-    return (0, _possibleConstructorReturn3.default)(this, (CounterStore.__proto__ || (0, _getPrototypeOf2.default)(CounterStore)).call(this, ipfs, id, dbname, options));
-  }
-
-  (0, _createClass3.default)(CounterStore, [{
-    key: 'inc',
-    value: function inc(amount) {
-      var counter = this._index.get();
-      if (counter) {
-        counter.increment(amount);
-        return this._addOperation({
-          op: 'COUNTER',
-          key: null,
-          value: counter.payload,
-          meta: {
-            ts: new Date().getTime()
-          }
-        });
-      }
-    }
-  }, {
-    key: 'value',
-    get: function get() {
-      return this._index.get().value;
-    }
-  }]);
-  return CounterStore;
-}(Store);
-
-module.exports = CounterStore;
-
-/***/ }),
-/* 83 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _keys = __webpack_require__(13);
-
-var _keys2 = _interopRequireDefault(_keys);
-
-var _getPrototypeOf = __webpack_require__(14);
-
-var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
-
-var _assign = __webpack_require__(9);
-
-var _assign2 = _interopRequireDefault(_assign);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-var _possibleConstructorReturn2 = __webpack_require__(16);
-
-var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
-var _inherits2 = __webpack_require__(15);
-
-var _inherits3 = _interopRequireDefault(_inherits2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Store = __webpack_require__(26);
-var DocumentIndex = __webpack_require__(94);
-
-var DocumentStore = function (_Store) {
-  (0, _inherits3.default)(DocumentStore, _Store);
-
-  function DocumentStore(ipfs, id, dbname, options) {
-    (0, _classCallCheck3.default)(this, DocumentStore);
-
-    if (!options) options = {};
-    if (!options.indexBy) (0, _assign2.default)(options, { indexBy: '_id' });
-    if (!options.Index) (0, _assign2.default)(options, { Index: DocumentIndex });
-    return (0, _possibleConstructorReturn3.default)(this, (DocumentStore.__proto__ || (0, _getPrototypeOf2.default)(DocumentStore)).call(this, ipfs, id, dbname, options));
-  }
-
-  (0, _createClass3.default)(DocumentStore, [{
-    key: 'get',
-    value: function get(key) {
-      var _this2 = this;
-
-      return (0, _keys2.default)(this._index._index).filter(function (e) {
-        return e.indexOf(key) !== -1;
-      }).map(function (e) {
-        return _this2._index.get(e);
-      });
-    }
-  }, {
-    key: 'query',
-    value: function query(mapper) {
-      var _this3 = this;
-
-      return (0, _keys2.default)(this._index._index).map(function (e) {
-        return _this3._index.get(e);
-      }).filter(function (e) {
-        return mapper(e);
-      });
-    }
-  }, {
-    key: 'put',
-    value: function put(doc) {
-      return this._addOperation({
-        op: 'PUT',
-        key: doc[this.options.indexBy],
-        value: doc,
-        meta: {
-          ts: new Date().getTime()
-        }
-      });
-    }
-  }, {
-    key: 'del',
-    value: function del(key) {
-      return this._addOperation({
-        op: 'DEL',
-        key: key,
-        value: null,
-        meta: {
-          ts: new Date().getTime()
-        }
-      });
-    }
-  }]);
-  return DocumentStore;
-}(Store);
-
-module.exports = DocumentStore;
-
-/***/ }),
-/* 84 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _getPrototypeOf = __webpack_require__(14);
-
-var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
-
-var _assign = __webpack_require__(9);
-
-var _assign2 = _interopRequireDefault(_assign);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-var _possibleConstructorReturn2 = __webpack_require__(16);
-
-var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
-var _inherits2 = __webpack_require__(15);
-
-var _inherits3 = _interopRequireDefault(_inherits2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var EventStore = __webpack_require__(54);
-var FeedIndex = __webpack_require__(95);
-
-var FeedStore = function (_EventStore) {
-  (0, _inherits3.default)(FeedStore, _EventStore);
-
-  function FeedStore(ipfs, id, dbname, options) {
-    (0, _classCallCheck3.default)(this, FeedStore);
-
-    if (!options) options = {};
-    if (!options.Index) (0, _assign2.default)(options, { Index: FeedIndex });
-    return (0, _possibleConstructorReturn3.default)(this, (FeedStore.__proto__ || (0, _getPrototypeOf2.default)(FeedStore)).call(this, ipfs, id, dbname, options));
-  }
-
-  (0, _createClass3.default)(FeedStore, [{
-    key: 'remove',
-    value: function remove(hash) {
-      var operation = {
-        op: 'DEL',
-        key: null,
-        value: hash,
-        meta: {
-          ts: new Date().getTime()
-        }
-      };
-      return this._addOperation(operation);
-    }
-  }]);
-  return FeedStore;
-}(EventStore);
-
-module.exports = FeedStore;
-
-/***/ }),
-/* 85 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _getPrototypeOf = __webpack_require__(14);
-
-var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
-
-var _assign = __webpack_require__(9);
-
-var _assign2 = _interopRequireDefault(_assign);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-var _possibleConstructorReturn2 = __webpack_require__(16);
-
-var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
-var _inherits2 = __webpack_require__(15);
-
-var _inherits3 = _interopRequireDefault(_inherits2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Store = __webpack_require__(26);
-var KeyValueIndex = __webpack_require__(96);
-
-var KeyValueStore = function (_Store) {
-  (0, _inherits3.default)(KeyValueStore, _Store);
-
-  function KeyValueStore(ipfs, id, dbname, options) {
-    (0, _classCallCheck3.default)(this, KeyValueStore);
-
-    var opts = (0, _assign2.default)({}, { Index: KeyValueIndex });
-    (0, _assign2.default)(opts, options);
-    return (0, _possibleConstructorReturn3.default)(this, (KeyValueStore.__proto__ || (0, _getPrototypeOf2.default)(KeyValueStore)).call(this, ipfs, id, dbname, opts));
-  }
-
-  (0, _createClass3.default)(KeyValueStore, [{
-    key: 'get',
-    value: function get(key) {
-      return this._index.get(key);
-    }
-  }, {
-    key: 'set',
-    value: function set(key, data) {
-      return this.put(key, data);
-    }
-  }, {
-    key: 'put',
-    value: function put(key, data) {
-      return this._addOperation({
-        op: 'PUT',
-        key: key,
-        value: data,
-        meta: {
-          ts: new Date().getTime()
-        }
-      });
-    }
-  }, {
-    key: 'del',
-    value: function del(key) {
-      return this._addOperation({
-        op: 'DEL',
-        key: key,
-        value: null,
-        meta: {
-          ts: new Date().getTime()
-        }
-      });
-    }
-  }]);
-  return KeyValueStore;
-}(Store);
-
-module.exports = KeyValueStore;
-
-/***/ }),
-/* 86 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-module.exports = __webpack_require__(97);
-
-/***/ }),
-/* 87 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _keys = __webpack_require__(13);
-
-var _keys2 = _interopRequireDefault(_keys);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var isEqual = __webpack_require__(88).isEqual;
-
-var GCounter = function () {
-  function GCounter(id, payload) {
-    (0, _classCallCheck3.default)(this, GCounter);
-
-    this.id = id;
-    this._counters = payload ? payload : {};
-    this._counters[this.id] = this._counters[this.id] ? this._counters[this.id] : 0;
-  }
-
-  (0, _createClass3.default)(GCounter, [{
-    key: 'increment',
-    value: function increment(amount) {
-      if (!amount) amount = 1;
-      this._counters[this.id] = this._counters[this.id] + amount;
-    }
-  }, {
-    key: 'compare',
-    value: function compare(other) {
-      if (other.id !== this.id) return false;
-
-      return isEqual(other._counters, this._counters);
-    }
-  }, {
-    key: 'merge',
-    value: function merge(other) {
-      var _this = this;
-
-      (0, _keys2.default)(other._counters).forEach(function (f) {
-        _this._counters[f] = Math.max(_this._counters[f] ? _this._counters[f] : 0, other._counters[f]);
-      });
-    }
-  }, {
-    key: 'value',
-    get: function get() {
-      var _this2 = this;
-
-      return (0, _keys2.default)(this._counters).map(function (f) {
-        return _this2._counters[f];
-      }).reduce(function (previousValue, currentValue) {
-        return previousValue + currentValue;
-      }, 0);
-    }
-  }, {
-    key: 'payload',
-    get: function get() {
-      return { id: this.id, counters: this._counters };
-    }
-  }], [{
-    key: 'from',
-    value: function from(payload) {
-      return new GCounter(payload.id, payload.counters);
-    }
-  }]);
-  return GCounter;
-}();
-
-module.exports = GCounter;
-
-/***/ }),
-/* 88 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _getOwnPropertyNames = __webpack_require__(100);
-
-var _getOwnPropertyNames2 = _interopRequireDefault(_getOwnPropertyNames);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-exports.isEqual = function (a, b) {
-  var propsA = (0, _getOwnPropertyNames2.default)(a);
-  var propsB = (0, _getOwnPropertyNames2.default)(b);
-
-  if (propsA.length !== propsB.length) return false;
-
-  for (var i = 0; i < propsA.length; i++) {
-    var prop = propsA[i];
-    if (a[prop] !== b[prop]) return false;
-  }
-
-  return true;
-};
-
-/***/ }),
-/* 89 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(Buffer) {
-
-var _stringify = __webpack_require__(37);
-
-var _stringify2 = _interopRequireDefault(_stringify);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Entry = function () {
-  function Entry() {
-    (0, _classCallCheck3.default)(this, Entry);
-  }
-
-  (0, _createClass3.default)(Entry, null, [{
-    key: "create",
-
-    /**
-     * Create an Entry
-     * @param {IPFS} ipfs - An IPFS instance
-     * @param {string|Buffer|Object|Array} data - Data of the entry to be added
-     * @param {Array} [next=[]] Parents of the entry
-     * @example
-     * const entry = await Entry.create(ipfs, 'hello')
-     * console.log(entry)
-     * // { hash: "Qm...Foo", payload: "hello", next: [] }
-     * @returns {Promise}
-     */
-    value: function create(ipfs) {
-      var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
-      var next = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
-
-      if (!ipfs) throw new Error("Entry requires ipfs instance");
-
-      // convert single objects to an array and entry objects to single hashes
-      var nexts = next !== null && Array.isArray(next) ? next.filter(function (e) {
-        return e !== undefined;
-      }).map(function (e) {
-        return e.hash ? e.hash : e;
-      }) : [next !== null && next.hash ? next.hash : next];
-
-      var entry = {
-        hash: null, // "Qm...Foo", we'll set the hash after ipfsfying the data structure, 
-        payload: data, // Can be any JSON.stringifyable data
-        next: nexts // Array of IPFS hashes
-      };
-
-      return Entry.toMultihash(ipfs, entry).then(function (hash) {
-        entry.hash = hash;
-        return entry;
-      });
-    }
-
-    /**
-     * Get the multihash of an Entry
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {string|Buffer|Object|Array} [data] Data of the entry to be added
-     * @param {Array} [next=[]] Parents of the entry
-     * @example
-     * const hash = await Entry.toMultihash(ipfs, entry)
-     * console.log(hash)
-     * // "Qm...Foo"
-     * @returns {Promise}
-     */
-
-  }, {
-    key: "toMultihash",
-    value: function toMultihash(ipfs, entry) {
-      if (!ipfs) throw new Error("Entry requires ipfs instance");
-      var data = new Buffer((0, _stringify2.default)(entry));
-      return ipfs.object.put(data).then(function (res) {
-        return res.toJSON().multihash;
-      });
-    }
-
-    /**
-     * Create an Entry from a multihash
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {string} [hash] Multihash to create an Entry from
-     * @example
-     * const hash = await Entry.fromMultihash(ipfs, "Qm...Foo")
-     * console.log(hash)
-     * // { hash: "Qm...Foo", payload: "hello", next: [] }
-     * @returns {Promise}
-     */
-
-  }, {
-    key: "fromMultihash",
-    value: function fromMultihash(ipfs, hash) {
-      if (!ipfs) throw new Error("Entry requires ipfs instance");
-      if (!hash) throw new Error("Invalid hash: " + hash);
-      return ipfs.object.get(hash, { enc: 'base58' }).then(function (obj) {
-        return JSON.parse(obj.toJSON().data);
-      }).then(function (data) {
-        var entry = {
-          hash: hash,
-          payload: data.payload,
-          next: data.next
-        };
-        return entry;
-      });
-    }
-
-    /**
-     * Check if an entry has another entry as its child
-     * @param {Entry} [entry1] Entry to check from
-     * @param {Entry} [entry2] Child
-     * @returns {boolean}
-     */
-
-  }, {
-    key: "hasChild",
-    value: function hasChild(entry1, entry2) {
-      return entry1.next.includes(entry2.hash);
-    }
-
-    /**
-     * Check if an entry equals another entry
-     * @param {Entry} a
-     * @param {Entry} b
-     * @returns {boolean}
-     */
-
-  }, {
-    key: "compare",
-    value: function compare(a, b) {
-      return a.hash === b.hash;
-    }
-
-    /**
-     * @alias compare
-     */
-
-  }, {
-    key: "isEqual",
-    value: function isEqual(a, b) {
-      return a.hash === b.hash;
-    }
-  }]);
-  return Entry;
-}();
-
-module.exports = Entry;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer))
-
-/***/ }),
-/* 90 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(Buffer) {
-
-var _promise = __webpack_require__(27);
-
-var _promise2 = _interopRequireDefault(_promise);
-
-var _stringify = __webpack_require__(37);
-
-var _stringify2 = _interopRequireDefault(_stringify);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Entry = __webpack_require__(89);
-var mapSeries = __webpack_require__(91);
-
-/** 
- * ipfs-log
- *
- * @example
- * // https://github.com/haadcode/ipfs-log/blob/master/examples/log.js
- * const IPFS = require('ipfs-daemon')
- * const Log  = require('ipfs-log')
- * const ipfs = new IPFS()
- *
- * ipfs.on('ready', () => {
- *   const log1 = Log.create(ipfs, ['one'])
- *   const log2 = Log.create(ipfs, [{ two: 'hello' }, { ok: true }])
- *   const out = Log.join(ipfs, log2, log2)
- *     .collect()
- *     .map((e) => e.payload)
- *     .join('\n')
- *   console.log(out)
- *   // ['one', '{ two: 'hello' }', '{ ok: true }']
- * })
- */
-
-var Log = function () {
-  function Log(ipfs, entries, heads) {
-    (0, _classCallCheck3.default)(this, Log);
-
-    this._entries = entries || [];
-    this._heads = heads || LogUtils._findHeads(this) || [];
-  }
-
-  /**
-   * Returns the items in the log
-   * @returns {Array}
-   */
-
-
-  (0, _createClass3.default)(Log, [{
-    key: 'get',
-
-
-    /**
-     * Find a log entry
-     * @param {string} [hash] [The multihash of the entry]
-     * @returns {Entry|undefined}
-     */
-    value: function get(hash) {
-      return this.items.find(function (e) {
-        return e.hash === hash;
-      });
-    }
-
-    /**
-     * Returns the log entries as a formatted string
-     * @example
-     * two
-     * └─one
-     *   └─three
-     * @param {boolean} [withHash=false] - If set to 'true', the hash of the entry is included
-     * @returns {string}
-     */
-
-  }, {
-    key: 'toString',
-    value: function toString(withHash) {
-      var _this = this;
-
-      return this.items.slice().reverse().map(function (e, idx) {
-        var parents = LogUtils._findParents(_this, e);
-        var len = parents.length;
-        var padding = new Array(Math.max(len - 1, 0));
-        padding = len > 1 ? padding.fill('  ') : padding;
-        padding = len > 0 ? padding.concat(['└─']) : padding;
-        return padding.join('') + (withHash ? e.hash + ' ' : '') + e.payload;
-      }).join('\n');
-    }
-
-    /**
-     * Get the log in JSON format
-     * @returns {Object<{heads}>}
-     */
-
-  }, {
-    key: 'toJSON',
-    value: function toJSON() {
-      return { heads: this.heads };
-    }
-
-    /**
-     * Get the log as a Buffer
-     * @returns {Buffer}
-     */
-
-  }, {
-    key: 'toBuffer',
-    value: function toBuffer() {
-      return new Buffer((0, _stringify2.default)(this.toJSON()));
-    }
-  }, {
-    key: 'items',
-    get: function get() {
-      return this._entries;
-    }
-
-    /**
-     * Returns a list of heads as multihashes
-     * @returns {Array}
-     */
-
-  }, {
-    key: 'heads',
-    get: function get() {
-      return this._heads;
-    }
-  }]);
-  return Log;
-}();
-
-var LogUtils = function () {
-  function LogUtils() {
-    (0, _classCallCheck3.default)(this, LogUtils);
-  }
-
-  (0, _createClass3.default)(LogUtils, null, [{
-    key: 'create',
-
-    /**
-     * Create a new log
-     * @param {IPFS} ipfs An IPFS instance
-     * @param {string} id - ID for the log
-     * @param {Array} [entries] - Entries for this log
-     * @param {Array} [heads] - Heads for this log
-     * @returns {Log}
-     */
-    value: function create(ipfs, entries, heads) {
-      if (!ipfs) throw new Error('Ipfs instance not defined');
-      // TODO: if (Array.isArray(entries))
-      // TODO: entries.map((e) => Entry.isEntry(e) ? e : await Entry.create(ipfs, e))
-      return new Log(ipfs, entries, heads);
-    }
-
-    /**
-     * Create a new log starting from an entry
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {string} id
-     * @param {string} [hash] [Multihash of the entry to start from]
-     * @param {Number} length
-     * @param {function(hash, entry, parent, depth)} onProgressCallback
-     * @returns {Promise}
-     */
-
-  }, {
-    key: 'fromEntry',
-    value: function fromEntry(ipfs, hash) {
-      var length = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
-      var onProgressCallback = arguments[3];
-
-      return LogUtils._fetchRecursive(ipfs, hash, {}, length, 0, null, onProgressCallback).then(function (items) {
-        var log = LogUtils.create(ipfs);
-        items.reverse().forEach(function (e) {
-          return LogUtils._insert(ipfs, log, e);
-        });
-        log._heads = LogUtils._findHeads(log);
-        return log;
-      });
-    }
-
-    /**
-     * Create a log from multihash
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {string} [hash] Multihash to create the log from
-     * @param {Number} [length=-1] How many items to include in the log
-     * @returns {Promise}
-     */
-
-  }, {
-    key: 'fromMultihash',
-    value: function fromMultihash(ipfs, hash) {
-      var length = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
-      var onProgressCallback = arguments[3];
-
-      if (!ipfs) throw new Error('Ipfs instance not defined');
-      if (!hash) throw new Error('Invalid hash: ' + hash);
-      var logData = void 0;
-      return ipfs.object.get(hash, { enc: 'base58' }).then(function (res) {
-        return logData = JSON.parse(res.toJSON().data);
-      }).then(function (res) {
-        if (!logData.heads) throw new Error('Not a Log instance');
-        // Fetch logs starting from each head entry
-        var allLogs = logData.heads.sort(LogUtils._compare).map(function (f) {
-          return LogUtils.fromEntry(ipfs, f, length, onProgressCallback);
-        });
-        // Join all logs together to one log
-        var joinAll = function joinAll(logs) {
-          return LogUtils.joinAll(ipfs, logs);
-        };
-        return _promise2.default.all(allLogs).then(joinAll);
-      });
-    }
-
-    /**
-     * Get the log's multihash
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {Log} log
-     * @returns {Promise}
-     */
-
-  }, {
-    key: 'toMultihash',
-    value: function toMultihash(ipfs, log) {
-      if (!ipfs) throw new Error('Ipfs instance not defined');
-      if (!log) throw new Error('Log instance not defined');
-      if (log.items.length < 1) throw new Error('Can\'t serialize an empty log');
-      return ipfs.object.put(log.toBuffer()).then(function (res) {
-        return res.toJSON().multihash;
-      });
-    }
-
-    /**
-     * Add an entry to a log
-     * @description Adds an entry to the Log and returns a new Log. Doesn't modify the original Log.
-     * @memberof Log
-     * @static
-     * @param {IPFS} ipfs An IPFS instance
-     * @param {Log} log - The Log to add the entry to
-     * @param {string|Buffer|Object|Array} data - Data of the entry to be added
-     * @returns {Log}
-     */
-
-  }, {
-    key: 'append',
-    value: function append(ipfs, log, data) {
-      if (!ipfs) throw new Error('Ipfs instance not defined');
-      if (!log) throw new Error('Log instance not defined');
-      // Create the entry
-      return Entry.create(ipfs, data, log.heads).then(function (entry) {
-        // Add the entry to the previous log entries
-        var items = log.items.slice().concat([entry]);
-        // Set the heads of this log to the latest entry
-        var heads = [entry.hash];
-        // Create a new log instance
-        return new Log(ipfs, items, heads);
-      });
-    }
-
-    /**
-     * Join two logs
-     * 
-     * @description Joins two logs returning a new log. Doesn't mutate the original logs.
-     *
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {Log} a
-     * @param {Log} b
-     *
-     * @example
-     * const log = Log.join(ipfs, log1, log2)
-     * 
-     * @returns {Log}
-     */
-
-  }, {
-    key: 'join',
-    value: function join(ipfs, a, b, size) {
-      if (!ipfs) throw new Error('Ipfs instance not defined');
-      if (!a || !b) throw new Error('Log instance not defined');
-      if (!a.items || !b.items) throw new Error('Log to join must be an instance of Log');
-
-      // If size is not specified, join all entries by default
-      size = size ? size : a.items.length + b.items.length;
-
-      // Get the heads from both logs and sort them by their IDs
-      var getHeadEntries = function getHeadEntries(log) {
-        return log.heads.map(function (e) {
-          return log.get(e);
-        }).filter(function (e) {
-          return e !== undefined;
-        }).slice();
-      };
-
-      var headsA = getHeadEntries(a);
-      var headsB = getHeadEntries(b);
-      var heads = headsA.concat(headsB).map(function (e) {
-        return e.hash;
-      }).sort();
-
-      // Sort which log should come first based on heads' IDs
-      var aa = headsA[0] ? headsA[0].hash : null;
-      var bb = headsB[0] ? headsB[0].hash : null;
-      var isFirst = aa < bb;
-      var log1 = isFirst ? a : b;
-      var log2 = isFirst ? b : a;
-
-      // Cap the size of the entries
-      var newEntries = log2.items.slice(0, size);
-      var oldEntries = log1.items.slice(0, size);
-
-      // Create a new log instance
-      var result = LogUtils.create(ipfs, oldEntries, heads);
-
-      // Insert each entry to the log
-      newEntries.forEach(function (e) {
-        return LogUtils._insert(ipfs, result, e);
-      });
-
-      return result;
-    }
-
-    /**
-     * Join multiple logs
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {Array} logs
-     * @returns {Log}
-     */
-
-  }, {
-    key: 'joinAll',
-    value: function joinAll(ipfs, logs) {
-      return logs.reduce(function (log, val, i) {
-        if (!log) return val;
-        return LogUtils.join(ipfs, log, val);
-      }, null);
-    }
-
-    /**
-     * Expand the size of the log
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {Log} log
-     * @param {Number} length
-     * @param {function(hash, entry, parent, depth)} onProgressCallback
-     * @returns {Promise}
-     */
-
-  }, {
-    key: 'expand',
-    value: function expand(ipfs, log) {
-      var length = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : -1;
-      var onProgressCallback = arguments[3];
-
-      // TODO: Find tails (entries that point to an entry that is not in the log)
-      var tails = log.items.slice()[0].next.sort(LogUtils._compare);
-      // Fetch a log starting from each tail entry
-      var getLog = tails.map(function (f) {
-        return LogUtils.fromEntry(ipfs, f, length, onProgressCallback);
-      });
-      // Join all logs together to one log
-      var joinAll = function joinAll(logs) {
-        return LogUtils.joinAll(ipfs, logs.concat([log]));
-      };
-      // Create all logs and join them
-      return _promise2.default.all(getLog).then(joinAll);
-    }
-
-    /**
-     * Insert an entry to the log
-     * @private
-     * @param {Entry} entry Entry to be inserted
-     * @returns {Entry}
-     */
-
-  }, {
-    key: '_insert',
-    value: function _insert(ipfs, log, entry) {
-      var hashes = log.items.map(function (f) {
-        return f.hash;
-      });
-      // If entry is already in the log, don't insert
-      if (hashes.includes(entry.hash)) return entry;
-      // Find the item's parents' indices
-      var indices = entry.next.map(function (next) {
-        return hashes.indexOf(next);
-      });
-      // Find the largest index (latest parent)
-      var index = indices.length > 0 ? Math.max(Math.max.apply(null, indices) + 1, 0) : 0;
-      // Insert
-      log.items.splice(index, 0, entry);
-      return entry;
-    }
-
-    /**
-     * Fetch log entries recursively
-     * @private
-     * @param {IPFS} [ipfs] An IPFS instance
-     * @param {string} [hash] Multihash of the entry to fetch
-     * @param {string} [parent] Parent of the node to be fetched
-     * @param {Object} [all] Entries to skip
-     * @param {Number} [amount=-1] How many entries to fetch.
-     * @param {Number} [depth=0] Current depth of the recursion
-     * @param {function(hash, entry, parent, depth)} onProgressCallback
-     * @returns {Promise>}
-     */
-
-  }, {
-    key: '_fetchRecursive',
-    value: function _fetchRecursive(ipfs, hash) {
-      var all = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-      var amount = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : -1;
-      var depth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
-      var parent = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
-      var onProgressCallback = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : function () {};
-
-      // If the given hash is already fetched
-      // or if we're at maximum depth, return
-      if (all[hash] || depth >= amount && amount > 0) {
-        return _promise2.default.resolve([]);
-      }
-      // Create the entry and add it to the result
-      return Entry.fromMultihash(ipfs, hash).then(function (entry) {
-        all[hash] = entry;
-        onProgressCallback(hash, entry, parent, depth);
-        var fetch = function fetch(hash) {
-          return LogUtils._fetchRecursive(ipfs, hash, all, amount, depth + 1, entry, onProgressCallback);
-        };
-        return mapSeries(entry.next, fetch, { concurrency: 1 }).then(function (res) {
-          return res.concat([entry]);
-        }).then(function (res) {
-          return res.reduce(function (a, b) {
-            return a.concat(b);
-          }, []);
-        }); // flatten the array
-      });
-    }
-
-    /**
-     * Find heads of a log
-     * @private
-     * @param {Log} log
-     * @returns {Array}
-     */
-
-  }, {
-    key: '_findHeads',
-    value: function _findHeads(log) {
-      return log.items.slice().reverse().filter(function (f) {
-        return !LogUtils._isReferencedInChain(log, f);
-      }).map(function (f) {
-        return f.hash;
-      }).sort(LogUtils._compare);
-    }
-
-    /**
-     * Check if an entry is referenced by another entry in the log
-     * @private
-     * @param {log} [log] Log to search an entry from
-     * @param {Entry} [entry] Entry to search for
-     * @returns {boolean}
-     */
-
-  }, {
-    key: '_isReferencedInChain',
-    value: function _isReferencedInChain(log, entry) {
-      return log.items.slice().reverse().find(function (e) {
-        return Entry.hasChild(e, entry);
-      }) !== undefined;
-    }
-
-    /**
-     * Find entry's parents
-     * @private
-     * @description Returns entry's parents as an Array up to the root entry
-     * @param {Log} [log] Log to search parents from
-     * @param {Entry} [entry] Entry for which to find the parents
-     * @returns {Array}
-     */
-
-  }, {
-    key: '_findParents',
-    value: function _findParents(log, entry) {
-      var stack = [];
-      var parent = log.items.find(function (e) {
-        return Entry.hasChild(e, entry);
-      });
-      var prev = entry;
-      while (parent) {
-        stack.push(parent);
-        prev = parent;
-        parent = log.items.find(function (e) {
-          return Entry.hasChild(e, prev);
-        });
-      }
-      return stack;
-    }
-
-    /**
-     * Internal compare function
-     * @private
-     * @returns {boolean}
-     */
-
-  }, {
-    key: '_compare',
-    value: function _compare(a, b) {
-      return a < b;
-    }
-  }]);
-  return LogUtils;
-}();
-
-module.exports = LogUtils;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer))
-
-/***/ }),
-/* 91 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-// https://gist.github.com/dignifiedquire/dd08d2f3806a7b87f45b00c41fe109b7
-
-var _promise = __webpack_require__(27);
-
-var _promise2 = _interopRequireDefault(_promise);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-module.exports = function mapSeries(list, func) {
-  var res = [];
-
-  return list.reduce(function (acc, next) {
-    return acc.then(function (val) {
-      res.push(val);
-
-      return func(next);
-    });
-  }, _promise2.default.resolve(null)).then(function (val) {
-    res.push(val);
-    return res.slice(1);
-  });
-};
-
-/***/ }),
-/* 92 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(process) {
-
-var _keys = __webpack_require__(13);
-
-var _keys2 = _interopRequireDefault(_keys);
-
-var _assign = __webpack_require__(9);
-
-var _assign2 = _interopRequireDefault(_assign);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var fs = __webpack_require__(190);
-var format = __webpack_require__(189).format;
-var EventEmitter = __webpack_require__(36).EventEmitter;
-
-var isNodejs = process.version ? true : false;
-
-var LogLevels = {
-  'DEBUG': 'DEBUG',
-  'INFO': 'INFO',
-  'WARN': 'WARN',
-  'ERROR': 'ERROR',
-  'NONE': 'NONE'
-};
-
-// Global log level
-var GlobalLogLevel = LogLevels.DEBUG;
-
-// Global log file name
-var GlobalLogfile = null;
-
-var GlobalEvents = new EventEmitter();
-
-// ANSI colors
-var Colors = {
-  'Black': 0,
-  'Red': 1,
-  'Green': 2,
-  'Yellow': 3,
-  'Blue': 4,
-  'Magenta': 5,
-  'Cyan': 6,
-  'Grey': 7,
-  'White': 9,
-  'Default': 9
-};
-
-// CSS colors
-if (!isNodejs) {
-  Colors = {
-    'Black': 'Black',
-    'Red': 'IndianRed',
-    'Green': 'LimeGreen',
-    'Yellow': 'Orange',
-    'Blue': 'RoyalBlue',
-    'Magenta': 'Orchid',
-    'Cyan': 'SkyBlue',
-    'Grey': 'DimGrey',
-    'White': 'White',
-    'Default': 'Black'
-  };
-}
-
-var loglevelColors = [Colors.Cyan, Colors.Green, Colors.Yellow, Colors.Red, Colors.Default];
-
-var defaultOptions = {
-  useColors: true,
-  color: Colors.Default,
-  showTimestamp: true,
-  showLevel: true,
-  filename: GlobalLogfile,
-  appendFile: true
-};
-
-var Logger = function () {
-  function Logger(category, options) {
-    (0, _classCallCheck3.default)(this, Logger);
-
-    this.category = category;
-    var opts = {};
-    (0, _assign2.default)(opts, defaultOptions);
-    (0, _assign2.default)(opts, options);
-    this.options = opts;
-  }
-
-  (0, _createClass3.default)(Logger, [{
-    key: 'debug',
-    value: function debug() {
-      this._write(LogLevels.DEBUG, format.apply(null, arguments));
-    }
-  }, {
-    key: 'log',
-    value: function log() {
-      this.debug.apply(this, arguments);
-    }
-  }, {
-    key: 'info',
-    value: function info() {
-      this._write(LogLevels.INFO, format.apply(null, arguments));
-    }
-  }, {
-    key: 'warn',
-    value: function warn() {
-      this._write(LogLevels.WARN, format.apply(null, arguments));
-    }
-  }, {
-    key: 'error',
-    value: function error() {
-      this._write(LogLevels.ERROR, format.apply(null, arguments));
-    }
-  }, {
-    key: '_write',
-    value: function _write(level, text) {
-      if (!this._shouldLog(level)) return;
-
-      if ((this.options.filename || GlobalLogfile) && !this.fileWriter && isNodejs) this.fileWriter = fs.openSync(this.options.filename || GlobalLogfile, this.options.appendFile ? 'a+' : 'w+');
-
-      var format = this._format(level, text);
-      var unformattedText = this._createLogMessage(level, text);
-      var formattedText = this._createLogMessage(level, text, format.timestamp, format.level, format.category, format.text);
-
-      if (this.fileWriter && isNodejs) fs.writeSync(this.fileWriter, unformattedText + '\n', null, 'utf-8');
-
-      if (isNodejs || !this.options.useColors) {
-        console.log(formattedText);
-        GlobalEvents.emit('data', this.category, level, text);
-      } else {
-        // TODO: clean this up
-        if (level === LogLevels.ERROR) {
-          if (this.options.showTimestamp && this.options.showLevel) {
-            console.error(formattedText, format.timestamp, format.level, format.category, format.text);
-          } else if (this.options.showTimestamp && !this.options.showLevel) {
-            console.error(formattedText, format.timestamp, format.category, format.text);
-          } else if (!this.options.showTimestamp && this.options.showLevel) {
-            console.error(formattedText, format.level, format.category, format.text);
-          } else {
-            console.error(formattedText, format.category, format.text);
-          }
-        } else {
-          if (this.options.showTimestamp && this.options.showLevel) {
-            console.log(formattedText, format.timestamp, format.level, format.category, format.text);
-          } else if (this.options.showTimestamp && !this.options.showLevel) {
-            console.log(formattedText, format.timestamp, format.category, format.text);
-          } else if (!this.options.showTimestamp && this.options.showLevel) {
-            console.log(formattedText, format.level, format.category, format.text);
-          } else {
-            console.log(formattedText, format.category, format.text);
-          }
-        }
-      }
-    }
-  }, {
-    key: '_format',
-    value: function _format(level, text) {
-      var timestampFormat = '';
-      var levelFormat = '';
-      var categoryFormat = '';
-      var textFormat = ': ';
-
-      if (this.options.useColors) {
-        var levelColor = (0, _keys2.default)(LogLevels).map(function (f) {
-          return LogLevels[f];
-        }).indexOf(level);
-        var categoryColor = this.options.color;
-
-        if (isNodejs) {
-          if (this.options.showTimestamp) timestampFormat = '\x1B[3' + Colors.Grey + 'm';
-
-          if (this.options.showLevel) levelFormat = '\x1B[3' + loglevelColors[levelColor] + ';22m';
-
-          categoryFormat = '\x1B[3' + categoryColor + ';1m';
-          textFormat = '\x1B[0m: ';
-        } else {
-          if (this.options.showTimestamp) timestampFormat = 'color:' + Colors.Grey;
-
-          if (this.options.showLevel) levelFormat = 'color:' + loglevelColors[levelColor];
-
-          categoryFormat = 'color:' + categoryColor + '; font-weight: bold';
-        }
-      }
-
-      return {
-        timestamp: timestampFormat,
-        level: levelFormat,
-        category: categoryFormat,
-        text: textFormat
-      };
-    }
-  }, {
-    key: '_createLogMessage',
-    value: function _createLogMessage(level, text, timestampFormat, levelFormat, categoryFormat, textFormat) {
-      timestampFormat = timestampFormat || '';
-      levelFormat = levelFormat || '';
-      categoryFormat = categoryFormat || '';
-      textFormat = textFormat || ': ';
-
-      if (!isNodejs && this.options.useColors) {
-        if (this.options.showTimestamp) timestampFormat = '%c';
-
-        if (this.options.showLevel) levelFormat = '%c';
-
-        categoryFormat = '%c';
-        textFormat = ': %c';
-      }
-
-      var result = '';
-
-      if (this.options.showTimestamp) result += '' + new Date().toISOString() + ' ';
-
-      result = timestampFormat + result;
-
-      if (this.options.showLevel) result += levelFormat + '[' + level + ']' + (level === LogLevels.INFO || level === LogLevels.WARN ? ' ' : '') + ' ';
-
-      result += categoryFormat + this.category;
-      result += textFormat + text;
-      return result;
-    }
-  }, {
-    key: '_shouldLog',
-    value: function _shouldLog(level) {
-      var envLogLevel = typeof process !== "undefined" && process.env !== undefined && process.env.LOG !== undefined ? process.env.LOG.toUpperCase() : null;
-      envLogLevel = typeof window !== "undefined" && window.LOG ? window.LOG.toUpperCase() : envLogLevel;
-
-      var logLevel = envLogLevel || GlobalLogLevel;
-      var levels = (0, _keys2.default)(LogLevels).map(function (f) {
-        return LogLevels[f];
-      });
-      var index = levels.indexOf(level);
-      var levelIdx = levels.indexOf(logLevel);
-      return index >= levelIdx;
-    }
-  }]);
-  return Logger;
-}();
-
-;
-
-/* Public API */
-module.exports = {
-  Colors: Colors,
-  LogLevels: LogLevels,
-  setLogLevel: function setLogLevel(level) {
-    GlobalLogLevel = level;
-  },
-  setLogfile: function setLogfile(filename) {
-    GlobalLogfile = filename;
-  },
-  create: function create(category, options) {
-    var logger = new Logger(category, options);
-    return logger;
-  },
-  forceBrowserMode: function forceBrowserMode(force) {
-    return isNodejs = !force;
-  }, // for testing,
-  events: GlobalEvents
-};
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(34)))
-
-/***/ }),
-/* 93 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Counter = __webpack_require__(87);
-
-var CounterIndex = function () {
-  function CounterIndex(id) {
-    (0, _classCallCheck3.default)(this, CounterIndex);
-
-    this._counter = new Counter(id);
-  }
-
-  (0, _createClass3.default)(CounterIndex, [{
-    key: 'get',
-    value: function get() {
-      return this._counter;
-    }
-  }, {
-    key: 'updateIndex',
-    value: function updateIndex(oplog) {
-      var _this = this;
-
-      console.log(oplog.items);
-      if (this._counter) {
-        oplog.items.filter(function (f) {
-          return f && f.payload.op === 'COUNTER';
-        }).map(function (f) {
-          return Counter.from(f.payload.value);
-        }).forEach(function (f) {
-          return _this._counter.merge(f);
-        });
-      }
-    }
-  }]);
-  return CounterIndex;
-}();
-
-module.exports = CounterIndex;
-
-/***/ }),
-/* 94 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var DocumentIndex = function () {
-  function DocumentIndex() {
-    (0, _classCallCheck3.default)(this, DocumentIndex);
-
-    this._index = {};
-  }
-
-  (0, _createClass3.default)(DocumentIndex, [{
-    key: 'get',
-    value: function get(key) {
-      return this._index[key];
-    }
-  }, {
-    key: 'updateIndex',
-    value: function updateIndex(oplog) {
-      var _this = this;
-
-      oplog.items.slice().reverse().reduce(function (handled, item) {
-        if (handled.indexOf(item.payload.key) === -1) {
-          handled.push(item.payload.key);
-          if (item.payload.op === 'PUT') {
-            _this._index[item.payload.key] = item.payload.value;
-          } else if (item.payload.op === 'DEL') {
-            delete _this._index[item.payload.key];
-          }
-        }
-        return handled;
-      }, []);
-    }
-  }]);
-  return DocumentIndex;
-}();
-
-module.exports = DocumentIndex;
-
-/***/ }),
-/* 95 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _getPrototypeOf = __webpack_require__(14);
-
-var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-var _possibleConstructorReturn2 = __webpack_require__(16);
-
-var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
-
-var _inherits2 = __webpack_require__(15);
-
-var _inherits3 = _interopRequireDefault(_inherits2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var EventIndex = __webpack_require__(55);
-
-var FeedIndex = function (_EventIndex) {
-  (0, _inherits3.default)(FeedIndex, _EventIndex);
-
-  function FeedIndex() {
-    (0, _classCallCheck3.default)(this, FeedIndex);
-    return (0, _possibleConstructorReturn3.default)(this, (FeedIndex.__proto__ || (0, _getPrototypeOf2.default)(FeedIndex)).apply(this, arguments));
-  }
-
-  (0, _createClass3.default)(FeedIndex, [{
-    key: 'updateIndex',
-    value: function updateIndex(oplog) {
-      var _this2 = this;
-
-      oplog.items.reduce(function (handled, item) {
-        if (!handled.includes(item.hash)) {
-          handled.push(item.hash);
-          if (item.payload.op === 'ADD') {
-            _this2._index[item.hash] = item;
-          } else if (item.payload.op === 'DEL') {
-            delete _this2._index[item.payload.value];
-          }
-        }
-        return handled;
-      }, []);
-    }
-  }]);
-  return FeedIndex;
-}(EventIndex);
-
-module.exports = FeedIndex;
-
-/***/ }),
-/* 96 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var KeyValueIndex = function () {
-  function KeyValueIndex() {
-    (0, _classCallCheck3.default)(this, KeyValueIndex);
-
-    this._index = {};
-  }
-
-  (0, _createClass3.default)(KeyValueIndex, [{
-    key: 'get',
-    value: function get(key) {
-      return this._index[key];
-    }
-  }, {
-    key: 'updateIndex',
-    value: function updateIndex(oplog) {
-      var _this = this;
-
-      oplog.items.slice().reverse().reduce(function (handled, item) {
-        if (!handled.includes(item.payload.key)) {
-          handled.push(item.payload.key);
-          if (item.payload.op === 'PUT') {
-            _this._index[item.payload.key] = item.payload.value;
-          } else if (item.payload.op === 'DEL') {
-            delete _this._index[item.payload.key];
-          }
-        }
-        return handled;
-      }, []);
-    }
-  }]);
-  return KeyValueIndex;
-}();
-
-module.exports = KeyValueIndex;
-
-/***/ }),
-/* 97 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-/* WEBPACK VAR INJECTION */(function(Buffer) {
-
-var _keys = __webpack_require__(13);
-
-var _keys2 = _interopRequireDefault(_keys);
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Logger = __webpack_require__(92);
-var logger = Logger.create("orbit-db.ipfs-pubsub");
-Logger.setLogLevel('ERROR');
-
-var IPFSPubsub = function () {
-  function IPFSPubsub(ipfs) {
-    (0, _classCallCheck3.default)(this, IPFSPubsub);
-
-    this._ipfs = ipfs;
-    this._subscriptions = {};
-
-    if (this._ipfs.pubsub === null) logger.error("The provided version of ipfs doesn't have pubsub support. Messages will not be exchanged.");
-  }
-
-  (0, _createClass3.default)(IPFSPubsub, [{
-    key: 'subscribe',
-    value: function subscribe(hash, onMessageCallback) {
-      if (!this._subscriptions[hash]) {
-        this._subscriptions[hash] = { onMessage: onMessageCallback };
-
-        if (this._ipfs.pubsub) this._ipfs.pubsub.subscribe(hash, { discover: true }, this._handleMessage.bind(this));
-      }
-    }
-  }, {
-    key: 'unsubscribe',
-    value: function unsubscribe(hash) {
-      if (this._subscriptions[hash]) {
-        this._ipfs.pubsub.unsubscribe(hash, this._handleMessage);
-        delete this._subscriptions[hash];
-        logger.debug('Unsubscribed from \'' + hash + '\'');
-      }
-    }
-  }, {
-    key: 'publish',
-    value: function publish(hash, message) {
-      if (this._subscriptions[hash] && this._ipfs.pubsub) this._ipfs.pubsub.publish(hash, new Buffer(message));
-    }
-  }, {
-    key: 'disconnect',
-    value: function disconnect() {
-      var _this = this;
-
-      (0, _keys2.default)(this._subscriptions).forEach(function (e) {
-        return _this.unsubscribe(e);
-      });
-    }
-  }, {
-    key: '_handleMessage',
-    value: function _handleMessage(message) {
-      var hash = message.topicCIDs[0];
-      var data = message.data.toString();
-      var subscription = this._subscriptions[hash];
-
-      if (subscription && subscription.onMessage && data) subscription.onMessage(hash, data);
-    }
-  }]);
-  return IPFSPubsub;
-}();
-
-module.exports = IPFSPubsub;
-/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer))
-
-/***/ }),
-/* 98 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-/*
-  Index
-
-  Index contains the state of a datastore, ie. what data we currently have.
-
-  Index receives a call from a Store when the operations log for the Store
-  was updated, ie. new operations were added. In updateIndex, the Index
-  implements its CRDT logic: add, remove or update items in the data
-  structure. Each new operation received from the operations log is applied
-  in order onto the current state, ie. each new operation changes the data
-  and the state changes.
-
-  Implementing each CRDT as an Index, we can implement both operation-based
-  and state-based CRDTs with the same higher level abstractions.
-
-  To read the current state of the database, Index provides a single public
-  function: `get()`. It is up to the Store to decide what kind of query
-  capabilities it provides to the consumer.
-
-  Usage:
-  ```javascript
-  const Index = new Index(userId)
-  ```
-*/
-
-var _classCallCheck2 = __webpack_require__(0);
-
-var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
-
-var _createClass2 = __webpack_require__(1);
-
-var _createClass3 = _interopRequireDefault(_createClass2);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-var Index = function () {
-  /*
-    @param id - unique identifier of this index, eg. a user id or a hash
-  */
-  function Index(id) {
-    (0, _classCallCheck3.default)(this, Index);
-
-    this.id = id;
-    this._index = [];
-  }
-
-  /*
-    Returns the state of the datastore, ie. most up-to-date data
-    @return - current state
-  */
-
-
-  (0, _createClass3.default)(Index, [{
-    key: 'get',
-    value: function get() {
-      return this._index;
-    }
-
-    /*
-      Applies operations to the Index and updates the state
-      @param oplog - the source operations log that called updateIndex
-      @param entries - operations that were added to the log
-    */
-
-  }, {
-    key: 'updateIndex',
-    value: function updateIndex(oplog, entries) {
-      this._index = oplog.ops;
-    }
-  }]);
-  return Index;
-}();
-
-module.exports = Index;
-
-/***/ }),
-/* 99 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(107), __esModule: true };
-
-/***/ }),
-/* 100 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(109), __esModule: true };
-
-/***/ }),
-/* 101 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(112), __esModule: true };
-
-/***/ }),
-/* 102 */
-/***/ (function(module, exports, __webpack_require__) {
-
-module.exports = { "default": __webpack_require__(114), __esModule: true };
-
-/***/ }),
-/* 103 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-
-exports.__esModule = true;
-
-var _defineProperty = __webpack_require__(56);
-
-var _defineProperty2 = _interopRequireDefault(_defineProperty);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
-
-exports.default = function (obj, key, value) {
-  if (key in obj) {
-    (0, _defineProperty2.default)(obj, key, {
-      value: value,
-      enumerable: true,
-      configurable: true,
-      writable: true
-    });
-  } else {
-    obj[key] = value;
-  }
-
-  return obj;
-};
-
-/***/ }),
-/* 104 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
-
-;(function (exports) {
-	'use strict';
-
-  var Arr = (typeof Uint8Array !== 'undefined')
-    ? Uint8Array
-    : Array
-
-	var PLUS   = '+'.charCodeAt(0)
-	var SLASH  = '/'.charCodeAt(0)
-	var NUMBER = '0'.charCodeAt(0)
-	var LOWER  = 'a'.charCodeAt(0)
-	var UPPER  = 'A'.charCodeAt(0)
-	var PLUS_URL_SAFE = '-'.charCodeAt(0)
-	var SLASH_URL_SAFE = '_'.charCodeAt(0)
-
-	function decode (elt) {
-		var code = elt.charCodeAt(0)
-		if (code === PLUS ||
-		    code === PLUS_URL_SAFE)
-			return 62 // '+'
-		if (code === SLASH ||
-		    code === SLASH_URL_SAFE)
-			return 63 // '/'
-		if (code < NUMBER)
-			return -1 //no match
-		if (code < NUMBER + 10)
-			return code - NUMBER + 26 + 26
-		if (code < UPPER + 26)
-			return code - UPPER
-		if (code < LOWER + 26)
-			return code - LOWER + 26
-	}
-
-	function b64ToByteArray (b64) {
-		var i, j, l, tmp, placeHolders, arr
-
-		if (b64.length % 4 > 0) {
-			throw new Error('Invalid string. Length must be a multiple of 4')
-		}
-
-		// the number of equal signs (place holders)
-		// if there are two placeholders, than the two characters before it
-		// represent one byte
-		// if there is only one, then the three characters before it represent 2 bytes
-		// this is just a cheap hack to not do indexOf twice
-		var len = b64.length
-		placeHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0
-
-		// base64 is 4/3 + up to two characters of the original data
-		arr = new Arr(b64.length * 3 / 4 - placeHolders)
-
-		// if there are placeholders, only get up to the last complete 4 chars
-		l = placeHolders > 0 ? b64.length - 4 : b64.length
-
-		var L = 0
-
-		function push (v) {
-			arr[L++] = v
-		}
-
-		for (i = 0, j = 0; i < l; i += 4, j += 3) {
-			tmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))
-			push((tmp & 0xFF0000) >> 16)
-			push((tmp & 0xFF00) >> 8)
-			push(tmp & 0xFF)
-		}
-
-		if (placeHolders === 2) {
-			tmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)
-			push(tmp & 0xFF)
-		} else if (placeHolders === 1) {
-			tmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)
-			push((tmp >> 8) & 0xFF)
-			push(tmp & 0xFF)
-		}
-
-		return arr
-	}
-
-	function uint8ToBase64 (uint8) {
-		var i,
-			extraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes
-			output = "",
-			temp, length
-
-		function encode (num) {
-			return lookup.charAt(num)
-		}
-
-		function tripletToBase64 (num) {
-			return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)
-		}
-
-		// go through the array every three bytes, we'll deal with trailing stuff later
-		for (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {
-			temp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])
-			output += tripletToBase64(temp)
-		}
-
-		// pad the end with zeros, but make sure to not forget the extra bytes
-		switch (extraBytes) {
-			case 1:
-				temp = uint8[uint8.length - 1]
-				output += encode(temp >> 2)
-				output += encode((temp << 4) & 0x3F)
-				output += '=='
-				break
-			case 2:
-				temp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])
-				output += encode(temp >> 10)
-				output += encode((temp >> 4) & 0x3F)
-				output += encode((temp << 2) & 0x3F)
-				output += '='
-				break
-		}
-
-		return output
-	}
-
-	exports.toByteArray = b64ToByteArray
-	exports.fromByteArray = uint8ToBase64
-}( false ? (this.base64js = {}) : exports))
-
-
-/***/ }),
-/* 105 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var core  = __webpack_require__(2)
-  , $JSON = core.JSON || (core.JSON = {stringify: JSON.stringify});
-module.exports = function stringify(it){ // eslint-disable-line no-unused-vars
-  return $JSON.stringify.apply($JSON, arguments);
-};
-
-/***/ }),
-/* 106 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(141);
-module.exports = __webpack_require__(2).Object.assign;
-
-/***/ }),
-/* 107 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(142);
-var $Object = __webpack_require__(2).Object;
-module.exports = function create(P, D){
-  return $Object.create(P, D);
-};
-
-/***/ }),
-/* 108 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(143);
-var $Object = __webpack_require__(2).Object;
-module.exports = function defineProperty(it, key, desc){
-  return $Object.defineProperty(it, key, desc);
-};
-
-/***/ }),
-/* 109 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(144);
-var $Object = __webpack_require__(2).Object;
-module.exports = function getOwnPropertyNames(it){
-  return $Object.getOwnPropertyNames(it);
-};
-
-/***/ }),
-/* 110 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(145);
-module.exports = __webpack_require__(2).Object.getPrototypeOf;
-
-/***/ }),
-/* 111 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(146);
-module.exports = __webpack_require__(2).Object.keys;
-
-/***/ }),
-/* 112 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(147);
-module.exports = __webpack_require__(2).Object.setPrototypeOf;
-
-/***/ }),
-/* 113 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(72);
-__webpack_require__(73);
-__webpack_require__(74);
-__webpack_require__(148);
-module.exports = __webpack_require__(2).Promise;
-
-/***/ }),
-/* 114 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(149);
-__webpack_require__(72);
-__webpack_require__(150);
-__webpack_require__(151);
-module.exports = __webpack_require__(2).Symbol;
-
-/***/ }),
-/* 115 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(73);
-__webpack_require__(74);
-module.exports = __webpack_require__(50).f('iterator');
-
-/***/ }),
-/* 116 */
-/***/ (function(module, exports) {
-
-module.exports = function(){ /* empty */ };
-
-/***/ }),
-/* 117 */
-/***/ (function(module, exports) {
-
-module.exports = function(it, Constructor, name, forbiddenField){
-  if(!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)){
-    throw TypeError(name + ': incorrect invocation!');
-  } return it;
-};
-
-/***/ }),
-/* 118 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// false -> Array#indexOf
-// true  -> Array#includes
-var toIObject = __webpack_require__(12)
-  , toLength  = __webpack_require__(71)
-  , toIndex   = __webpack_require__(138);
-module.exports = function(IS_INCLUDES){
-  return function($this, el, fromIndex){
-    var O      = toIObject($this)
-      , length = toLength(O.length)
-      , index  = toIndex(fromIndex, length)
-      , value;
-    // Array#includes uses SameValueZero equality algorithm
-    if(IS_INCLUDES && el != el)while(length > index){
-      value = O[index++];
-      if(value != value)return true;
-    // Array#toIndex ignores holes, Array#includes - not
-    } else for(;length > index; index++)if(IS_INCLUDES || index in O){
-      if(O[index] === el)return IS_INCLUDES || index || 0;
-    } return !IS_INCLUDES && -1;
-  };
-};
-
-/***/ }),
-/* 119 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// all enumerable object keys, includes symbols
-var getKeys = __webpack_require__(19)
-  , gOPS    = __webpack_require__(43)
-  , pIE     = __webpack_require__(29);
-module.exports = function(it){
-  var result     = getKeys(it)
-    , getSymbols = gOPS.f;
-  if(getSymbols){
-    var symbols = getSymbols(it)
-      , isEnum  = pIE.f
-      , i       = 0
-      , key;
-    while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))result.push(key);
-  } return result;
-};
-
-/***/ }),
-/* 120 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var ctx         = __webpack_require__(22)
-  , call        = __webpack_require__(124)
-  , isArrayIter = __webpack_require__(122)
-  , anObject    = __webpack_require__(5)
-  , toLength    = __webpack_require__(71)
-  , getIterFn   = __webpack_require__(139)
-  , BREAK       = {}
-  , RETURN      = {};
-var exports = module.exports = function(iterable, entries, fn, that, ITERATOR){
-  var iterFn = ITERATOR ? function(){ return iterable; } : getIterFn(iterable)
-    , f      = ctx(fn, that, entries ? 2 : 1)
-    , index  = 0
-    , length, step, iterator, result;
-  if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');
-  // fast case for arrays with default iterator
-  if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){
-    result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);
-    if(result === BREAK || result === RETURN)return result;
-  } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){
-    result = call(iterator, f, step.value, entries);
-    if(result === BREAK || result === RETURN)return result;
-  }
-};
-exports.BREAK  = BREAK;
-exports.RETURN = RETURN;
-
-/***/ }),
-/* 121 */
-/***/ (function(module, exports) {
-
-// fast apply, http://jsperf.lnkit.com/fast-apply/5
-module.exports = function(fn, args, that){
-  var un = that === undefined;
-  switch(args.length){
-    case 0: return un ? fn()
-                      : fn.call(that);
-    case 1: return un ? fn(args[0])
-                      : fn.call(that, args[0]);
-    case 2: return un ? fn(args[0], args[1])
-                      : fn.call(that, args[0], args[1]);
-    case 3: return un ? fn(args[0], args[1], args[2])
-                      : fn.call(that, args[0], args[1], args[2]);
-    case 4: return un ? fn(args[0], args[1], args[2], args[3])
-                      : fn.call(that, args[0], args[1], args[2], args[3]);
-  } return              fn.apply(that, args);
-};
-
-/***/ }),
-/* 122 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// check on default Array iterator
-var Iterators  = __webpack_require__(23)
-  , ITERATOR   = __webpack_require__(3)('iterator')
-  , ArrayProto = Array.prototype;
-
-module.exports = function(it){
-  return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
-};
-
-/***/ }),
-/* 123 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 7.2.2 IsArray(argument)
-var cof = __webpack_require__(21);
-module.exports = Array.isArray || function isArray(arg){
-  return cof(arg) == 'Array';
-};
-
-/***/ }),
-/* 124 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// call something on iterator step with safe closing on error
-var anObject = __webpack_require__(5);
-module.exports = function(iterator, fn, value, entries){
-  try {
-    return entries ? fn(anObject(value)[0], value[1]) : fn(value);
-  // 7.4.6 IteratorClose(iterator, completion)
-  } catch(e){
-    var ret = iterator['return'];
-    if(ret !== undefined)anObject(ret.call(iterator));
-    throw e;
-  }
-};
-
-/***/ }),
-/* 125 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var create         = __webpack_require__(42)
-  , descriptor     = __webpack_require__(30)
-  , setToStringTag = __webpack_require__(31)
-  , IteratorPrototype = {};
-
-// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
-__webpack_require__(11)(IteratorPrototype, __webpack_require__(3)('iterator'), function(){ return this; });
-
-module.exports = function(Constructor, NAME, next){
-  Constructor.prototype = create(IteratorPrototype, {next: descriptor(1, next)});
-  setToStringTag(Constructor, NAME + ' Iterator');
-};
-
-/***/ }),
-/* 126 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var ITERATOR     = __webpack_require__(3)('iterator')
-  , SAFE_CLOSING = false;
-
-try {
-  var riter = [7][ITERATOR]();
-  riter['return'] = function(){ SAFE_CLOSING = true; };
-  Array.from(riter, function(){ throw 2; });
-} catch(e){ /* empty */ }
-
-module.exports = function(exec, skipClosing){
-  if(!skipClosing && !SAFE_CLOSING)return false;
-  var safe = false;
-  try {
-    var arr  = [7]
-      , iter = arr[ITERATOR]();
-    iter.next = function(){ return {done: safe = true}; };
-    arr[ITERATOR] = function(){ return iter; };
-    exec(arr);
-  } catch(e){ /* empty */ }
-  return safe;
-};
-
-/***/ }),
-/* 127 */
-/***/ (function(module, exports) {
-
-module.exports = function(done, value){
-  return {value: value, done: !!done};
-};
-
-/***/ }),
-/* 128 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var getKeys   = __webpack_require__(19)
-  , toIObject = __webpack_require__(12);
-module.exports = function(object, el){
-  var O      = toIObject(object)
-    , keys   = getKeys(O)
-    , length = keys.length
-    , index  = 0
-    , key;
-  while(length > index)if(O[key = keys[index++]] === el)return key;
-};
-
-/***/ }),
-/* 129 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var META     = __webpack_require__(33)('meta')
-  , isObject = __webpack_require__(18)
-  , has      = __webpack_require__(10)
-  , setDesc  = __webpack_require__(8).f
-  , id       = 0;
-var isExtensible = Object.isExtensible || function(){
-  return true;
-};
-var FREEZE = !__webpack_require__(17)(function(){
-  return isExtensible(Object.preventExtensions({}));
-});
-var setMeta = function(it){
-  setDesc(it, META, {value: {
-    i: 'O' + ++id, // object ID
-    w: {}          // weak collections IDs
-  }});
-};
-var fastKey = function(it, create){
-  // return primitive with prefix
-  if(!isObject(it))return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
-  if(!has(it, META)){
-    // can't set metadata to uncaught frozen object
-    if(!isExtensible(it))return 'F';
-    // not necessary to add metadata
-    if(!create)return 'E';
-    // add missing metadata
-    setMeta(it);
-  // return object ID
-  } return it[META].i;
-};
-var getWeak = function(it, create){
-  if(!has(it, META)){
-    // can't set metadata to uncaught frozen object
-    if(!isExtensible(it))return true;
-    // not necessary to add metadata
-    if(!create)return false;
-    // add missing metadata
-    setMeta(it);
-  // return hash weak collections IDs
-  } return it[META].w;
-};
-// add metadata on freeze-family methods calling
-var onFreeze = function(it){
-  if(FREEZE && meta.NEED && isExtensible(it) && !has(it, META))setMeta(it);
-  return it;
-};
-var meta = module.exports = {
-  KEY:      META,
-  NEED:     false,
-  fastKey:  fastKey,
-  getWeak:  getWeak,
-  onFreeze: onFreeze
-};
-
-/***/ }),
-/* 130 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var global    = __webpack_require__(4)
-  , macrotask = __webpack_require__(70).set
-  , Observer  = global.MutationObserver || global.WebKitMutationObserver
-  , process   = global.process
-  , Promise   = global.Promise
-  , isNode    = __webpack_require__(21)(process) == 'process';
-
-module.exports = function(){
-  var head, last, notify;
-
-  var flush = function(){
-    var parent, fn;
-    if(isNode && (parent = process.domain))parent.exit();
-    while(head){
-      fn   = head.fn;
-      head = head.next;
-      try {
-        fn();
-      } catch(e){
-        if(head)notify();
-        else last = undefined;
-        throw e;
-      }
-    } last = undefined;
-    if(parent)parent.enter();
-  };
-
-  // Node.js
-  if(isNode){
-    notify = function(){
-      process.nextTick(flush);
-    };
-  // browsers with MutationObserver
-  } else if(Observer){
-    var toggle = true
-      , node   = document.createTextNode('');
-    new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new
-    notify = function(){
-      node.data = toggle = !toggle;
-    };
-  // environments with maybe non-completely correct, but existent Promise
-  } else if(Promise && Promise.resolve){
-    var promise = Promise.resolve();
-    notify = function(){
-      promise.then(flush);
-    };
-  // for other environments - macrotask based on:
-  // - setImmediate
-  // - MessageChannel
-  // - window.postMessag
-  // - onreadystatechange
-  // - setTimeout
-  } else {
-    notify = function(){
-      // strange IE + webpack dev server bug - use .call(global)
-      macrotask.call(global, flush);
-    };
-  }
-
-  return function(fn){
-    var task = {fn: fn, next: undefined};
-    if(last)last.next = task;
-    if(!head){
-      head = task;
-      notify();
-    } last = task;
-  };
-};
-
-/***/ }),
-/* 131 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-// 19.1.2.1 Object.assign(target, source, ...)
-var getKeys  = __webpack_require__(19)
-  , gOPS     = __webpack_require__(43)
-  , pIE      = __webpack_require__(29)
-  , toObject = __webpack_require__(32)
-  , IObject  = __webpack_require__(62)
-  , $assign  = Object.assign;
-
-// should work with symbols and should have deterministic property order (V8 bug)
-module.exports = !$assign || __webpack_require__(17)(function(){
-  var A = {}
-    , B = {}
-    , S = Symbol()
-    , K = 'abcdefghijklmnopqrst';
-  A[S] = 7;
-  K.split('').forEach(function(k){ B[k] = k; });
-  return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
-}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
-  var T     = toObject(target)
-    , aLen  = arguments.length
-    , index = 1
-    , getSymbols = gOPS.f
-    , isEnum     = pIE.f;
-  while(aLen > index){
-    var S      = IObject(arguments[index++])
-      , keys   = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
-      , length = keys.length
-      , j      = 0
-      , key;
-    while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
-  } return T;
-} : $assign;
-
-/***/ }),
-/* 132 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var dP       = __webpack_require__(8)
-  , anObject = __webpack_require__(5)
-  , getKeys  = __webpack_require__(19);
-
-module.exports = __webpack_require__(6) ? Object.defineProperties : function defineProperties(O, Properties){
-  anObject(O);
-  var keys   = getKeys(Properties)
-    , length = keys.length
-    , i = 0
-    , P;
-  while(length > i)dP.f(O, P = keys[i++], Properties[P]);
-  return O;
-};
-
-/***/ }),
-/* 133 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var hide = __webpack_require__(11);
-module.exports = function(target, src, safe){
-  for(var key in src){
-    if(safe && target[key])target[key] = src[key];
-    else hide(target, key, src[key]);
-  } return target;
-};
-
-/***/ }),
-/* 134 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// Works with __proto__ only. Old v8 can't work with null proto objects.
-/* eslint-disable no-proto */
-var isObject = __webpack_require__(18)
-  , anObject = __webpack_require__(5);
-var check = function(O, proto){
-  anObject(O);
-  if(!isObject(proto) && proto !== null)throw TypeError(proto + ": can't set as prototype!");
-};
-module.exports = {
-  set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
-    function(test, buggy, set){
-      try {
-        set = __webpack_require__(22)(Function.call, __webpack_require__(64).f(Object.prototype, '__proto__').set, 2);
-        set(test, []);
-        buggy = !(test instanceof Array);
-      } catch(e){ buggy = true; }
-      return function setPrototypeOf(O, proto){
-        check(O, proto);
-        if(buggy)O.__proto__ = proto;
-        else set(O, proto);
-        return O;
-      };
-    }({}, false) : undefined),
-  check: check
-};
-
-/***/ }),
-/* 135 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var global      = __webpack_require__(4)
-  , core        = __webpack_require__(2)
-  , dP          = __webpack_require__(8)
-  , DESCRIPTORS = __webpack_require__(6)
-  , SPECIES     = __webpack_require__(3)('species');
-
-module.exports = function(KEY){
-  var C = typeof core[KEY] == 'function' ? core[KEY] : global[KEY];
-  if(DESCRIPTORS && C && !C[SPECIES])dP.f(C, SPECIES, {
-    configurable: true,
-    get: function(){ return this; }
-  });
-};
-
-/***/ }),
-/* 136 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 7.3.20 SpeciesConstructor(O, defaultConstructor)
-var anObject  = __webpack_require__(5)
-  , aFunction = __webpack_require__(38)
-  , SPECIES   = __webpack_require__(3)('species');
-module.exports = function(O, D){
-  var C = anObject(O).constructor, S;
-  return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);
-};
-
-/***/ }),
-/* 137 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var toInteger = __webpack_require__(47)
-  , defined   = __webpack_require__(39);
-// true  -> String#at
-// false -> String#codePointAt
-module.exports = function(TO_STRING){
-  return function(that, pos){
-    var s = String(defined(that))
-      , i = toInteger(pos)
-      , l = s.length
-      , a, b;
-    if(i < 0 || i >= l)return TO_STRING ? '' : undefined;
-    a = s.charCodeAt(i);
-    return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff
-      ? TO_STRING ? s.charAt(i) : a
-      : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
-  };
-};
-
-/***/ }),
-/* 138 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var toInteger = __webpack_require__(47)
-  , max       = Math.max
-  , min       = Math.min;
-module.exports = function(index, length){
-  index = toInteger(index);
-  return index < 0 ? max(index + length, 0) : min(index, length);
-};
-
-/***/ }),
-/* 139 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var classof   = __webpack_require__(59)
-  , ITERATOR  = __webpack_require__(3)('iterator')
-  , Iterators = __webpack_require__(23);
-module.exports = __webpack_require__(2).getIteratorMethod = function(it){
-  if(it != undefined)return it[ITERATOR]
-    || it['@@iterator']
-    || Iterators[classof(it)];
-};
-
-/***/ }),
-/* 140 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var addToUnscopables = __webpack_require__(116)
-  , step             = __webpack_require__(127)
-  , Iterators        = __webpack_require__(23)
-  , toIObject        = __webpack_require__(12);
-
-// 22.1.3.4 Array.prototype.entries()
-// 22.1.3.13 Array.prototype.keys()
-// 22.1.3.29 Array.prototype.values()
-// 22.1.3.30 Array.prototype[@@iterator]()
-module.exports = __webpack_require__(63)(Array, 'Array', function(iterated, kind){
-  this._t = toIObject(iterated); // target
-  this._i = 0;                   // next index
-  this._k = kind;                // kind
-// 22.1.5.2.1 %ArrayIteratorPrototype%.next()
-}, function(){
-  var O     = this._t
-    , kind  = this._k
-    , index = this._i++;
-  if(!O || index >= O.length){
-    this._t = undefined;
-    return step(1);
-  }
-  if(kind == 'keys'  )return step(0, index);
-  if(kind == 'values')return step(0, O[index]);
-  return step(0, [index, O[index]]);
-}, 'values');
-
-// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
-Iterators.Arguments = Iterators.Array;
-
-addToUnscopables('keys');
-addToUnscopables('values');
-addToUnscopables('entries');
-
-/***/ }),
-/* 141 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.3.1 Object.assign(target, source)
-var $export = __webpack_require__(7);
-
-$export($export.S + $export.F, 'Object', {assign: __webpack_require__(131)});
-
-/***/ }),
-/* 142 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var $export = __webpack_require__(7)
-// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
-$export($export.S, 'Object', {create: __webpack_require__(42)});
-
-/***/ }),
-/* 143 */
-/***/ (function(module, exports, __webpack_require__) {
-
-var $export = __webpack_require__(7);
-// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
-$export($export.S + $export.F * !__webpack_require__(6), 'Object', {defineProperty: __webpack_require__(8).f});
-
-/***/ }),
-/* 144 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.2.7 Object.getOwnPropertyNames(O)
-__webpack_require__(44)('getOwnPropertyNames', function(){
-  return __webpack_require__(65).f;
-});
-
-/***/ }),
-/* 145 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.2.9 Object.getPrototypeOf(O)
-var toObject        = __webpack_require__(32)
-  , $getPrototypeOf = __webpack_require__(67);
-
-__webpack_require__(44)('getPrototypeOf', function(){
-  return function getPrototypeOf(it){
-    return $getPrototypeOf(toObject(it));
-  };
-});
-
-/***/ }),
-/* 146 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.2.14 Object.keys(O)
-var toObject = __webpack_require__(32)
-  , $keys    = __webpack_require__(19);
-
-__webpack_require__(44)('keys', function(){
-  return function keys(it){
-    return $keys(toObject(it));
-  };
-});
-
-/***/ }),
-/* 147 */
-/***/ (function(module, exports, __webpack_require__) {
-
-// 19.1.3.19 Object.setPrototypeOf(O, proto)
-var $export = __webpack_require__(7);
-$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(134).set});
-
-/***/ }),
-/* 148 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-var LIBRARY            = __webpack_require__(28)
-  , global             = __webpack_require__(4)
-  , ctx                = __webpack_require__(22)
-  , classof            = __webpack_require__(59)
-  , $export            = __webpack_require__(7)
-  , isObject           = __webpack_require__(18)
-  , aFunction          = __webpack_require__(38)
-  , anInstance         = __webpack_require__(117)
-  , forOf              = __webpack_require__(120)
-  , speciesConstructor = __webpack_require__(136)
-  , task               = __webpack_require__(70).set
-  , microtask          = __webpack_require__(130)()
-  , PROMISE            = 'Promise'
-  , TypeError          = global.TypeError
-  , process            = global.process
-  , $Promise           = global[PROMISE]
-  , process            = global.process
-  , isNode             = classof(process) == 'process'
-  , empty              = function(){ /* empty */ }
-  , Internal, GenericPromiseCapability, Wrapper;
-
-var USE_NATIVE = !!function(){
-  try {
-    // correct subclassing with @@species support
-    var promise     = $Promise.resolve(1)
-      , FakePromise = (promise.constructor = {})[__webpack_require__(3)('species')] = function(exec){ exec(empty, empty); };
-    // unhandled rejections tracking support, NodeJS Promise without it fails @@species test
-    return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise;
-  } catch(e){ /* empty */ }
-}();
-
-// helpers
-var sameConstructor = function(a, b){
-  // with library wrapper special case
-  return a === b || a === $Promise && b === Wrapper;
-};
-var isThenable = function(it){
-  var then;
-  return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
-};
-var newPromiseCapability = function(C){
-  return sameConstructor($Promise, C)
-    ? new PromiseCapability(C)
-    : new GenericPromiseCapability(C);
-};
-var PromiseCapability = GenericPromiseCapability = function(C){
-  var resolve, reject;
-  this.promise = new C(function($$resolve, $$reject){
-    if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor');
-    resolve = $$resolve;
-    reject  = $$reject;
-  });
-  this.resolve = aFunction(resolve);
-  this.reject  = aFunction(reject);
-};
-var perform = function(exec){
-  try {
-    exec();
-  } catch(e){
-    return {error: e};
-  }
-};
-var notify = function(promise, isReject){
-  if(promise._n)return;
-  promise._n = true;
-  var chain = promise._c;
-  microtask(function(){
-    var value = promise._v
-      , ok    = promise._s == 1
-      , i     = 0;
-    var run = function(reaction){
-      var handler = ok ? reaction.ok : reaction.fail
-        , resolve = reaction.resolve
-        , reject  = reaction.reject
-        , domain  = reaction.domain
-        , result, then;
-      try {
-        if(handler){
-          if(!ok){
-            if(promise._h == 2)onHandleUnhandled(promise);
-            promise._h = 1;
-          }
-          if(handler === true)result = value;
-          else {
-            if(domain)domain.enter();
-            result = handler(value);
-            if(domain)domain.exit();
-          }
-          if(result === reaction.promise){
-            reject(TypeError('Promise-chain cycle'));
-          } else if(then = isThenable(result)){
-            then.call(result, resolve, reject);
-          } else resolve(result);
-        } else reject(value);
-      } catch(e){
-        reject(e);
-      }
-    };
-    while(chain.length > i)run(chain[i++]); // variable length - can't use forEach
-    promise._c = [];
-    promise._n = false;
-    if(isReject && !promise._h)onUnhandled(promise);
-  });
-};
-var onUnhandled = function(promise){
-  task.call(global, function(){
-    var value = promise._v
-      , abrupt, handler, console;
-    if(isUnhandled(promise)){
-      abrupt = perform(function(){
-        if(isNode){
-          process.emit('unhandledRejection', value, promise);
-        } else if(handler = global.onunhandledrejection){
-          handler({promise: promise, reason: value});
-        } else if((console = global.console) && console.error){
-          console.error('Unhandled promise rejection', value);
-        }
-      });
-      // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
-      promise._h = isNode || isUnhandled(promise) ? 2 : 1;
-    } promise._a = undefined;
-    if(abrupt)throw abrupt.error;
-  });
-};
-var isUnhandled = function(promise){
-  if(promise._h == 1)return false;
-  var chain = promise._a || promise._c
-    , i     = 0
-    , reaction;
-  while(chain.length > i){
-    reaction = chain[i++];
-    if(reaction.fail || !isUnhandled(reaction.promise))return false;
-  } return true;
-};
-var onHandleUnhandled = function(promise){
-  task.call(global, function(){
-    var handler;
-    if(isNode){
-      process.emit('rejectionHandled', promise);
-    } else if(handler = global.onrejectionhandled){
-      handler({promise: promise, reason: promise._v});
-    }
-  });
-};
-var $reject = function(value){
-  var promise = this;
-  if(promise._d)return;
-  promise._d = true;
-  promise = promise._w || promise; // unwrap
-  promise._v = value;
-  promise._s = 2;
-  if(!promise._a)promise._a = promise._c.slice();
-  notify(promise, true);
-};
-var $resolve = function(value){
-  var promise = this
-    , then;
-  if(promise._d)return;
-  promise._d = true;
-  promise = promise._w || promise; // unwrap
-  try {
-    if(promise === value)throw TypeError("Promise can't be resolved itself");
-    if(then = isThenable(value)){
-      microtask(function(){
-        var wrapper = {_w: promise, _d: false}; // wrap
-        try {
-          then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
-        } catch(e){
-          $reject.call(wrapper, e);
-        }
-      });
-    } else {
-      promise._v = value;
-      promise._s = 1;
-      notify(promise, false);
-    }
-  } catch(e){
-    $reject.call({_w: promise, _d: false}, e); // wrap
-  }
-};
-
-// constructor polyfill
-if(!USE_NATIVE){
-  // 25.4.3.1 Promise(executor)
-  $Promise = function Promise(executor){
-    anInstance(this, $Promise, PROMISE, '_h');
-    aFunction(executor);
-    Internal.call(this);
-    try {
-      executor(ctx($resolve, this, 1), ctx($reject, this, 1));
-    } catch(err){
-      $reject.call(this, err);
-    }
-  };
-  Internal = function Promise(executor){
-    this._c = [];             // <- awaiting reactions
-    this._a = undefined;      // <- checked in isUnhandled reactions
-    this._s = 0;              // <- state
-    this._d = false;          // <- done
-    this._v = undefined;      // <- value
-    this._h = 0;              // <- rejection state, 0 - default, 1 - handled, 2 - unhandled
-    this._n = false;          // <- notify
-  };
-  Internal.prototype = __webpack_require__(133)($Promise.prototype, {
-    // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)
-    then: function then(onFulfilled, onRejected){
-      var reaction    = newPromiseCapability(speciesConstructor(this, $Promise));
-      reaction.ok     = typeof onFulfilled == 'function' ? onFulfilled : true;
-      reaction.fail   = typeof onRejected == 'function' && onRejected;
-      reaction.domain = isNode ? process.domain : undefined;
-      this._c.push(reaction);
-      if(this._a)this._a.push(reaction);
-      if(this._s)notify(this, false);
-      return reaction.promise;
-    },
-    // 25.4.5.1 Promise.prototype.catch(onRejected)
-    'catch': function(onRejected){
-      return this.then(undefined, onRejected);
-    }
-  });
-  PromiseCapability = function(){
-    var promise  = new Internal;
-    this.promise = promise;
-    this.resolve = ctx($resolve, promise, 1);
-    this.reject  = ctx($reject, promise, 1);
-  };
-}
-
-$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: $Promise});
-__webpack_require__(31)($Promise, PROMISE);
-__webpack_require__(135)(PROMISE);
-Wrapper = __webpack_require__(2)[PROMISE];
-
-// statics
-$export($export.S + $export.F * !USE_NATIVE, PROMISE, {
-  // 25.4.4.5 Promise.reject(r)
-  reject: function reject(r){
-    var capability = newPromiseCapability(this)
-      , $$reject   = capability.reject;
-    $$reject(r);
-    return capability.promise;
-  }
-});
-$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {
-  // 25.4.4.6 Promise.resolve(x)
-  resolve: function resolve(x){
-    // instanceof instead of internal slot check because we should fix it without replacement native Promise core
-    if(x instanceof $Promise && sameConstructor(x.constructor, this))return x;
-    var capability = newPromiseCapability(this)
-      , $$resolve  = capability.resolve;
-    $$resolve(x);
-    return capability.promise;
-  }
-});
-$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(126)(function(iter){
-  $Promise.all(iter)['catch'](empty);
-})), PROMISE, {
-  // 25.4.4.1 Promise.all(iterable)
-  all: function all(iterable){
-    var C          = this
-      , capability = newPromiseCapability(C)
-      , resolve    = capability.resolve
-      , reject     = capability.reject;
-    var abrupt = perform(function(){
-      var values    = []
-        , index     = 0
-        , remaining = 1;
-      forOf(iterable, false, function(promise){
-        var $index        = index++
-          , alreadyCalled = false;
-        values.push(undefined);
-        remaining++;
-        C.resolve(promise).then(function(value){
-          if(alreadyCalled)return;
-          alreadyCalled  = true;
-          values[$index] = value;
-          --remaining || resolve(values);
-        }, reject);
-      });
-      --remaining || resolve(values);
-    });
-    if(abrupt)reject(abrupt.error);
-    return capability.promise;
-  },
-  // 25.4.4.4 Promise.race(iterable)
-  race: function race(iterable){
-    var C          = this
-      , capability = newPromiseCapability(C)
-      , reject     = capability.reject;
-    var abrupt = perform(function(){
-      forOf(iterable, false, function(promise){
-        C.resolve(promise).then(capability.resolve, reject);
-      });
-    });
-    if(abrupt)reject(abrupt.error);
-    return capability.promise;
-  }
-});
-
-/***/ }),
-/* 149 */
-/***/ (function(module, exports, __webpack_require__) {
-
-"use strict";
-
-// ECMAScript 6 symbols shim
-var global         = __webpack_require__(4)
-  , has            = __webpack_require__(10)
-  , DESCRIPTORS    = __webpack_require__(6)
-  , $export        = __webpack_require__(7)
-  , redefine       = __webpack_require__(69)
-  , META           = __webpack_require__(129).KEY
-  , $fails         = __webpack_require__(17)
-  , shared         = __webpack_require__(46)
-  , setToStringTag = __webpack_require__(31)
-  , uid            = __webpack_require__(33)
-  , wks            = __webpack_require__(3)
-  , wksExt         = __webpack_require__(50)
-  , wksDefine      = __webpack_require__(49)
-  , keyOf          = __webpack_require__(128)
-  , enumKeys       = __webpack_require__(119)
-  , isArray        = __webpack_require__(123)
-  , anObject       = __webpack_require__(5)
-  , toIObject      = __webpack_require__(12)
-  , toPrimitive    = __webpack_require__(48)
-  , createDesc     = __webpack_require__(30)
-  , _create        = __webpack_require__(42)
-  , gOPNExt        = __webpack_require__(65)
-  , $GOPD          = __webpack_require__(64)
-  , $DP            = __webpack_require__(8)
-  , $keys          = __webpack_require__(19)
-  , gOPD           = $GOPD.f
-  , dP             = $DP.f
-  , gOPN           = gOPNExt.f
-  , $Symbol        = global.Symbol
-  , $JSON          = global.JSON
-  , _stringify     = $JSON && $JSON.stringify
-  , PROTOTYPE      = 'prototype'
-  , HIDDEN         = wks('_hidden')
-  , TO_PRIMITIVE   = wks('toPrimitive')
-  , isEnum         = {}.propertyIsEnumerable
-  , SymbolRegistry = shared('symbol-registry')
-  , AllSymbols     = shared('symbols')
-  , OPSymbols      = shared('op-symbols')
-  , ObjectProto    = Object[PROTOTYPE]
-  , USE_NATIVE     = typeof $Symbol == 'function'
-  , QObject        = global.QObject;
-// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
-var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
-
-// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
-var setSymbolDesc = DESCRIPTORS && $fails(function(){
-  return _create(dP({}, 'a', {
-    get: function(){ return dP(this, 'a', {value: 7}).a; }
-  })).a != 7;
-}) ? function(it, key, D){
-  var protoDesc = gOPD(ObjectProto, key);
-  if(protoDesc)delete ObjectProto[key];
-  dP(it, key, D);
-  if(protoDesc && it !== ObjectProto)dP(ObjectProto, key, protoDesc);
-} : dP;
-
-var wrap = function(tag){
-  var sym = AllSymbols[tag] = _create($Symbol[PROTOTYPE]);
-  sym._k = tag;
-  return sym;
-};
-
-var isSymbol = USE_NATIVE && typeof $Symbol.iterator == 'symbol' ? function(it){
-  return typeof it == 'symbol';
-} : function(it){
-  return it instanceof $Symbol;
-};
-
-var $defineProperty = function defineProperty(it, key, D){
-  if(it === ObjectProto)$defineProperty(OPSymbols, key, D);
-  anObject(it);
-  key = toPrimitive(key, true);
-  anObject(D);
-  if(has(AllSymbols, key)){
-    if(!D.enumerable){
-      if(!has(it, HIDDEN))dP(it, HIDDEN, createDesc(1, {}));
-      it[HIDDEN][key] = true;
-    } else {
-      if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;
-      D = _create(D, {enumerable: createDesc(0, false)});
-    } return setSymbolDesc(it, key, D);
-  } return dP(it, key, D);
-};
-var $defineProperties = function defineProperties(it, P){
-  anObject(it);
-  var keys = enumKeys(P = toIObject(P))
-    , i    = 0
-    , l = keys.length
-    , key;
-  while(l > i)$defineProperty(it, key = keys[i++], P[key]);
-  return it;
-};
-var $create = function create(it, P){
-  return P === undefined ? _create(it) : $defineProperties(_create(it), P);
-};
-var $propertyIsEnumerable = function propertyIsEnumerable(key){
-  var E = isEnum.call(this, key = toPrimitive(key, true));
-  if(this === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return false;
-  return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key] ? E : true;
-};
-var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){
-  it  = toIObject(it);
-  key = toPrimitive(key, true);
-  if(it === ObjectProto && has(AllSymbols, key) && !has(OPSymbols, key))return;
-  var D = gOPD(it, key);
-  if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;
-  return D;
-};
-var $getOwnPropertyNames = function getOwnPropertyNames(it){
-  var names  = gOPN(toIObject(it))
-    , result = []
-    , i      = 0
-    , key;
-  while(names.length > i){
-    if(!has(AllSymbols, key = names[i++]) && key != HIDDEN && key != META)result.push(key);
-  } return result;
-};
-var $getOwnPropertySymbols = function getOwnPropertySymbols(it){
-  var IS_OP  = it === ObjectProto
-    , names  = gOPN(IS_OP ? OPSymbols : toIObject(it))
-    , result = []
-    , i      = 0
-    , key;
-  while(names.length > i){
-    if(has(AllSymbols, key = names[i++]) && (IS_OP ? has(ObjectProto, key) : true))result.push(AllSymbols[key]);
-  } return result;
-};
-
-// 19.4.1.1 Symbol([description])
-if(!USE_NATIVE){
-  $Symbol = function Symbol(){
-    if(this instanceof $Symbol)throw TypeError('Symbol is not a constructor!');
-    var tag = uid(arguments.length > 0 ? arguments[0] : undefined);
-    var $set = function(value){
-      if(this === ObjectProto)$set.call(OPSymbols, value);
-      if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;
-      setSymbolDesc(this, tag, createDesc(1, value));
-    };
-    if(DESCRIPTORS && setter)setSymbolDesc(ObjectProto, tag, {configurable: true, set: $set});
-    return wrap(tag);
-  };
-  redefine($Symbol[PROTOTYPE], 'toString', function toString(){
-    return this._k;
-  });
-
-  $GOPD.f = $getOwnPropertyDescriptor;
-  $DP.f   = $defineProperty;
-  __webpack_require__(66).f = gOPNExt.f = $getOwnPropertyNames;
-  __webpack_require__(29).f  = $propertyIsEnumerable;
-  __webpack_require__(43).f = $getOwnPropertySymbols;
-
-  if(DESCRIPTORS && !__webpack_require__(28)){
-    redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
-  }
-
-  wksExt.f = function(name){
-    return wrap(wks(name));
-  }
-}
-
-$export($export.G + $export.W + $export.F * !USE_NATIVE, {Symbol: $Symbol});
-
-for(var symbols = (
-  // 19.4.2.2, 19.4.2.3, 19.4.2.4, 19.4.2.6, 19.4.2.8, 19.4.2.9, 19.4.2.10, 19.4.2.11, 19.4.2.12, 19.4.2.13, 19.4.2.14
-  'hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables'
-).split(','), i = 0; symbols.length > i; )wks(symbols[i++]);
-
-for(var symbols = $keys(wks.store), i = 0; symbols.length > i; )wksDefine(symbols[i++]);
-
-$export($export.S + $export.F * !USE_NATIVE, 'Symbol', {
-  // 19.4.2.1 Symbol.for(key)
-  'for': function(key){
-    return has(SymbolRegistry, key += '')
-      ? SymbolRegistry[key]
-      : SymbolRegistry[key] = $Symbol(key);
-  },
-  // 19.4.2.5 Symbol.keyFor(sym)
-  keyFor: function keyFor(key){
-    if(isSymbol(key))return keyOf(SymbolRegistry, key);
-    throw TypeError(key + ' is not a symbol!');
-  },
-  useSetter: function(){ setter = true; },
-  useSimple: function(){ setter = false; }
-});
-
-$export($export.S + $export.F * !USE_NATIVE, 'Object', {
-  // 19.1.2.2 Object.create(O [, Properties])
-  create: $create,
-  // 19.1.2.4 Object.defineProperty(O, P, Attributes)
-  defineProperty: $defineProperty,
-  // 19.1.2.3 Object.defineProperties(O, Properties)
-  defineProperties: $defineProperties,
-  // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)
-  getOwnPropertyDescriptor: $getOwnPropertyDescriptor,
-  // 19.1.2.7 Object.getOwnPropertyNames(O)
-  getOwnPropertyNames: $getOwnPropertyNames,
-  // 19.1.2.8 Object.getOwnPropertySymbols(O)
-  getOwnPropertySymbols: $getOwnPropertySymbols
-});
-
-// 24.3.2 JSON.stringify(value [, replacer [, space]])
-$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function(){
-  var S = $Symbol();
-  // MS Edge converts symbol values to JSON as {}
-  // WebKit converts symbol values to JSON as null
-  // V8 throws on boxed symbols
-  return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';
-})), 'JSON', {
-  stringify: function stringify(it){
-    if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined
-    var args = [it]
-      , i    = 1
-      , replacer, $replacer;
-    while(arguments.length > i)args.push(arguments[i++]);
-    replacer = args[1];
-    if(typeof replacer == 'function')$replacer = replacer;
-    if($replacer || !isArray(replacer))replacer = function(key, value){
-      if($replacer)value = $replacer.call(this, key, value);
-      if(!isSymbol(value))return value;
-    };
-    args[1] = replacer;
-    return _stringify.apply($JSON, args);
-  }
-});
-
-// 19.4.3.4 Symbol.prototype[@@toPrimitive](hint)
-$Symbol[PROTOTYPE][TO_PRIMITIVE] || __webpack_require__(11)($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);
-// 19.4.3.5 Symbol.prototype[@@toStringTag]
-setToStringTag($Symbol, 'Symbol');
-// 20.2.1.9 Math[@@toStringTag]
-setToStringTag(Math, 'Math', true);
-// 24.3.3 JSON[@@toStringTag]
-setToStringTag(global.JSON, 'JSON', true);
-
-/***/ }),
-/* 150 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(49)('asyncIterator');
-
-/***/ }),
-/* 151 */
-/***/ (function(module, exports, __webpack_require__) {
-
-__webpack_require__(49)('observable');
-
-/***/ }),
-/* 152 */
-/***/ (function(module, exports, __webpack_require__) {
-
-/* WEBPACK VAR INJECTION */(function(global, setImmediate) {(function (global, factory) {
-    true ? module.exports = factory() :
-   typeof define === 'function' && define.amd ? define(factory) :
-   (global.Dexie = factory());
-}(this, (function () { 'use strict';
-
-/*
-* Dexie.js - a minimalistic wrapper for IndexedDB
-* ===============================================
-*
-* By David Fahlander, david.fahlander@gmail.com
-*
-* Version 1.5.1, Tue Nov 01 2016
-* www.dexie.com
-* Apache License Version 2.0, January 2004, http://www.apache.org/licenses/
-*/
-var keys = Object.keys;
-var isArray = Array.isArray;
-var _global = typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : global;
-
-function extend(obj, extension) {
-    if (typeof extension !== 'object') return obj;
-    keys(extension).forEach(function (key) {
-        obj[key] = extension[key];
-    });
-    return obj;
-}
-
-var getProto = Object.getPrototypeOf;
-var _hasOwn = {}.hasOwnProperty;
-function hasOwn(obj, prop) {
-    return _hasOwn.call(obj, prop);
-}
-
-function props(proto, extension) {
-    if (typeof extension === 'function') extension = extension(getProto(proto));
-    keys(extension).forEach(function (key) {
-        setProp(proto, key, extension[key]);
-    });
-}
-
-function setProp(obj, prop, functionOrGetSet, options) {
-    Object.defineProperty(obj, prop, extend(functionOrGetSet && hasOwn(functionOrGetSet, "get") && typeof functionOrGetSet.get === 'function' ? { get: functionOrGetSet.get, set: functionOrGetSet.set, configurable: true } : { value: functionOrGetSet, configurable: true, writable: true }, options));
-}
-
-function derive(Child) {
-    return {
-        from: function (Parent) {
-            Child.prototype = Object.create(Parent.prototype);
-            setProp(Child.prototype, "constructor", Child);
-            return {
-                extend: props.bind(null, Child.prototype)
-            };
-        }
-    };
-}
-
-var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
-
-function getPropertyDescriptor(obj, prop) {
-    var pd = getOwnPropertyDescriptor(obj, prop),
-        proto;
-    return pd || (proto = getProto(obj)) && getPropertyDescriptor(proto, prop);
-}
-
-var _slice = [].slice;
-function slice(args, start, end) {
-    return _slice.call(args, start, end);
-}
-
-function override(origFunc, overridedFactory) {
-    return overridedFactory(origFunc);
-}
-
-function doFakeAutoComplete(fn) {
-    var to = setTimeout(fn, 1000);
-    clearTimeout(to);
-}
-
-function assert(b) {
-    if (!b) throw new Error("Assertion Failed");
-}
-
-function asap(fn) {
-    if (_global.setImmediate) setImmediate(fn);else setTimeout(fn, 0);
-}
-
-
-
-/** Generate an object (hash map) based on given array.
- * @param extractor Function taking an array item and its index and returning an array of 2 items ([key, value]) to
- *        instert on the resulting object for each item in the array. If this function returns a falsy value, the
- *        current item wont affect the resulting object.
- */
-function arrayToObject(array, extractor) {
-    return array.reduce(function (result, item, i) {
-        var nameAndValue = extractor(item, i);
-        if (nameAndValue) result[nameAndValue[0]] = nameAndValue[1];
-        return result;
-    }, {});
-}
-
-function trycatcher(fn, reject) {
-    return function () {
-        try {
-            fn.apply(this, arguments);
-        } catch (e) {
-            reject(e);
-        }
-    };
-}
-
-function tryCatch(fn, onerror, args) {
-    try {
-        fn.apply(null, args);
-    } catch (ex) {
-        onerror && onerror(ex);
-    }
-}
-
-function getByKeyPath(obj, keyPath) {
-    // http://www.w3.org/TR/IndexedDB/#steps-for-extracting-a-key-from-a-value-using-a-key-path
-    if (hasOwn(obj, keyPath)) return obj[keyPath]; // This line is moved from last to first for optimization purpose.
-    if (!keyPath) return obj;
-    if (typeof keyPath !== 'string') {
-        var rv = [];
-        for (var i = 0, l = keyPath.length; i < l; ++i) {
-            var val = getByKeyPath(obj, keyPath[i]);
-            rv.push(val);
-        }
-        return rv;
-    }
-    var period = keyPath.indexOf('.');
-    if (period !== -1) {
-        var innerObj = obj[keyPath.substr(0, period)];
-        return innerObj === undefined ? undefined : getByKeyPath(innerObj, keyPath.substr(period + 1));
-    }
-    return undefined;
-}
-
-function setByKeyPath(obj, keyPath, value) {
-    if (!obj || keyPath === undefined) return;
-    if ('isFrozen' in Object && Object.isFrozen(obj)) return;
-    if (typeof keyPath !== 'string' && 'length' in keyPath) {
-        assert(typeof value !== 'string' && 'length' in value);
-        for (var i = 0, l = keyPath.length; i < l; ++i) {
-            setByKeyPath(obj, keyPath[i], value[i]);
-        }
-    } else {
-        var period = keyPath.indexOf('.');
-        if (period !== -1) {
-            var currentKeyPath = keyPath.substr(0, period);
-            var remainingKeyPath = keyPath.substr(period + 1);
-            if (remainingKeyPath === "") {
-                if (value === undefined) delete obj[currentKeyPath];else obj[currentKeyPath] = value;
-            } else {
-                var innerObj = obj[currentKeyPath];
-                if (!innerObj) innerObj = obj[currentKeyPath] = {};
-                setByKeyPath(innerObj, remainingKeyPath, value);
-            }
-        } else {
-            if (value === undefined) delete obj[keyPath];else obj[keyPath] = value;
-        }
-    }
-}
-
-function delByKeyPath(obj, keyPath) {
-    if (typeof keyPath === 'string') setByKeyPath(obj, keyPath, undefined);else if ('length' in keyPath) [].map.call(keyPath, function (kp) {
-        setByKeyPath(obj, kp, undefined);
-    });
-}
-
-function shallowClone(obj) {
-    var rv = {};
-    for (var m in obj) {
-        if (hasOwn(obj, m)) rv[m] = obj[m];
-    }
-    return rv;
-}
-
-function deepClone(any) {
-    if (!any || typeof any !== 'object') return any;
-    var rv;
-    if (isArray(any)) {
-        rv = [];
-        for (var i = 0, l = any.length; i < l; ++i) {
-            rv.push(deepClone(any[i]));
-        }
-    } else if (any instanceof Date) {
-        rv = new Date();
-        rv.setTime(any.getTime());
-    } else {
-        rv = any.constructor ? Object.create(any.constructor.prototype) : {};
-        for (var prop in any) {
-            if (hasOwn(any, prop)) {
-                rv[prop] = deepClone(any[prop]);
-            }
-        }
-    }
-    return rv;
-}
-
-function getObjectDiff(a, b, rv, prfx) {
-    // Compares objects a and b and produces a diff object.
-    rv = rv || {};
-    prfx = prfx || '';
-    keys(a).forEach(function (prop) {
-        if (!hasOwn(b, prop)) rv[prfx + prop] = undefined; // Property removed
-        else {
-                var ap = a[prop],
-                    bp = b[prop];
-                if (typeof ap === 'object' && typeof bp === 'object' && ap && bp && ap.constructor === bp.constructor)
-                    // Same type of object but its properties may have changed
-                    getObjectDiff(ap, bp, rv, prfx + prop + ".");else if (ap !== bp) rv[prfx + prop] = b[prop]; // Primitive value changed
-            }
-    });
-    keys(b).forEach(function (prop) {
-        if (!hasOwn(a, prop)) {
-            rv[prfx + prop] = b[prop]; // Property added
-        }
-    });
-    return rv;
-}
-
-// If first argument is iterable or array-like, return it as an array
-var iteratorSymbol = typeof Symbol !== 'undefined' && Symbol.iterator;
-var getIteratorOf = iteratorSymbol ? function (x) {
-    var i;
-    return x != null && (i = x[iteratorSymbol]) && i.apply(x);
-} : function () {
-    return null;
-};
-
-var NO_CHAR_ARRAY = {};
-// Takes one or several arguments and returns an array based on the following criteras:
-// * If several arguments provided, return arguments converted to an array in a way that
-//   still allows javascript engine to optimize the code.
-// * If single argument is an array, return a clone of it.
-// * If this-pointer equals NO_CHAR_ARRAY, don't accept strings as valid iterables as a special
-//   case to the two bullets below.
-// * If single argument is an iterable, convert it to an array and return the resulting array.
-// * If single argument is array-like (has length of type number), convert it to an array.
-function getArrayOf(arrayLike) {
-    var i, a, x, it;
-    if (arguments.length === 1) {
-        if (isArray(arrayLike)) return arrayLike.slice();
-        if (this === NO_CHAR_ARRAY && typeof arrayLike === 'string') return [arrayLike];
-        if (it = getIteratorOf(arrayLike)) {
-            a = [];
-            while (x = it.next(), !x.done) {
-                a.push(x.value);
-            }return a;
-        }
-        if (arrayLike == null) return [arrayLike];
-        i = arrayLike.length;
-        if (typeof i === 'number') {
-            a = new Array(i);
-            while (i--) {
-                a[i] = arrayLike[i];
-            }return a;
-        }
-        return [arrayLike];
-    }
-    i = arguments.length;
-    a = new Array(i);
-    while (i--) {
-        a[i] = arguments[i];
-    }return a;
-}
-
-var concat = [].concat;
-function flatten(a) {
-    return concat.apply([], a);
-}
-
-function nop() {}
-function mirror(val) {
-    return val;
-}
-function pureFunctionChain(f1, f2) {
-    // Enables chained events that takes ONE argument and returns it to the next function in chain.
-    // This pattern is used in the hook("reading") event.
-    if (f1 == null || f1 === mirror) return f2;
-    return function (val) {
-        return f2(f1(val));
-    };
-}
-
-function callBoth(on1, on2) {
-    return function () {
-        on1.apply(this, arguments);
-        on2.apply(this, arguments);
-    };
-}
-
-function hookCreatingChain(f1, f2) {
-    // Enables chained events that takes several arguments and may modify first argument by making a modification and then returning the same instance.
-    // This pattern is used in the hook("creating") event.
-    if (f1 === nop) return f2;
-    return function () {
-        var res = f1.apply(this, arguments);
-        if (res !== undefined) arguments[0] = res;
-        var onsuccess = this.onsuccess,
-            // In case event listener has set this.onsuccess
-        onerror = this.onerror; // In case event listener has set this.onerror
-        this.onsuccess = null;
-        this.onerror = null;
-        var res2 = f2.apply(this, arguments);
-        if (onsuccess) this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;
-        if (onerror) this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;
-        return res2 !== undefined ? res2 : res;
-    };
-}
-
-function hookDeletingChain(f1, f2) {
-    if (f1 === nop) return f2;
-    return function () {
-        f1.apply(this, arguments);
-        var onsuccess = this.onsuccess,
-            // In case event listener has set this.onsuccess
-        onerror = this.onerror; // In case event listener has set this.onerror
-        this.onsuccess = this.onerror = null;
-        f2.apply(this, arguments);
-        if (onsuccess) this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;
-        if (onerror) this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;
-    };
-}
-
-function hookUpdatingChain(f1, f2) {
-    if (f1 === nop) return f2;
-    return function (modifications) {
-        var res = f1.apply(this, arguments);
-        extend(modifications, res); // If f1 returns new modifications, extend caller's modifications with the result before calling next in chain.
-        var onsuccess = this.onsuccess,
-            // In case event listener has set this.onsuccess
-        onerror = this.onerror; // In case event listener has set this.onerror
-        this.onsuccess = null;
-        this.onerror = null;
-        var res2 = f2.apply(this, arguments);
-        if (onsuccess) this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;
-        if (onerror) this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;
-        return res === undefined ? res2 === undefined ? undefined : res2 : extend(res, res2);
-    };
-}
-
-function reverseStoppableEventChain(f1, f2) {
-    if (f1 === nop) return f2;
-    return function () {
-        if (f2.apply(this, arguments) === false) return false;
-        return f1.apply(this, arguments);
-    };
-}
-
-
-
-function promisableChain(f1, f2) {
-    if (f1 === nop) return f2;
-    return function () {
-        var res = f1.apply(this, arguments);
-        if (res && typeof res.then === 'function') {
-            var thiz = this,
-                i = arguments.length,
-                args = new Array(i);
-            while (i--) {
-                args[i] = arguments[i];
-            }return res.then(function () {
-                return f2.apply(thiz, args);
-            });
-        }
-        return f2.apply(this, arguments);
-    };
-}
-
-// By default, debug will be true only if platform is a web platform and its page is served from localhost.
-// When debug = true, error's stacks will contain asyncronic long stacks.
-var debug = typeof location !== 'undefined' &&
-// By default, use debug mode if served from localhost.
-/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);
-
-function setDebug(value, filter) {
-    debug = value;
-    libraryFilter = filter;
-}
-
-var libraryFilter = function () {
-    return true;
-};
-
-var NEEDS_THROW_FOR_STACK = !new Error("").stack;
-
-function getErrorWithStack() {
-    "use strict";
-
-    if (NEEDS_THROW_FOR_STACK) try {
-        // Doing something naughty in strict mode here to trigger a specific error
-        // that can be explicitely ignored in debugger's exception settings.
-        // If we'd just throw new Error() here, IE's debugger's exception settings
-        // will just consider it as "exception thrown by javascript code" which is
-        // something you wouldn't want it to ignore.
-        getErrorWithStack.arguments;
-        throw new Error(); // Fallback if above line don't throw.
-    } catch (e) {
-        return e;
-    }
-    return new Error();
-}
-
-function prettyStack(exception, numIgnoredFrames) {
-    var stack = exception.stack;
-    if (!stack) return "";
-    numIgnoredFrames = numIgnoredFrames || 0;
-    if (stack.indexOf(exception.name) === 0) numIgnoredFrames += (exception.name + exception.message).split('\n').length;
-    return stack.split('\n').slice(numIgnoredFrames).filter(libraryFilter).map(function (frame) {
-        return "\n" + frame;
-    }).join('');
-}
-
-function deprecated(what, fn) {
-    return function () {
-        console.warn(what + " is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. " + prettyStack(getErrorWithStack(), 1));
-        return fn.apply(this, arguments);
-    };
-}
-
-var dexieErrorNames = ['Modify', 'Bulk', 'OpenFailed', 'VersionChange', 'Schema', 'Upgrade', 'InvalidTable', 'MissingAPI', 'NoSuchDatabase', 'InvalidArgument', 'SubTransaction', 'Unsupported', 'Internal', 'DatabaseClosed', 'IncompatiblePromise'];
-
-var idbDomErrorNames = ['Unknown', 'Constraint', 'Data', 'TransactionInactive', 'ReadOnly', 'Version', 'NotFound', 'InvalidState', 'InvalidAccess', 'Abort', 'Timeout', 'QuotaExceeded', 'Syntax', 'DataClone'];
-
-var errorList = dexieErrorNames.concat(idbDomErrorNames);
-
-var defaultTexts = {
-    VersionChanged: "Database version changed by other database connection",
-    DatabaseClosed: "Database has been closed",
-    Abort: "Transaction aborted",
-    TransactionInactive: "Transaction has already completed or failed"
-};
-
-//
-// DexieError - base class of all out exceptions.
-//
-function DexieError(name, msg) {
-    // Reason we don't use ES6 classes is because:
-    // 1. It bloats transpiled code and increases size of minified code.
-    // 2. It doesn't give us much in this case.
-    // 3. It would require sub classes to call super(), which
-    //    is not needed when deriving from Error.
-    this._e = getErrorWithStack();
-    this.name = name;
-    this.message = msg;
-}
-
-derive(DexieError).from(Error).extend({
-    stack: {
-        get: function () {
-            return this._stack || (this._stack = this.name + ": " + this.message + prettyStack(this._e, 2));
-        }
-    },
-    toString: function () {
-        return this.name + ": " + this.message;
-    }
-});
-
-function getMultiErrorMessage(msg, failures) {
-    return msg + ". Errors: " + failures.map(function (f) {
-        return f.toString();
-    }).filter(function (v, i, s) {
-        return s.indexOf(v) === i;
-    }) // Only unique error strings
-    .join('\n');
-}
-
-//
-// ModifyError - thrown in WriteableCollection.modify()
-// Specific constructor because it contains members failures and failedKeys.
-//
-function ModifyError(msg, failures, successCount, failedKeys) {
-    this._e = getErrorWithStack();
-    this.failures = failures;
-    this.failedKeys = failedKeys;
-    this.successCount = successCount;
-}
-derive(ModifyError).from(DexieError);
-
-function BulkError(msg, failures) {
-    this._e = getErrorWithStack();
-    this.name = "BulkError";
-    this.failures = failures;
-    this.message = getMultiErrorMessage(msg, failures);
-}
-derive(BulkError).from(DexieError);
-
-//
-//
-// Dynamically generate error names and exception classes based
-// on the names in errorList.
-//
-//
-
-// Map of {ErrorName -> ErrorName + "Error"}
-var errnames = errorList.reduce(function (obj, name) {
-    return obj[name] = name + "Error", obj;
-}, {});
-
-// Need an alias for DexieError because we're gonna create subclasses with the same name.
-var BaseException = DexieError;
-// Map of {ErrorName -> exception constructor}
-var exceptions = errorList.reduce(function (obj, name) {
-    // Let the name be "DexieError" because this name may
-    // be shown in call stack and when debugging. DexieError is
-    // the most true name because it derives from DexieError,
-    // and we cannot change Function.name programatically without
-    // dynamically create a Function object, which would be considered
-    // 'eval-evil'.
-    var fullName = name + "Error";
-    function DexieError(msgOrInner, inner) {
-        this._e = getErrorWithStack();
-        this.name = fullName;
-        if (!msgOrInner) {
-            this.message = defaultTexts[name] || fullName;
-            this.inner = null;
-        } else if (typeof msgOrInner === 'string') {
-            this.message = msgOrInner;
-            this.inner = inner || null;
-        } else if (typeof msgOrInner === 'object') {
-            this.message = msgOrInner.name + ' ' + msgOrInner.message;
-            this.inner = msgOrInner;
-        }
-    }
-    derive(DexieError).from(BaseException);
-    obj[name] = DexieError;
-    return obj;
-}, {});
-
-// Use ECMASCRIPT standard exceptions where applicable:
-exceptions.Syntax = SyntaxError;
-exceptions.Type = TypeError;
-exceptions.Range = RangeError;
-
-var exceptionMap = idbDomErrorNames.reduce(function (obj, name) {
-    obj[name + "Error"] = exceptions[name];
-    return obj;
-}, {});
-
-function mapError(domError, message) {
-    if (!domError || domError instanceof DexieError || domError instanceof TypeError || domError instanceof SyntaxError || !domError.name || !exceptionMap[domError.name]) return domError;
-    var rv = new exceptionMap[domError.name](message || domError.message, domError);
-    if ("stack" in domError) {
-        // Derive stack from inner exception if it has a stack
-        setProp(rv, "stack", { get: function () {
-                return this.inner.stack;
-            } });
-    }
-    return rv;
-}
-
-var fullNameExceptions = errorList.reduce(function (obj, name) {
-    if (["Syntax", "Type", "Range"].indexOf(name) === -1) obj[name + "Error"] = exceptions[name];
-    return obj;
-}, {});
-
-fullNameExceptions.ModifyError = ModifyError;
-fullNameExceptions.DexieError = DexieError;
-fullNameExceptions.BulkError = BulkError;
-
-function Events(ctx) {
-    var evs = {};
-    var rv = function (eventName, subscriber) {
-        if (subscriber) {
-            // Subscribe. If additional arguments than just the subscriber was provided, forward them as well.
-            var i = arguments.length,
-                args = new Array(i - 1);
-            while (--i) {
-                args[i - 1] = arguments[i];
-            }evs[eventName].subscribe.apply(null, args);
-            return ctx;
-        } else if (typeof eventName === 'string') {
-            // Return interface allowing to fire or unsubscribe from event
-            return evs[eventName];
-        }
-    };
-    rv.addEventType = add;
-
-    for (var i = 1, l = arguments.length; i < l; ++i) {
-        add(arguments[i]);
-    }
-
-    return rv;
-
-    function add(eventName, chainFunction, defaultFunction) {
-        if (typeof eventName === 'object') return addConfiguredEvents(eventName);
-        if (!chainFunction) chainFunction = reverseStoppableEventChain;
-        if (!defaultFunction) defaultFunction = nop;
-
-        var context = {
-            subscribers: [],
-            fire: defaultFunction,
-            subscribe: function (cb) {
-                if (context.subscribers.indexOf(cb) === -1) {
-                    context.subscribers.push(cb);
-                    context.fire = chainFunction(context.fire, cb);
-                }
-            },
-            unsubscribe: function (cb) {
-                context.subscribers = context.subscribers.filter(function (fn) {
-                    return fn !== cb;
-                });
-                context.fire = context.subscribers.reduce(chainFunction, defaultFunction);
-            }
-        };
-        evs[eventName] = rv[eventName] = context;
-        return context;
-    }
-
-    function addConfiguredEvents(cfg) {
-        // events(this, {reading: [functionChain, nop]});
-        keys(cfg).forEach(function (eventName) {
-            var args = cfg[eventName];
-            if (isArray(args)) {
-                add(eventName, cfg[eventName][0], cfg[eventName][1]);
-            } else if (args === 'asap') {
-                // Rather than approaching event subscription using a functional approach, we here do it in a for-loop where subscriber is executed in its own stack
-                // enabling that any exception that occur wont disturb the initiator and also not nescessary be catched and forgotten.
-                var context = add(eventName, mirror, function fire() {
-                    // Optimazation-safe cloning of arguments into args.
-                    var i = arguments.length,
-                        args = new Array(i);
-                    while (i--) {
-                        args[i] = arguments[i];
-                    } // All each subscriber:
-                    context.subscribers.forEach(function (fn) {
-                        asap(function fireEvent() {
-                            fn.apply(null, args);
-                        });
-                    });
-                });
-            } else throw new exceptions.InvalidArgument("Invalid event config");
-        });
-    }
-}
-
-//
-// Promise Class for Dexie library
-//
-// I started out writing this Promise class by copying promise-light (https://github.com/taylorhakes/promise-light) by
-// https://github.com/taylorhakes - an A+ and ECMASCRIPT 6 compliant Promise implementation.
-//
-// Modifications needed to be done to support indexedDB because it wont accept setTimeout()
-// (See discussion: https://github.com/promises-aplus/promises-spec/issues/45) .
-// This topic was also discussed in the following thread: https://github.com/promises-aplus/promises-spec/issues/45
-//
-// This implementation will not use setTimeout or setImmediate when it's not needed. The behavior is 100% Promise/A+ compliant since
-// the caller of new Promise() can be certain that the promise wont be triggered the lines after constructing the promise.
-//
-// In previous versions this was fixed by not calling setTimeout when knowing that the resolve() or reject() came from another
-// tick. In Dexie v1.4.0, I've rewritten the Promise class entirely. Just some fragments of promise-light is left. I use
-// another strategy now that simplifies everything a lot: to always execute callbacks in a new tick, but have an own microTick
-// engine that is used instead of setImmediate() or setTimeout().
-// Promise class has also been optimized a lot with inspiration from bluebird - to avoid closures as much as possible.
-// Also with inspiration from bluebird, asyncronic stacks in debug mode.
-//
-// Specific non-standard features of this Promise class:
-// * Async static context support (Promise.PSD)
-// * Promise.follow() method built upon PSD, that allows user to track all promises created from current stack frame
-//   and below + all promises that those promises creates or awaits.
-// * Detect any unhandled promise in a PSD-scope (PSD.onunhandled). 
-//
-// David Fahlander, https://github.com/dfahlander
-//
-
-// Just a pointer that only this module knows about.
-// Used in Promise constructor to emulate a private constructor.
-var INTERNAL = {};
-
-// Async stacks (long stacks) must not grow infinitely.
-var LONG_STACKS_CLIP_LIMIT = 100;
-var MAX_LONG_STACKS = 20;
-var stack_being_generated = false;
-
-/* The default "nextTick" function used only for the very first promise in a promise chain.
-   As soon as then promise is resolved or rejected, all next tasks will be executed in micro ticks
-   emulated in this module. For indexedDB compatibility, this means that every method needs to 
-   execute at least one promise before doing an indexedDB operation. Dexie will always call 
-   db.ready().then() for every operation to make sure the indexedDB event is started in an
-   emulated micro tick.
-*/
-var schedulePhysicalTick = _global.setImmediate ?
-// setImmediate supported. Those modern platforms also supports Function.bind().
-setImmediate.bind(null, physicalTick) : _global.MutationObserver ?
-// MutationObserver supported
-function () {
-    var hiddenDiv = document.createElement("div");
-    new MutationObserver(function () {
-        physicalTick();
-        hiddenDiv = null;
-    }).observe(hiddenDiv, { attributes: true });
-    hiddenDiv.setAttribute('i', '1');
-} :
-// No support for setImmediate or MutationObserver. No worry, setTimeout is only called
-// once time. Every tick that follows will be our emulated micro tick.
-// Could have uses setTimeout.bind(null, 0, physicalTick) if it wasnt for that FF13 and below has a bug 
-function () {
-    setTimeout(physicalTick, 0);
-};
-
-// Confifurable through Promise.scheduler.
-// Don't export because it would be unsafe to let unknown
-// code call it unless they do try..catch within their callback.
-// This function can be retrieved through getter of Promise.scheduler though,
-// but users must not do Promise.scheduler (myFuncThatThrows exception)!
-var asap$1 = function (callback, args) {
-    microtickQueue.push([callback, args]);
-    if (needsNewPhysicalTick) {
-        schedulePhysicalTick();
-        needsNewPhysicalTick = false;
-    }
-};
-
-var isOutsideMicroTick = true;
-var needsNewPhysicalTick = true;
-var unhandledErrors = [];
-var rejectingErrors = [];
-var currentFulfiller = null;
-var rejectionMapper = mirror; // Remove in next major when removing error mapping of DOMErrors and DOMExceptions
-
-var globalPSD = {
-    global: true,
-    ref: 0,
-    unhandleds: [],
-    onunhandled: globalError,
-    //env: null, // Will be set whenever leaving a scope using wrappers.snapshot()
-    finalize: function () {
-        this.unhandleds.forEach(function (uh) {
-            try {
-                globalError(uh[0], uh[1]);
-            } catch (e) {}
-        });
-    }
-};
-
-var PSD = globalPSD;
-
-var microtickQueue = []; // Callbacks to call in this or next physical tick.
-var numScheduledCalls = 0; // Number of listener-calls left to do in this physical tick.
-var tickFinalizers = []; // Finalizers to call when there are no more async calls scheduled within current physical tick.
-
-// Wrappers are not being used yet. Their framework is functioning and can be used
-// to replace environment during a PSD scope (a.k.a. 'zone').
-/* **KEEP** export var wrappers = (() => {
-    var wrappers = [];
-
-    return {
-        snapshot: () => {
-            var i = wrappers.length,
-                result = new Array(i);
-            while (i--) result[i] = wrappers[i].snapshot();
-            return result;
-        },
-        restore: values => {
-            var i = wrappers.length;
-            while (i--) wrappers[i].restore(values[i]);
-        },
-        wrap: () => wrappers.map(w => w.wrap()),
-        add: wrapper => {
-            wrappers.push(wrapper);
-        }
-    };
-})();
-*/
-
-function Promise(fn) {
-    if (typeof this !== 'object') throw new TypeError('Promises must be constructed via new');
-    this._listeners = [];
-    this.onuncatched = nop; // Deprecate in next major. Not needed. Better to use global error handler.
-
-    // A library may set `promise._lib = true;` after promise is created to make resolve() or reject()
-    // execute the microtask engine implicitely within the call to resolve() or reject().
-    // To remain A+ compliant, a library must only set `_lib=true` if it can guarantee that the stack
-    // only contains library code when calling resolve() or reject().
-    // RULE OF THUMB: ONLY set _lib = true for promises explicitely resolving/rejecting directly from
-    // global scope (event handler, timer etc)!
-    this._lib = false;
-    // Current async scope
-    var psd = this._PSD = PSD;
-
-    if (debug) {
-        this._stackHolder = getErrorWithStack();
-        this._prev = null;
-        this._numPrev = 0; // Number of previous promises (for long stacks)
-        linkToPreviousPromise(this, currentFulfiller);
-    }
-
-    if (typeof fn !== 'function') {
-        if (fn !== INTERNAL) throw new TypeError('Not a function');
-        // Private constructor (INTERNAL, state, value).
-        // Used internally by Promise.resolve() and Promise.reject().
-        this._state = arguments[1];
-        this._value = arguments[2];
-        if (this._state === false) handleRejection(this, this._value); // Map error, set stack and addPossiblyUnhandledError().
-        return;
-    }
-
-    this._state = null; // null (=pending), false (=rejected) or true (=resolved)
-    this._value = null; // error or result
-    ++psd.ref; // Refcounting current scope
-    executePromiseTask(this, fn);
-}
-
-props(Promise.prototype, {
-
-    then: function (onFulfilled, onRejected) {
-        var _this = this;
-
-        var rv = new Promise(function (resolve, reject) {
-            propagateToListener(_this, new Listener(onFulfilled, onRejected, resolve, reject));
-        });
-        debug && (!this._prev || this._state === null) && linkToPreviousPromise(rv, this);
-        return rv;
-    },
-
-    _then: function (onFulfilled, onRejected) {
-        // A little tinier version of then() that don't have to create a resulting promise.
-        propagateToListener(this, new Listener(null, null, onFulfilled, onRejected));
-    },
-
-    catch: function (onRejected) {
-        if (arguments.length === 1) return this.then(null, onRejected);
-        // First argument is the Error type to catch
-        var type = arguments[0],
-            handler = arguments[1];
-        return typeof type === 'function' ? this.then(null, function (err) {
-            return (
-                // Catching errors by its constructor type (similar to java / c++ / c#)
-                // Sample: promise.catch(TypeError, function (e) { ... });
-                err instanceof type ? handler(err) : PromiseReject(err)
-            );
-        }) : this.then(null, function (err) {
-            return (
-                // Catching errors by the error.name property. Makes sense for indexedDB where error type
-                // is always DOMError but where e.name tells the actual error type.
-                // Sample: promise.catch('ConstraintError', function (e) { ... });
-                err && err.name === type ? handler(err) : PromiseReject(err)
-            );
-        });
-    },
-
-    finally: function (onFinally) {
-        return this.then(function (value) {
-            onFinally();
-            return value;
-        }, function (err) {
-            onFinally();
-            return PromiseReject(err);
-        });
-    },
-
-    // Deprecate in next major. Needed only for db.on.error.
-    uncaught: function (uncaughtHandler) {
-        var _this2 = this;
-
-        // Be backward compatible and use "onuncatched" as the event name on this.
-        // Handle multiple subscribers through reverseStoppableEventChain(). If a handler returns `false`, bubbling stops.
-        this.onuncatched = reverseStoppableEventChain(this.onuncatched, uncaughtHandler);
-        // In case caller does this on an already rejected promise, assume caller wants to point out the error to this promise and not
-        // a previous promise. Reason: the prevous promise may lack onuncatched handler. 
-        if (this._state === false && unhandledErrors.indexOf(this) === -1) {
-            // Replace unhandled error's destinaion promise with this one!
-            unhandledErrors.some(function (p, i, l) {
-                return p._value === _this2._value && (l[i] = _this2);
-            });
-            // Actually we do this shit because we need to support db.on.error() correctly during db.open(). If we deprecate db.on.error, we could
-            // take away this piece of code as well as the onuncatched and uncaught() method.
-        }
-        return this;
-    },
-
-    stack: {
-        get: function () {
-            if (this._stack) return this._stack;
-            try {
-                stack_being_generated = true;
-                var stacks = getStack(this, [], MAX_LONG_STACKS);
-                var stack = stacks.join("\nFrom previous: ");
-                if (this._state !== null) this._stack = stack; // Stack may be updated on reject.
-                return stack;
-            } finally {
-                stack_being_generated = false;
-            }
-        }
-    }
-});
-
-function Listener(onFulfilled, onRejected, resolve, reject) {
-    this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
-    this.onRejected = typeof onRejected === 'function' ? onRejected : null;
-    this.resolve = resolve;
-    this.reject = reject;
-    this.psd = PSD;
-}
-
-// Promise Static Properties
-props(Promise, {
-    all: function () {
-        var values = getArrayOf.apply(null, arguments); // Supports iterables, implicit arguments and array-like.
-        return new Promise(function (resolve, reject) {
-            if (values.length === 0) resolve([]);
-            var remaining = values.length;
-            values.forEach(function (a, i) {
-                return Promise.resolve(a).then(function (x) {
-                    values[i] = x;
-                    if (! --remaining) resolve(values);
-                }, reject);
-            });
-        });
-    },
-
-    resolve: function (value) {
-        if (value instanceof Promise) return value;
-        if (value && typeof value.then === 'function') return new Promise(function (resolve, reject) {
-            value.then(resolve, reject);
-        });
-        return new Promise(INTERNAL, true, value);
-    },
-
-    reject: PromiseReject,
-
-    race: function () {
-        var values = getArrayOf.apply(null, arguments);
-        return new Promise(function (resolve, reject) {
-            values.map(function (value) {
-                return Promise.resolve(value).then(resolve, reject);
-            });
-        });
-    },
-
-    PSD: {
-        get: function () {
-            return PSD;
-        },
-        set: function (value) {
-            return PSD = value;
-        }
-    },
-
-    newPSD: newScope,
-
-    usePSD: usePSD,
-
-    scheduler: {
-        get: function () {
-            return asap$1;
-        },
-        set: function (value) {
-            asap$1 = value;
-        }
-    },
-
-    rejectionMapper: {
-        get: function () {
-            return rejectionMapper;
-        },
-        set: function (value) {
-            rejectionMapper = value;
-        } // Map reject failures
-    },
-
-    follow: function (fn) {
-        return new Promise(function (resolve, reject) {
-            return newScope(function (resolve, reject) {
-                var psd = PSD;
-                psd.unhandleds = []; // For unhandled standard- or 3rd party Promises. Checked at psd.finalize()
-                psd.onunhandled = reject; // Triggered directly on unhandled promises of this library.
-                psd.finalize = callBoth(function () {
-                    var _this3 = this;
-
-                    // Unhandled standard or 3rd part promises are put in PSD.unhandleds and
-                    // examined upon scope completion while unhandled rejections in this Promise
-                    // will trigger directly through psd.onunhandled
-                    run_at_end_of_this_or_next_physical_tick(function () {
-                        _this3.unhandleds.length === 0 ? resolve() : reject(_this3.unhandleds[0]);
-                    });
-                }, psd.finalize);
-                fn();
-            }, resolve, reject);
-        });
-    },
-
-    on: Events(null, { "error": [reverseStoppableEventChain, defaultErrorHandler] // Default to defaultErrorHandler
-    })
-
-});
-
-var PromiseOnError = Promise.on.error;
-PromiseOnError.subscribe = deprecated("Promise.on('error')", PromiseOnError.subscribe);
-PromiseOnError.unsubscribe = deprecated("Promise.on('error').unsubscribe", PromiseOnError.unsubscribe);
-
-/**
-* Take a potentially misbehaving resolver function and make sure
-* onFulfilled and onRejected are only called once.
-*
-* Makes no guarantees about asynchrony.
-*/
-function executePromiseTask(promise, fn) {
-    // Promise Resolution Procedure:
-    // https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure
-    try {
-        fn(function (value) {
-            if (promise._state !== null) return;
-            if (value === promise) throw new TypeError('A promise cannot be resolved with itself.');
-            var shouldExecuteTick = promise._lib && beginMicroTickScope();
-            if (value && typeof value.then === 'function') {
-                executePromiseTask(promise, function (resolve, reject) {
-                    value instanceof Promise ? value._then(resolve, reject) : value.then(resolve, reject);
-                });
-            } else {
-                promise._state = true;
-                promise._value = value;
-                propagateAllListeners(promise);
-            }
-            if (shouldExecuteTick) endMicroTickScope();
-        }, handleRejection.bind(null, promise)); // If Function.bind is not supported. Exception is handled in catch below
-    } catch (ex) {
-        handleRejection(promise, ex);
-    }
-}
-
-function handleRejection(promise, reason) {
-    rejectingErrors.push(reason);
-    if (promise._state !== null) return;
-    var shouldExecuteTick = promise._lib && beginMicroTickScope();
-    reason = rejectionMapper(reason);
-    promise._state = false;
-    promise._value = reason;
-    debug && reason !== null && typeof reason === 'object' && !reason._promise && tryCatch(function () {
-        var origProp = getPropertyDescriptor(reason, "stack");
-        reason._promise = promise;
-        setProp(reason, "stack", {
-            get: function () {
-                return stack_being_generated ? origProp && (origProp.get ? origProp.get.apply(reason) : origProp.value) : promise.stack;
-            }
-        });
-    });
-    // Add the failure to a list of possibly uncaught errors
-    addPossiblyUnhandledError(promise);
-    propagateAllListeners(promise);
-    if (shouldExecuteTick) endMicroTickScope();
-}
-
-function propagateAllListeners(promise) {
-    //debug && linkToPreviousPromise(promise);
-    var listeners = promise._listeners;
-    promise._listeners = [];
-    for (var i = 0, len = listeners.length; i < len; ++i) {
-        propagateToListener(promise, listeners[i]);
-    }
-    var psd = promise._PSD;
-    --psd.ref || psd.finalize(); // if psd.ref reaches zero, call psd.finalize();
-    if (numScheduledCalls === 0) {
-        // If numScheduledCalls is 0, it means that our stack is not in a callback of a scheduled call,
-        // and that no deferreds where listening to this rejection or success.
-        // Since there is a risk that our stack can contain application code that may
-        // do stuff after this code is finished that may generate new calls, we cannot
-        // call finalizers here.
-        ++numScheduledCalls;
-        asap$1(function () {
-            if (--numScheduledCalls === 0) finalizePhysicalTick(); // Will detect unhandled errors
-        }, []);
-    }
-}
-
-function propagateToListener(promise, listener) {
-    if (promise._state === null) {
-        promise._listeners.push(listener);
-        return;
-    }
-
-    var cb = promise._state ? listener.onFulfilled : listener.onRejected;
-    if (cb === null) {
-        // This Listener doesnt have a listener for the event being triggered (onFulfilled or onReject) so lets forward the event to any eventual listeners on the Promise instance returned by then() or catch()
-        return (promise._state ? listener.resolve : listener.reject)(promise._value);
-    }
-    var psd = listener.psd;
-    ++psd.ref;
-    ++numScheduledCalls;
-    asap$1(callListener, [cb, promise, listener]);
-}
-
-function callListener(cb, promise, listener) {
-    var outerScope = PSD;
-    var psd = listener.psd;
-    try {
-        if (psd !== outerScope) {
-            // **KEEP** outerScope.env = wrappers.snapshot(); // Snapshot outerScope's environment.
-            PSD = psd;
-            // **KEEP** wrappers.restore(psd.env); // Restore PSD's environment.
-        }
-
-        // Set static variable currentFulfiller to the promise that is being fullfilled,
-        // so that we connect the chain of promises (for long stacks support)
-        currentFulfiller = promise;
-
-        // Call callback and resolve our listener with it's return value.
-        var value = promise._value,
-            ret;
-        if (promise._state) {
-            ret = cb(value);
-        } else {
-            if (rejectingErrors.length) rejectingErrors = [];
-            ret = cb(value);
-            if (rejectingErrors.indexOf(value) === -1) markErrorAsHandled(promise); // Callback didnt do Promise.reject(err) nor reject(err) onto another promise.
-        }
-        listener.resolve(ret);
-    } catch (e) {
-        // Exception thrown in callback. Reject our listener.
-        listener.reject(e);
-    } finally {
-        // Restore PSD, env and currentFulfiller.
-        if (psd !== outerScope) {
-            PSD = outerScope;
-            // **KEEP** wrappers.restore(outerScope.env); // Restore outerScope's environment
-        }
-        currentFulfiller = null;
-        if (--numScheduledCalls === 0) finalizePhysicalTick();
-        --psd.ref || psd.finalize();
-    }
-}
-
-function getStack(promise, stacks, limit) {
-    if (stacks.length === limit) return stacks;
-    var stack = "";
-    if (promise._state === false) {
-        var failure = promise._value,
-            errorName,
-            message;
-
-        if (failure != null) {
-            errorName = failure.name || "Error";
-            message = failure.message || failure;
-            stack = prettyStack(failure, 0);
-        } else {
-            errorName = failure; // If error is undefined or null, show that.
-            message = "";
-        }
-        stacks.push(errorName + (message ? ": " + message : "") + stack);
-    }
-    if (debug) {
-        stack = prettyStack(promise._stackHolder, 2);
-        if (stack && stacks.indexOf(stack) === -1) stacks.push(stack);
-        if (promise._prev) getStack(promise._prev, stacks, limit);
-    }
-    return stacks;
-}
-
-function linkToPreviousPromise(promise, prev) {
-    // Support long stacks by linking to previous completed promise.
-    var numPrev = prev ? prev._numPrev + 1 : 0;
-    if (numPrev < LONG_STACKS_CLIP_LIMIT) {
-        // Prohibit infinite Promise loops to get an infinite long memory consuming "tail".
-        promise._prev = prev;
-        promise._numPrev = numPrev;
-    }
-}
-
-/* The callback to schedule with setImmediate() or setTimeout().
-   It runs a virtual microtick and executes any callback registered in microtickQueue.
- */
-function physicalTick() {
-    beginMicroTickScope() && endMicroTickScope();
-}
-
-function beginMicroTickScope() {
-    var wasRootExec = isOutsideMicroTick;
-    isOutsideMicroTick = false;
-    needsNewPhysicalTick = false;
-    return wasRootExec;
-}
-
-/* Executes micro-ticks without doing try..catch.
-   This can be possible because we only use this internally and
-   the registered functions are exception-safe (they do try..catch
-   internally before calling any external method). If registering
-   functions in the microtickQueue that are not exception-safe, this
-   would destroy the framework and make it instable. So we don't export
-   our asap method.
-*/
-function endMicroTickScope() {
-    var callbacks, i, l;
-    do {
-        while (microtickQueue.length > 0) {
-            callbacks = microtickQueue;
-            microtickQueue = [];
-            l = callbacks.length;
-            for (i = 0; i < l; ++i) {
-                var item = callbacks[i];
-                item[0].apply(null, item[1]);
-            }
-        }
-    } while (microtickQueue.length > 0);
-    isOutsideMicroTick = true;
-    needsNewPhysicalTick = true;
-}
-
-function finalizePhysicalTick() {
-    var unhandledErrs = unhandledErrors;
-    unhandledErrors = [];
-    unhandledErrs.forEach(function (p) {
-        p._PSD.onunhandled.call(null, p._value, p);
-    });
-    var finalizers = tickFinalizers.slice(0); // Clone first because finalizer may remove itself from list.
-    var i = finalizers.length;
-    while (i) {
-        finalizers[--i]();
-    }
-}
-
-function run_at_end_of_this_or_next_physical_tick(fn) {
-    function finalizer() {
-        fn();
-        tickFinalizers.splice(tickFinalizers.indexOf(finalizer), 1);
-    }
-    tickFinalizers.push(finalizer);
-    ++numScheduledCalls;
-    asap$1(function () {
-        if (--numScheduledCalls === 0) finalizePhysicalTick();
-    }, []);
-}
-
-function addPossiblyUnhandledError(promise) {
-    // Only add to unhandledErrors if not already there. The first one to add to this list
-    // will be upon the first rejection so that the root cause (first promise in the
-    // rejection chain) is the one listed.
-    if (!unhandledErrors.some(function (p) {
-        return p._value === promise._value;
-    })) unhandledErrors.push(promise);
-}
-
-function markErrorAsHandled(promise) {
-    // Called when a reject handled is actually being called.
-    // Search in unhandledErrors for any promise whos _value is this promise_value (list
-    // contains only rejected promises, and only one item per error)
-    var i = unhandledErrors.length;
-    while (i) {
-        if (unhandledErrors[--i]._value === promise._value) {
-            // Found a promise that failed with this same error object pointer,
-            // Remove that since there is a listener that actually takes care of it.
-            unhandledErrors.splice(i, 1);
-            return;
-        }
-    }
-}
-
-// By default, log uncaught errors to the console
-function defaultErrorHandler(e) {
-    console.warn('Unhandled rejection: ' + (e.stack || e));
-}
-
-function PromiseReject(reason) {
-    return new Promise(INTERNAL, false, reason);
-}
-
-function wrap(fn, errorCatcher) {
-    var psd = PSD;
-    return function () {
-        var wasRootExec = beginMicroTickScope(),
-            outerScope = PSD;
-
-        try {
-            if (outerScope !== psd) {
-                // **KEEP** outerScope.env = wrappers.snapshot(); // Snapshot outerScope's environment
-                PSD = psd;
-                // **KEEP** wrappers.restore(psd.env); // Restore PSD's environment.
-            }
-            return fn.apply(this, arguments);
-        } catch (e) {
-            errorCatcher && errorCatcher(e);
-        } finally {
-            if (outerScope !== psd) {
-                PSD = outerScope;
-                // **KEEP** wrappers.restore(outerScope.env); // Restore outerScope's environment
-            }
-            if (wasRootExec) endMicroTickScope();
-        }
-    };
-}
-
-function newScope(fn, a1, a2, a3) {
-    var parent = PSD,
-        psd = Object.create(parent);
-    psd.parent = parent;
-    psd.ref = 0;
-    psd.global = false;
-    // **KEEP** psd.env = wrappers.wrap(psd);
-
-    // unhandleds and onunhandled should not be specifically set here.
-    // Leave them on parent prototype.
-    // unhandleds.push(err) will push to parent's prototype
-    // onunhandled() will call parents onunhandled (with this scope's this-pointer though!)
-    ++parent.ref;
-    psd.finalize = function () {
-        --this.parent.ref || this.parent.finalize();
-    };
-    var rv = usePSD(psd, fn, a1, a2, a3);
-    if (psd.ref === 0) psd.finalize();
-    return rv;
-}
-
-function usePSD(psd, fn, a1, a2, a3) {
-    var outerScope = PSD;
-    try {
-        if (psd !== outerScope) {
-            // **KEEP** outerScope.env = wrappers.snapshot(); // snapshot outerScope's environment.
-            PSD = psd;
-            // **KEEP** wrappers.restore(psd.env); // Restore PSD's environment.
-        }
-        return fn(a1, a2, a3);
-    } finally {
-        if (psd !== outerScope) {
-            PSD = outerScope;
-            // **KEEP** wrappers.restore(outerScope.env); // Restore outerScope's environment.
-        }
-    }
-}
-
-var UNHANDLEDREJECTION = "unhandledrejection";
-
-function globalError(err, promise) {
-    var rv;
-    try {
-        rv = promise.onuncatched(err);
-    } catch (e) {}
-    if (rv !== false) try {
-        var event,
-            eventData = { promise: promise, reason: err };
-        if (_global.document && document.createEvent) {
-            event = document.createEvent('Event');
-            event.initEvent(UNHANDLEDREJECTION, true, true);
-            extend(event, eventData);
-        } else if (_global.CustomEvent) {
-            event = new CustomEvent(UNHANDLEDREJECTION, { detail: eventData });
-            extend(event, eventData);
-        }
-        if (event && _global.dispatchEvent) {
-            dispatchEvent(event);
-            if (!_global.PromiseRejectionEvent && _global.onunhandledrejection)
-                // No native support for PromiseRejectionEvent but user has set window.onunhandledrejection. Manually call it.
-                try {
-                    _global.onunhandledrejection(event);
-                } catch (_) {}
-        }
-        if (!event.defaultPrevented) {
-            // Backward compatibility: fire to events registered at Promise.on.error
-            Promise.on.error.fire(err, promise);
-        }
-    } catch (e) {}
-}
-
-/* **KEEP** 
-
-export function wrapPromise(PromiseClass) {
-    var proto = PromiseClass.prototype;
-    var origThen = proto.then;
-    
-    wrappers.add({
-        snapshot: () => proto.then,
-        restore: value => {proto.then = value;},
-        wrap: () => patchedThen
-    });
-
-    function patchedThen (onFulfilled, onRejected) {
-        var promise = this;
-        var onFulfilledProxy = wrap(function(value){
-            var rv = value;
-            if (onFulfilled) {
-                rv = onFulfilled(rv);
-                if (rv && typeof rv.then === 'function') rv.then(); // Intercept that promise as well.
-            }
-            --PSD.ref || PSD.finalize();
-            return rv;
-        });
-        var onRejectedProxy = wrap(function(err){
-            promise._$err = err;
-            var unhandleds = PSD.unhandleds;
-            var idx = unhandleds.length,
-                rv;
-            while (idx--) if (unhandleds[idx]._$err === err) break;
-            if (onRejected) {
-                if (idx !== -1) unhandleds.splice(idx, 1); // Mark as handled.
-                rv = onRejected(err);
-                if (rv && typeof rv.then === 'function') rv.then(); // Intercept that promise as well.
-            } else {
-                if (idx === -1) unhandleds.push(promise);
-                rv = PromiseClass.reject(err);
-                rv._$nointercept = true; // Prohibit eternal loop.
-            }
-            --PSD.ref || PSD.finalize();
-            return rv;
-        });
-        
-        if (this._$nointercept) return origThen.apply(this, arguments);
-        ++PSD.ref;
-        return origThen.call(this, onFulfilledProxy, onRejectedProxy);
-    }
-}
-
-// Global Promise wrapper
-if (_global.Promise) wrapPromise(_global.Promise);
-
-*/
-
-doFakeAutoComplete(function () {
-    // Simplify the job for VS Intellisense. This piece of code is one of the keys to the new marvellous intellisense support in Dexie.
-    asap$1 = function (fn, args) {
-        setTimeout(function () {
-            fn.apply(null, args);
-        }, 0);
-    };
-});
-
-function rejection(err, uncaughtHandler) {
-    // Get the call stack and return a rejected promise.
-    var rv = Promise.reject(err);
-    return uncaughtHandler ? rv.uncaught(uncaughtHandler) : rv;
-}
-
-/*
- * Dexie.js - a minimalistic wrapper for IndexedDB
- * ===============================================
- *
- * By David Fahlander, david.fahlander@gmail.com
- *
- * Version 1.5.1, Tue Nov 01 2016
- *
- * http://dexie.org
- *
- * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/
- */
-
-var DEXIE_VERSION = '1.5.1';
-var maxString = String.fromCharCode(65535);
-var maxKey = function () {
-    try {
-        IDBKeyRange.only([[]]);return [[]];
-    } catch (e) {
-        return maxString;
-    }
-}();
-var INVALID_KEY_ARGUMENT = "Invalid key provided. Keys must be of type string, number, Date or Array.";
-var STRING_EXPECTED = "String expected.";
-var connections = [];
-var isIEOrEdge = typeof navigator !== 'undefined' && /(MSIE|Trident|Edge)/.test(navigator.userAgent);
-var hasIEDeleteObjectStoreBug = isIEOrEdge;
-var hangsOnDeleteLargeKeyRange = isIEOrEdge;
-var dexieStackFrameFilter = function (frame) {
-    return !/(dexie\.js|dexie\.min\.js)/.test(frame);
-};
-
-setDebug(debug, dexieStackFrameFilter);
-
-function Dexie(dbName, options) {
-    /// Specify only if you wich to control which addons that should run on this instance
-    var deps = Dexie.dependencies;
-    var opts = extend({
-        // Default Options
-        addons: Dexie.addons, // Pick statically registered addons by default
-        autoOpen: true, // Don't require db.open() explicitely.
-        indexedDB: deps.indexedDB, // Backend IndexedDB api. Default to IDBShim or browser env.
-        IDBKeyRange: deps.IDBKeyRange // Backend IDBKeyRange api. Default to IDBShim or browser env.
-    }, options);
-    var addons = opts.addons,
-        autoOpen = opts.autoOpen,
-        indexedDB = opts.indexedDB,
-        IDBKeyRange = opts.IDBKeyRange;
-
-    var globalSchema = this._dbSchema = {};
-    var versions = [];
-    var dbStoreNames = [];
-    var allTables = {};
-    ///
-    var idbdb = null; // Instance of IDBDatabase
-    var dbOpenError = null;
-    var isBeingOpened = false;
-    var openComplete = false;
-    var READONLY = "readonly",
-        READWRITE = "readwrite";
-    var db = this;
-    var dbReadyResolve,
-        dbReadyPromise = new Promise(function (resolve) {
-        dbReadyResolve = resolve;
-    }),
-        cancelOpen,
-        openCanceller = new Promise(function (_, reject) {
-        cancelOpen = reject;
-    });
-    var autoSchema = true;
-    var hasNativeGetDatabaseNames = !!getNativeGetDatabaseNamesFn(indexedDB),
-        hasGetAll;
-
-    function init() {
-        // Default subscribers to "versionchange" and "blocked".
-        // Can be overridden by custom handlers. If custom handlers return false, these default
-        // behaviours will be prevented.
-        db.on("versionchange", function (ev) {
-            // Default behavior for versionchange event is to close database connection.
-            // Caller can override this behavior by doing db.on("versionchange", function(){ return false; });
-            // Let's not block the other window from making it's delete() or open() call.
-            // NOTE! This event is never fired in IE,Edge or Safari.
-            if (ev.newVersion > 0) console.warn('Another connection wants to upgrade database \'' + db.name + '\'. Closing db now to resume the upgrade.');else console.warn('Another connection wants to delete database \'' + db.name + '\'. Closing db now to resume the delete request.');
-            db.close();
-            // In many web applications, it would be recommended to force window.reload()
-            // when this event occurs. To do that, subscribe to the versionchange event
-            // and call window.location.reload(true) if ev.newVersion > 0 (not a deletion)
-            // The reason for this is that your current web app obviously has old schema code that needs
-            // to be updated. Another window got a newer version of the app and needs to upgrade DB but
-            // your window is blocking it unless we close it here.
-        });
-        db.on("blocked", function (ev) {
-            if (!ev.newVersion || ev.newVersion < ev.oldVersion) console.warn('Dexie.delete(\'' + db.name + '\') was blocked');else console.warn('Upgrade \'' + db.name + '\' blocked by other connection holding version ' + ev.oldVersion / 10);
-        });
-    }
-
-    //
-    //
-    //
-    // ------------------------- Versioning Framework---------------------------
-    //
-    //
-    //
-
-    this.version = function (versionNumber) {
-        /// 
-        /// 
-        if (idbdb || isBeingOpened) throw new exceptions.Schema("Cannot add version when database is open");
-        this.verno = Math.max(this.verno, versionNumber);
-        var versionInstance = versions.filter(function (v) {
-            return v._cfg.version === versionNumber;
-        })[0];
-        if (versionInstance) return versionInstance;
-        versionInstance = new Version(versionNumber);
-        versions.push(versionInstance);
-        versions.sort(lowerVersionFirst);
-        return versionInstance;
-    };
-
-    function Version(versionNumber) {
-        this._cfg = {
-            version: versionNumber,
-            storesSource: null,
-            dbschema: {},
-            tables: {},
-            contentUpgrade: null
-        };
-        this.stores({}); // Derive earlier schemas by default.
-    }
-
-    extend(Version.prototype, {
-        stores: function (stores) {
-            /// 
-            ///   Defines the schema for a particular version
-            /// 
-            /// 
-            /// Example: 
- /// {users: "id++,first,last,&username,*email",
- /// passwords: "id++,&username"}
- ///
- /// Syntax: {Table: "[primaryKey][++],[&][*]index1,[&][*]index2,..."}

- /// Special characters:
- /// "&" means unique key,
- /// "*" means value is multiEntry,
- /// "++" means auto-increment and only applicable for primary key
- /// - this._cfg.storesSource = this._cfg.storesSource ? extend(this._cfg.storesSource, stores) : stores; - - // Derive stores from earlier versions if they are not explicitely specified as null or a new syntax. - var storesSpec = {}; - versions.forEach(function (version) { - // 'versions' is always sorted by lowest version first. - extend(storesSpec, version._cfg.storesSource); - }); - - var dbschema = this._cfg.dbschema = {}; - this._parseStoresSpec(storesSpec, dbschema); - // Update the latest schema to this version - // Update API - globalSchema = db._dbSchema = dbschema; - removeTablesApi([allTables, db, Transaction.prototype]); - setApiOnPlace([allTables, db, Transaction.prototype, this._cfg.tables], keys(dbschema), READWRITE, dbschema); - dbStoreNames = keys(dbschema); - return this; - }, - upgrade: function (upgradeFunction) { - /// Function that performs upgrading actions. - var self = this; - fakeAutoComplete(function () { - upgradeFunction(db._createTransaction(READWRITE, keys(self._cfg.dbschema), self._cfg.dbschema)); // BUGBUG: No code completion for prev version's tables wont appear. - }); - this._cfg.contentUpgrade = upgradeFunction; - return this; - }, - _parseStoresSpec: function (stores, outSchema) { - keys(stores).forEach(function (tableName) { - if (stores[tableName] !== null) { - var instanceTemplate = {}; - var indexes = parseIndexSyntax(stores[tableName]); - var primKey = indexes.shift(); - if (primKey.multi) throw new exceptions.Schema("Primary key cannot be multi-valued"); - if (primKey.keyPath) setByKeyPath(instanceTemplate, primKey.keyPath, primKey.auto ? 0 : primKey.keyPath); - indexes.forEach(function (idx) { - if (idx.auto) throw new exceptions.Schema("Only primary key can be marked as autoIncrement (++)"); - if (!idx.keyPath) throw new exceptions.Schema("Index must have a name and cannot be an empty string"); - setByKeyPath(instanceTemplate, idx.keyPath, idx.compound ? idx.keyPath.map(function () { - return ""; - }) : ""); - }); - outSchema[tableName] = new TableSchema(tableName, primKey, indexes, instanceTemplate); - } - }); - } - }); - - function runUpgraders(oldVersion, idbtrans, reject) { - var trans = db._createTransaction(READWRITE, dbStoreNames, globalSchema); - trans.create(idbtrans); - trans._completion.catch(reject); - var rejectTransaction = trans._reject.bind(trans); - newScope(function () { - PSD.trans = trans; - if (oldVersion === 0) { - // Create tables: - keys(globalSchema).forEach(function (tableName) { - createTable(idbtrans, tableName, globalSchema[tableName].primKey, globalSchema[tableName].indexes); - }); - Promise.follow(function () { - return db.on.populate.fire(trans); - }).catch(rejectTransaction); - } else updateTablesAndIndexes(oldVersion, trans, idbtrans).catch(rejectTransaction); - }); - } - - function updateTablesAndIndexes(oldVersion, trans, idbtrans) { - // Upgrade version to version, step-by-step from oldest to newest version. - // Each transaction object will contain the table set that was current in that version (but also not-yet-deleted tables from its previous version) - var queue = []; - var oldVersionStruct = versions.filter(function (version) { - return version._cfg.version === oldVersion; - })[0]; - if (!oldVersionStruct) throw new exceptions.Upgrade("Dexie specification of currently installed DB version is missing"); - globalSchema = db._dbSchema = oldVersionStruct._cfg.dbschema; - var anyContentUpgraderHasRun = false; - - var versToRun = versions.filter(function (v) { - return v._cfg.version > oldVersion; - }); - versToRun.forEach(function (version) { - /// - queue.push(function () { - var oldSchema = globalSchema; - var newSchema = version._cfg.dbschema; - adjustToExistingIndexNames(oldSchema, idbtrans); - adjustToExistingIndexNames(newSchema, idbtrans); - globalSchema = db._dbSchema = newSchema; - var diff = getSchemaDiff(oldSchema, newSchema); - // Add tables - diff.add.forEach(function (tuple) { - createTable(idbtrans, tuple[0], tuple[1].primKey, tuple[1].indexes); - }); - // Change tables - diff.change.forEach(function (change) { - if (change.recreate) { - throw new exceptions.Upgrade("Not yet support for changing primary key"); - } else { - var store = idbtrans.objectStore(change.name); - // Add indexes - change.add.forEach(function (idx) { - addIndex(store, idx); - }); - // Update indexes - change.change.forEach(function (idx) { - store.deleteIndex(idx.name); - addIndex(store, idx); - }); - // Delete indexes - change.del.forEach(function (idxName) { - store.deleteIndex(idxName); - }); - } - }); - if (version._cfg.contentUpgrade) { - anyContentUpgraderHasRun = true; - return Promise.follow(function () { - version._cfg.contentUpgrade(trans); - }); - } - }); - queue.push(function (idbtrans) { - if (!anyContentUpgraderHasRun || !hasIEDeleteObjectStoreBug) { - // Dont delete old tables if ieBug is present and a content upgrader has run. Let tables be left in DB so far. This needs to be taken care of. - var newSchema = version._cfg.dbschema; - // Delete old tables - deleteRemovedTables(newSchema, idbtrans); - } - }); - }); - - // Now, create a queue execution engine - function runQueue() { - return queue.length ? Promise.resolve(queue.shift()(trans.idbtrans)).then(runQueue) : Promise.resolve(); - } - - return runQueue().then(function () { - createMissingTables(globalSchema, idbtrans); // At last, make sure to create any missing tables. (Needed by addons that add stores to DB without specifying version) - }); - } - - function getSchemaDiff(oldSchema, newSchema) { - var diff = { - del: [], // Array of table names - add: [], // Array of [tableName, newDefinition] - change: [] // Array of {name: tableName, recreate: newDefinition, del: delIndexNames, add: newIndexDefs, change: changedIndexDefs} - }; - for (var table in oldSchema) { - if (!newSchema[table]) diff.del.push(table); - } - for (table in newSchema) { - var oldDef = oldSchema[table], - newDef = newSchema[table]; - if (!oldDef) { - diff.add.push([table, newDef]); - } else { - var change = { - name: table, - def: newDef, - recreate: false, - del: [], - add: [], - change: [] - }; - if (oldDef.primKey.src !== newDef.primKey.src) { - // Primary key has changed. Remove and re-add table. - change.recreate = true; - diff.change.push(change); - } else { - // Same primary key. Just find out what differs: - var oldIndexes = oldDef.idxByName; - var newIndexes = newDef.idxByName; - for (var idxName in oldIndexes) { - if (!newIndexes[idxName]) change.del.push(idxName); - } - for (idxName in newIndexes) { - var oldIdx = oldIndexes[idxName], - newIdx = newIndexes[idxName]; - if (!oldIdx) change.add.push(newIdx);else if (oldIdx.src !== newIdx.src) change.change.push(newIdx); - } - if (change.del.length > 0 || change.add.length > 0 || change.change.length > 0) { - diff.change.push(change); - } - } - } - } - return diff; - } - - function createTable(idbtrans, tableName, primKey, indexes) { - /// - var store = idbtrans.db.createObjectStore(tableName, primKey.keyPath ? { keyPath: primKey.keyPath, autoIncrement: primKey.auto } : { autoIncrement: primKey.auto }); - indexes.forEach(function (idx) { - addIndex(store, idx); - }); - return store; - } - - function createMissingTables(newSchema, idbtrans) { - keys(newSchema).forEach(function (tableName) { - if (!idbtrans.db.objectStoreNames.contains(tableName)) { - createTable(idbtrans, tableName, newSchema[tableName].primKey, newSchema[tableName].indexes); - } - }); - } - - function deleteRemovedTables(newSchema, idbtrans) { - for (var i = 0; i < idbtrans.db.objectStoreNames.length; ++i) { - var storeName = idbtrans.db.objectStoreNames[i]; - if (newSchema[storeName] == null) { - idbtrans.db.deleteObjectStore(storeName); - } - } - } - - function addIndex(store, idx) { - store.createIndex(idx.name, idx.keyPath, { unique: idx.unique, multiEntry: idx.multi }); - } - - function dbUncaught(err) { - return db.on.error.fire(err); - } - - // - // - // Dexie Protected API - // - // - - this._allTables = allTables; - - this._tableFactory = function createTable(mode, tableSchema) { - /// - if (mode === READONLY) return new Table(tableSchema.name, tableSchema, Collection);else return new WriteableTable(tableSchema.name, tableSchema); - }; - - this._createTransaction = function (mode, storeNames, dbschema, parentTransaction) { - return new Transaction(mode, storeNames, dbschema, parentTransaction); - }; - - /* Generate a temporary transaction when db operations are done outside a transactino scope. - */ - function tempTransaction(mode, storeNames, fn) { - // Last argument is "writeLocked". But this doesnt apply to oneshot direct db operations, so we ignore it. - if (!openComplete && !PSD.letThrough) { - if (!isBeingOpened) { - if (!autoOpen) return rejection(new exceptions.DatabaseClosed(), dbUncaught); - db.open().catch(nop); // Open in background. If if fails, it will be catched by the final promise anyway. - } - return dbReadyPromise.then(function () { - return tempTransaction(mode, storeNames, fn); - }); - } else { - var trans = db._createTransaction(mode, storeNames, globalSchema); - return trans._promise(mode, function (resolve, reject) { - newScope(function () { - // OPTIMIZATION POSSIBLE? newScope() not needed because it's already done in _promise. - PSD.trans = trans; - fn(resolve, reject, trans); - }); - }).then(function (result) { - // Instead of resolving value directly, wait with resolving it until transaction has completed. - // Otherwise the data would not be in the DB if requesting it in the then() operation. - // Specifically, to ensure that the following expression will work: - // - // db.friends.put({name: "Arne"}).then(function () { - // db.friends.where("name").equals("Arne").count(function(count) { - // assert (count === 1); - // }); - // }); - // - return trans._completion.then(function () { - return result; - }); - }); /*.catch(err => { // Don't do this as of now. If would affect bulk- and modify methods in a way that could be more intuitive. But wait! Maybe change in next major. - trans._reject(err); - return rejection(err); - });*/ - } - } - - this._whenReady = function (fn) { - return new Promise(fake || openComplete || PSD.letThrough ? fn : function (resolve, reject) { - if (!isBeingOpened) { - if (!autoOpen) { - reject(new exceptions.DatabaseClosed()); - return; - } - db.open().catch(nop); // Open in background. If if fails, it will be catched by the final promise anyway. - } - dbReadyPromise.then(function () { - fn(resolve, reject); - }); - }).uncaught(dbUncaught); - }; - - // - // - // - // - // Dexie API - // - // - // - - this.verno = 0; - - this.open = function () { - if (isBeingOpened || idbdb) return dbReadyPromise.then(function () { - return dbOpenError ? rejection(dbOpenError, dbUncaught) : db; - }); - debug && (openCanceller._stackHolder = getErrorWithStack()); // Let stacks point to when open() was called rather than where new Dexie() was called. - isBeingOpened = true; - dbOpenError = null; - openComplete = false; - - // Function pointers to call when the core opening process completes. - var resolveDbReady = dbReadyResolve, - - // upgradeTransaction to abort on failure. - upgradeTransaction = null; - - return Promise.race([openCanceller, new Promise(function (resolve, reject) { - doFakeAutoComplete(function () { - return resolve(); - }); - - // Make sure caller has specified at least one version - if (versions.length > 0) autoSchema = false; - - // Multiply db.verno with 10 will be needed to workaround upgrading bug in IE: - // IE fails when deleting objectStore after reading from it. - // A future version of Dexie.js will stopover an intermediate version to workaround this. - // At that point, we want to be backward compatible. Could have been multiplied with 2, but by using 10, it is easier to map the number to the real version number. - - // If no API, throw! - if (!indexedDB) throw new exceptions.MissingAPI("indexedDB API not found. If using IE10+, make sure to run your code on a server URL " + "(not locally). If using old Safari versions, make sure to include indexedDB polyfill."); - - var req = autoSchema ? indexedDB.open(dbName) : indexedDB.open(dbName, Math.round(db.verno * 10)); - if (!req) throw new exceptions.MissingAPI("IndexedDB API not available"); // May happen in Safari private mode, see https://github.com/dfahlander/Dexie.js/issues/134 - req.onerror = wrap(eventRejectHandler(reject)); - req.onblocked = wrap(fireOnBlocked); - req.onupgradeneeded = wrap(function (e) { - upgradeTransaction = req.transaction; - if (autoSchema && !db._allowEmptyDB) { - // Unless an addon has specified db._allowEmptyDB, lets make the call fail. - // Caller did not specify a version or schema. Doing that is only acceptable for opening alread existing databases. - // If onupgradeneeded is called it means database did not exist. Reject the open() promise and make sure that we - // do not create a new database by accident here. - req.onerror = preventDefault; // Prohibit onabort error from firing before we're done! - upgradeTransaction.abort(); // Abort transaction (would hope that this would make DB disappear but it doesnt.) - // Close database and delete it. - req.result.close(); - var delreq = indexedDB.deleteDatabase(dbName); // The upgrade transaction is atomic, and javascript is single threaded - meaning that there is no risk that we delete someone elses database here! - delreq.onsuccess = delreq.onerror = wrap(function () { - reject(new exceptions.NoSuchDatabase('Database ' + dbName + ' doesnt exist')); - }); - } else { - upgradeTransaction.onerror = wrap(eventRejectHandler(reject)); - var oldVer = e.oldVersion > Math.pow(2, 62) ? 0 : e.oldVersion; // Safari 8 fix. - runUpgraders(oldVer / 10, upgradeTransaction, reject, req); - } - }, reject); - - req.onsuccess = wrap(function () { - // Core opening procedure complete. Now let's just record some stuff. - upgradeTransaction = null; - idbdb = req.result; - connections.push(db); // Used for emulating versionchange event on IE/Edge/Safari. - - if (autoSchema) readGlobalSchema();else if (idbdb.objectStoreNames.length > 0) { - try { - adjustToExistingIndexNames(globalSchema, idbdb.transaction(safariMultiStoreFix(idbdb.objectStoreNames), READONLY)); - } catch (e) { - // Safari may bail out if > 1 store names. However, this shouldnt be a showstopper. Issue #120. - } - } - - idbdb.onversionchange = wrap(function (ev) { - db._vcFired = true; // detect implementations that not support versionchange (IE/Edge/Safari) - db.on("versionchange").fire(ev); - }); - - if (!hasNativeGetDatabaseNames) { - // Update localStorage with list of database names - globalDatabaseList(function (databaseNames) { - if (databaseNames.indexOf(dbName) === -1) return databaseNames.push(dbName); - }); - } - - resolve(); - }, reject); - })]).then(function () { - // Before finally resolving the dbReadyPromise and this promise, - // call and await all on('ready') subscribers: - // Dexie.vip() makes subscribers able to use the database while being opened. - // This is a must since these subscribers take part of the opening procedure. - return Dexie.vip(db.on.ready.fire); - }).then(function () { - // Resolve the db.open() with the db instance. - isBeingOpened = false; - return db; - }).catch(function (err) { - try { - // Did we fail within onupgradeneeded? Make sure to abort the upgrade transaction so it doesnt commit. - upgradeTransaction && upgradeTransaction.abort(); - } catch (e) {} - isBeingOpened = false; // Set before calling db.close() so that it doesnt reject openCanceller again (leads to unhandled rejection event). - db.close(); // Closes and resets idbdb, removes connections, resets dbReadyPromise and openCanceller so that a later db.open() is fresh. - // A call to db.close() may have made on-ready subscribers fail. Use dbOpenError if set, since err could be a follow-up error on that. - dbOpenError = err; // Record the error. It will be used to reject further promises of db operations. - return rejection(dbOpenError, dbUncaught); // dbUncaught will make sure any error that happened in any operation before will now bubble to db.on.error() thanks to the special handling in Promise.uncaught(). - }).finally(function () { - openComplete = true; - resolveDbReady(); // dbReadyPromise is resolved no matter if open() rejects or resolved. It's just to wake up waiters. - }); - }; - - this.close = function () { - var idx = connections.indexOf(db); - if (idx >= 0) connections.splice(idx, 1); - if (idbdb) { - try { - idbdb.close(); - } catch (e) {} - idbdb = null; - } - autoOpen = false; - dbOpenError = new exceptions.DatabaseClosed(); - if (isBeingOpened) cancelOpen(dbOpenError); - // Reset dbReadyPromise promise: - dbReadyPromise = new Promise(function (resolve) { - dbReadyResolve = resolve; - }); - openCanceller = new Promise(function (_, reject) { - cancelOpen = reject; - }); - }; - - this.delete = function () { - var hasArguments = arguments.length > 0; - return new Promise(function (resolve, reject) { - if (hasArguments) throw new exceptions.InvalidArgument("Arguments not allowed in db.delete()"); - if (isBeingOpened) { - dbReadyPromise.then(doDelete); - } else { - doDelete(); - } - function doDelete() { - db.close(); - var req = indexedDB.deleteDatabase(dbName); - req.onsuccess = wrap(function () { - if (!hasNativeGetDatabaseNames) { - globalDatabaseList(function (databaseNames) { - var pos = databaseNames.indexOf(dbName); - if (pos >= 0) return databaseNames.splice(pos, 1); - }); - } - resolve(); - }); - req.onerror = wrap(eventRejectHandler(reject)); - req.onblocked = fireOnBlocked; - } - }).uncaught(dbUncaught); - }; - - this.backendDB = function () { - return idbdb; - }; - - this.isOpen = function () { - return idbdb !== null; - }; - this.hasFailed = function () { - return dbOpenError !== null; - }; - this.dynamicallyOpened = function () { - return autoSchema; - }; - - // - // Properties - // - this.name = dbName; - - // db.tables - an array of all Table instances. - setProp(this, "tables", { - get: function () { - /// - return keys(allTables).map(function (name) { - return allTables[name]; - }); - } - }); - - // - // Events - // - this.on = Events(this, "error", "populate", "blocked", "versionchange", { ready: [promisableChain, nop] }); - this.on.error.subscribe = deprecated("Dexie.on.error", this.on.error.subscribe); - this.on.error.unsubscribe = deprecated("Dexie.on.error.unsubscribe", this.on.error.unsubscribe); - - this.on.ready.subscribe = override(this.on.ready.subscribe, function (subscribe) { - return function (subscriber, bSticky) { - Dexie.vip(function () { - if (openComplete) { - // Database already open. Call subscriber asap. - if (!dbOpenError) Promise.resolve().then(subscriber); - // bSticky: Also subscribe to future open sucesses (after close / reopen) - if (bSticky) subscribe(subscriber); - } else { - // Database not yet open. Subscribe to it. - subscribe(subscriber); - // If bSticky is falsy, make sure to unsubscribe subscriber when fired once. - if (!bSticky) subscribe(function unsubscribe() { - db.on.ready.unsubscribe(subscriber); - db.on.ready.unsubscribe(unsubscribe); - }); - } - }); - }; - }); - - fakeAutoComplete(function () { - db.on("populate").fire(db._createTransaction(READWRITE, dbStoreNames, globalSchema)); - db.on("error").fire(new Error()); - }); - - this.transaction = function (mode, tableInstances, scopeFunc) { - /// - /// - /// - /// "r" for readonly, or "rw" for readwrite - /// Table instance, Array of Table instances, String or String Array of object stores to include in the transaction - /// Function to execute with transaction - - // Let table arguments be all arguments between mode and last argument. - var i = arguments.length; - if (i < 2) throw new exceptions.InvalidArgument("Too few arguments"); - // Prevent optimzation killer (https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments) - // and clone arguments except the first one into local var 'args'. - var args = new Array(i - 1); - while (--i) { - args[i - 1] = arguments[i]; - } // Let scopeFunc be the last argument and pop it so that args now only contain the table arguments. - scopeFunc = args.pop(); - var tables = flatten(args); // Support using array as middle argument, or a mix of arrays and non-arrays. - var parentTransaction = PSD.trans; - // Check if parent transactions is bound to this db instance, and if caller wants to reuse it - if (!parentTransaction || parentTransaction.db !== db || mode.indexOf('!') !== -1) parentTransaction = null; - var onlyIfCompatible = mode.indexOf('?') !== -1; - mode = mode.replace('!', '').replace('?', ''); // Ok. Will change arguments[0] as well but we wont touch arguments henceforth. - - try { - // - // Get storeNames from arguments. Either through given table instances, or through given table names. - // - var storeNames = tables.map(function (table) { - var storeName = table instanceof Table ? table.name : table; - if (typeof storeName !== 'string') throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed"); - return storeName; - }); - - // - // Resolve mode. Allow shortcuts "r" and "rw". - // - if (mode == "r" || mode == READONLY) mode = READONLY;else if (mode == "rw" || mode == READWRITE) mode = READWRITE;else throw new exceptions.InvalidArgument("Invalid transaction mode: " + mode); - - if (parentTransaction) { - // Basic checks - if (parentTransaction.mode === READONLY && mode === READWRITE) { - if (onlyIfCompatible) { - // Spawn new transaction instead. - parentTransaction = null; - } else throw new exceptions.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY"); - } - if (parentTransaction) { - storeNames.forEach(function (storeName) { - if (parentTransaction && parentTransaction.storeNames.indexOf(storeName) === -1) { - if (onlyIfCompatible) { - // Spawn new transaction instead. - parentTransaction = null; - } else throw new exceptions.SubTransaction("Table " + storeName + " not included in parent transaction."); - } - }); - } - } - } catch (e) { - return parentTransaction ? parentTransaction._promise(null, function (_, reject) { - reject(e); - }) : rejection(e, dbUncaught); - } - // If this is a sub-transaction, lock the parent and then launch the sub-transaction. - return parentTransaction ? parentTransaction._promise(mode, enterTransactionScope, "lock") : db._whenReady(enterTransactionScope); - - function enterTransactionScope(resolve) { - var parentPSD = PSD; - resolve(Promise.resolve().then(function () { - return newScope(function () { - // Keep a pointer to last non-transactional PSD to use if someone calls Dexie.ignoreTransaction(). - PSD.transless = PSD.transless || parentPSD; - // Our transaction. - //return new Promise((resolve, reject) => { - var trans = db._createTransaction(mode, storeNames, globalSchema, parentTransaction); - // Let the transaction instance be part of a Promise-specific data (PSD) value. - PSD.trans = trans; - - if (parentTransaction) { - // Emulate transaction commit awareness for inner transaction (must 'commit' when the inner transaction has no more operations ongoing) - trans.idbtrans = parentTransaction.idbtrans; - } else { - trans.create(); // Create the backend transaction so that complete() or error() will trigger even if no operation is made upon it. - } - - // Provide arguments to the scope function (for backward compatibility) - var tableArgs = storeNames.map(function (name) { - return allTables[name]; - }); - tableArgs.push(trans); - - var returnValue; - return Promise.follow(function () { - // Finally, call the scope function with our table and transaction arguments. - returnValue = scopeFunc.apply(trans, tableArgs); // NOTE: returnValue is used in trans.on.complete() not as a returnValue to this func. - if (returnValue) { - if (typeof returnValue.next === 'function' && typeof returnValue.throw === 'function') { - // scopeFunc returned an iterator with throw-support. Handle yield as await. - returnValue = awaitIterator(returnValue); - } else if (typeof returnValue.then === 'function' && !hasOwn(returnValue, '_PSD')) { - throw new exceptions.IncompatiblePromise("Incompatible Promise returned from transaction scope (read more at http://tinyurl.com/znyqjqc). Transaction scope: " + scopeFunc.toString()); - } - } - }).uncaught(dbUncaught).then(function () { - if (parentTransaction) trans._resolve(); // sub transactions don't react to idbtrans.oncomplete. We must trigger a acompletion. - return trans._completion; // Even if WE believe everything is fine. Await IDBTransaction's oncomplete or onerror as well. - }).then(function () { - return returnValue; - }).catch(function (e) { - //reject(e); - trans._reject(e); // Yes, above then-handler were maybe not called because of an unhandled rejection in scopeFunc! - return rejection(e); - }); - //}); - }); - })); - } - }; - - this.table = function (tableName) { - /// - if (fake && autoSchema) return new WriteableTable(tableName); - if (!hasOwn(allTables, tableName)) { - throw new exceptions.InvalidTable('Table ' + tableName + ' does not exist'); - } - return allTables[tableName]; - }; - - // - // - // - // Table Class - // - // - // - function Table(name, tableSchema, collClass) { - /// - this.name = name; - this.schema = tableSchema; - this.hook = allTables[name] ? allTables[name].hook : Events(null, { - "creating": [hookCreatingChain, nop], - "reading": [pureFunctionChain, mirror], - "updating": [hookUpdatingChain, nop], - "deleting": [hookDeletingChain, nop] - }); - this._collClass = collClass || Collection; - } - - props(Table.prototype, { - - // - // Table Protected Methods - // - - _trans: function getTransaction(mode, fn, writeLocked) { - var trans = PSD.trans; - return trans && trans.db === db ? trans._promise(mode, fn, writeLocked) : tempTransaction(mode, [this.name], fn); - }, - _idbstore: function getIDBObjectStore(mode, fn, writeLocked) { - if (fake) return new Promise(fn); // Simplify the work for Intellisense/Code completion. - var trans = PSD.trans, - tableName = this.name; - function supplyIdbStore(resolve, reject, trans) { - fn(resolve, reject, trans.idbtrans.objectStore(tableName), trans); - } - return trans && trans.db === db ? trans._promise(mode, supplyIdbStore, writeLocked) : tempTransaction(mode, [this.name], supplyIdbStore); - }, - - // - // Table Public Methods - // - get: function (key, cb) { - var self = this; - return this._idbstore(READONLY, function (resolve, reject, idbstore) { - fake && resolve(self.schema.instanceTemplate); - var req = idbstore.get(key); - req.onerror = eventRejectHandler(reject); - req.onsuccess = wrap(function () { - resolve(self.hook.reading.fire(req.result)); - }, reject); - }).then(cb); - }, - where: function (indexName) { - return new WhereClause(this, indexName); - }, - count: function (cb) { - return this.toCollection().count(cb); - }, - offset: function (offset) { - return this.toCollection().offset(offset); - }, - limit: function (numRows) { - return this.toCollection().limit(numRows); - }, - reverse: function () { - return this.toCollection().reverse(); - }, - filter: function (filterFunction) { - return this.toCollection().and(filterFunction); - }, - each: function (fn) { - return this.toCollection().each(fn); - }, - toArray: function (cb) { - return this.toCollection().toArray(cb); - }, - orderBy: function (index) { - return new this._collClass(new WhereClause(this, index)); - }, - - toCollection: function () { - return new this._collClass(new WhereClause(this)); - }, - - mapToClass: function (constructor, structure) { - /// - /// Map table to a javascript constructor function. Objects returned from the database will be instances of this class, making - /// it possible to the instanceOf operator as well as extending the class using constructor.prototype.method = function(){...}. - /// - /// Constructor function representing the class. - /// Helps IDE code completion by knowing the members that objects contain and not just the indexes. Also - /// know what type each member has. Example: {name: String, emailAddresses: [String], password} - this.schema.mappedClass = constructor; - var instanceTemplate = Object.create(constructor.prototype); - if (structure) { - // structure and instanceTemplate is for IDE code competion only while constructor.prototype is for actual inheritance. - applyStructure(instanceTemplate, structure); - } - this.schema.instanceTemplate = instanceTemplate; - - // Now, subscribe to the when("reading") event to make all objects that come out from this table inherit from given class - // no matter which method to use for reading (Table.get() or Table.where(...)... ) - var readHook = function (obj) { - if (!obj) return obj; // No valid object. (Value is null). Return as is. - // Create a new object that derives from constructor: - var res = Object.create(constructor.prototype); - // Clone members: - for (var m in obj) { - if (hasOwn(obj, m)) try { - res[m] = obj[m]; - } catch (_) {} - }return res; - }; - - if (this.schema.readHook) { - this.hook.reading.unsubscribe(this.schema.readHook); - } - this.schema.readHook = readHook; - this.hook("reading", readHook); - return constructor; - }, - defineClass: function (structure) { - /// - /// Define all members of the class that represents the table. This will help code completion of when objects are read from the database - /// as well as making it possible to extend the prototype of the returned constructor function. - /// - /// Helps IDE code completion by knowing the members that objects contain and not just the indexes. Also - /// know what type each member has. Example: {name: String, emailAddresses: [String], properties: {shoeSize: Number}} - return this.mapToClass(Dexie.defineClass(structure), structure); - } - }); - - // - // - // - // WriteableTable Class (extends Table) - // - // - // - function WriteableTable(name, tableSchema, collClass) { - Table.call(this, name, tableSchema, collClass || WriteableCollection); - } - - function BulkErrorHandlerCatchAll(errorList, done, supportHooks) { - return (supportHooks ? hookedEventRejectHandler : eventRejectHandler)(function (e) { - errorList.push(e); - done && done(); - }); - } - - function bulkDelete(idbstore, trans, keysOrTuples, hasDeleteHook, deletingHook) { - // If hasDeleteHook, keysOrTuples must be an array of tuples: [[key1, value2],[key2,value2],...], - // else keysOrTuples must be just an array of keys: [key1, key2, ...]. - return new Promise(function (resolve, reject) { - var len = keysOrTuples.length, - lastItem = len - 1; - if (len === 0) return resolve(); - if (!hasDeleteHook) { - for (var i = 0; i < len; ++i) { - var req = idbstore.delete(keysOrTuples[i]); - req.onerror = wrap(eventRejectHandler(reject)); - if (i === lastItem) req.onsuccess = wrap(function () { - return resolve(); - }); - } - } else { - var hookCtx, - errorHandler = hookedEventRejectHandler(reject), - successHandler = hookedEventSuccessHandler(null); - tryCatch(function () { - for (var i = 0; i < len; ++i) { - hookCtx = { onsuccess: null, onerror: null }; - var tuple = keysOrTuples[i]; - deletingHook.call(hookCtx, tuple[0], tuple[1], trans); - var req = idbstore.delete(tuple[0]); - req._hookCtx = hookCtx; - req.onerror = errorHandler; - if (i === lastItem) req.onsuccess = hookedEventSuccessHandler(resolve);else req.onsuccess = successHandler; - } - }, function (err) { - hookCtx.onerror && hookCtx.onerror(err); - throw err; - }); - } - }).uncaught(dbUncaught); - } - - derive(WriteableTable).from(Table).extend({ - bulkDelete: function (keys$$1) { - if (this.hook.deleting.fire === nop) { - return this._idbstore(READWRITE, function (resolve, reject, idbstore, trans) { - resolve(bulkDelete(idbstore, trans, keys$$1, false, nop)); - }); - } else { - return this.where(':id').anyOf(keys$$1).delete().then(function () {}); // Resolve with undefined. - } - }, - bulkPut: function (objects, keys$$1) { - var _this = this; - - return this._idbstore(READWRITE, function (resolve, reject, idbstore) { - if (!idbstore.keyPath && !_this.schema.primKey.auto && !keys$$1) throw new exceptions.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument"); - if (idbstore.keyPath && keys$$1) throw new exceptions.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys"); - if (keys$$1 && keys$$1.length !== objects.length) throw new exceptions.InvalidArgument("Arguments objects and keys must have the same length"); - if (objects.length === 0) return resolve(); // Caller provided empty list. - var done = function (result) { - if (errorList.length === 0) resolve(result);else reject(new BulkError(_this.name + '.bulkPut(): ' + errorList.length + ' of ' + numObjs + ' operations failed', errorList)); - }; - var req, - errorList = [], - errorHandler, - numObjs = objects.length, - table = _this; - if (_this.hook.creating.fire === nop && _this.hook.updating.fire === nop) { - // - // Standard Bulk (no 'creating' or 'updating' hooks to care about) - // - errorHandler = BulkErrorHandlerCatchAll(errorList); - for (var i = 0, l = objects.length; i < l; ++i) { - req = keys$$1 ? idbstore.put(objects[i], keys$$1[i]) : idbstore.put(objects[i]); - req.onerror = errorHandler; - } - // Only need to catch success or error on the last operation - // according to the IDB spec. - req.onerror = BulkErrorHandlerCatchAll(errorList, done); - req.onsuccess = eventSuccessHandler(done); - } else { - var effectiveKeys = keys$$1 || idbstore.keyPath && objects.map(function (o) { - return getByKeyPath(o, idbstore.keyPath); - }); - // Generate map of {[key]: object} - var objectLookup = effectiveKeys && arrayToObject(effectiveKeys, function (key, i) { - return key != null && [key, objects[i]]; - }); - var promise = !effectiveKeys ? - - // Auto-incremented key-less objects only without any keys argument. - table.bulkAdd(objects) : - - // Keys provided. Either as inbound in provided objects, or as a keys argument. - // Begin with updating those that exists in DB: - table.where(':id').anyOf(effectiveKeys.filter(function (key) { - return key != null; - })).modify(function () { - this.value = objectLookup[this.primKey]; - objectLookup[this.primKey] = null; // Mark as "don't add this" - }).catch(ModifyError, function (e) { - errorList = e.failures; // No need to concat here. These are the first errors added. - }).then(function () { - // Now, let's examine which items didnt exist so we can add them: - var objsToAdd = [], - keysToAdd = keys$$1 && []; - // Iterate backwards. Why? Because if same key was used twice, just add the last one. - for (var i = effectiveKeys.length - 1; i >= 0; --i) { - var key = effectiveKeys[i]; - if (key == null || objectLookup[key]) { - objsToAdd.push(objects[i]); - keys$$1 && keysToAdd.push(key); - if (key != null) objectLookup[key] = null; // Mark as "dont add again" - } - } - // The items are in reverse order so reverse them before adding. - // Could be important in order to get auto-incremented keys the way the caller - // would expect. Could have used unshift instead of push()/reverse(), - // but: http://jsperf.com/unshift-vs-reverse - objsToAdd.reverse(); - keys$$1 && keysToAdd.reverse(); - return table.bulkAdd(objsToAdd, keysToAdd); - }).then(function (lastAddedKey) { - // Resolve with key of the last object in given arguments to bulkPut(): - var lastEffectiveKey = effectiveKeys[effectiveKeys.length - 1]; // Key was provided. - return lastEffectiveKey != null ? lastEffectiveKey : lastAddedKey; - }); - - promise.then(done).catch(BulkError, function (e) { - // Concat failure from ModifyError and reject using our 'done' method. - errorList = errorList.concat(e.failures); - done(); - }).catch(reject); - } - }, "locked"); // If called from transaction scope, lock transaction til all steps are done. - }, - bulkAdd: function (objects, keys$$1) { - var self = this, - creatingHook = this.hook.creating.fire; - return this._idbstore(READWRITE, function (resolve, reject, idbstore, trans) { - if (!idbstore.keyPath && !self.schema.primKey.auto && !keys$$1) throw new exceptions.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument"); - if (idbstore.keyPath && keys$$1) throw new exceptions.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys"); - if (keys$$1 && keys$$1.length !== objects.length) throw new exceptions.InvalidArgument("Arguments objects and keys must have the same length"); - if (objects.length === 0) return resolve(); // Caller provided empty list. - function done(result) { - if (errorList.length === 0) resolve(result);else reject(new BulkError(self.name + '.bulkAdd(): ' + errorList.length + ' of ' + numObjs + ' operations failed', errorList)); - } - var req, - errorList = [], - errorHandler, - successHandler, - numObjs = objects.length; - if (creatingHook !== nop) { - // - // There are subscribers to hook('creating') - // Must behave as documented. - // - var keyPath = idbstore.keyPath, - hookCtx; - errorHandler = BulkErrorHandlerCatchAll(errorList, null, true); - successHandler = hookedEventSuccessHandler(null); - - tryCatch(function () { - for (var i = 0, l = objects.length; i < l; ++i) { - hookCtx = { onerror: null, onsuccess: null }; - var key = keys$$1 && keys$$1[i]; - var obj = objects[i], - effectiveKey = keys$$1 ? key : keyPath ? getByKeyPath(obj, keyPath) : undefined, - keyToUse = creatingHook.call(hookCtx, effectiveKey, obj, trans); - if (effectiveKey == null && keyToUse != null) { - if (keyPath) { - obj = deepClone(obj); - setByKeyPath(obj, keyPath, keyToUse); - } else { - key = keyToUse; - } - } - req = key != null ? idbstore.add(obj, key) : idbstore.add(obj); - req._hookCtx = hookCtx; - if (i < l - 1) { - req.onerror = errorHandler; - if (hookCtx.onsuccess) req.onsuccess = successHandler; - } - } - }, function (err) { - hookCtx.onerror && hookCtx.onerror(err); - throw err; - }); - - req.onerror = BulkErrorHandlerCatchAll(errorList, done, true); - req.onsuccess = hookedEventSuccessHandler(done); - } else { - // - // Standard Bulk (no 'creating' hook to care about) - // - errorHandler = BulkErrorHandlerCatchAll(errorList); - for (var i = 0, l = objects.length; i < l; ++i) { - req = keys$$1 ? idbstore.add(objects[i], keys$$1[i]) : idbstore.add(objects[i]); - req.onerror = errorHandler; - } - // Only need to catch success or error on the last operation - // according to the IDB spec. - req.onerror = BulkErrorHandlerCatchAll(errorList, done); - req.onsuccess = eventSuccessHandler(done); - } - }); - }, - add: function (obj, key) { - /// - /// Add an object to the database. In case an object with same primary key already exists, the object will not be added. - /// - /// A javascript object to insert - /// Primary key - var creatingHook = this.hook.creating.fire; - return this._idbstore(READWRITE, function (resolve, reject, idbstore, trans) { - var hookCtx = { onsuccess: null, onerror: null }; - if (creatingHook !== nop) { - var effectiveKey = key != null ? key : idbstore.keyPath ? getByKeyPath(obj, idbstore.keyPath) : undefined; - var keyToUse = creatingHook.call(hookCtx, effectiveKey, obj, trans); // Allow subscribers to when("creating") to generate the key. - if (effectiveKey == null && keyToUse != null) { - // Using "==" and "!=" to check for either null or undefined! - if (idbstore.keyPath) setByKeyPath(obj, idbstore.keyPath, keyToUse);else key = keyToUse; - } - } - try { - var req = key != null ? idbstore.add(obj, key) : idbstore.add(obj); - req._hookCtx = hookCtx; - req.onerror = hookedEventRejectHandler(reject); - req.onsuccess = hookedEventSuccessHandler(function (result) { - // TODO: Remove these two lines in next major release (2.0?) - // It's no good practice to have side effects on provided parameters - var keyPath = idbstore.keyPath; - if (keyPath) setByKeyPath(obj, keyPath, result); - resolve(result); - }); - } catch (e) { - if (hookCtx.onerror) hookCtx.onerror(e); - throw e; - } - }); - }, - - put: function (obj, key) { - /// - /// Add an object to the database but in case an object with same primary key alread exists, the existing one will get updated. - /// - /// A javascript object to insert or update - /// Primary key - var self = this, - creatingHook = this.hook.creating.fire, - updatingHook = this.hook.updating.fire; - if (creatingHook !== nop || updatingHook !== nop) { - // - // People listens to when("creating") or when("updating") events! - // We must know whether the put operation results in an CREATE or UPDATE. - // - return this._trans(READWRITE, function (resolve, reject, trans) { - // Since key is optional, make sure we get it from obj if not provided - var effectiveKey = key !== undefined ? key : self.schema.primKey.keyPath && getByKeyPath(obj, self.schema.primKey.keyPath); - if (effectiveKey == null) { - // "== null" means checking for either null or undefined. - // No primary key. Must use add(). - self.add(obj).then(resolve, reject); - } else { - // Primary key exist. Lock transaction and try modifying existing. If nothing modified, call add(). - trans._lock(); // Needed because operation is splitted into modify() and add(). - // clone obj before this async call. If caller modifies obj the line after put(), the IDB spec requires that it should not affect operation. - obj = deepClone(obj); - self.where(":id").equals(effectiveKey).modify(function () { - // Replace extisting value with our object - // CRUD event firing handled in WriteableCollection.modify() - this.value = obj; - }).then(function (count) { - if (count === 0) { - // Object's key was not found. Add the object instead. - // CRUD event firing will be done in add() - return self.add(obj, key); // Resolving with another Promise. Returned Promise will then resolve with the new key. - } else { - return effectiveKey; // Resolve with the provided key. - } - }).finally(function () { - trans._unlock(); - }).then(resolve, reject); - } - }); - } else { - // Use the standard IDB put() method. - return this._idbstore(READWRITE, function (resolve, reject, idbstore) { - var req = key !== undefined ? idbstore.put(obj, key) : idbstore.put(obj); - req.onerror = eventRejectHandler(reject); - req.onsuccess = function (ev) { - var keyPath = idbstore.keyPath; - if (keyPath) setByKeyPath(obj, keyPath, ev.target.result); - resolve(req.result); - }; - }); - } - }, - - 'delete': function (key) { - /// Primary key of the object to delete - if (this.hook.deleting.subscribers.length) { - // People listens to when("deleting") event. Must implement delete using WriteableCollection.delete() that will - // call the CRUD event. Only WriteableCollection.delete() will know whether an object was actually deleted. - return this.where(":id").equals(key).delete(); - } else { - // No one listens. Use standard IDB delete() method. - return this._idbstore(READWRITE, function (resolve, reject, idbstore) { - var req = idbstore.delete(key); - req.onerror = eventRejectHandler(reject); - req.onsuccess = function () { - resolve(req.result); - }; - }); - } - }, - - clear: function () { - if (this.hook.deleting.subscribers.length) { - // People listens to when("deleting") event. Must implement delete using WriteableCollection.delete() that will - // call the CRUD event. Only WriteableCollection.delete() will knows which objects that are actually deleted. - return this.toCollection().delete(); - } else { - return this._idbstore(READWRITE, function (resolve, reject, idbstore) { - var req = idbstore.clear(); - req.onerror = eventRejectHandler(reject); - req.onsuccess = function () { - resolve(req.result); - }; - }); - } - }, - - update: function (keyOrObject, modifications) { - if (typeof modifications !== 'object' || isArray(modifications)) throw new exceptions.InvalidArgument("Modifications must be an object."); - if (typeof keyOrObject === 'object' && !isArray(keyOrObject)) { - // object to modify. Also modify given object with the modifications: - keys(modifications).forEach(function (keyPath) { - setByKeyPath(keyOrObject, keyPath, modifications[keyPath]); - }); - var key = getByKeyPath(keyOrObject, this.schema.primKey.keyPath); - if (key === undefined) return rejection(new exceptions.InvalidArgument("Given object does not contain its primary key"), dbUncaught); - return this.where(":id").equals(key).modify(modifications); - } else { - // key to modify - return this.where(":id").equals(keyOrObject).modify(modifications); - } - } - }); - - // - // - // - // Transaction Class - // - // - // - function Transaction(mode, storeNames, dbschema, parent) { - var _this2 = this; - - /// - /// Transaction class. Represents a database transaction. All operations on db goes through a Transaction. - /// - /// Any of "readwrite" or "readonly" - /// Array of table names to operate on - this.db = db; - this.mode = mode; - this.storeNames = storeNames; - this.idbtrans = null; - this.on = Events(this, "complete", "error", "abort"); - this.parent = parent || null; - this.active = true; - this._tables = null; - this._reculock = 0; - this._blockedFuncs = []; - this._psd = null; - this._dbschema = dbschema; - this._resolve = null; - this._reject = null; - this._completion = new Promise(function (resolve, reject) { - _this2._resolve = resolve; - _this2._reject = reject; - }).uncaught(dbUncaught); - - this._completion.then(function () { - _this2.on.complete.fire(); - }, function (e) { - _this2.on.error.fire(e); - _this2.parent ? _this2.parent._reject(e) : _this2.active && _this2.idbtrans && _this2.idbtrans.abort(); - _this2.active = false; - return rejection(e); // Indicate we actually DO NOT catch this error. - }); - } - - props(Transaction.prototype, { - // - // Transaction Protected Methods (not required by API users, but needed internally and eventually by dexie extensions) - // - _lock: function () { - assert(!PSD.global); // Locking and unlocking reuires to be within a PSD scope. - // Temporary set all requests into a pending queue if they are called before database is ready. - ++this._reculock; // Recursive read/write lock pattern using PSD (Promise Specific Data) instead of TLS (Thread Local Storage) - if (this._reculock === 1 && !PSD.global) PSD.lockOwnerFor = this; - return this; - }, - _unlock: function () { - assert(!PSD.global); // Locking and unlocking reuires to be within a PSD scope. - if (--this._reculock === 0) { - if (!PSD.global) PSD.lockOwnerFor = null; - while (this._blockedFuncs.length > 0 && !this._locked()) { - var fnAndPSD = this._blockedFuncs.shift(); - try { - usePSD(fnAndPSD[1], fnAndPSD[0]); - } catch (e) {} - } - } - return this; - }, - _locked: function () { - // Checks if any write-lock is applied on this transaction. - // To simplify the Dexie API for extension implementations, we support recursive locks. - // This is accomplished by using "Promise Specific Data" (PSD). - // PSD data is bound to a Promise and any child Promise emitted through then() or resolve( new Promise() ). - // PSD is local to code executing on top of the call stacks of any of any code executed by Promise(): - // * callback given to the Promise() constructor (function (resolve, reject){...}) - // * callbacks given to then()/catch()/finally() methods (function (value){...}) - // If creating a new independant Promise instance from within a Promise call stack, the new Promise will derive the PSD from the call stack of the parent Promise. - // Derivation is done so that the inner PSD __proto__ points to the outer PSD. - // PSD.lockOwnerFor will point to current transaction object if the currently executing PSD scope owns the lock. - return this._reculock && PSD.lockOwnerFor !== this; - }, - create: function (idbtrans) { - var _this3 = this; - - assert(!this.idbtrans); - if (!idbtrans && !idbdb) { - switch (dbOpenError && dbOpenError.name) { - case "DatabaseClosedError": - // Errors where it is no difference whether it was caused by the user operation or an earlier call to db.open() - throw new exceptions.DatabaseClosed(dbOpenError); - case "MissingAPIError": - // Errors where it is no difference whether it was caused by the user operation or an earlier call to db.open() - throw new exceptions.MissingAPI(dbOpenError.message, dbOpenError); - default: - // Make it clear that the user operation was not what caused the error - the error had occurred earlier on db.open()! - throw new exceptions.OpenFailed(dbOpenError); - } - } - if (!this.active) throw new exceptions.TransactionInactive(); - assert(this._completion._state === null); - - idbtrans = this.idbtrans = idbtrans || idbdb.transaction(safariMultiStoreFix(this.storeNames), this.mode); - idbtrans.onerror = wrap(function (ev) { - preventDefault(ev); // Prohibit default bubbling to window.error - _this3._reject(idbtrans.error); - }); - idbtrans.onabort = wrap(function (ev) { - preventDefault(ev); - _this3.active && _this3._reject(new exceptions.Abort()); - _this3.active = false; - _this3.on("abort").fire(ev); - }); - idbtrans.oncomplete = wrap(function () { - _this3.active = false; - _this3._resolve(); - }); - return this; - }, - _promise: function (mode, fn, bWriteLock) { - var self = this; - var p = self._locked() ? - // Read lock always. Transaction is write-locked. Wait for mutex. - new Promise(function (resolve, reject) { - self._blockedFuncs.push([function () { - self._promise(mode, fn, bWriteLock).then(resolve, reject); - }, PSD]); - }) : newScope(function () { - var p_ = self.active ? new Promise(function (resolve, reject) { - if (mode === READWRITE && self.mode !== READWRITE) throw new exceptions.ReadOnly("Transaction is readonly"); - if (!self.idbtrans && mode) self.create(); - if (bWriteLock) self._lock(); // Write lock if write operation is requested - fn(resolve, reject, self); - }) : rejection(new exceptions.TransactionInactive()); - if (self.active && bWriteLock) p_.finally(function () { - self._unlock(); - }); - return p_; - }); - - p._lib = true; - return p.uncaught(dbUncaught); - }, - - // - // Transaction Public Properties and Methods - // - abort: function () { - this.active && this._reject(new exceptions.Abort()); - this.active = false; - }, - - tables: { - get: deprecated("Transaction.tables", function () { - return arrayToObject(this.storeNames, function (name) { - return [name, allTables[name]]; - }); - }, "Use db.tables()") - }, - - complete: deprecated("Transaction.complete()", function (cb) { - return this.on("complete", cb); - }), - - error: deprecated("Transaction.error()", function (cb) { - return this.on("error", cb); - }), - - table: deprecated("Transaction.table()", function (name) { - if (this.storeNames.indexOf(name) === -1) throw new exceptions.InvalidTable("Table " + name + " not in transaction"); - return allTables[name]; - }) - - }); - - // - // - // - // WhereClause - // - // - // - function WhereClause(table, index, orCollection) { - /// - /// - /// - this._ctx = { - table: table, - index: index === ":id" ? null : index, - collClass: table._collClass, - or: orCollection - }; - } - - props(WhereClause.prototype, function () { - - // WhereClause private methods - - function fail(collectionOrWhereClause, err, T) { - var collection = collectionOrWhereClause instanceof WhereClause ? new collectionOrWhereClause._ctx.collClass(collectionOrWhereClause) : collectionOrWhereClause; - - collection._ctx.error = T ? new T(err) : new TypeError(err); - return collection; - } - - function emptyCollection(whereClause) { - return new whereClause._ctx.collClass(whereClause, function () { - return IDBKeyRange.only(""); - }).limit(0); - } - - function upperFactory(dir) { - return dir === "next" ? function (s) { - return s.toUpperCase(); - } : function (s) { - return s.toLowerCase(); - }; - } - function lowerFactory(dir) { - return dir === "next" ? function (s) { - return s.toLowerCase(); - } : function (s) { - return s.toUpperCase(); - }; - } - function nextCasing(key, lowerKey, upperNeedle, lowerNeedle, cmp, dir) { - var length = Math.min(key.length, lowerNeedle.length); - var llp = -1; - for (var i = 0; i < length; ++i) { - var lwrKeyChar = lowerKey[i]; - if (lwrKeyChar !== lowerNeedle[i]) { - if (cmp(key[i], upperNeedle[i]) < 0) return key.substr(0, i) + upperNeedle[i] + upperNeedle.substr(i + 1); - if (cmp(key[i], lowerNeedle[i]) < 0) return key.substr(0, i) + lowerNeedle[i] + upperNeedle.substr(i + 1); - if (llp >= 0) return key.substr(0, llp) + lowerKey[llp] + upperNeedle.substr(llp + 1); - return null; - } - if (cmp(key[i], lwrKeyChar) < 0) llp = i; - } - if (length < lowerNeedle.length && dir === "next") return key + upperNeedle.substr(key.length); - if (length < key.length && dir === "prev") return key.substr(0, upperNeedle.length); - return llp < 0 ? null : key.substr(0, llp) + lowerNeedle[llp] + upperNeedle.substr(llp + 1); - } - - function addIgnoreCaseAlgorithm(whereClause, match, needles, suffix) { - /// - var upper, - lower, - compare, - upperNeedles, - lowerNeedles, - direction, - nextKeySuffix, - needlesLen = needles.length; - if (!needles.every(function (s) { - return typeof s === 'string'; - })) { - return fail(whereClause, STRING_EXPECTED); - } - function initDirection(dir) { - upper = upperFactory(dir); - lower = lowerFactory(dir); - compare = dir === "next" ? simpleCompare : simpleCompareReverse; - var needleBounds = needles.map(function (needle) { - return { lower: lower(needle), upper: upper(needle) }; - }).sort(function (a, b) { - return compare(a.lower, b.lower); - }); - upperNeedles = needleBounds.map(function (nb) { - return nb.upper; - }); - lowerNeedles = needleBounds.map(function (nb) { - return nb.lower; - }); - direction = dir; - nextKeySuffix = dir === "next" ? "" : suffix; - } - initDirection("next"); - - var c = new whereClause._ctx.collClass(whereClause, function () { - return IDBKeyRange.bound(upperNeedles[0], lowerNeedles[needlesLen - 1] + suffix); - }); - - c._ondirectionchange = function (direction) { - // This event onlys occur before filter is called the first time. - initDirection(direction); - }; - - var firstPossibleNeedle = 0; - - c._addAlgorithm(function (cursor, advance, resolve) { - /// - /// - /// - var key = cursor.key; - if (typeof key !== 'string') return false; - var lowerKey = lower(key); - if (match(lowerKey, lowerNeedles, firstPossibleNeedle)) { - return true; - } else { - var lowestPossibleCasing = null; - for (var i = firstPossibleNeedle; i < needlesLen; ++i) { - var casing = nextCasing(key, lowerKey, upperNeedles[i], lowerNeedles[i], compare, direction); - if (casing === null && lowestPossibleCasing === null) firstPossibleNeedle = i + 1;else if (lowestPossibleCasing === null || compare(lowestPossibleCasing, casing) > 0) { - lowestPossibleCasing = casing; - } - } - if (lowestPossibleCasing !== null) { - advance(function () { - cursor.continue(lowestPossibleCasing + nextKeySuffix); - }); - } else { - advance(resolve); - } - return false; - } - }); - return c; - } - - // - // WhereClause public methods - // - return { - between: function (lower, upper, includeLower, includeUpper) { - /// - /// Filter out records whose where-field lays between given lower and upper values. Applies to Strings, Numbers and Dates. - /// - /// - /// - /// Whether items that equals lower should be included. Default true. - /// Whether items that equals upper should be included. Default false. - /// - includeLower = includeLower !== false; // Default to true - includeUpper = includeUpper === true; // Default to false - try { - if (cmp(lower, upper) > 0 || cmp(lower, upper) === 0 && (includeLower || includeUpper) && !(includeLower && includeUpper)) return emptyCollection(this); // Workaround for idiotic W3C Specification that DataError must be thrown if lower > upper. The natural result would be to return an empty collection. - return new this._ctx.collClass(this, function () { - return IDBKeyRange.bound(lower, upper, !includeLower, !includeUpper); - }); - } catch (e) { - return fail(this, INVALID_KEY_ARGUMENT); - } - }, - equals: function (value) { - return new this._ctx.collClass(this, function () { - return IDBKeyRange.only(value); - }); - }, - above: function (value) { - return new this._ctx.collClass(this, function () { - return IDBKeyRange.lowerBound(value, true); - }); - }, - aboveOrEqual: function (value) { - return new this._ctx.collClass(this, function () { - return IDBKeyRange.lowerBound(value); - }); - }, - below: function (value) { - return new this._ctx.collClass(this, function () { - return IDBKeyRange.upperBound(value, true); - }); - }, - belowOrEqual: function (value) { - return new this._ctx.collClass(this, function () { - return IDBKeyRange.upperBound(value); - }); - }, - startsWith: function (str) { - /// - if (typeof str !== 'string') return fail(this, STRING_EXPECTED); - return this.between(str, str + maxString, true, true); - }, - startsWithIgnoreCase: function (str) { - /// - if (str === "") return this.startsWith(str); - return addIgnoreCaseAlgorithm(this, function (x, a) { - return x.indexOf(a[0]) === 0; - }, [str], maxString); - }, - equalsIgnoreCase: function (str) { - /// - return addIgnoreCaseAlgorithm(this, function (x, a) { - return x === a[0]; - }, [str], ""); - }, - anyOfIgnoreCase: function () { - var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments); - if (set.length === 0) return emptyCollection(this); - return addIgnoreCaseAlgorithm(this, function (x, a) { - return a.indexOf(x) !== -1; - }, set, ""); - }, - startsWithAnyOfIgnoreCase: function () { - var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments); - if (set.length === 0) return emptyCollection(this); - return addIgnoreCaseAlgorithm(this, function (x, a) { - return a.some(function (n) { - return x.indexOf(n) === 0; - }); - }, set, maxString); - }, - anyOf: function () { - var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments); - var compare = ascending; - try { - set.sort(compare); - } catch (e) { - return fail(this, INVALID_KEY_ARGUMENT); - } - if (set.length === 0) return emptyCollection(this); - var c = new this._ctx.collClass(this, function () { - return IDBKeyRange.bound(set[0], set[set.length - 1]); - }); - - c._ondirectionchange = function (direction) { - compare = direction === "next" ? ascending : descending; - set.sort(compare); - }; - var i = 0; - c._addAlgorithm(function (cursor, advance, resolve) { - var key = cursor.key; - while (compare(key, set[i]) > 0) { - // The cursor has passed beyond this key. Check next. - ++i; - if (i === set.length) { - // There is no next. Stop searching. - advance(resolve); - return false; - } - } - if (compare(key, set[i]) === 0) { - // The current cursor value should be included and we should continue a single step in case next item has the same key or possibly our next key in set. - return true; - } else { - // cursor.key not yet at set[i]. Forward cursor to the next key to hunt for. - advance(function () { - cursor.continue(set[i]); - }); - return false; - } - }); - return c; - }, - - notEqual: function (value) { - return this.inAnyRange([[-Infinity, value], [value, maxKey]], { includeLowers: false, includeUppers: false }); - }, - - noneOf: function () { - var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments); - if (set.length === 0) return new this._ctx.collClass(this); // Return entire collection. - try { - set.sort(ascending); - } catch (e) { - return fail(this, INVALID_KEY_ARGUMENT); - } - // Transform ["a","b","c"] to a set of ranges for between/above/below: [[-Infinity,"a"], ["a","b"], ["b","c"], ["c",maxKey]] - var ranges = set.reduce(function (res, val) { - return res ? res.concat([[res[res.length - 1][1], val]]) : [[-Infinity, val]]; - }, null); - ranges.push([set[set.length - 1], maxKey]); - return this.inAnyRange(ranges, { includeLowers: false, includeUppers: false }); - }, - - /** Filter out values withing given set of ranges. - * Example, give children and elders a rebate of 50%: - * - * db.friends.where('age').inAnyRange([[0,18],[65,Infinity]]).modify({Rebate: 1/2}); - * - * @param {(string|number|Date|Array)[][]} ranges - * @param {{includeLowers: boolean, includeUppers: boolean}} options - */ - inAnyRange: function (ranges, options) { - var ctx = this._ctx; - if (ranges.length === 0) return emptyCollection(this); - if (!ranges.every(function (range) { - return range[0] !== undefined && range[1] !== undefined && ascending(range[0], range[1]) <= 0; - })) { - return fail(this, "First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower", exceptions.InvalidArgument); - } - var includeLowers = !options || options.includeLowers !== false; // Default to true - var includeUppers = options && options.includeUppers === true; // Default to false - - function addRange(ranges, newRange) { - for (var i = 0, l = ranges.length; i < l; ++i) { - var range = ranges[i]; - if (cmp(newRange[0], range[1]) < 0 && cmp(newRange[1], range[0]) > 0) { - range[0] = min(range[0], newRange[0]); - range[1] = max(range[1], newRange[1]); - break; - } - } - if (i === l) ranges.push(newRange); - return ranges; - } - - var sortDirection = ascending; - function rangeSorter(a, b) { - return sortDirection(a[0], b[0]); - } - - // Join overlapping ranges - var set; - try { - set = ranges.reduce(addRange, []); - set.sort(rangeSorter); - } catch (ex) { - return fail(this, INVALID_KEY_ARGUMENT); - } - - var i = 0; - var keyIsBeyondCurrentEntry = includeUppers ? function (key) { - return ascending(key, set[i][1]) > 0; - } : function (key) { - return ascending(key, set[i][1]) >= 0; - }; - - var keyIsBeforeCurrentEntry = includeLowers ? function (key) { - return descending(key, set[i][0]) > 0; - } : function (key) { - return descending(key, set[i][0]) >= 0; - }; - - function keyWithinCurrentRange(key) { - return !keyIsBeyondCurrentEntry(key) && !keyIsBeforeCurrentEntry(key); - } - - var checkKey = keyIsBeyondCurrentEntry; - - var c = new ctx.collClass(this, function () { - return IDBKeyRange.bound(set[0][0], set[set.length - 1][1], !includeLowers, !includeUppers); - }); - - c._ondirectionchange = function (direction) { - if (direction === "next") { - checkKey = keyIsBeyondCurrentEntry; - sortDirection = ascending; - } else { - checkKey = keyIsBeforeCurrentEntry; - sortDirection = descending; - } - set.sort(rangeSorter); - }; - - c._addAlgorithm(function (cursor, advance, resolve) { - var key = cursor.key; - while (checkKey(key)) { - // The cursor has passed beyond this key. Check next. - ++i; - if (i === set.length) { - // There is no next. Stop searching. - advance(resolve); - return false; - } - } - if (keyWithinCurrentRange(key)) { - // The current cursor value should be included and we should continue a single step in case next item has the same key or possibly our next key in set. - return true; - } else if (cmp(key, set[i][1]) === 0 || cmp(key, set[i][0]) === 0) { - // includeUpper or includeLower is false so keyWithinCurrentRange() returns false even though we are at range border. - // Continue to next key but don't include this one. - return false; - } else { - // cursor.key not yet at set[i]. Forward cursor to the next key to hunt for. - advance(function () { - if (sortDirection === ascending) cursor.continue(set[i][0]);else cursor.continue(set[i][1]); - }); - return false; - } - }); - return c; - }, - startsWithAnyOf: function () { - var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments); - - if (!set.every(function (s) { - return typeof s === 'string'; - })) { - return fail(this, "startsWithAnyOf() only works with strings"); - } - if (set.length === 0) return emptyCollection(this); - - return this.inAnyRange(set.map(function (str) { - return [str, str + maxString]; - })); - } - }; - }); - - // - // - // - // Collection Class - // - // - // - function Collection(whereClause, keyRangeGenerator) { - /// - /// - /// - /// Where clause instance - /// - var keyRange = null, - error = null; - if (keyRangeGenerator) try { - keyRange = keyRangeGenerator(); - } catch (ex) { - error = ex; - } - - var whereCtx = whereClause._ctx, - table = whereCtx.table; - this._ctx = { - table: table, - index: whereCtx.index, - isPrimKey: !whereCtx.index || table.schema.primKey.keyPath && whereCtx.index === table.schema.primKey.name, - range: keyRange, - keysOnly: false, - dir: "next", - unique: "", - algorithm: null, - filter: null, - replayFilter: null, - justLimit: true, // True if a replayFilter is just a filter that performs a "limit" operation (or none at all) - isMatch: null, - offset: 0, - limit: Infinity, - error: error, // If set, any promise must be rejected with this error - or: whereCtx.or, - valueMapper: table.hook.reading.fire - }; - } - - function isPlainKeyRange(ctx, ignoreLimitFilter) { - return !(ctx.filter || ctx.algorithm || ctx.or) && (ignoreLimitFilter ? ctx.justLimit : !ctx.replayFilter); - } - - props(Collection.prototype, function () { - - // - // Collection Private Functions - // - - function addFilter(ctx, fn) { - ctx.filter = combine(ctx.filter, fn); - } - - function addReplayFilter(ctx, factory, isLimitFilter) { - var curr = ctx.replayFilter; - ctx.replayFilter = curr ? function () { - return combine(curr(), factory()); - } : factory; - ctx.justLimit = isLimitFilter && !curr; - } - - function addMatchFilter(ctx, fn) { - ctx.isMatch = combine(ctx.isMatch, fn); - } - - /** @param ctx { - * isPrimKey: boolean, - * table: Table, - * index: string - * } - * @param store IDBObjectStore - **/ - function getIndexOrStore(ctx, store) { - if (ctx.isPrimKey) return store; - var indexSpec = ctx.table.schema.idxByName[ctx.index]; - if (!indexSpec) throw new exceptions.Schema("KeyPath " + ctx.index + " on object store " + store.name + " is not indexed"); - return store.index(indexSpec.name); - } - - /** @param ctx { - * isPrimKey: boolean, - * table: Table, - * index: string, - * keysOnly: boolean, - * range?: IDBKeyRange, - * dir: "next" | "prev" - * } - */ - function openCursor(ctx, store) { - var idxOrStore = getIndexOrStore(ctx, store); - return ctx.keysOnly && 'openKeyCursor' in idxOrStore ? idxOrStore.openKeyCursor(ctx.range || null, ctx.dir + ctx.unique) : idxOrStore.openCursor(ctx.range || null, ctx.dir + ctx.unique); - } - - function iter(ctx, fn, resolve, reject, idbstore) { - var filter = ctx.replayFilter ? combine(ctx.filter, ctx.replayFilter()) : ctx.filter; - if (!ctx.or) { - iterate(openCursor(ctx, idbstore), combine(ctx.algorithm, filter), fn, resolve, reject, !ctx.keysOnly && ctx.valueMapper); - } else (function () { - var set = {}; - var resolved = 0; - - function resolveboth() { - if (++resolved === 2) resolve(); // Seems like we just support or btwn max 2 expressions, but there are no limit because we do recursion. - } - - function union(item, cursor, advance) { - if (!filter || filter(cursor, advance, resolveboth, reject)) { - var key = cursor.primaryKey.toString(); // Converts any Date to String, String to String, Number to String and Array to comma-separated string - if (!hasOwn(set, key)) { - set[key] = true; - fn(item, cursor, advance); - } - } - } - - ctx.or._iterate(union, resolveboth, reject, idbstore); - iterate(openCursor(ctx, idbstore), ctx.algorithm, union, resolveboth, reject, !ctx.keysOnly && ctx.valueMapper); - })(); - } - function getInstanceTemplate(ctx) { - return ctx.table.schema.instanceTemplate; - } - - return { - - // - // Collection Protected Functions - // - - _read: function (fn, cb) { - var ctx = this._ctx; - if (ctx.error) return ctx.table._trans(null, function rejector(resolve, reject) { - reject(ctx.error); - });else return ctx.table._idbstore(READONLY, fn).then(cb); - }, - _write: function (fn) { - var ctx = this._ctx; - if (ctx.error) return ctx.table._trans(null, function rejector(resolve, reject) { - reject(ctx.error); - });else return ctx.table._idbstore(READWRITE, fn, "locked"); // When doing write operations on collections, always lock the operation so that upcoming operations gets queued. - }, - _addAlgorithm: function (fn) { - var ctx = this._ctx; - ctx.algorithm = combine(ctx.algorithm, fn); - }, - - _iterate: function (fn, resolve, reject, idbstore) { - return iter(this._ctx, fn, resolve, reject, idbstore); - }, - - clone: function (props$$1) { - var rv = Object.create(this.constructor.prototype), - ctx = Object.create(this._ctx); - if (props$$1) extend(ctx, props$$1); - rv._ctx = ctx; - return rv; - }, - - raw: function () { - this._ctx.valueMapper = null; - return this; - }, - - // - // Collection Public methods - // - - each: function (fn) { - var ctx = this._ctx; - - if (fake) { - var item = getInstanceTemplate(ctx), - primKeyPath = ctx.table.schema.primKey.keyPath, - key = getByKeyPath(item, ctx.index ? ctx.table.schema.idxByName[ctx.index].keyPath : primKeyPath), - primaryKey = getByKeyPath(item, primKeyPath); - fn(item, { key: key, primaryKey: primaryKey }); - } - - return this._read(function (resolve, reject, idbstore) { - iter(ctx, fn, resolve, reject, idbstore); - }); - }, - - count: function (cb) { - if (fake) return Promise.resolve(0).then(cb); - var ctx = this._ctx; - - if (isPlainKeyRange(ctx, true)) { - // This is a plain key range. We can use the count() method if the index. - return this._read(function (resolve, reject, idbstore) { - var idx = getIndexOrStore(ctx, idbstore); - var req = ctx.range ? idx.count(ctx.range) : idx.count(); - req.onerror = eventRejectHandler(reject); - req.onsuccess = function (e) { - resolve(Math.min(e.target.result, ctx.limit)); - }; - }, cb); - } else { - // Algorithms, filters or expressions are applied. Need to count manually. - var count = 0; - return this._read(function (resolve, reject, idbstore) { - iter(ctx, function () { - ++count;return false; - }, function () { - resolve(count); - }, reject, idbstore); - }, cb); - } - }, - - sortBy: function (keyPath, cb) { - /// - var parts = keyPath.split('.').reverse(), - lastPart = parts[0], - lastIndex = parts.length - 1; - function getval(obj, i) { - if (i) return getval(obj[parts[i]], i - 1); - return obj[lastPart]; - } - var order = this._ctx.dir === "next" ? 1 : -1; - - function sorter(a, b) { - var aVal = getval(a, lastIndex), - bVal = getval(b, lastIndex); - return aVal < bVal ? -order : aVal > bVal ? order : 0; - } - return this.toArray(function (a) { - return a.sort(sorter); - }).then(cb); - }, - - toArray: function (cb) { - var ctx = this._ctx; - return this._read(function (resolve, reject, idbstore) { - fake && resolve([getInstanceTemplate(ctx)]); - if (hasGetAll && ctx.dir === 'next' && isPlainKeyRange(ctx, true) && ctx.limit > 0) { - // Special optimation if we could use IDBObjectStore.getAll() or - // IDBKeyRange.getAll(): - var readingHook = ctx.table.hook.reading.fire; - var idxOrStore = getIndexOrStore(ctx, idbstore); - var req = ctx.limit < Infinity ? idxOrStore.getAll(ctx.range, ctx.limit) : idxOrStore.getAll(ctx.range); - req.onerror = eventRejectHandler(reject); - req.onsuccess = readingHook === mirror ? eventSuccessHandler(resolve) : wrap(eventSuccessHandler(function (res) { - try { - resolve(res.map(readingHook)); - } catch (e) { - reject(e); - } - })); - } else { - // Getting array through a cursor. - var a = []; - iter(ctx, function (item) { - a.push(item); - }, function arrayComplete() { - resolve(a); - }, reject, idbstore); - } - }, cb); - }, - - offset: function (offset) { - var ctx = this._ctx; - if (offset <= 0) return this; - ctx.offset += offset; // For count() - if (isPlainKeyRange(ctx)) { - addReplayFilter(ctx, function () { - var offsetLeft = offset; - return function (cursor, advance) { - if (offsetLeft === 0) return true; - if (offsetLeft === 1) { - --offsetLeft;return false; - } - advance(function () { - cursor.advance(offsetLeft); - offsetLeft = 0; - }); - return false; - }; - }); - } else { - addReplayFilter(ctx, function () { - var offsetLeft = offset; - return function () { - return --offsetLeft < 0; - }; - }); - } - return this; - }, - - limit: function (numRows) { - this._ctx.limit = Math.min(this._ctx.limit, numRows); // For count() - addReplayFilter(this._ctx, function () { - var rowsLeft = numRows; - return function (cursor, advance, resolve) { - if (--rowsLeft <= 0) advance(resolve); // Stop after this item has been included - return rowsLeft >= 0; // If numRows is already below 0, return false because then 0 was passed to numRows initially. Otherwise we wouldnt come here. - }; - }, true); - return this; - }, - - until: function (filterFunction, bIncludeStopEntry) { - var ctx = this._ctx; - fake && filterFunction(getInstanceTemplate(ctx)); - addFilter(this._ctx, function (cursor, advance, resolve) { - if (filterFunction(cursor.value)) { - advance(resolve); - return bIncludeStopEntry; - } else { - return true; - } - }); - return this; - }, - - first: function (cb) { - return this.limit(1).toArray(function (a) { - return a[0]; - }).then(cb); - }, - - last: function (cb) { - return this.reverse().first(cb); - }, - - filter: function (filterFunction) { - /// function(val){return true/false} - fake && filterFunction(getInstanceTemplate(this._ctx)); - addFilter(this._ctx, function (cursor) { - return filterFunction(cursor.value); - }); - // match filters not used in Dexie.js but can be used by 3rd part libraries to test a - // collection for a match without querying DB. Used by Dexie.Observable. - addMatchFilter(this._ctx, filterFunction); - return this; - }, - - and: function (filterFunction) { - return this.filter(filterFunction); - }, - - or: function (indexName) { - return new WhereClause(this._ctx.table, indexName, this); - }, - - reverse: function () { - this._ctx.dir = this._ctx.dir === "prev" ? "next" : "prev"; - if (this._ondirectionchange) this._ondirectionchange(this._ctx.dir); - return this; - }, - - desc: function () { - return this.reverse(); - }, - - eachKey: function (cb) { - var ctx = this._ctx; - ctx.keysOnly = !ctx.isMatch; - return this.each(function (val, cursor) { - cb(cursor.key, cursor); - }); - }, - - eachUniqueKey: function (cb) { - this._ctx.unique = "unique"; - return this.eachKey(cb); - }, - - eachPrimaryKey: function (cb) { - var ctx = this._ctx; - ctx.keysOnly = !ctx.isMatch; - return this.each(function (val, cursor) { - cb(cursor.primaryKey, cursor); - }); - }, - - keys: function (cb) { - var ctx = this._ctx; - ctx.keysOnly = !ctx.isMatch; - var a = []; - return this.each(function (item, cursor) { - a.push(cursor.key); - }).then(function () { - return a; - }).then(cb); - }, - - primaryKeys: function (cb) { - var ctx = this._ctx; - if (hasGetAll && ctx.dir === 'next' && isPlainKeyRange(ctx, true) && ctx.limit > 0) { - // Special optimation if we could use IDBObjectStore.getAllKeys() or - // IDBKeyRange.getAllKeys(): - return this._read(function (resolve, reject, idbstore) { - var idxOrStore = getIndexOrStore(ctx, idbstore); - var req = ctx.limit < Infinity ? idxOrStore.getAllKeys(ctx.range, ctx.limit) : idxOrStore.getAllKeys(ctx.range); - req.onerror = eventRejectHandler(reject); - req.onsuccess = eventSuccessHandler(resolve); - }).then(cb); - } - ctx.keysOnly = !ctx.isMatch; - var a = []; - return this.each(function (item, cursor) { - a.push(cursor.primaryKey); - }).then(function () { - return a; - }).then(cb); - }, - - uniqueKeys: function (cb) { - this._ctx.unique = "unique"; - return this.keys(cb); - }, - - firstKey: function (cb) { - return this.limit(1).keys(function (a) { - return a[0]; - }).then(cb); - }, - - lastKey: function (cb) { - return this.reverse().firstKey(cb); - }, - - distinct: function () { - var ctx = this._ctx, - idx = ctx.index && ctx.table.schema.idxByName[ctx.index]; - if (!idx || !idx.multi) return this; // distinct() only makes differencies on multiEntry indexes. - var set = {}; - addFilter(this._ctx, function (cursor) { - var strKey = cursor.primaryKey.toString(); // Converts any Date to String, String to String, Number to String and Array to comma-separated string - var found = hasOwn(set, strKey); - set[strKey] = true; - return !found; - }); - return this; - } - }; - }); - - // - // - // WriteableCollection Class - // - // - function WriteableCollection() { - Collection.apply(this, arguments); - } - - derive(WriteableCollection).from(Collection).extend({ - - // - // WriteableCollection Public Methods - // - - modify: function (changes) { - var self = this, - ctx = this._ctx, - hook = ctx.table.hook, - updatingHook = hook.updating.fire, - deletingHook = hook.deleting.fire; - - fake && typeof changes === 'function' && changes.call({ value: ctx.table.schema.instanceTemplate }, ctx.table.schema.instanceTemplate); - - return this._write(function (resolve, reject, idbstore, trans) { - var modifyer; - if (typeof changes === 'function') { - // Changes is a function that may update, add or delete propterties or even require a deletion the object itself (delete this.item) - if (updatingHook === nop && deletingHook === nop) { - // Noone cares about what is being changed. Just let the modifier function be the given argument as is. - modifyer = changes; - } else { - // People want to know exactly what is being modified or deleted. - // Let modifyer be a proxy function that finds out what changes the caller is actually doing - // and call the hooks accordingly! - modifyer = function (item) { - var origItem = deepClone(item); // Clone the item first so we can compare laters. - if (changes.call(this, item, this) === false) return false; // Call the real modifyer function (If it returns false explicitely, it means it dont want to modify anyting on this object) - if (!hasOwn(this, "value")) { - // The real modifyer function requests a deletion of the object. Inform the deletingHook that a deletion is taking place. - deletingHook.call(this, this.primKey, item, trans); - } else { - // No deletion. Check what was changed - var objectDiff = getObjectDiff(origItem, this.value); - var additionalChanges = updatingHook.call(this, objectDiff, this.primKey, origItem, trans); - if (additionalChanges) { - // Hook want to apply additional modifications. Make sure to fullfill the will of the hook. - item = this.value; - keys(additionalChanges).forEach(function (keyPath) { - setByKeyPath(item, keyPath, additionalChanges[keyPath]); // Adding {keyPath: undefined} means that the keyPath should be deleted. Handled by setByKeyPath - }); - } - } - }; - } - } else if (updatingHook === nop) { - // changes is a set of {keyPath: value} and no one is listening to the updating hook. - var keyPaths = keys(changes); - var numKeys = keyPaths.length; - modifyer = function (item) { - var anythingModified = false; - for (var i = 0; i < numKeys; ++i) { - var keyPath = keyPaths[i], - val = changes[keyPath]; - if (getByKeyPath(item, keyPath) !== val) { - setByKeyPath(item, keyPath, val); // Adding {keyPath: undefined} means that the keyPath should be deleted. Handled by setByKeyPath - anythingModified = true; - } - } - return anythingModified; - }; - } else { - // changes is a set of {keyPath: value} and people are listening to the updating hook so we need to call it and - // allow it to add additional modifications to make. - var origChanges = changes; - changes = shallowClone(origChanges); // Let's work with a clone of the changes keyPath/value set so that we can restore it in case a hook extends it. - modifyer = function (item) { - var anythingModified = false; - var additionalChanges = updatingHook.call(this, changes, this.primKey, deepClone(item), trans); - if (additionalChanges) extend(changes, additionalChanges); - keys(changes).forEach(function (keyPath) { - var val = changes[keyPath]; - if (getByKeyPath(item, keyPath) !== val) { - setByKeyPath(item, keyPath, val); - anythingModified = true; - } - }); - if (additionalChanges) changes = shallowClone(origChanges); // Restore original changes for next iteration - return anythingModified; - }; - } - - var count = 0; - var successCount = 0; - var iterationComplete = false; - var failures = []; - var failKeys = []; - var currentKey = null; - - function modifyItem(item, cursor) { - currentKey = cursor.primaryKey; - var thisContext = { - primKey: cursor.primaryKey, - value: item, - onsuccess: null, - onerror: null - }; - - function onerror(e) { - failures.push(e); - failKeys.push(thisContext.primKey); - checkFinished(); - return true; // Catch these errors and let a final rejection decide whether or not to abort entire transaction - } - - if (modifyer.call(thisContext, item, thisContext) !== false) { - // If a callback explicitely returns false, do not perform the update! - var bDelete = !hasOwn(thisContext, "value"); - ++count; - tryCatch(function () { - var req = bDelete ? cursor.delete() : cursor.update(thisContext.value); - req._hookCtx = thisContext; - req.onerror = hookedEventRejectHandler(onerror); - req.onsuccess = hookedEventSuccessHandler(function () { - ++successCount; - checkFinished(); - }); - }, onerror); - } else if (thisContext.onsuccess) { - // Hook will expect either onerror or onsuccess to always be called! - thisContext.onsuccess(thisContext.value); - } - } - - function doReject(e) { - if (e) { - failures.push(e); - failKeys.push(currentKey); - } - return reject(new ModifyError("Error modifying one or more objects", failures, successCount, failKeys)); - } - - function checkFinished() { - if (iterationComplete && successCount + failures.length === count) { - if (failures.length > 0) doReject();else resolve(successCount); - } - } - self.clone().raw()._iterate(modifyItem, function () { - iterationComplete = true; - checkFinished(); - }, doReject, idbstore); - }); - }, - - 'delete': function () { - var _this4 = this; - - var ctx = this._ctx, - range = ctx.range, - deletingHook = ctx.table.hook.deleting.fire, - hasDeleteHook = deletingHook !== nop; - if (!hasDeleteHook && isPlainKeyRange(ctx) && (ctx.isPrimKey && !hangsOnDeleteLargeKeyRange || !range)) // if no range, we'll use clear(). - { - // May use IDBObjectStore.delete(IDBKeyRange) in this case (Issue #208) - // For chromium, this is the way most optimized version. - // For IE/Edge, this could hang the indexedDB engine and make operating system instable - // (https://gist.github.com/dfahlander/5a39328f029de18222cf2125d56c38f7) - return this._write(function (resolve, reject, idbstore) { - // Our API contract is to return a count of deleted items, so we have to count() before delete(). - var onerror = eventRejectHandler(reject), - countReq = range ? idbstore.count(range) : idbstore.count(); - countReq.onerror = onerror; - countReq.onsuccess = function () { - var count = countReq.result; - tryCatch(function () { - var delReq = range ? idbstore.delete(range) : idbstore.clear(); - delReq.onerror = onerror; - delReq.onsuccess = function () { - return resolve(count); - }; - }, function (err) { - return reject(err); - }); - }; - }); - } - - // Default version to use when collection is not a vanilla IDBKeyRange on the primary key. - // Divide into chunks to not starve RAM. - // If has delete hook, we will have to collect not just keys but also objects, so it will use - // more memory and need lower chunk size. - var CHUNKSIZE = hasDeleteHook ? 2000 : 10000; - - return this._write(function (resolve, reject, idbstore, trans) { - var totalCount = 0; - // Clone collection and change its table and set a limit of CHUNKSIZE on the cloned Collection instance. - var collection = _this4.clone({ - keysOnly: !ctx.isMatch && !hasDeleteHook }) // load just keys (unless filter() or and() or deleteHook has subscribers) - .distinct() // In case multiEntry is used, never delete same key twice because resulting count - // would become larger than actual delete count. - .limit(CHUNKSIZE).raw(); // Don't filter through reading-hooks (like mapped classes etc) - - var keysOrTuples = []; - - // We're gonna do things on as many chunks that are needed. - // Use recursion of nextChunk function: - var nextChunk = function () { - return collection.each(hasDeleteHook ? function (val, cursor) { - // Somebody subscribes to hook('deleting'). Collect all primary keys and their values, - // so that the hook can be called with its values in bulkDelete(). - keysOrTuples.push([cursor.primaryKey, cursor.value]); - } : function (val, cursor) { - // No one subscribes to hook('deleting'). Collect only primary keys: - keysOrTuples.push(cursor.primaryKey); - }).then(function () { - // Chromium deletes faster when doing it in sort order. - hasDeleteHook ? keysOrTuples.sort(function (a, b) { - return ascending(a[0], b[0]); - }) : keysOrTuples.sort(ascending); - return bulkDelete(idbstore, trans, keysOrTuples, hasDeleteHook, deletingHook); - }).then(function () { - var count = keysOrTuples.length; - totalCount += count; - keysOrTuples = []; - return count < CHUNKSIZE ? totalCount : nextChunk(); - }); - }; - - resolve(nextChunk()); - }); - } - }); - - // - // - // - // ------------------------- Help functions --------------------------- - // - // - // - - function lowerVersionFirst(a, b) { - return a._cfg.version - b._cfg.version; - } - - function setApiOnPlace(objs, tableNames, mode, dbschema) { - tableNames.forEach(function (tableName) { - var tableInstance = db._tableFactory(mode, dbschema[tableName]); - objs.forEach(function (obj) { - tableName in obj || (obj[tableName] = tableInstance); - }); - }); - } - - function removeTablesApi(objs) { - objs.forEach(function (obj) { - for (var key in obj) { - if (obj[key] instanceof Table) delete obj[key]; - } - }); - } - - function iterate(req, filter, fn, resolve, reject, valueMapper) { - - // Apply valueMapper (hook('reading') or mappped class) - var mappedFn = valueMapper ? function (x, c, a) { - return fn(valueMapper(x), c, a); - } : fn; - // Wrap fn with PSD and microtick stuff from Promise. - var wrappedFn = wrap(mappedFn, reject); - - if (!req.onerror) req.onerror = eventRejectHandler(reject); - if (filter) { - req.onsuccess = trycatcher(function filter_record() { - var cursor = req.result; - if (cursor) { - var c = function () { - cursor.continue(); - }; - if (filter(cursor, function (advancer) { - c = advancer; - }, resolve, reject)) wrappedFn(cursor.value, cursor, function (advancer) { - c = advancer; - }); - c(); - } else { - resolve(); - } - }, reject); - } else { - req.onsuccess = trycatcher(function filter_record() { - var cursor = req.result; - if (cursor) { - var c = function () { - cursor.continue(); - }; - wrappedFn(cursor.value, cursor, function (advancer) { - c = advancer; - }); - c(); - } else { - resolve(); - } - }, reject); - } - } - - function parseIndexSyntax(indexes) { - /// - /// - var rv = []; - indexes.split(',').forEach(function (index) { - index = index.trim(); - var name = index.replace(/([&*]|\+\+)/g, ""); // Remove "&", "++" and "*" - // Let keyPath of "[a+b]" be ["a","b"]: - var keyPath = /^\[/.test(name) ? name.match(/^\[(.*)\]$/)[1].split('+') : name; - - rv.push(new IndexSpec(name, keyPath || null, /\&/.test(index), /\*/.test(index), /\+\+/.test(index), isArray(keyPath), /\./.test(index))); - }); - return rv; - } - - function cmp(key1, key2) { - return indexedDB.cmp(key1, key2); - } - - function min(a, b) { - return cmp(a, b) < 0 ? a : b; - } - - function max(a, b) { - return cmp(a, b) > 0 ? a : b; - } - - function ascending(a, b) { - return indexedDB.cmp(a, b); - } - - function descending(a, b) { - return indexedDB.cmp(b, a); - } - - function simpleCompare(a, b) { - return a < b ? -1 : a === b ? 0 : 1; - } - - function simpleCompareReverse(a, b) { - return a > b ? -1 : a === b ? 0 : 1; - } - - function combine(filter1, filter2) { - return filter1 ? filter2 ? function () { - return filter1.apply(this, arguments) && filter2.apply(this, arguments); - } : filter1 : filter2; - } - - function readGlobalSchema() { - db.verno = idbdb.version / 10; - db._dbSchema = globalSchema = {}; - dbStoreNames = slice(idbdb.objectStoreNames, 0); - if (dbStoreNames.length === 0) return; // Database contains no stores. - var trans = idbdb.transaction(safariMultiStoreFix(dbStoreNames), 'readonly'); - dbStoreNames.forEach(function (storeName) { - var store = trans.objectStore(storeName), - keyPath = store.keyPath, - dotted = keyPath && typeof keyPath === 'string' && keyPath.indexOf('.') !== -1; - var primKey = new IndexSpec(keyPath, keyPath || "", false, false, !!store.autoIncrement, keyPath && typeof keyPath !== 'string', dotted); - var indexes = []; - for (var j = 0; j < store.indexNames.length; ++j) { - var idbindex = store.index(store.indexNames[j]); - keyPath = idbindex.keyPath; - dotted = keyPath && typeof keyPath === 'string' && keyPath.indexOf('.') !== -1; - var index = new IndexSpec(idbindex.name, keyPath, !!idbindex.unique, !!idbindex.multiEntry, false, keyPath && typeof keyPath !== 'string', dotted); - indexes.push(index); - } - globalSchema[storeName] = new TableSchema(storeName, primKey, indexes, {}); - }); - setApiOnPlace([allTables, Transaction.prototype], keys(globalSchema), READWRITE, globalSchema); - } - - function adjustToExistingIndexNames(schema, idbtrans) { - /// - /// Issue #30 Problem with existing db - adjust to existing index names when migrating from non-dexie db - /// - /// Map between name and TableSchema - /// - var storeNames = idbtrans.db.objectStoreNames; - for (var i = 0; i < storeNames.length; ++i) { - var storeName = storeNames[i]; - var store = idbtrans.objectStore(storeName); - hasGetAll = 'getAll' in store; - for (var j = 0; j < store.indexNames.length; ++j) { - var indexName = store.indexNames[j]; - var keyPath = store.index(indexName).keyPath; - var dexieName = typeof keyPath === 'string' ? keyPath : "[" + slice(keyPath).join('+') + "]"; - if (schema[storeName]) { - var indexSpec = schema[storeName].idxByName[dexieName]; - if (indexSpec) indexSpec.name = indexName; - } - } - } - } - - function fireOnBlocked(ev) { - db.on("blocked").fire(ev); - // Workaround (not fully*) for missing "versionchange" event in IE,Edge and Safari: - connections.filter(function (c) { - return c.name === db.name && c !== db && !c._vcFired; - }).map(function (c) { - return c.on("versionchange").fire(ev); - }); - } - - extend(this, { - Collection: Collection, - Table: Table, - Transaction: Transaction, - Version: Version, - WhereClause: WhereClause, - WriteableCollection: WriteableCollection, - WriteableTable: WriteableTable - }); - - init(); - - addons.forEach(function (fn) { - fn(db); - }); -} - -var fakeAutoComplete = function () {}; // Will never be changed. We just fake for the IDE that we change it (see doFakeAutoComplete()) -var fake = false; // Will never be changed. We just fake for the IDE that we change it (see doFakeAutoComplete()) - -function parseType(type) { - if (typeof type === 'function') { - return new type(); - } else if (isArray(type)) { - return [parseType(type[0])]; - } else if (type && typeof type === 'object') { - var rv = {}; - applyStructure(rv, type); - return rv; - } else { - return type; - } -} - -function applyStructure(obj, structure) { - keys(structure).forEach(function (member) { - var value = parseType(structure[member]); - obj[member] = value; - }); - return obj; -} - -function eventSuccessHandler(done) { - return function (ev) { - done(ev.target.result); - }; -} - -function hookedEventSuccessHandler(resolve) { - // wrap() is needed when calling hooks because the rare scenario of: - // * hook does a db operation that fails immediately (IDB throws exception) - // For calling db operations on correct transaction, wrap makes sure to set PSD correctly. - // wrap() will also execute in a virtual tick. - // * If not wrapped in a virtual tick, direct exception will launch a new physical tick. - // * If this was the last event in the bulk, the promise will resolve after a physical tick - // and the transaction will have committed already. - // If no hook, the virtual tick will be executed in the reject()/resolve of the final promise, - // because it is always marked with _lib = true when created using Transaction._promise(). - return wrap(function (event) { - var req = event.target, - result = req.result, - ctx = req._hookCtx, - // Contains the hook error handler. Put here instead of closure to boost performance. - hookSuccessHandler = ctx && ctx.onsuccess; - hookSuccessHandler && hookSuccessHandler(result); - resolve && resolve(result); - }, resolve); -} - -function eventRejectHandler(reject) { - return function (event) { - preventDefault(event); - reject(event.target.error); - return false; - }; -} - -function hookedEventRejectHandler(reject) { - return wrap(function (event) { - // See comment on hookedEventSuccessHandler() why wrap() is needed only when supporting hooks. - - var req = event.target, - err = req.error, - ctx = req._hookCtx, - // Contains the hook error handler. Put here instead of closure to boost performance. - hookErrorHandler = ctx && ctx.onerror; - hookErrorHandler && hookErrorHandler(err); - preventDefault(event); - reject(err); - return false; - }); -} - -function preventDefault(event) { - if (event.stopPropagation) // IndexedDBShim doesnt support this on Safari 8 and below. - event.stopPropagation(); - if (event.preventDefault) // IndexedDBShim doesnt support this on Safari 8 and below. - event.preventDefault(); -} - -function globalDatabaseList(cb) { - var val, - localStorage = Dexie.dependencies.localStorage; - if (!localStorage) return cb([]); // Envs without localStorage support - try { - val = JSON.parse(localStorage.getItem('Dexie.DatabaseNames') || "[]"); - } catch (e) { - val = []; - } - if (cb(val)) { - localStorage.setItem('Dexie.DatabaseNames', JSON.stringify(val)); - } -} - -function awaitIterator(iterator) { - var callNext = function (result) { - return iterator.next(result); - }, - doThrow = function (error) { - return iterator.throw(error); - }, - onSuccess = step(callNext), - onError = step(doThrow); - - function step(getNext) { - return function (val) { - var next = getNext(val), - value = next.value; - - return next.done ? value : !value || typeof value.then !== 'function' ? isArray(value) ? Promise.all(value).then(onSuccess, onError) : onSuccess(value) : value.then(onSuccess, onError); - }; - } - - return step(callNext)(); -} - -// -// IndexSpec struct -// -function IndexSpec(name, keyPath, unique, multi, auto, compound, dotted) { - /// - /// - /// - /// - /// - /// - /// - this.name = name; - this.keyPath = keyPath; - this.unique = unique; - this.multi = multi; - this.auto = auto; - this.compound = compound; - this.dotted = dotted; - var keyPathSrc = typeof keyPath === 'string' ? keyPath : keyPath && '[' + [].join.call(keyPath, '+') + ']'; - this.src = (unique ? '&' : '') + (multi ? '*' : '') + (auto ? "++" : "") + keyPathSrc; -} - -// -// TableSchema struct -// -function TableSchema(name, primKey, indexes, instanceTemplate) { - /// - /// - /// - /// - this.name = name; - this.primKey = primKey || new IndexSpec(); - this.indexes = indexes || [new IndexSpec()]; - this.instanceTemplate = instanceTemplate; - this.mappedClass = null; - this.idxByName = arrayToObject(indexes, function (index) { - return [index.name, index]; - }); -} - -// Used in when defining dependencies later... -// (If IndexedDBShim is loaded, prefer it before standard indexedDB) -var idbshim = _global.idbModules && _global.idbModules.shimIndexedDB ? _global.idbModules : {}; - -function safariMultiStoreFix(storeNames) { - return storeNames.length === 1 ? storeNames[0] : storeNames; -} - -function getNativeGetDatabaseNamesFn(indexedDB) { - var fn = indexedDB && (indexedDB.getDatabaseNames || indexedDB.webkitGetDatabaseNames); - return fn && fn.bind(indexedDB); -} - -// Export Error classes -props(Dexie, fullNameExceptions); // Dexie.XXXError = class XXXError {...}; - -// -// Static methods and properties -// -props(Dexie, { - - // - // Static delete() method. - // - delete: function (databaseName) { - var db = new Dexie(databaseName), - promise = db.delete(); - promise.onblocked = function (fn) { - db.on("blocked", fn); - return this; - }; - return promise; - }, - - // - // Static exists() method. - // - exists: function (name) { - return new Dexie(name).open().then(function (db) { - db.close(); - return true; - }).catch(Dexie.NoSuchDatabaseError, function () { - return false; - }); - }, - - // - // Static method for retrieving a list of all existing databases at current host. - // - getDatabaseNames: function (cb) { - return new Promise(function (resolve, reject) { - var getDatabaseNames = getNativeGetDatabaseNamesFn(indexedDB); - if (getDatabaseNames) { - // In case getDatabaseNames() becomes standard, let's prepare to support it: - var req = getDatabaseNames(); - req.onsuccess = function (event) { - resolve(slice(event.target.result, 0)); // Converst DOMStringList to Array - }; - req.onerror = eventRejectHandler(reject); - } else { - globalDatabaseList(function (val) { - resolve(val); - return false; - }); - } - }).then(cb); - }, - - defineClass: function (structure) { - /// - /// Create a javascript constructor based on given template for which properties to expect in the class. - /// Any property that is a constructor function will act as a type. So {name: String} will be equal to {name: new String()}. - /// - /// Helps IDE code completion by knowing the members that objects contain and not just the indexes. Also - /// know what type each member has. Example: {name: String, emailAddresses: [String], properties: {shoeSize: Number}} - - // Default constructor able to copy given properties into this object. - function Class(properties) { - /// Properties to initialize object with. - /// - properties ? extend(this, properties) : fake && applyStructure(this, structure); - } - return Class; - }, - - applyStructure: applyStructure, - - ignoreTransaction: function (scopeFunc) { - // In case caller is within a transaction but needs to create a separate transaction. - // Example of usage: - // - // Let's say we have a logger function in our app. Other application-logic should be unaware of the - // logger function and not need to include the 'logentries' table in all transaction it performs. - // The logging should always be done in a separate transaction and not be dependant on the current - // running transaction context. Then you could use Dexie.ignoreTransaction() to run code that starts a new transaction. - // - // Dexie.ignoreTransaction(function() { - // db.logentries.add(newLogEntry); - // }); - // - // Unless using Dexie.ignoreTransaction(), the above example would try to reuse the current transaction - // in current Promise-scope. - // - // An alternative to Dexie.ignoreTransaction() would be setImmediate() or setTimeout(). The reason we still provide an - // API for this because - // 1) The intention of writing the statement could be unclear if using setImmediate() or setTimeout(). - // 2) setTimeout() would wait unnescessary until firing. This is however not the case with setImmediate(). - // 3) setImmediate() is not supported in the ES standard. - // 4) You might want to keep other PSD state that was set in a parent PSD, such as PSD.letThrough. - return PSD.trans ? usePSD(PSD.transless, scopeFunc) : // Use the closest parent that was non-transactional. - scopeFunc(); // No need to change scope because there is no ongoing transaction. - }, - - vip: function (fn) { - // To be used by subscribers to the on('ready') event. - // This will let caller through to access DB even when it is blocked while the db.ready() subscribers are firing. - // This would have worked automatically if we were certain that the Provider was using Dexie.Promise for all asyncronic operations. The promise PSD - // from the provider.connect() call would then be derived all the way to when provider would call localDatabase.applyChanges(). But since - // the provider more likely is using non-promise async APIs or other thenable implementations, we cannot assume that. - // Note that this method is only useful for on('ready') subscribers that is returning a Promise from the event. If not using vip() - // the database could deadlock since it wont open until the returned Promise is resolved, and any non-VIPed operation started by - // the caller will not resolve until database is opened. - return newScope(function () { - PSD.letThrough = true; // Make sure we are let through if still blocking db due to onready is firing. - return fn(); - }); - }, - - async: function (generatorFn) { - return function () { - try { - var rv = awaitIterator(generatorFn.apply(this, arguments)); - if (!rv || typeof rv.then !== 'function') return Promise.resolve(rv); - return rv; - } catch (e) { - return rejection(e); - } - }; - }, - - spawn: function (generatorFn, args, thiz) { - try { - var rv = awaitIterator(generatorFn.apply(thiz, args || [])); - if (!rv || typeof rv.then !== 'function') return Promise.resolve(rv); - return rv; - } catch (e) { - return rejection(e); - } - }, - - // Dexie.currentTransaction property - currentTransaction: { - get: function () { - return PSD.trans || null; - } - }, - - // Export our Promise implementation since it can be handy as a standalone Promise implementation - Promise: Promise, - - // Dexie.debug proptery: - // Dexie.debug = false - // Dexie.debug = true - // Dexie.debug = "dexie" - don't hide dexie's stack frames. - debug: { - get: function () { - return debug; - }, - set: function (value) { - setDebug(value, value === 'dexie' ? function () { - return true; - } : dexieStackFrameFilter); - } - }, - - // Export our derive/extend/override methodology - derive: derive, - extend: extend, - props: props, - override: override, - // Export our Events() function - can be handy as a toolkit - Events: Events, - events: { get: deprecated(function () { - return Events; - }) }, // Backward compatible lowercase version. - // Utilities - getByKeyPath: getByKeyPath, - setByKeyPath: setByKeyPath, - delByKeyPath: delByKeyPath, - shallowClone: shallowClone, - deepClone: deepClone, - getObjectDiff: getObjectDiff, - asap: asap, - maxKey: maxKey, - // Addon registry - addons: [], - // Global DB connection list - connections: connections, - - MultiModifyError: exceptions.Modify, // Backward compatibility 0.9.8. Deprecate. - errnames: errnames, - - // Export other static classes - IndexSpec: IndexSpec, - TableSchema: TableSchema, - - // - // Dependencies - // - // These will automatically work in browsers with indexedDB support, or where an indexedDB polyfill has been included. - // - // In node.js, however, these properties must be set "manually" before instansiating a new Dexie(). - // For node.js, you need to require indexeddb-js or similar and then set these deps. - // - dependencies: { - // Required: - indexedDB: idbshim.shimIndexedDB || _global.indexedDB || _global.mozIndexedDB || _global.webkitIndexedDB || _global.msIndexedDB, - IDBKeyRange: idbshim.IDBKeyRange || _global.IDBKeyRange || _global.webkitIDBKeyRange - }, - - // API Version Number: Type Number, make sure to always set a version number that can be comparable correctly. Example: 0.9, 0.91, 0.92, 1.0, 1.01, 1.1, 1.2, 1.21, etc. - semVer: DEXIE_VERSION, - version: DEXIE_VERSION.split('.').map(function (n) { - return parseInt(n); - }).reduce(function (p, c, i) { - return p + c / Math.pow(10, i * 2); - }), - fakeAutoComplete: fakeAutoComplete, - - // https://github.com/dfahlander/Dexie.js/issues/186 - // typescript compiler tsc in mode ts-->es5 & commonJS, will expect require() to return - // x.default. Workaround: Set Dexie.default = Dexie. - default: Dexie -}); - -tryCatch(function () { - // Optional dependencies - // localStorage - Dexie.dependencies.localStorage = (typeof chrome !== "undefined" && chrome !== null ? chrome.storage : void 0) != null ? null : _global.localStorage; -}); - -// Map DOMErrors and DOMExceptions to corresponding Dexie errors. May change in Dexie v2.0. -Promise.rejectionMapper = mapError; - -// Fool IDE to improve autocomplete. Tested with Visual Studio 2013 and 2015. -doFakeAutoComplete(function () { - Dexie.fakeAutoComplete = fakeAutoComplete = doFakeAutoComplete; - Dexie.fake = fake = true; -}); - -return Dexie; - -}))); -//# sourceMappingURL=dexie.js.map - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(35), __webpack_require__(80).setImmediate)) - -/***/ }), -/* 153 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) { - -var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); - -function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -var Dexie = __webpack_require__(152); -var _write = __webpack_require__(185); -var pushable = __webpack_require__(162); -var toBuffer = __webpack_require__(187); -var defer = __webpack_require__(161); -var toWindow = __webpack_require__(184).recent; -var pull = __webpack_require__(75); - -module.exports = function () { - function IdbBlobStore(dbname) { - _classCallCheck(this, IdbBlobStore); - - this.path = dbname || 'pull-blob-store-' + Math.random().toString().slice(2, 10); - - this.db = new Dexie(this.path); - - // Setup database - this.db.version(1).stores(_defineProperty({}, this.path, '++,key,blob')); - } - - _createClass(IdbBlobStore, [{ - key: 'write', - value: function write(key, cb) { - var _this = this; - - cb = cb || function () {}; - var d = defer(); - - if (!key) { - cb(new Error('Missing key')); - - return d; - } - - this.remove(key, function (err) { - if (err) { - return cb(err); - } - - var table = _this.table; - - d.resolve(pull(toWindow(100, 10), _write(writer, reduce, 100, cb))); - - function writer(data, cb) { - var blobs = data.map(function (blob) { - return { - key: key, - blob: blob - }; - }); - - table.bulkPut(blobs).then(function () { - return cb(); - }).catch(cb); - } - - function reduce(queue, data) { - queue = queue || []; - if (!Array.isArray(data)) { - data = [data]; - } - - data = data.map(ensureBuffer); - - if (!queue.length || last(queue).length > 99) { - queue.push(Buffer.concat(data)); - } else { - queue[lastIndex(queue)] = Buffer.concat(last(queue).concat(data)); - } - - return queue; - } - }); - - return d; - } - }, { - key: 'read', - value: function read(key) { - var _this2 = this; - - var p = pushable(); - - if (!key) { - p.end(new Error('Missing key')); - - return p; - } - - this.exists(key, function (err, exists) { - if (err) { - return p.end(err); - } - - if (!exists) { - return p.end(new Error('Not found')); - } - - _this2.table.where('key').equals(key).each(function (val) { - return p.push(toBuffer(val.blob)); - }).catch(function (err) { - return p.end(err); - }).then(function () { - return p.end(); - }); - }); - - return p; - } - }, { - key: 'exists', - value: function exists(key, cb) { - cb = cb || function () {}; - - if (!key) { - return cb(new Error('Missing key')); - } - - this.table.where('key').equals(key).count().then(function (val) { - return cb(null, Boolean(val)); - }).catch(cb); - } - }, { - key: 'remove', - value: function remove(key, cb) { - cb = cb || function () {}; - - if (!key) { - return cb(new Error('Missing key')); - } - - var coll = this.table.where('key').equals(key); - coll.count(function (count) { - return count > 0 ? coll.delete() : null; - }).then(function () { - return cb(); - }).catch(cb); - } - }, { - key: 'table', - get: function get() { - return this.db[this.path]; - } - }]); - - return IdbBlobStore; -}(); - -function lastIndex(arr) { - return arr.length - 1; -} - -function last(arr) { - return arr[lastIndex(arr)]; -} - -function ensureBuffer(data) { - return Buffer.isBuffer(data) ? data : Buffer.from(data); -} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(20).Buffer)) - -/***/ }), -/* 154 */ -/***/ (function(module, exports) { - -exports.read = function (buffer, offset, isLE, mLen, nBytes) { - var e, m - var eLen = nBytes * 8 - mLen - 1 - var eMax = (1 << eLen) - 1 - var eBias = eMax >> 1 - var nBits = -7 - var i = isLE ? (nBytes - 1) : 0 - var d = isLE ? -1 : 1 - var s = buffer[offset + i] - - i += d - - e = s & ((1 << (-nBits)) - 1) - s >>= (-nBits) - nBits += eLen - for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - m = e & ((1 << (-nBits)) - 1) - e >>= (-nBits) - nBits += mLen - for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {} - - if (e === 0) { - e = 1 - eBias - } else if (e === eMax) { - return m ? NaN : ((s ? -1 : 1) * Infinity) - } else { - m = m + Math.pow(2, mLen) - e = e - eBias - } - return (s ? -1 : 1) * m * Math.pow(2, e - mLen) -} - -exports.write = function (buffer, value, offset, isLE, mLen, nBytes) { - var e, m, c - var eLen = nBytes * 8 - mLen - 1 - var eMax = (1 << eLen) - 1 - var eBias = eMax >> 1 - var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0) - var i = isLE ? 0 : (nBytes - 1) - var d = isLE ? 1 : -1 - var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0 - - value = Math.abs(value) - - if (isNaN(value) || value === Infinity) { - m = isNaN(value) ? 1 : 0 - e = eMax - } else { - e = Math.floor(Math.log(value) / Math.LN2) - if (value * (c = Math.pow(2, -e)) < 1) { - e-- - c *= 2 - } - if (e + eBias >= 1) { - value += rt / c - } else { - value += rt * Math.pow(2, 1 - eBias) - } - if (value * c >= 2) { - e++ - c /= 2 - } - - if (e + eBias >= eMax) { - m = 0 - e = eMax - } else if (e + eBias >= 1) { - m = (value * c - 1) * Math.pow(2, mLen) - e = e + eBias - } else { - m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen) - e = 0 - } - } - - for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {} - - e = (e << mLen) | m - eLen += mLen - for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {} - - buffer[offset + i - d] |= s * 128 -} - - -/***/ }), -/* 155 */ -/***/ (function(module, exports) { - -if (typeof Object.create === 'function') { - // implementation from standard node.js 'util' module - module.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); - }; -} else { - // old school shim for old browsers - module.exports = function inherits(ctor, superCtor) { - ctor.super_ = superCtor - var TempCtor = function () {} - TempCtor.prototype = superCtor.prototype - ctor.prototype = new TempCtor() - ctor.prototype.constructor = ctor - } -} - - -/***/ }), -/* 156 */ -/***/ (function(module, exports) { - -module.exports = isTypedArray -isTypedArray.strict = isStrictTypedArray -isTypedArray.loose = isLooseTypedArray - -var toString = Object.prototype.toString -var names = { - '[object Int8Array]': true - , '[object Int16Array]': true - , '[object Int32Array]': true - , '[object Uint8Array]': true - , '[object Uint8ClampedArray]': true - , '[object Uint16Array]': true - , '[object Uint32Array]': true - , '[object Float32Array]': true - , '[object Float64Array]': true -} - -function isTypedArray(arr) { - return ( - isStrictTypedArray(arr) - || isLooseTypedArray(arr) - ) -} - -function isStrictTypedArray(arr) { - return ( - arr instanceof Int8Array - || arr instanceof Int16Array - || arr instanceof Int32Array - || arr instanceof Uint8Array - || arr instanceof Uint8ClampedArray - || arr instanceof Uint16Array - || arr instanceof Uint32Array - || arr instanceof Float32Array - || arr instanceof Float64Array - ) -} - -function isLooseTypedArray(arr) { - return names[toString.call(arr)] -} - - -/***/ }), -/* 157 */ -/***/ (function(module, exports) { - -var toString = {}.toString; - -module.exports = Array.isArray || function (arr) { - return toString.call(arr) == '[object Array]'; -}; - - -/***/ }), -/* 158 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(setImmediate) { -module.exports = function () { - - var next = typeof setImmediate === 'undefined' ? setTimeout : setImmediate - - var locked = {} - - function _releaser (key, exec) { - return function (done) { - return function () { - _release(key, exec) - if (done) done.apply(null, arguments) - } - } - } - - function _release (key, exec) { - var i = locked[key].indexOf(exec) //should usually be 0 - - if(!~i) return - - locked[key].splice(i, 1) - - //note, that the next locker isn't triggered until next tick, - //so it's always after the released callback - if(isLocked(key)) - next(function () { - locked[key][0](_releaser(key, locked[key][0])) - }) - else - delete locked[key] - } - - function _lock(key, exec) { - if(isLocked(key)) - return locked[key].push(exec), false - return locked[key] = [exec], true - } - - function lock(key, exec) { - if(Array.isArray(key)) { - var keys = key.length, locks = [] - var l = {} - - function releaser (done) { - return function () { - var args = [].slice.call(arguments) - for(var key in l) - _release(key, l[key]) - done.apply(this, args) - } - } - - key.forEach(function (key) { - var n = 0 - - function ready () { - if(n++) return - if(!--keys) - //all the keys are ready! - exec(releaser) - } - - l[key] = ready - if(_lock(key, ready)) ready() - }) - - return - } - - if(_lock(key, exec)) - exec(_releaser(key, exec)) - } - - function isLocked (key) { - return Array.isArray(locked[key]) ? !! locked[key].length : false - } - - lock.isLocked = isLocked - - return lock -} - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(80).setImmediate)) - -/***/ }), -/* 159 */ -/***/ (function(module, exports) { - - -var looper = module.exports = function (fun) { - return function next (a, b, c) { - var loop = true, returned = false, sync = false - do { - sync = true; loop = false - fun.call(function (x, y, z) { - if(sync) { - a = x; b = y; c = z - loop = true - } - else - next(x, y, z) - }, a, b, c) - sync = false - } while(loop) - } -} - - -/***/ }), -/* 160 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// resolves . and .. elements in a path array with directory names there -// must be no slashes, empty elements, or device names (c:\) in the array -// (so also no leading and trailing slashes - it does not distinguish -// relative and absolute paths) -function normalizeArray(parts, allowAboveRoot) { - // if the path tries to go above the root, `up` ends up > 0 - var up = 0; - for (var i = parts.length - 1; i >= 0; i--) { - var last = parts[i]; - if (last === '.') { - parts.splice(i, 1); - } else if (last === '..') { - parts.splice(i, 1); - up++; - } else if (up) { - parts.splice(i, 1); - up--; - } - } - - // if the path is allowed to go above the root, restore leading ..s - if (allowAboveRoot) { - for (; up--; up) { - parts.unshift('..'); - } - } - - return parts; -} - -// Split a filename into [root, dir, basename, ext], unix version -// 'root' is just a slash, or nothing. -var splitPathRe = - /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/; -var splitPath = function(filename) { - return splitPathRe.exec(filename).slice(1); -}; - -// path.resolve([from ...], to) -// posix version -exports.resolve = function() { - var resolvedPath = '', - resolvedAbsolute = false; - - for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) { - var path = (i >= 0) ? arguments[i] : process.cwd(); - - // Skip empty and invalid entries - if (typeof path !== 'string') { - throw new TypeError('Arguments to path.resolve must be strings'); - } else if (!path) { - continue; - } - - resolvedPath = path + '/' + resolvedPath; - resolvedAbsolute = path.charAt(0) === '/'; - } - - // At this point the path should be resolved to a full absolute path, but - // handle relative paths to be safe (might happen when process.cwd() fails) - - // Normalize the path - resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) { - return !!p; - }), !resolvedAbsolute).join('/'); - - return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.'; -}; - -// path.normalize(path) -// posix version -exports.normalize = function(path) { - var isAbsolute = exports.isAbsolute(path), - trailingSlash = substr(path, -1) === '/'; - - // Normalize the path - path = normalizeArray(filter(path.split('/'), function(p) { - return !!p; - }), !isAbsolute).join('/'); - - if (!path && !isAbsolute) { - path = '.'; - } - if (path && trailingSlash) { - path += '/'; - } - - return (isAbsolute ? '/' : '') + path; -}; - -// posix version -exports.isAbsolute = function(path) { - return path.charAt(0) === '/'; -}; - -// posix version -exports.join = function() { - var paths = Array.prototype.slice.call(arguments, 0); - return exports.normalize(filter(paths, function(p, index) { - if (typeof p !== 'string') { - throw new TypeError('Arguments to path.join must be strings'); - } - return p; - }).join('/')); -}; - - -// path.relative(from, to) -// posix version -exports.relative = function(from, to) { - from = exports.resolve(from).substr(1); - to = exports.resolve(to).substr(1); - - function trim(arr) { - var start = 0; - for (; start < arr.length; start++) { - if (arr[start] !== '') break; - } - - var end = arr.length - 1; - for (; end >= 0; end--) { - if (arr[end] !== '') break; - } - - if (start > end) return []; - return arr.slice(start, end - start + 1); - } - - var fromParts = trim(from.split('/')); - var toParts = trim(to.split('/')); - - var length = Math.min(fromParts.length, toParts.length); - var samePartsLength = length; - for (var i = 0; i < length; i++) { - if (fromParts[i] !== toParts[i]) { - samePartsLength = i; - break; - } - } - - var outputParts = []; - for (var i = samePartsLength; i < fromParts.length; i++) { - outputParts.push('..'); - } - - outputParts = outputParts.concat(toParts.slice(samePartsLength)); - - return outputParts.join('/'); -}; - -exports.sep = '/'; -exports.delimiter = ':'; - -exports.dirname = function(path) { - var result = splitPath(path), - root = result[0], - dir = result[1]; - - if (!root && !dir) { - // No dirname whatsoever - return '.'; - } - - if (dir) { - // It has a dirname, strip trailing slash - dir = dir.substr(0, dir.length - 1); - } - - return root + dir; -}; - - -exports.basename = function(path, ext) { - var f = splitPath(path)[2]; - // TODO: make this comparison case-insensitive on windows? - if (ext && f.substr(-1 * ext.length) === ext) { - f = f.substr(0, f.length - ext.length); - } - return f; -}; - - -exports.extname = function(path) { - return splitPath(path)[3]; -}; - -function filter (xs, f) { - if (xs.filter) return xs.filter(f); - var res = []; - for (var i = 0; i < xs.length; i++) { - if (f(xs[i], i, xs)) res.push(xs[i]); - } - return res; -} - -// String.prototype.substr - negative index don't work in IE8 -var substr = 'ab'.substr(-1) === 'b' - ? function (str, start, len) { return str.substr(start, len) } - : function (str, start, len) { - if (start < 0) start = str.length + start; - return str.substr(start, len); - } -; - -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(34))) - -/***/ }), -/* 161 */ -/***/ (function(module, exports) { - -module.exports = function (stream) { - var read, started = false, id = Math.random() - - function consume (_read) { - if(!_read) throw new Error('must be passed a readable') - read = _read - if(started) stream(read) - } - - consume.resolve = - consume.ready = - consume.start = function (_stream) { - started = true; stream = _stream || stream - if(read) stream(read) - return consume - } - - return consume -} - - -/***/ }), -/* 162 */ -/***/ (function(module, exports) { - -module.exports = pullPushable - -function pullPushable (onClose) { - // create a buffer for data - // that have been pushed - // but not yet pulled. - var buffer = [] - - // a pushable is a source stream - // (abort, cb) => cb(end, data) - // - // when pushable is pulled, - // keep references to abort and cb - // so we can call back after - // .end(end) or .push(data) - var abort, cb - function read (_abort, _cb) { - if (_abort) { - abort = _abort - // if there is already a cb waiting, abort it. - if (cb) callback(abort) - } - cb = _cb - drain() - } - - var ended - read.end = function (end) { - ended = ended || end || true - // attempt to drain - drain() - } - - read.push = function (data) { - if (ended) return - // if sink already waiting, - // we can call back directly. - if (cb) { - callback(abort, data) - return - } - // otherwise push data and - // attempt to drain - buffer.push(data) - drain() - } - - return read - - // `drain` calls back to (if any) waiting - // sink with abort, end, or next data. - function drain () { - if (!cb) return - - if (abort) callback(abort) - else if (!buffer.length && ended) callback(ended) - else if (buffer.length) callback(null, buffer.shift()) - } - - // `callback` calls back to waiting sink, - // and removes references to sink cb. - function callback (err, val) { - var _cb = cb - // if error and pushable passed onClose, call it - // the first time this stream ends or errors. - if (err && onClose) { - var c = onClose - onClose = null - c(err === true ? null : err) - } - cb = null - _cb(err, val) - } -} - - -/***/ }), -/* 163 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function pull (a) { - var length = arguments.length - if (typeof a === 'function' && a.length === 1) { - var args = new Array(length) - for(var i = 0; i < length; i++) - args[i] = arguments[i] - return function (read) { - if (args == null) { - throw new TypeError("partial sink should only be called once!") - } - - // Grab the reference after the check, because it's always an array now - // (engines like that kind of consistency). - var ref = args - args = null - - // Prioritize common case of small number of pulls. - switch (length) { - case 1: return pull(read, ref[0]) - case 2: return pull(read, ref[0], ref[1]) - case 3: return pull(read, ref[0], ref[1], ref[2]) - case 4: return pull(read, ref[0], ref[1], ref[2], ref[3]) - default: - ref.unshift(read) - return pull.apply(null, ref) - } - } - } - - var read = a - - if (read && typeof read.source === 'function') { - read = read.source - } - - for (var i = 1; i < length; i++) { - var s = arguments[i] - if (typeof s === 'function') { - read = s(read) - } else if (s && typeof s === 'object') { - s.sink(read) - read = s.source - } - } - - return read -} - - -/***/ }), -/* 164 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var reduce = __webpack_require__(51) - -module.exports = function collect (cb) { - return reduce(function (arr, item) { - arr.push(item) - return arr - }, [], cb) -} - - -/***/ }), -/* 165 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var reduce = __webpack_require__(51) - -module.exports = function concat (cb) { - return reduce(function (a, b) { - return a + b - }, '', cb) -} - - -/***/ }), -/* 166 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function id (e) { return e } -var prop = __webpack_require__(25) -var drain = __webpack_require__(24) - -module.exports = function find (test, cb) { - var ended = false - if(!cb) - cb = test, test = id - else - test = prop(test) || id - - return drain(function (data) { - if(test(data)) { - ended = true - cb(null, data) - return false - } - }, function (err) { - if(ended) return //already called back - cb(err === true ? null : err, null) - }) -} - - - - - - -/***/ }), -/* 167 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = { - drain: __webpack_require__(24), - onEnd: __webpack_require__(169), - log: __webpack_require__(168), - find: __webpack_require__(166), - reduce: __webpack_require__(51), - collect: __webpack_require__(164), - concat: __webpack_require__(165) -} - - - -/***/ }), -/* 168 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var drain = __webpack_require__(24) - -module.exports = function log (done) { - return drain(function (data) { - console.log(data) - }, done) -} - - -/***/ }), -/* 169 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var drain = __webpack_require__(24) - -module.exports = function onEnd (done) { - return drain(null, done) -} - - -/***/ }), -/* 170 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = function count (max) { - var i = 0; max = max || Infinity - return function (end, cb) { - if(end) return cb && cb(end) - if(i > max) - return cb(true) - cb(null, i++) - } -} - - - - -/***/ }), -/* 171 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -//a stream that ends immediately. -module.exports = function empty () { - return function (abort, cb) { - cb(true) - } -} - - -/***/ }), -/* 172 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -//a stream that errors immediately. -module.exports = function error (err) { - return function (abort, cb) { - cb(err) - } -} - - - -/***/ }), -/* 173 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -module.exports = { - keys: __webpack_require__(175), - once: __webpack_require__(76), - values: __webpack_require__(52), - count: __webpack_require__(170), - infinite: __webpack_require__(174), - empty: __webpack_require__(171), - error: __webpack_require__(172) -} - - -/***/ }), -/* 174 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -module.exports = function infinite (generate) { - generate = generate || Math.random - return function (end, cb) { - if(end) return cb && cb(end) - return cb(null, generate()) - } -} - - - - -/***/ }), -/* 175 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - -var values = __webpack_require__(52) -module.exports = function (object) { - return values(Object.keys(object)) -} - - - - -/***/ }), -/* 176 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function id (e) { return e } -var prop = __webpack_require__(25) - -module.exports = function asyncMap (map) { - if(!map) return id - map = prop(map) - var busy = false, abortCb, aborted - return function (read) { - return function next (abort, cb) { - if(aborted) return cb(aborted) - if(abort) { - aborted = abort - if(!busy) read(abort, cb) - else read(abort, function () { - //if we are still busy, wait for the mapper to complete. - if(busy) abortCb = cb - else cb(abort) - }) - } - else - read(null, function (end, data) { - if(end) cb(end) - else if(aborted) cb(aborted) - else { - busy = true - map(data, function (err, data) { - busy = false - if(aborted) { - cb(aborted) - abortCb(aborted) - } - else if(err) next (err, cb) - else cb(null, data) - }) - } - }) - } - } -} - - - - -/***/ }), -/* 177 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var tester = __webpack_require__(79) -var filter = __webpack_require__(53) - -module.exports = function filterNot (test) { - test = tester(test) - return filter(function (data) { return !test(data) }) -} - - -/***/ }), -/* 178 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var values = __webpack_require__(52) -var once = __webpack_require__(76) - -//convert a stream of arrays or streams into just a stream. -module.exports = function flatten () { - return function (read) { - var _read - return function (abort, cb) { - if (abort) { //abort the current stream, and then stream of streams. - _read ? _read(abort, function(err) { - read(err || abort, cb) - }) : read(abort, cb) - } - else if(_read) nextChunk() - else nextStream() - - function nextChunk () { - _read(null, function (err, data) { - if (err === true) nextStream() - else if (err) { - read(true, function(abortErr) { - // TODO: what do we do with the abortErr? - cb(err) - }) - } - else cb(null, data) - }) - } - function nextStream () { - _read = null - read(null, function (end, stream) { - if(end) - return cb(end) - if(Array.isArray(stream) || stream && 'object' === typeof stream) - stream = values(stream) - else if('function' != typeof stream) - stream = once(stream) - _read = stream - nextChunk() - }) - } - } - } -} - - - -/***/ }), -/* 179 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -module.exports = { - map: __webpack_require__(180), - asyncMap: __webpack_require__(176), - filter: __webpack_require__(53), - filterNot: __webpack_require__(177), - through: __webpack_require__(183), - take: __webpack_require__(182), - unique: __webpack_require__(77), - nonUnique: __webpack_require__(181), - flatten: __webpack_require__(178) -} - - - - - -/***/ }), -/* 180 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function id (e) { return e } -var prop = __webpack_require__(25) - -module.exports = function map (mapper) { - if(!mapper) return id - mapper = prop(mapper) - return function (read) { - return function (abort, cb) { - read(abort, function (end, data) { - try { - data = !end ? mapper(data) : null - } catch (err) { - return read(err, function () { - return cb(err) - }) - } - cb(end, data) - }) - } - } -} - - -/***/ }), -/* 181 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var unique = __webpack_require__(77) - -//passes an item through when you see it for the second time. -module.exports = function nonUnique (field) { - return unique(field, true) -} - - -/***/ }), -/* 182 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -//read a number of items and then stop. -module.exports = function take (test, opts) { - opts = opts || {} - var last = opts.last || false // whether the first item for which !test(item) should still pass - var ended = false - if('number' === typeof test) { - last = true - var n = test; test = function () { - return --n - } - } - - return function (read) { - - function terminate (cb) { - read(true, function (err) { - last = false; cb(err || true) - }) - } - - return function (end, cb) { - if(ended) last ? terminate(cb) : cb(ended) - else if(ended = end) read(ended, cb) - else - read(null, function (end, data) { - if(ended = ended || end) { - //last ? terminate(cb) : - cb(ended) - } - else if(!test(data)) { - ended = true - last ? cb(null, data) : terminate(cb) - } - else - cb(null, data) - }) - } - } -} - - -/***/ }), -/* 183 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -//a pass through stream that doesn't change the value. -module.exports = function through (op, onEnd) { - var a = false - - function once (abort) { - if(a || !onEnd) return - a = true - onEnd(abort === true ? null : abort) - } - - return function (read) { - return function (end, cb) { - if(end) once(end) - return read(end, function (end, data) { - if(!end) op && op(data) - else once(end) - cb(end, data) - }) - } - } -} - - -/***/ }), -/* 184 */ -/***/ (function(module, exports, __webpack_require__) { - -var looper = __webpack_require__(159) - -var window = module.exports = function (init, start) { -return function (read) { - start = start || function (start, data) { - return {start: start, data: data} - } - var windows = [], output = [], ended = null - var data, end - var j = 0 - - return function (abort, cb) { - if(output.length) - return cb(null, output.shift()) - if(ended) - return cb(ended) - var i = 0 - var k = j ++ - read(abort, looper(function (end, data) { - var next = this - var reduce, update, once = false - if(end) - ended = end - - function _update (end, _data) { - if(once) return - once = true - delete windows[windows.indexOf(update)] - output.push(start(data, _data)) - } - - if(!ended) - update = init(data, _update) - - if(update) - windows.push(update) - else - //don't allow data unless a window started here! - once = true - - windows.forEach(function (update, i) { - update(end, data) - }) - - if(output.length) - return cb(null, output.shift()) - else if(ended) - return cb(ended) - else - read(null, next) - - })) - } -}} - -window.recent = function (size, time) { - var current = null - return window(function (data, cb) { - if(current) return - current = [] - var timer - - function done () { - var _current = current - current = null - clearTimeout(timer) - cb(null, _current) - } - - if(time) - timer = setTimeout(done, time) - - return function (end, data) { - if(end) return done() - current.push(data) - if(size != null && current.length >= size) - done() - } - }, function (_, data) { - return data - }) -} - -window.sliding = function (reduce, width) { - width = width || 10 - var k = 0 - return window(function (data, cb) { - var acc - var i = 0 - var l = k++ - return function (end, data) { - if(end) return - acc = reduce(acc, data) - if(width <= ++ i) - cb(null, acc) - } - }) -} - - - -/***/ }), -/* 185 */ -/***/ (function(module, exports) { - -//another idea: buffer 2* the max, but only call write with half of that, -//this could manage cases where the read ahead is latent. Hmm, we probably -//shouldn't guess at that here, just handle write latency. - -//how would we measure this anyway? - -function append (array, item) { - (array = array || []).push(item) - return array -} - -module.exports = function (write, reduce, max, cb) { - reduce = reduce || append - var ended, _cb, _read - function reader (read) { - var queue = null, writing = false, length = 0 - _read = read - if(ended) return read(ended, function (err) { - cb(err) - _cb && _cb() - }) - - var reading = false - function more () { - if(reading || ended) return - reading = true - read(null, function (err, data) { - reading = false - next(err, data) - }) - } - - function flush () { - if(writing) return - var _queue = queue - queue = null; writing = true; length = 0 - write(_queue, function (err) { - writing = false - - if(ended === true && !length) cb(err) - else if(ended && ended !== true) { - cb(ended) - _cb && _cb() - } - else if(err) read(ended = err, cb) //abort upstream. - else if(length) flush() - else more() - }) - } - - function next (end, data) { - if(ended) return - ended = end - if(!ended) { - queue = reduce(queue, data) - length = (queue && queue.length) || 0 - if(queue != null) flush() - if(length < max) more() - } - else if(!writing) cb(ended === true ? null : ended) - } - - reader.abort = function (__cb) { - _cb = function (end) { - __cb && __cb() - } - read(ended = new Error('aborted'), function (end) { - end = end === true ? null : end - if(!writing) { - cb && cb(end) - _cb && _cb(end) - } - }) - } - - more() - } - - reader.abort = function (cb) { - ended = new Error('aborted before connecting') - _cb = function (err) { - cb && cb() - } - } - - return reader -} - - - - - - - - - -/***/ }), -/* 186 */ -/***/ (function(module, exports, __webpack_require__) { - -/* WEBPACK VAR INJECTION */(function(global, process) {(function (global, undefined) { - "use strict"; - - if (global.setImmediate) { - return; - } - - var nextHandle = 1; // Spec says greater than zero - var tasksByHandle = {}; - var currentlyRunningATask = false; - var doc = global.document; - var registerImmediate; - - function setImmediate(callback) { - // Callback can either be a function or a string - if (typeof callback !== "function") { - callback = new Function("" + callback); - } - // Copy function arguments - var args = new Array(arguments.length - 1); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i + 1]; - } - // Store and register the task - var task = { callback: callback, args: args }; - tasksByHandle[nextHandle] = task; - registerImmediate(nextHandle); - return nextHandle++; - } - - function clearImmediate(handle) { - delete tasksByHandle[handle]; - } - - function run(task) { - var callback = task.callback; - var args = task.args; - switch (args.length) { - case 0: - callback(); - break; - case 1: - callback(args[0]); - break; - case 2: - callback(args[0], args[1]); - break; - case 3: - callback(args[0], args[1], args[2]); - break; - default: - callback.apply(undefined, args); - break; - } - } - - function runIfPresent(handle) { - // From the spec: "Wait until any invocations of this algorithm started before this one have completed." - // So if we're currently running a task, we'll need to delay this invocation. - if (currentlyRunningATask) { - // Delay by doing a setTimeout. setImmediate was tried instead, but in Firefox 7 it generated a - // "too much recursion" error. - setTimeout(runIfPresent, 0, handle); - } else { - var task = tasksByHandle[handle]; - if (task) { - currentlyRunningATask = true; - try { - run(task); - } finally { - clearImmediate(handle); - currentlyRunningATask = false; - } - } - } - } - - function installNextTickImplementation() { - registerImmediate = function(handle) { - process.nextTick(function () { runIfPresent(handle); }); - }; - } - - function canUsePostMessage() { - // The test against `importScripts` prevents this implementation from being installed inside a web worker, - // where `global.postMessage` means something completely different and can't be used for this purpose. - if (global.postMessage && !global.importScripts) { - var postMessageIsAsynchronous = true; - var oldOnMessage = global.onmessage; - global.onmessage = function() { - postMessageIsAsynchronous = false; - }; - global.postMessage("", "*"); - global.onmessage = oldOnMessage; - return postMessageIsAsynchronous; - } - } - - function installPostMessageImplementation() { - // Installs an event handler on `global` for the `message` event: see - // * https://developer.mozilla.org/en/DOM/window.postMessage - // * http://www.whatwg.org/specs/web-apps/current-work/multipage/comms.html#crossDocumentMessages - - var messagePrefix = "setImmediate$" + Math.random() + "$"; - var onGlobalMessage = function(event) { - if (event.source === global && - typeof event.data === "string" && - event.data.indexOf(messagePrefix) === 0) { - runIfPresent(+event.data.slice(messagePrefix.length)); - } - }; - - if (global.addEventListener) { - global.addEventListener("message", onGlobalMessage, false); - } else { - global.attachEvent("onmessage", onGlobalMessage); - } - - registerImmediate = function(handle) { - global.postMessage(messagePrefix + handle, "*"); - }; - } - - function installMessageChannelImplementation() { - var channel = new MessageChannel(); - channel.port1.onmessage = function(event) { - var handle = event.data; - runIfPresent(handle); - }; - - registerImmediate = function(handle) { - channel.port2.postMessage(handle); - }; - } - - function installReadyStateChangeImplementation() { - var html = doc.documentElement; - registerImmediate = function(handle) { - // Create a + + + diff --git a/examples/browser/browser-webpack-example/index.js b/examples/browser/browser-webpack-example/index.js new file mode 100644 index 000000000..0e49308b2 --- /dev/null +++ b/examples/browser/browser-webpack-example/index.js @@ -0,0 +1,19 @@ +'use strict' + +/* + This is the entry point for Webpack to build the bundle from. + We use the same example code as the html browser example, + but we inject the Node.js modules of OrbitDB and IPFS into + the example. + + In the html example, IPFS and OrbitDB are loaded from the + minified distribution builds (in '../lib') + */ + +const IPFS = require('ipfs') +const OrbitDB = require('../../../src/OrbitDB') +const example = require('../example') + +// Call the start function and pass in the +// IPFS and OrbitDB modules +example(IPFS, OrbitDB) diff --git a/examples/browser/browser.css b/examples/browser/browser.css new file mode 100644 index 000000000..0fbd2b7cb --- /dev/null +++ b/examples/browser/browser.css @@ -0,0 +1,41 @@ +body { + font-family: 'Abel', sans-serif; + font-size: 0.8em; +} + +#logo { + border-top: 1px dotted black; + border-bottom: 1px dotted black; +} + +#status { + border-top: 1px dotted black; + border-bottom: 1px dotted black; + padding: 0.5em 0em; + text-align: center; +} + +#results { + border: 1px dotted black; + padding: 0.5em; +} + +#writerText { + padding-top: 0.5em; +} + +pre { + text-align: center; +} + +input { + padding: 0.5em; +} + +h2 { + margin-bottom: 0.2em; +} +h3 { + margin-top: 0.8em; + margin-bottom: 0.2em; +} diff --git a/examples/browser/browser.html b/examples/browser/browser.html index 3348eaff0..681ac7502 100644 --- a/examples/browser/browser.html +++ b/examples/browser/browser.html @@ -1,122 +1,57 @@ + + + + +

Open or Create Local Database

+ Open a database locally and create it if the database doesn't exist. +

- + + + Public + +

Open Remote Database

+ Open a database from an OrbitDB address, eg. /orbitdb/QmfY3udPcWUD5NREjrUV351Cia7q4DXNcfyRLJzUPL3wPD/hello +
+ Note! Open the remote database in an Incognito Window or in a different browser. It won't work if you don't. +

+ + + Read-only

+
Init
+
- - - + + diff --git a/examples/browser/example.js b/examples/browser/example.js new file mode 100644 index 000000000..d0f52d0c4 --- /dev/null +++ b/examples/browser/example.js @@ -0,0 +1,276 @@ +const creatures = [ + '🐙', '🐷', '🐬', '🐞', + '🐈', '🙉', '🐸', '🐓', + '🐊', '🕷', '🐠', '🐘', + '🐼', '🐰', '🐶', '🐥' +] + +const elm = document.getElementById("output") +const statusElm = document.getElementById("status") +const dbnameField = document.getElementById("dbname") +const dbAddressField = document.getElementById("dbaddress") +const createButton = document.getElementById("create") +const openButton = document.getElementById("open") +const createType = document.getElementById("type") +const writerText = document.getElementById("writerText") +const publicCheckbox = document.getElementById("public") +const readonlyCheckbox = document.getElementById("readonly") + +function handleError(e) { + console.error(e.stack) + statusElm.innerHTML = e.message +} + +const main = (IPFS, ORBITDB) => { + let ipfsReady = false + let orbitdb, db + let count = 0 + let interval = Math.floor((Math.random() * 300) + (Math.random() * 2000)) + let updateInterval + + // If we're building with Webpack, use the injected IPFS module. + // Otherwise use 'Ipfs' which is exposed by ipfs.min.js + if (IPFS) + Ipfs = IPFS + + // If we're building with Webpack, use the injected OrbitDB module. + // Otherwise use 'OrbitDB' which is exposed by orbitdb.min.js + if (ORBITDB) + OrbitDB = ORBITDB + + // Init UI + openButton.disabled = true + createButton.disabled = true + statusElm.innerHTML = "Starting IPFS..." + + // Create IPFS instance + const ipfs = new Ipfs({ + // repo: '/orbitdb/examples/browser/ipfs' + new Date().getTime(), + repo: '/orbitdb/examples/browser/new/ipfs', + EXPERIMENTAL: { + pubsub: true, + }, + config: { + Addresses: { + Swarm: [ + // Use IPFS dev signal server + '/dns4/star-signal.cloud.ipfs.team/wss/p2p-webrtc-star', + // Use local signal server + // '/ip4/0.0.0.0/tcp/9090/wss/p2p-webrtc-star', + ] + }, + Bootstrap: [], + Discovery: { + MDNS: { + Enabled: true, + Interval: 10 + }, + webRTCStar: { + Enabled: true + } + }, + } + }) + + ipfs.on('error', (e) => handleError(e)) + ipfs.on('ready', () => { + openButton.disabled = false + createButton.disabled = false + statusElm.innerHTML = "IPFS Started" + orbitdb = new OrbitDB(ipfs) + }) + + const load = async (db, statusText) => { + // Set the status text + statusElm.innerHTML = statusText + + // When the database is ready (ie. loaded), display results + db.events.on('ready', () => queryAndRender(db)) + // When database gets replicated with a peer, display results + db.events.on('replicated', () => queryAndRender(db)) + // When we update the database, display result + db.events.on('write', () => queryAndRender(db)) + + // Hook up to the load progress event and render the progress + let maxTotal = 0, loaded = 0 + db.events.on('load.progress', (address, hash, entry, progress, total) => { + loaded ++ + maxTotal = Math.max.apply(null, [maxTotal, progress, 0]) + statusElm.innerHTML = `Loading database... ${maxTotal} / ${total}` + }) + + db.events.on('ready', () => { + // Set the status text + setTimeout(() => { + statusElm.innerHTML = 'Database is ready' + }, 1000) + }) + + // Load locally persisted database + await db.load() + } + + const startWriter = async (db, interval) => { + // Set the status text + writerText.innerHTML = `Writing to database every ${interval} milliseconds...` + + // Start update/insert loop + updateInterval = setInterval(async () => { + try { + await update(db) + } catch (e) { + console.error(e.toString()) + if (e.toString() === 'Error: Not allowed to write') { + writerText.innerHTML = '' + e.toString() + '' + clearInterval(updateInterval) + } + } + }, interval) + } + + const resetDatabase = async (db) => { + writerText.innerHTML = "" + elm.innerHTML = "" + + clearInterval(updateInterval) + + if (db) { + await db.close() + } + + interval = Math.floor((Math.random() * 300) + (Math.random() * 2000)) + } + + const createDatabase = async () => { + await resetDatabase(db) + + openButton.disabled = true + createButton.disabled = true + + try { + const name = dbnameField.value + const type = createType.value + const publicAccess = publicCheckbox.checked + + db = await orbitdb.open(name, { + // If database doesn't exist, create it + create: true, + overwrite: true, + // Load only the local version of the database, + // don't load the latest from the network yet + localOnly: false, + type: type, + // If "Public" flag is set, allow anyone to write to the database, + // otherwise only the creator of the database can write + write: publicAccess ? ['*'] : [], + }) + + await load(db, 'Creating database...') + startWriter(db, interval) + } catch (e) { + console.error(e) + } + openButton.disabled = false + createButton.disabled = false + } + + const openDatabase = async () => { + const address = dbAddressField.value + + await resetDatabase(db) + + openButton.disabled = true + createButton.disabled = true + + try { + statusElm.innerHTML = "Connecting to peers..." + db = await orbitdb.open(address, { sync: true }) + await load(db, 'Loading database...') + + if (!readonlyCheckbox.checked) { + startWriter(db, interval) + } else { + writerText.innerHTML = `Listening for updates to the database...` + } + } catch (e) { + console.error(e) + } + openButton.disabled = false + createButton.disabled = false + } + + const update = async (db) => { + count ++ + + const time = new Date().toISOString() + const idx = Math.floor(Math.random() * creatures.length) + const creature = creatures[idx] + + if (db.type === 'eventlog') { + const value = "GrEEtinGs from " + orbitdb.id + " " + creature + ": Hello #" + count + " (" + time + ")" + await db.add(value) + } else if (db.type === 'feed') { + const value = "GrEEtinGs from " + orbitdb.id + " " + creature + ": Hello #" + count + " (" + time + ")" + await db.add(value) + } else if (db.type === 'docstore') { + const value = { _id: 'peer1', avatar: creature, updated: time } + await db.put(value) + } else if (db.type === 'keyvalue') { + await db.set('mykey', creature) + } else if (db.type === 'counter') { + await db.inc(1) + } else { + throw new Error("Unknown datatbase type: ", db.type) + } + } + + const query = (db) => { + if (db.type === 'eventlog') + return db.iterator({ limit: 5 }).collect() + else if (db.type === 'feed') + return db.iterator({ limit: 5 }).collect() + else if (db.type === 'docstore') + return db.get('peer1') + else if (db.type === 'keyvalue') + return db.get('mykey') + else if (db.type === 'counter') + return db.value + else + throw new Error("Unknown datatbase type: ", db.type) + } + + const queryAndRender = async (db) => { + const networkPeers = await ipfs.swarm.peers() + const databasePeers = await ipfs.pubsub.peers(db.address.toString()) + + const result = query(db) + + const output = ` +

${db.type.toUpperCase()}

+

${db.address}

+
Copy this address and use the 'Open Remote Database' in another browser to replicate this database between peers.
+
+
Peer ID: ${orbitdb.id}
+
Peers (database/network): ${databasePeers.length} / ${networkPeers.length}
+
Oplog Size: ${db._oplog.length} / ${db._replicationInfo.max}
+

Results

+
+
+ ${result && Array.isArray(result) && result.length > 0 && db.type !== 'docstore' && db.type !== 'keyvalue' + ? result.slice().reverse().map((e) => e.payload.value).join('
\n') + : db.type === 'docstore' + ? JSON.stringify(result, null, 2) + : result ? result.toString().replace('"', '').replace('"', '') : result + } +
+
+ ` + elm.innerHTML = output + } + + openButton.addEventListener('click', openDatabase) + createButton.addEventListener('click', createDatabase) +} + +if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') + module.exports = main diff --git a/examples/browser/index.html b/examples/browser/index.html deleted file mode 100644 index ff3ba1a3d..000000000 --- a/examples/browser/index.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - -

-
- - - diff --git a/examples/browser/index.js b/examples/browser/index.js deleted file mode 100644 index 63f5d62ca..000000000 --- a/examples/browser/index.js +++ /dev/null @@ -1,110 +0,0 @@ -'use strict' - -const IPFS = require('ipfs-daemon/src/ipfs-browser-daemon') -const OrbitDB = require('../../src/OrbitDB') - -const elm = document.getElementById("output") -const dbnameField = document.getElementById("dbname") -const openButton = document.getElementById("open") - -const openDatabase = () => { - openButton.disabled = true - elm.innerHTML = "Starting IPFS..." - - const dbname = dbnameField.value - const username = new Date().getTime() - const key = 'greeting' - - const ipfs = new IPFS({ - IpfsDataDir: '/orbit-db-/examples/browser', - SignalServer: 'star-signal.cloud.ipfs.team', // IPFS dev server - }) - - function handleError(e) { - console.error(e.stack) - elm.innerHTML = e.message - } - - ipfs.on('error', (e) => handleError(e)) - - ipfs.on('ready', () => { - elm.innerHTML = "Loading database..." - - const orbit = new OrbitDB(ipfs, username) - - const db = orbit.kvstore(dbname, { maxHistory: 5, syncHistory: false, cachePath: '/orbit-db' }) - const log = orbit.eventlog(dbname + ".log", { maxHistory: 5, syncHistory: false, cachePath: '/orbit-db' }) - const counter = orbit.counter(dbname + ".count", { maxHistory: 5, syncHistory: false, cachePath: '/orbit-db' }) - - const creatures = ['👻', '🐙', '🐷', '🐬', '🐞', '🐈', '🙉', '🐸', '🐓'] - const idx = Math.floor(Math.random() * creatures.length) - const creature = creatures[idx] - - const interval = Math.floor((Math.random() * 5000) + 3000) - - let count = 0 - const query = () => { - const value = "GrEEtinGs from " + username + " " + creature + ": Hello #" + count + " (" + new Date().getTime() + ")" - // Set a key-value pair - count ++ - db.put(key, value) - .then(() => counter.inc()) // Increase the counter by one - .then(() => log.add(value)) // Add an event to 'latest visitors' log - .then(() => getData()) - .catch((e) => handleError(e)) - } - - const getData = () => { - const result = db.get(key) - const latest = log.iterator({ limit: 5 }).collect() - const count = counter.value - - ipfs.pubsub.peers(dbname + ".log") - .then((peers) => { - const output = ` - You are: ${username} ${creature}
- Peers: ${peers.length}
- Database: ${dbname}
-
Writing to database every ${interval} milliseconds...

- Key-Value Store - ------------------------------------------------------- - Key | Value - ------------------------------------------------------- - ${key} | ${result} - ------------------------------------------------------- - - Eventlog - ------------------------------------------------------- - Latest Updates - ------------------------------------------------------- - ${latest.reverse().map((e) => e.payload.value).join('\n')} - - Counter - ------------------------------------------------------- - Visitor Count: ${count} - ------------------------------------------------------- - ` - elm.innerHTML = output.split("\n").join("
") - }) - } - - db.events.on('synced', () => getData()) - counter.events.on('synced', () => getData()) - log.events.on('synced', () => getData()) - - db.events.on('ready', () => getData()) - counter.events.on('ready', () => getData()) - log.events.on('ready', () => getData()) - - // Start query loop when the databse has loaded its history - db.load(10) - .then(() => counter.load(10)) - .then(() => log.load(10)) - .then(() => { - count = counter.value - setInterval(query, interval) - }) - }) -} - -openButton.addEventListener('click', openDatabase) diff --git a/examples/eventlog.js b/examples/eventlog.js index 5d5799275..dd35d4449 100644 --- a/examples/eventlog.js +++ b/examples/eventlog.js @@ -1,46 +1,51 @@ 'use strict' -const IpfsDaemon = require('ipfs-daemon') +const IPFS = require('ipfs') const OrbitDB = require('../src/OrbitDB') -const userId = Math.floor(Math.random() * 1000) - -const conf = { - IpfsDataDir: '/tmp/' + userId, - Addresses: { - API: '/ip4/127.0.0.1/tcp/0', - Swarm: ['/ip4/0.0.0.0/tcp/0'], - Gateway: '/ip4/0.0.0.0/tcp/0' - }, -} +const creatures = ['🐙', '🐷', '🐬', '🐞', '🐈', '🙉', '🐸', '🐓'] console.log("Starting...") -const ipfs = new IpfsDaemon(conf) +const ipfs = new IPFS({ + repo: './orbitdb/examples/ipfs', + start: true, + EXPERIMENTAL: { + pubsub: true, + }, +}) ipfs.on('error', (err) => console.error(err)) -ipfs.on('ready', () => { - const orbitdb = new OrbitDB(ipfs, userId) - const db = orbitdb.eventlog("|orbit-db|examples|eventlog-example") +ipfs.on('ready', async () => { + let db - const creatures = ['🐙', '🐷', '🐬', '🐞', '🐈', '🙉', '🐸', '🐓'] + try { + const orbitdb = new OrbitDB(ipfs, './orbitdb/examples/eventlog') + db = await orbitdb.eventlog('example', { overwrite: true }) + } catch (e) { + console.error(e) + process.exit(1) + } - const query = () => { + const query = async () => { const index = Math.floor(Math.random() * creatures.length) - db.add({ avatar: creatures[index], userId: userId }) - .then(() => { - const latest = db.iterator({ limit: 5 }).collect() - let output = `` - output += `--------------------\n` - output += `Latest Visitors\n` - output += `--------------------\n` - output += latest.reverse().map((e) => e.payload.value.avatar + " (userId: " + e.payload.value.userId + ")").join('\n') + `\n` - console.log(output) - }) - .catch((e) => { - console.error(e.stack) - }) + const userId = Math.floor(Math.random() * 900 + 100) + + try { + await db.add({ avatar: creatures[index], userId: userId }) + const latest = db.iterator({ limit: 5 }).collect() + let output = `` + output += `[Latest Visitors]\n` + output += `--------------------\n` + output += `ID | Visitor\n` + output += `--------------------\n` + output += latest.reverse().map((e) => e.payload.value.userId + ' | ' + e.payload.value.avatar + ')').join('\n') + `\n` + console.log(output) + } catch (e) { + console.error(e) + process.exit(1) + } } setInterval(query, 1000) diff --git a/examples/keyvalue.js b/examples/keyvalue.js index 953980ba1..bf15defb2 100644 --- a/examples/keyvalue.js +++ b/examples/keyvalue.js @@ -1,50 +1,63 @@ 'use strict' -const IpfsDaemon = require('ipfs-daemon') +const IPFS = require('ipfs') const OrbitDB = require('../src/OrbitDB') -const userId = Math.floor(Math.random() * 1000) - -const conf = { - IpfsDataDir: '/tmp/' + userId, - Addresses: { - API: '/ip4/127.0.0.1/tcp/0', - Swarm: ['/ip4/0.0.0.0/tcp/0'], - Gateway: '/ip4/0.0.0.0/tcp/0' - }, +const userId = 1 +const creatures = ['🐙', '🐬', '🐋', '🐠', '🐡', '🦀', '🐢', '🐟', '🐳'] + +const output = (user) => { + let output = `` + output += `----------------------\n` + output += `User\n` + output += `----------------------\n` + output += `Id: ${userId}\n` + output += `Avatar: ${user.avatar}\n` + output += `Updated: ${user.updated}\n` + output += `----------------------\n` + console.log(output) } console.log("Starting...") -const ipfs = new IpfsDaemon(conf) +const ipfs = new IPFS({ + repo: './orbitdb/examples/ipfs', + start: true, + EXPERIMENTAL: { + pubsub: true, + }, +}) ipfs.on('error', (err) => console.error(err)) -ipfs.on('ready', () => { - const orbitdb = new OrbitDB(ipfs, userId) - const db = orbitdb.kvstore("|orbit-db|examples|kvstore-example") - - const creatures = ['🐙', '🐬', '🐋', '🐠', '🐡', '🦀', '🐢', '🐟', '🐳'] +ipfs.on('ready', async () => { + let db + try { + const orbitdb = new OrbitDB(ipfs, './orbitdb/examples/eventlog') + db = await orbitdb.kvstore('example', { overwrite: true }) + await db.load() + // Query immediately after loading + const user = db.get(userId) + output(user) + } catch (e) { + console.error(e) + process.exit(1) + } - const query = () => { + const query = async () => { + // Randomly select an avatar const index = Math.floor(Math.random() * creatures.length) - db.put(userId, { avatar: creatures[index], updated: new Date().getTime() }) - .then(() => { - const user = db.get(userId) - let output = `\n` - output += `----------------------\n` - output += `User\n` - output += `----------------------\n` - output += `Id: ${userId}\n` - output += `Avatar: ${user.avatar}\n` - output += `Updated: ${user.updated}\n` - output += `----------------------` - console.log(output) - }) - .catch((e) => { - console.error(e.stack) - }) + + // Set the key to the newly selected avatar and update the timestamp + await db.put(userId, { avatar: creatures[index], updated: new Date().getTime() }) + + // Get the value of the key + const user = db.get(userId) + + // Display the value + output(user) } + console.log("Starting update loop...") setInterval(query, 1000) }) diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 000000000..c9720fd8e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,10305 @@ +{ + "name": "orbit-db", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "abstract-leveldown": { + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-0.12.4.tgz", + "integrity": "sha1-KeGOYy5g5OIh1YECR4UqY9ey5BA=", + "dev": true, + "requires": { + "xtend": "3.0.0" + }, + "dependencies": { + "xtend": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-3.0.0.tgz", + "integrity": "sha1-XM50B7r2Qsunvs2laBEcST9ZZlo=", + "dev": true + } + } + }, + "accept": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/accept/-/accept-2.1.4.tgz", + "integrity": "sha1-iHr1TO7lx/RDBGGXHsQAxh0JrLs=", + "dev": true, + "requires": { + "boom": "5.2.0", + "hoek": "4.2.0" + } + }, + "accepts": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz", + "integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=", + "dev": true, + "requires": { + "mime-types": "2.1.17", + "negotiator": "0.6.1" + } + }, + "acorn": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.2.1.tgz", + "integrity": "sha512-jG0u7c4Ly+3QkkW18V+NRDN+4bWHdln30NL1ZL2AvFZZmQe/BfopYCtghCKKVBUSetZ4QKcyA0pY6/4Gw8Pv8w==", + "dev": true + }, + "acorn-dynamic-import": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", + "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", + "dev": true, + "requires": { + "acorn": "4.0.13" + }, + "dependencies": { + "acorn": { + "version": "4.0.13", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", + "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=", + "dev": true + } + } + }, + "after": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/after/-/after-0.8.2.tgz", + "integrity": "sha1-/ts5T58OAqqXaOcCvaI7UF+ufh8=", + "dev": true + }, + "ajv": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-5.5.0.tgz", + "integrity": "sha1-6yhAdG6dxIvV4GOjbj/UAMXqtak=", + "dev": true, + "requires": { + "co": "4.6.0", + "fast-deep-equal": "1.0.0", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.3.1" + } + }, + "ajv-keywords": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-2.1.1.tgz", + "integrity": "sha1-YXmX/F9gV2iUxDX5QNgZ4TW4B2I=", + "dev": true + }, + "align-text": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "dev": true, + "requires": { + "kind-of": "3.2.2", + "longest": "1.0.1", + "repeat-string": "1.6.1" + } + }, + "amdefine": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", + "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", + "dev": true, + "optional": true + }, + "ammo": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/ammo/-/ammo-2.0.4.tgz", + "integrity": "sha1-v4CqshFpjqePY+9efxE91dnokX8=", + "dev": true, + "requires": { + "boom": "5.2.0", + "hoek": "4.2.0" + } + }, + "ansi-align": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", + "integrity": "sha1-w2rsy6VjuJzrVW82kPCx2eNUf38=", + "dev": true, + "requires": { + "string-width": "2.1.1" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "anymatch": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-1.3.2.tgz", + "integrity": "sha512-0XNayC8lTHQ2OI8aljNCN3sSx6hsr/1+rlcDAotXJR7C1oZZHCNsfpbKwMjRA3Uqb5tF1Rae2oloTr4xpq+WjA==", + "dev": true, + "requires": { + "micromatch": "2.3.11", + "normalize-path": "2.1.1" + } + }, + "aproba": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", + "dev": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", + "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", + "dev": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.3" + } + }, + "arr-diff": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-2.0.0.tgz", + "integrity": "sha1-jzuCf5Vai9ZpaX5KQlasPOrjVs8=", + "dev": true, + "requires": { + "arr-flatten": "1.1.0" + } + }, + "arr-flatten": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", + "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", + "dev": true + }, + "array-unique": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.2.1.tgz", + "integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=", + "dev": true + }, + "arraybuffer.slice": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz", + "integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=", + "dev": true + }, + "asn1.js": { + "version": "4.9.2", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-4.9.2.tgz", + "integrity": "sha512-b/OsSjvWEo8Pi8H0zsDd2P6Uqo2TK2pH8gNLSJtNLM2Db0v2QaAZ0pBQJXVjAn4gBuugeVDr7s63ZogpUIwWDg==", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "inherits": "2.0.3", + "minimalistic-assert": "1.0.0" + } + }, + "assert": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", + "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", + "dev": true, + "requires": { + "util": "0.10.3" + } + }, + "async": { + "version": "2.6.0", + "resolved": "https://registry.npmjs.org/async/-/async-2.6.0.tgz", + "integrity": "sha512-xAfGg1/NTLBBKlHFmnd7PlmUW9KhVQIUuSrYem9xzFUZy13ScvtyGGejaae9iAVRiRq9+Cx7DPFaAAhCpyxyPw==", + "dev": true, + "requires": { + "lodash": "4.17.4" + } + }, + "async-each": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/async-each/-/async-each-1.0.1.tgz", + "integrity": "sha1-GdOGodntxufByF04iu28xW0zYC0=", + "dev": true + }, + "async-limiter": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", + "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", + "dev": true + }, + "b64": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/b64/-/b64-3.0.3.tgz", + "integrity": "sha512-Pbeh0i6OLubPJdIdCepn8ZQHwN2MWznZHbHABSTEfQ706ie+yuxNSaPdqX1xRatT6WanaS1EazMiSg0NUW2XxQ==", + "dev": true + }, + "babel-code-frame": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", + "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "dev": true, + "requires": { + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "babel-core": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.0.tgz", + "integrity": "sha1-rzL3izGm/O8RnIew/Y2XU/A6C7g=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-generator": "6.26.0", + "babel-helpers": "6.24.1", + "babel-messages": "6.23.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "convert-source-map": "1.5.1", + "debug": "2.6.9", + "json5": "0.5.1", + "lodash": "4.17.4", + "minimatch": "3.0.4", + "path-is-absolute": "1.0.1", + "private": "0.1.8", + "slash": "1.0.0", + "source-map": "0.5.7" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "babel-generator": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.0.tgz", + "integrity": "sha1-rBriAHC3n248odMmlhMFN3TyDcU=", + "dev": true, + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.4", + "source-map": "0.5.7", + "trim-right": "1.0.1" + } + }, + "babel-helper-call-delegate": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-call-delegate/-/babel-helper-call-delegate-6.24.1.tgz", + "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "6.24.1", + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-define-map": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-define-map/-/babel-helper-define-map-6.26.0.tgz", + "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.4" + } + }, + "babel-helper-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", + "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", + "dev": true, + "requires": { + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-get-function-arity": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", + "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-hoist-variables": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-hoist-variables/-/babel-helper-hoist-variables-6.24.1.tgz", + "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-optimise-call-expression": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-optimise-call-expression/-/babel-helper-optimise-call-expression-6.24.1.tgz", + "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helper-regex": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-helper-regex/-/babel-helper-regex-6.26.0.tgz", + "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.4" + } + }, + "babel-helper-replace-supers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helper-replace-supers/-/babel-helper-replace-supers-6.24.1.tgz", + "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", + "dev": true, + "requires": { + "babel-helper-optimise-call-expression": "6.24.1", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-loader": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/babel-loader/-/babel-loader-7.1.2.tgz", + "integrity": "sha512-jRwlFbINAeyDStqK6Dd5YuY0k5YuzQUvlz2ZamuXrXmxav3pNqe9vfJ402+2G+OmlJSXxCOpB6Uz0INM7RQe2A==", + "dev": true, + "requires": { + "find-cache-dir": "1.0.0", + "loader-utils": "1.1.0", + "mkdirp": "0.5.1" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-check-es2015-constants": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-check-es2015-constants/-/babel-plugin-check-es2015-constants-6.22.0.tgz", + "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-arrow-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz", + "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-block-scoped-functions": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoped-functions/-/babel-plugin-transform-es2015-block-scoped-functions-6.22.0.tgz", + "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", + "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.4" + } + }, + "babel-plugin-transform-es2015-classes": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz", + "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", + "dev": true, + "requires": { + "babel-helper-define-map": "6.26.0", + "babel-helper-function-name": "6.24.1", + "babel-helper-optimise-call-expression": "6.24.1", + "babel-helper-replace-supers": "6.24.1", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-computed-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz", + "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-destructuring": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz", + "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-duplicate-keys": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz", + "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-for-of": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz", + "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-function-name": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz", + "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", + "dev": true, + "requires": { + "babel-helper-function-name": "6.24.1", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-literals/-/babel-plugin-transform-es2015-literals-6.22.0.tgz", + "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-amd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz", + "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-commonjs": "6.26.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz", + "integrity": "sha1-DYOUApt9xqvhqX7xgeAHWN0uXYo=", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-systemjs": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz", + "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", + "dev": true, + "requires": { + "babel-helper-hoist-variables": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-modules-umd": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz", + "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", + "dev": true, + "requires": { + "babel-plugin-transform-es2015-modules-amd": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-plugin-transform-es2015-object-super": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz", + "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", + "dev": true, + "requires": { + "babel-helper-replace-supers": "6.24.1", + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-parameters": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz", + "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", + "dev": true, + "requires": { + "babel-helper-call-delegate": "6.24.1", + "babel-helper-get-function-arity": "6.24.1", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-shorthand-properties": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz", + "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-spread": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-spread/-/babel-plugin-transform-es2015-spread-6.22.0.tgz", + "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-sticky-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz", + "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-plugin-transform-es2015-template-literals": { + "version": "6.22.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-template-literals/-/babel-plugin-transform-es2015-template-literals-6.22.0.tgz", + "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-typeof-symbol": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz", + "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-unicode-regex": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz", + "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", + "dev": true, + "requires": { + "babel-helper-regex": "6.26.0", + "babel-runtime": "6.26.0", + "regexpu-core": "2.0.0" + } + }, + "babel-plugin-transform-regenerator": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz", + "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", + "dev": true, + "requires": { + "regenerator-transform": "0.10.1" + } + }, + "babel-plugin-transform-runtime": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz", + "integrity": "sha1-iEkNRGUC6puOfvsP4J7E2ZR5se4=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0" + } + }, + "babel-polyfill": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz", + "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "core-js": "2.5.1", + "regenerator-runtime": "0.10.5" + }, + "dependencies": { + "regenerator-runtime": { + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.10.5.tgz", + "integrity": "sha1-M2w+/BIgrc7dosn6tntaeVWjNlg=", + "dev": true + } + } + }, + "babel-preset-es2015": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz", + "integrity": "sha1-1EBQ1rwsn+6nAqrzjXJ6AhBTiTk=", + "dev": true, + "requires": { + "babel-plugin-check-es2015-constants": "6.22.0", + "babel-plugin-transform-es2015-arrow-functions": "6.22.0", + "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0", + "babel-plugin-transform-es2015-block-scoping": "6.26.0", + "babel-plugin-transform-es2015-classes": "6.24.1", + "babel-plugin-transform-es2015-computed-properties": "6.24.1", + "babel-plugin-transform-es2015-destructuring": "6.23.0", + "babel-plugin-transform-es2015-duplicate-keys": "6.24.1", + "babel-plugin-transform-es2015-for-of": "6.23.0", + "babel-plugin-transform-es2015-function-name": "6.24.1", + "babel-plugin-transform-es2015-literals": "6.22.0", + "babel-plugin-transform-es2015-modules-amd": "6.24.1", + "babel-plugin-transform-es2015-modules-commonjs": "6.26.0", + "babel-plugin-transform-es2015-modules-systemjs": "6.24.1", + "babel-plugin-transform-es2015-modules-umd": "6.24.1", + "babel-plugin-transform-es2015-object-super": "6.24.1", + "babel-plugin-transform-es2015-parameters": "6.24.1", + "babel-plugin-transform-es2015-shorthand-properties": "6.24.1", + "babel-plugin-transform-es2015-spread": "6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "6.24.1", + "babel-plugin-transform-es2015-template-literals": "6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "6.23.0", + "babel-plugin-transform-es2015-unicode-regex": "6.24.1", + "babel-plugin-transform-regenerator": "6.26.0" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "dev": true, + "requires": { + "babel-core": "6.26.0", + "babel-runtime": "6.26.0", + "core-js": "2.5.1", + "home-or-tmp": "2.0.0", + "lodash": "4.17.4", + "mkdirp": "0.5.1", + "source-map-support": "0.4.18" + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "dev": true, + "requires": { + "core-js": "2.5.1", + "regenerator-runtime": "0.11.0" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.2", + "lodash": "4.17.4" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.4", + "to-fast-properties": "1.0.3" + } + }, + "babelify": { + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/babelify/-/babelify-7.3.0.tgz", + "integrity": "sha1-qlau3nBn/XvVSWZu4W3ChQh+iOU=", + "dev": true, + "requires": { + "babel-core": "6.26.0", + "object-assign": "4.1.1" + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, + "backo2": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/backo2/-/backo2-1.0.2.tgz", + "integrity": "sha1-MasayLEpNjRj41s+u2n038+6eUc=", + "dev": true + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "base-x": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.2.tgz", + "integrity": "sha1-v4c4YbdRQnm3lp80CSnquHwR0TA=", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "base32.js": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/base32.js/-/base32.js-0.1.0.tgz", + "integrity": "sha1-tYLexpPC8R6JPPBk7mrFthMaIgI=", + "dev": true + }, + "base64-arraybuffer": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz", + "integrity": "sha1-c5JncZI7Whl0etZmqlzUv5xunOg=", + "dev": true + }, + "base64-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.2.1.tgz", + "integrity": "sha512-dwVUVIXsBZXwTuwnXI9RK8sBmgq09NDHzyR9SAph9eqk76gKK2JSQmZARC2zRC81JC2QTtxD0ARU5qTS25gIGw==", + "dev": true + }, + "base64id": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/base64id/-/base64id-1.0.0.tgz", + "integrity": "sha1-R2iMuZu2gE8OBtPnY7HDLlfY5rY=", + "dev": true + }, + "better-assert": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/better-assert/-/better-assert-1.0.2.tgz", + "integrity": "sha1-QIZrnhueC1W0gYlDEeaPr/rrxSI=", + "dev": true, + "requires": { + "callsite": "1.0.0" + } + }, + "big.js": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/big.js/-/big.js-3.2.0.tgz", + "integrity": "sha512-+hN/Zh2D08Mx65pZ/4g5bsmNiZUuChDiQfTUQ7qJr4/kuopCr88xZsAXv6mBoZEsUI4OuGHlX59qE94K2mMW8Q==", + "dev": true + }, + "bignumber.js": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-3.0.1.tgz", + "integrity": "sha1-gHZS0Q453jfp40lyR+3HmLt0b3Y=", + "dev": true + }, + "binary-extensions": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-1.11.0.tgz", + "integrity": "sha1-RqoXUftqL5PuXmibsQh9SxTGwgU=", + "dev": true + }, + "bindings": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.3.0.tgz", + "integrity": "sha512-DpLh5EzMR2kzvX1KIlVC0VkC3iZtHKTgdtZ0a3pglBZdaQFjt5S9g9xd1lE+YvXyfd6mtCeRnrUfOLYiTMlNSw==", + "dev": true + }, + "bintrees": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/bintrees/-/bintrees-1.0.1.tgz", + "integrity": "sha1-DmVcm5wkNeqraL9AJyJtK1WjRSQ=", + "dev": true, + "optional": true + }, + "bip66": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/bip66/-/bip66-1.1.5.tgz", + "integrity": "sha1-AfqHSHhcpwlV1QESF9GzE5lpyiI=", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "bl": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.1.tgz", + "integrity": "sha1-ysMo977kVzDUBLaSID/LWQ4XLV4=", + "dev": true, + "requires": { + "readable-stream": "2.3.3" + } + }, + "blakejs": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/blakejs/-/blakejs-1.1.0.tgz", + "integrity": "sha1-ad+S75U6qIylGjLfarHFShVfx6U=", + "dev": true + }, + "blob": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/blob/-/blob-0.0.4.tgz", + "integrity": "sha1-vPEwUspURj8w+fx+lbmkdjCpSSE=", + "dev": true + }, + "bluebird": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz", + "integrity": "sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==", + "dev": true + }, + "bn.js": { + "version": "4.11.8", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.11.8.tgz", + "integrity": "sha512-ItfYfPLkWHUjckQCk8xC+LwxgK8NYcXywGigJgSwOP8Y2iyWT4f2vsZnoOXTTbo+o5yXmIUJ4gn5538SO5S3gA==" + }, + "boom": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/boom/-/boom-5.2.0.tgz", + "integrity": "sha512-Z5BTk6ZRe4tXXQlkqftmsAUANpXmuwlsF5Oov8ThoMbQRzdGTA1ngYRW160GexgOgjsFOKJz0LYhoNi+2AMBUw==", + "dev": true, + "requires": { + "hoek": "4.2.0" + } + }, + "borc": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/borc/-/borc-2.0.2.tgz", + "integrity": "sha1-jq4aTVmc/f38n6hXy7ppyQ6DKR8=", + "dev": true, + "requires": { + "bignumber.js": "3.0.1", + "commander": "2.12.2", + "ieee754": "1.1.8", + "json-text-sequence": "0.1.1" + } + }, + "boxen": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/boxen/-/boxen-1.2.2.tgz", + "integrity": "sha1-Px1AMsMP/qnUsCwyLq8up0HcvOU=", + "dev": true, + "requires": { + "ansi-align": "2.0.0", + "camelcase": "4.1.0", + "chalk": "2.3.0", + "cli-boxes": "1.0.0", + "string-width": "2.1.1", + "term-size": "1.2.0", + "widest-line": "1.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", + "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", + "dev": true, + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "4.5.0" + } + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "brace-expansion": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.8.tgz", + "integrity": "sha1-wHshHHyVLsH479Uad+8NHTmQopI=", + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/braces/-/braces-1.8.5.tgz", + "integrity": "sha1-uneWLhLf+WnWt2cR6RS3N4V79qc=", + "dev": true, + "requires": { + "expand-range": "1.8.2", + "preserve": "0.2.0", + "repeat-element": "1.1.2" + } + }, + "brfs": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/brfs/-/brfs-1.4.3.tgz", + "integrity": "sha1-22ddb16SPm3wh/ylhZyQkKrtMhY=", + "dev": true, + "requires": { + "quote-stream": "1.0.2", + "resolve": "1.5.0", + "static-module": "1.5.0", + "through2": "2.0.3" + } + }, + "brorand": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", + "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" + }, + "browser-stdout": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.0.tgz", + "integrity": "sha1-81HTKWnTL6XXpVZxVCY9korjvR8=", + "dev": true + }, + "browserify-aes": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.1.1.tgz", + "integrity": "sha512-UGnTYAnB2a3YuYKIRy1/4FB2HdM866E0qC46JXvVTYKlBlZlnvfpSfY6OKfXZAkv70eJ2a1SqzpAo5CRhZGDFg==", + "dev": true, + "requires": { + "buffer-xor": "1.0.3", + "cipher-base": "1.0.4", + "create-hash": "1.1.3", + "evp_bytestokey": "1.0.3", + "inherits": "2.0.3", + "safe-buffer": "5.1.1" + } + }, + "browserify-cipher": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.0.tgz", + "integrity": "sha1-mYgkSHS/XtTijalWZtzWasj8Njo=", + "dev": true, + "requires": { + "browserify-aes": "1.1.1", + "browserify-des": "1.0.0", + "evp_bytestokey": "1.0.3" + } + }, + "browserify-des": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.0.tgz", + "integrity": "sha1-2qJ3cXRwki7S/hhZQRihdUOXId0=", + "dev": true, + "requires": { + "cipher-base": "1.0.4", + "des.js": "1.0.0", + "inherits": "2.0.3" + } + }, + "browserify-rsa": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.0.1.tgz", + "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "randombytes": "2.0.5" + } + }, + "browserify-sha3": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/browserify-sha3/-/browserify-sha3-0.0.1.tgz", + "integrity": "sha1-P/NKMAbvFcD7NWflQbkaI0ASPRE=", + "dev": true, + "requires": { + "js-sha3": "0.3.1" + }, + "dependencies": { + "js-sha3": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.3.1.tgz", + "integrity": "sha1-hhIoAhQvCChQKg0d7h2V4lO7AkM=", + "dev": true + } + } + }, + "browserify-sign": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.0.4.tgz", + "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "browserify-rsa": "4.0.1", + "create-hash": "1.1.3", + "create-hmac": "1.1.6", + "elliptic": "6.4.0", + "inherits": "2.0.3", + "parse-asn1": "5.1.0" + } + }, + "browserify-zlib": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", + "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", + "dev": true, + "requires": { + "pako": "1.0.6" + } + }, + "browserify-zlib-next": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/browserify-zlib-next/-/browserify-zlib-next-1.0.1.tgz", + "integrity": "sha1-iAQDhotPYmLw8+rPBGmav58Hb58=", + "dev": true, + "requires": { + "pako": "1.0.6" + } + }, + "bs58": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/bs58/-/bs58-4.0.1.tgz", + "integrity": "sha1-vhYedsNU9veIrkBx9j806MTwpCo=", + "requires": { + "base-x": "3.0.2" + } + }, + "buffer": { + "version": "4.9.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-4.9.1.tgz", + "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", + "dev": true, + "requires": { + "base64-js": "1.2.1", + "ieee754": "1.1.8", + "isarray": "1.0.0" + } + }, + "buffer-equal": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/buffer-equal/-/buffer-equal-0.0.1.tgz", + "integrity": "sha1-kbx0sR6kBbyRa8aqkI+q+ltKrEs=", + "dev": true + }, + "buffer-equals": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/buffer-equals/-/buffer-equals-1.0.4.tgz", + "integrity": "sha1-A1O1T9B/2VZBcGca5vZrnPENJ/U=", + "dev": true + }, + "buffer-indexof": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/buffer-indexof/-/buffer-indexof-0.0.2.tgz", + "integrity": "sha1-7Q82t64WamanzRdMBGeuje3wCPU=", + "dev": true + }, + "buffer-loader": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/buffer-loader/-/buffer-loader-0.0.1.tgz", + "integrity": "sha1-TWd8qS3YiTEIeLAqL7z6txICTPI=", + "dev": true + }, + "buffer-split": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/buffer-split/-/buffer-split-1.0.0.tgz", + "integrity": "sha1-RCfb/1NzG2HXpxq6R/UDOWYTeEo=", + "dev": true, + "requires": { + "buffer-indexof": "0.0.2" + } + }, + "buffer-xor": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", + "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=", + "dev": true + }, + "builtin-modules": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", + "integrity": "sha1-Jw8HbFpywC9bZaR9+Uxf46J4iS8=", + "dev": true + }, + "builtin-status-codes": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", + "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=", + "dev": true + }, + "cacache": { + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-10.0.1.tgz", + "integrity": "sha512-dRHYcs9LvG9cHgdPzjiI+/eS7e1xRhULrcyOx04RZQsszNJXU2SL9CyG60yLnge282Qq5nwTv+ieK2fH+WPZmA==", + "dev": true, + "requires": { + "bluebird": "3.5.1", + "chownr": "1.0.1", + "glob": "7.1.2", + "graceful-fs": "4.1.11", + "lru-cache": "4.1.1", + "mississippi": "1.3.0", + "mkdirp": "0.5.1", + "move-concurrently": "1.0.1", + "promise-inflight": "1.0.1", + "rimraf": "2.6.2", + "ssri": "5.0.0", + "unique-filename": "1.1.0", + "y18n": "3.2.1" + } + }, + "call": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/call/-/call-4.0.2.tgz", + "integrity": "sha1-33b19R7o3Ui4VqyEAPfmnm1zmcQ=", + "dev": true, + "requires": { + "boom": "5.2.0", + "hoek": "4.2.0" + } + }, + "callsite": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", + "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=", + "dev": true + }, + "camelcase": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz", + "integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=", + "dev": true + }, + "capture-stack-trace": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/capture-stack-trace/-/capture-stack-trace-1.0.0.tgz", + "integrity": "sha1-Sm+gc5nCa7pH8LJJa00PtAjFVQ0=", + "dev": true + }, + "catbox": { + "version": "7.1.5", + "resolved": "https://registry.npmjs.org/catbox/-/catbox-7.1.5.tgz", + "integrity": "sha512-4fui5lELzqZ+9cnaAP/BcqXTH6LvWLBRtFhJ0I4FfgfXiSaZcf6k9m9dqOyChiTxNYtvLk7ZMYSf7ahMq3bf5A==", + "dev": true, + "requires": { + "boom": "5.2.0", + "hoek": "4.2.0", + "joi": "10.6.0" + } + }, + "catbox-memory": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/catbox-memory/-/catbox-memory-2.0.4.tgz", + "integrity": "sha1-Qz4lWQLK9UIz0ShkKcj03xToItU=", + "dev": true, + "requires": { + "hoek": "4.2.0" + } + }, + "center-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "dev": true, + "requires": { + "align-text": "0.1.4", + "lazy-cache": "1.0.4" + } + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" + } + }, + "chokidar": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-1.7.0.tgz", + "integrity": "sha1-eY5ol3gVHIB2tLNg5e3SjNortGg=", + "dev": true, + "requires": { + "anymatch": "1.3.2", + "async-each": "1.0.1", + "fsevents": "1.1.3", + "glob-parent": "2.0.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "2.0.1", + "path-is-absolute": "1.0.1", + "readdirp": "2.1.0" + } + }, + "chownr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", + "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", + "dev": true + }, + "cids": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/cids/-/cids-0.5.2.tgz", + "integrity": "sha512-ymyC9kV8iKgvn+MU44glekHKMDbfx7hUh1YRNDJ4ZzBQspFamRvmDlbH5jjHp9LwwH1vvJuV/rcy1gWJeSVcIw==", + "dev": true, + "requires": { + "multibase": "0.3.4", + "multicodec": "0.2.5", + "multihashes": "0.4.12" + } + }, + "cipher-base": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", + "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "dev": true, + "requires": { + "inherits": "2.0.3", + "safe-buffer": "5.1.1" + } + }, + "cli-boxes": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-1.0.0.tgz", + "integrity": "sha1-T6kXw+WclKAEzWH47lCdplFocUM=", + "dev": true + }, + "cliui": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", + "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "dev": true + }, + "code-point-at": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", + "dev": true + }, + "color-convert": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.1.tgz", + "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } + }, + "color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "commander": { + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.12.2.tgz", + "integrity": "sha512-BFnaq5ZOGcDN7FlrtBT4xxkgIToalIIxwjxLWVJ8bGTpe1LroqMiqQXdA7ygc7CRvaYS+9zfPGFnJqFSayx+AA==", + "dev": true + }, + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", + "dev": true + }, + "component-bind": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/component-bind/-/component-bind-1.0.0.tgz", + "integrity": "sha1-AMYIq33Nk4l8AAllGx06jh5zu9E=", + "dev": true + }, + "component-emitter": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.2.1.tgz", + "integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=", + "dev": true + }, + "component-inherit": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/component-inherit/-/component-inherit-0.0.3.tgz", + "integrity": "sha1-ZF/ErfWLcrZJ1crmUTVhnbJv8UM=", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "concat-stream": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.0.tgz", + "integrity": "sha1-CqxmL9Ur54lk1VMvaUeE5wEQrPc=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.3", + "typedarray": "0.0.6" + } + }, + "configstore": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/configstore/-/configstore-3.1.1.tgz", + "integrity": "sha512-5oNkD/L++l0O6xGXxb1EWS7SivtjfGQlRyxJsYgE0Z495/L81e2h4/d3r969hoPXuFItzNOKMtsXgYG4c7dYvw==", + "dev": true, + "requires": { + "dot-prop": "4.2.0", + "graceful-fs": "4.1.11", + "make-dir": "1.1.0", + "unique-string": "1.0.0", + "write-file-atomic": "2.3.0", + "xdg-basedir": "3.0.0" + }, + "dependencies": { + "write-file-atomic": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", + "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "signal-exit": "3.0.2" + } + } + } + }, + "console-browserify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", + "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", + "dev": true, + "requires": { + "date-now": "0.1.4" + } + }, + "console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "dev": true + }, + "constants-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", + "integrity": "sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U=", + "dev": true + }, + "content": { + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/content/-/content-3.0.6.tgz", + "integrity": "sha512-tyl3fRp8jOHsQR0X9vrIy0mKQccv0tA9/RlvLl514eA7vHOJr/TnmMTpgQjInwbeW9IOQVy0OECGAuQNUa0nnQ==", + "dev": true, + "requires": { + "boom": "5.2.0" + } + }, + "convert-source-map": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.5.1.tgz", + "integrity": "sha1-uCeAl7m8IpNl3lxiz1/K7YtVmeU=", + "dev": true + }, + "cookie": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.3.1.tgz", + "integrity": "sha1-5+Ch+e9DtMi6klxcWpboBtFoc7s=", + "dev": true + }, + "copy-concurrently": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/copy-concurrently/-/copy-concurrently-1.0.5.tgz", + "integrity": "sha512-f2domd9fsVDFtaFcbaRZuYXwtdmnzqbADSwhSWYxYB/Q8zsdUUFMXVRwXGDMWmbEzAn1kdRrtI1T/KTFOL4X2A==", + "dev": true, + "requires": { + "aproba": "1.2.0", + "fs-write-stream-atomic": "1.0.10", + "iferr": "0.1.5", + "mkdirp": "0.5.1", + "rimraf": "2.6.2", + "run-queue": "1.0.3" + } + }, + "core-js": { + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.5.1.tgz", + "integrity": "sha1-rmh03GaTd4m4B1T/VCjfZoGcpQs=", + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "crdts": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/crdts/-/crdts-0.0.1.tgz", + "integrity": "sha1-1G5aB0hfuBs3tAoCu4PqQgMwoOE=" + }, + "create-ecdh": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz", + "integrity": "sha1-iIxyNZbN92EvZJgjPuvXo1MBc30=", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "elliptic": "6.4.0" + } + }, + "create-error-class": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/create-error-class/-/create-error-class-3.0.2.tgz", + "integrity": "sha1-Br56vvlHo/FKMP1hBnHUAbyot7Y=", + "dev": true, + "requires": { + "capture-stack-trace": "1.0.0" + } + }, + "create-hash": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.1.3.tgz", + "integrity": "sha1-YGBCrIuSYnUPSDyt2rD1gZFy2P0=", + "dev": true, + "requires": { + "cipher-base": "1.0.4", + "inherits": "2.0.3", + "ripemd160": "2.0.1", + "sha.js": "2.4.9" + } + }, + "create-hmac": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.6.tgz", + "integrity": "sha1-rLniIaThe9sHbpBlfEK5PjcmzwY=", + "dev": true, + "requires": { + "cipher-base": "1.0.4", + "create-hash": "1.1.3", + "inherits": "2.0.3", + "ripemd160": "2.0.1", + "safe-buffer": "5.1.1", + "sha.js": "2.4.9" + } + }, + "cross-spawn": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz", + "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", + "dev": true, + "requires": { + "lru-cache": "4.1.1", + "shebang-command": "1.2.0", + "which": "1.3.0" + } + }, + "cryptiles": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/cryptiles/-/cryptiles-3.1.2.tgz", + "integrity": "sha1-qJ+7Ig9c4l7FboxKqKT9e1sNKf4=", + "dev": true, + "requires": { + "boom": "5.2.0" + } + }, + "crypto-browserify": { + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", + "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", + "dev": true, + "requires": { + "browserify-cipher": "1.0.0", + "browserify-sign": "4.0.4", + "create-ecdh": "4.0.0", + "create-hash": "1.1.3", + "create-hmac": "1.1.6", + "diffie-hellman": "5.0.2", + "inherits": "2.0.3", + "pbkdf2": "3.0.14", + "public-encrypt": "4.0.0", + "randombytes": "2.0.5", + "randomfill": "1.0.3" + } + }, + "crypto-random-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-1.0.0.tgz", + "integrity": "sha1-ojD2T1aDEOFJgAmUB5DsmVRbyn4=", + "dev": true + }, + "cyclist": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-0.2.2.tgz", + "integrity": "sha1-GzN5LhHpFKL9bW7WRHRkRE5fpkA=", + "dev": true + }, + "d": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/d/-/d-1.0.0.tgz", + "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", + "dev": true, + "requires": { + "es5-ext": "0.10.37" + } + }, + "datastore-core": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/datastore-core/-/datastore-core-0.4.0.tgz", + "integrity": "sha512-BQC3f2jSUgVL1DUjt/ZJr9yWzNYyx3ApNh4NhMYFZBap0c+iTKJqyHRlO4bRT+CZG0mqqOUTNXU3qYvTJlN6OA==", + "dev": true, + "requires": { + "async": "2.6.0", + "interface-datastore": "0.4.1", + "left-pad": "1.2.0", + "pull-many": "1.0.8", + "pull-stream": "3.6.1" + } + }, + "datastore-fs": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/datastore-fs/-/datastore-fs-0.3.0.tgz", + "integrity": "sha1-E/X571Jm9beOpNJ2ToF9kuNjtV0=", + "dev": true, + "requires": { + "datastore-core": "0.3.0", + "graceful-fs": "4.1.11", + "interface-datastore": "0.3.1", + "level-js": "2.2.4", + "leveldown": "1.9.0", + "levelup": "1.3.9", + "mkdirp": "0.5.1", + "pull-glob": "1.0.6", + "pull-stream": "3.6.1", + "write-file-atomic": "2.3.0" + }, + "dependencies": { + "datastore-core": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/datastore-core/-/datastore-core-0.3.0.tgz", + "integrity": "sha1-yoguDqTQr86H1PujZZjTGr13K0k=", + "dev": true, + "requires": { + "async": "2.6.0", + "interface-datastore": "0.3.1", + "left-pad": "1.2.0", + "pull-many": "1.0.8", + "pull-stream": "3.6.1" + } + }, + "interface-datastore": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-0.3.1.tgz", + "integrity": "sha512-xoHrLkKZQpxhHOd+8ET2fW6jKxXTzl4o71/A59X5JhzwUDJb6Az5G8//RUtNJxQbyRU3k3q5uDMMu9v1hyF7cA==", + "dev": true, + "requires": { + "async": "2.6.0", + "libp2p-crypto": "0.10.3", + "pull-defer": "0.2.2", + "pull-stream": "3.6.1", + "uuid": "3.1.0" + } + }, + "write-file-atomic": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", + "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "signal-exit": "3.0.2" + } + } + } + }, + "datastore-level": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/datastore-level/-/datastore-level-0.7.0.tgz", + "integrity": "sha512-Wgm6kzkXadFOVkzRpu7KfSm6QwxjsgfPRCrcvVQuR4/CsWeREnmyuzu580fLywRmlIQMbcncu6W02W0HyAzjng==", + "dev": true, + "requires": { + "datastore-core": "0.4.0", + "interface-datastore": "0.4.1", + "level-js": "2.2.4", + "leveldown": "1.9.0", + "levelup": "1.3.9", + "pull-stream": "3.6.1" + } + }, + "date-now": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", + "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", + "dev": true + }, + "debug": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.0.1.tgz", + "integrity": "sha512-6nVc6S36qbt/mutyt+UGMnawAMrPDZUPQjRZI3FS9tCtDRhvxJbK79unYBLPi+z5SLXQ3ftoVBFCblQtNSls8w==", + "requires": { + "ms": "2.0.0" + } + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "deep-extend": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.4.2.tgz", + "integrity": "sha1-SLaZwn4zS/ifEIkr5DL25MfTSn8=", + "dev": true + }, + "deferred-leveldown": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/deferred-leveldown/-/deferred-leveldown-1.2.2.tgz", + "integrity": "sha512-uukrWD2bguRtXilKt6cAWKyoXrTSMo5m7crUdLfWQmu8kIm88w3QZoUL+6nhpfKVmhHANER6Re3sKoNoZ3IKMA==", + "dev": true, + "requires": { + "abstract-leveldown": "2.6.3" + }, + "dependencies": { + "abstract-leveldown": { + "version": "2.6.3", + "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.6.3.tgz", + "integrity": "sha512-2++wDf/DYqkPR3o5tbfdhF96EfMApo1GpPfzOsR/ZYXdkSmELlvOOEAl9iKkRsktMPHdGjO4rtkBpf2I7TiTeA==", + "dev": true, + "requires": { + "xtend": "4.0.1" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "dev": true + }, + "delimit-stream": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/delimit-stream/-/delimit-stream-0.1.0.tgz", + "integrity": "sha1-m4MZR3wOX4rrPONXrjBfwl6hzSs=", + "dev": true + }, + "des.js": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.0.tgz", + "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "minimalistic-assert": "1.0.0" + } + }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "dev": true, + "requires": { + "repeating": "2.0.1" + } + }, + "detect-node": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz", + "integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc=", + "dev": true + }, + "dexie": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/dexie/-/dexie-1.5.1.tgz", + "integrity": "sha1-rDrVoOuvfm5Cdg21hxBBjUp1ZiQ=" + }, + "dicer": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/dicer/-/dicer-0.2.5.tgz", + "integrity": "sha1-WZbAhrszIYyBLAkL3cCc0S+stw8=", + "dev": true, + "requires": { + "readable-stream": "1.1.14", + "streamsearch": "0.1.2" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "diff": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.1.tgz", + "integrity": "sha512-MKPHZDMB0o6yHyDryUOScqZibp914ksXwAMYMTHj6KO8UeKsRYNJD3oNCKjTqZon+V488P7N/HzXF8t7ZR95ww==", + "dev": true + }, + "diffie-hellman": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.2.tgz", + "integrity": "sha1-tYNXOScM/ias9jIJn97SoH8gnl4=", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "miller-rabin": "4.0.1", + "randombytes": "2.0.5" + } + }, + "dns-packet": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.2.2.tgz", + "integrity": "sha512-kN+DjfGF7dJGUL7nWRktL9Z18t1rWP3aQlyZdY8XlpvU3Nc6GeFTQApftcjtWKxAZfiggZSGrCEoszNgvnpwDg==", + "dev": true, + "requires": { + "ip": "1.1.5", + "safe-buffer": "5.1.1" + } + }, + "domain-browser": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.1.7.tgz", + "integrity": "sha1-hnqksJP6oF8d4IwG9NeyH9+GmLw=", + "dev": true + }, + "dot-prop": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-4.2.0.tgz", + "integrity": "sha512-tUMXrxlExSW6U2EXiiKGSBVdYgtV8qlHL+C10TsW4PURY/ic+eaysnSkwB4kA/mBlCyy/IKDJ+Lc3wbWeaXtuQ==", + "dev": true, + "requires": { + "is-obj": "1.0.1" + } + }, + "drbg.js": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/drbg.js/-/drbg.js-1.0.1.tgz", + "integrity": "sha1-Pja2xCs3BDgjzbwzLVjzHiRFSAs=", + "dev": true, + "requires": { + "browserify-aes": "1.1.1", + "create-hash": "1.1.3", + "create-hmac": "1.1.6" + } + }, + "duplexer2": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.0.2.tgz", + "integrity": "sha1-xhTc9n4vsUmVqRcR5aYX6KYKMds=", + "dev": true, + "requires": { + "readable-stream": "1.1.14" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "duplexer3": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", + "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", + "dev": true + }, + "duplexify": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.5.1.tgz", + "integrity": "sha512-j5goxHTwVED1Fpe5hh3q9R93Kip0Bg2KVAt4f8CEYM3UEwYcPSvWbXaUQOzdX/HtiNomipv+gU7ASQPDbV7pGQ==", + "dev": true, + "requires": { + "end-of-stream": "1.4.0", + "inherits": "2.0.3", + "readable-stream": "2.3.3", + "stream-shift": "1.0.0" + } + }, + "elliptic": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz", + "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", + "requires": { + "bn.js": "4.11.8", + "brorand": "1.1.0", + "hash.js": "1.1.3", + "hmac-drbg": "1.0.1", + "inherits": "2.0.3", + "minimalistic-assert": "1.0.0", + "minimalistic-crypto-utils": "1.0.1" + } + }, + "emojis-list": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/emojis-list/-/emojis-list-2.1.0.tgz", + "integrity": "sha1-TapNnbAPmBmIDHn6RXrlsJof04k=", + "dev": true + }, + "end-of-stream": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.0.tgz", + "integrity": "sha1-epDYM+/abPpurA9JSduw+tOmMgY=", + "dev": true, + "requires": { + "once": "1.4.0" + } + }, + "engine.io": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-3.1.4.tgz", + "integrity": "sha1-PQIRtwpVLOhB/8fahiezAamkFi4=", + "dev": true, + "requires": { + "accepts": "1.3.3", + "base64id": "1.0.0", + "cookie": "0.3.1", + "debug": "2.6.9", + "engine.io-parser": "2.1.1", + "uws": "0.14.5", + "ws": "3.3.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "engine.io-client": { + "version": "3.1.4", + "resolved": "https://registry.npmjs.org/engine.io-client/-/engine.io-client-3.1.4.tgz", + "integrity": "sha1-T88TcLRxY70s6b4nM5ckMDUNTqE=", + "dev": true, + "requires": { + "component-emitter": "1.2.1", + "component-inherit": "0.0.3", + "debug": "2.6.9", + "engine.io-parser": "2.1.1", + "has-cors": "1.1.0", + "indexof": "0.0.1", + "parseqs": "0.0.5", + "parseuri": "0.0.5", + "ws": "3.3.2", + "xmlhttprequest-ssl": "1.5.4", + "yeast": "0.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "engine.io-parser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/engine.io-parser/-/engine.io-parser-2.1.1.tgz", + "integrity": "sha1-4Ps/DgRi9/WLt3waUun1p+JuRmg=", + "dev": true, + "requires": { + "after": "0.8.2", + "arraybuffer.slice": "0.0.6", + "base64-arraybuffer": "0.1.5", + "blob": "0.0.4", + "has-binary2": "1.0.2" + } + }, + "enhanced-resolve": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-3.4.1.tgz", + "integrity": "sha1-BCHjOf1xQZs9oT0Smzl5BAIwR24=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "memory-fs": "0.4.1", + "object-assign": "4.1.1", + "tapable": "0.2.8" + } + }, + "errno": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.4.tgz", + "integrity": "sha1-uJbiOp5ei6M4cfyZar02NfyaHH0=", + "dev": true, + "requires": { + "prr": "0.0.0" + }, + "dependencies": { + "prr": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/prr/-/prr-0.0.0.tgz", + "integrity": "sha1-GoS4WQgyVQFBGFPQCB7j+obikmo=", + "dev": true + } + } + }, + "error-ex": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.1.tgz", + "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", + "dev": true, + "requires": { + "is-arrayish": "0.2.1" + } + }, + "es5-ext": { + "version": "0.10.37", + "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.37.tgz", + "integrity": "sha1-DudB0Ui4AGm6J9AgOTdWryV978M=", + "dev": true, + "requires": { + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" + } + }, + "es6-iterator": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", + "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.37", + "es6-symbol": "3.1.1" + } + }, + "es6-map": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-map/-/es6-map-0.1.5.tgz", + "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.37", + "es6-iterator": "2.0.3", + "es6-set": "0.1.5", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-set": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", + "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.37", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "event-emitter": "0.3.5" + } + }, + "es6-symbol": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.1.tgz", + "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.37" + } + }, + "es6-weak-map": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.2.tgz", + "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.37", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "escodegen": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.3.3.tgz", + "integrity": "sha1-8CQBb1qI4Eb9EgBQVek5gC5sXyM=", + "dev": true, + "requires": { + "esprima": "1.1.1", + "estraverse": "1.5.1", + "esutils": "1.0.0", + "source-map": "0.1.43" + }, + "dependencies": { + "esutils": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-1.0.0.tgz", + "integrity": "sha1-gVHTWOIMisx/t0XnRywAJf5JZXA=", + "dev": true + }, + "source-map": { + "version": "0.1.43", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", + "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", + "dev": true, + "optional": true, + "requires": { + "amdefine": "1.0.1" + } + } + } + }, + "escope": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/escope/-/escope-3.6.0.tgz", + "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", + "dev": true, + "requires": { + "es6-map": "0.1.5", + "es6-weak-map": "2.0.2", + "esrecurse": "4.2.0", + "estraverse": "4.2.0" + }, + "dependencies": { + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "dev": true + } + } + }, + "esprima": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.1.1.tgz", + "integrity": "sha1-W28VR/TRAuZw4UDFCb5ncdautUk=", + "dev": true + }, + "esrecurse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.2.0.tgz", + "integrity": "sha1-+pVo2Y04I/mkHZHpAtyrnqblsWM=", + "dev": true, + "requires": { + "estraverse": "4.2.0", + "object-assign": "4.1.1" + }, + "dependencies": { + "estraverse": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.2.0.tgz", + "integrity": "sha1-De4/7TH81GlhjOc0IJn8GvoL2xM=", + "dev": true + } + } + }, + "estraverse": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.5.1.tgz", + "integrity": "sha1-hno+jlip+EYYr7bC3bzZFrfLr3E=", + "dev": true + }, + "esutils": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", + "dev": true + }, + "ethereum-common": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.2.0.tgz", + "integrity": "sha512-XOnAR/3rntJgbCdGhqdaLIxDLWKLmsZOGhHdBKadEr6gEnJLH52k93Ou+TUdFaPN3hJc3isBZBal3U/XZ15abA==", + "dev": true + }, + "ethereumjs-account": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/ethereumjs-account/-/ethereumjs-account-2.0.4.tgz", + "integrity": "sha1-+MMCMby3B/RRTYoFLB+doQNiTUc=", + "dev": true, + "requires": { + "ethereumjs-util": "4.5.0", + "rlp": "2.0.0" + } + }, + "ethereumjs-block": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/ethereumjs-block/-/ethereumjs-block-1.7.0.tgz", + "integrity": "sha512-4s4Hh7mWa1xr+Bggh3T3jsq9lmje5aYpJRFky00bo/xNgNe+RC8V2ulWYSR4YTEKqLbnLEsLNytjDe5hpblkZQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "ethereum-common": "0.2.0", + "ethereumjs-tx": "1.3.3", + "ethereumjs-util": "5.1.2", + "merkle-patricia-tree": "2.2.0" + }, + "dependencies": { + "ethereumjs-util": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.1.2.tgz", + "integrity": "sha1-JboCFcu0wvCxCKb5avKi5i5Fkh8=", + "dev": true, + "requires": { + "babel-preset-es2015": "6.24.1", + "babelify": "7.3.0", + "bn.js": "4.11.8", + "create-hash": "1.1.3", + "ethjs-util": "0.1.4", + "keccak": "1.3.0", + "rlp": "2.0.0", + "secp256k1": "3.3.1" + } + } + } + }, + "ethereumjs-tx": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/ethereumjs-tx/-/ethereumjs-tx-1.3.3.tgz", + "integrity": "sha1-7OBR0+/b53GtKlGNYWMsoqt17Ls=", + "dev": true, + "requires": { + "ethereum-common": "0.0.18", + "ethereumjs-util": "5.1.2" + }, + "dependencies": { + "ethereum-common": { + "version": "0.0.18", + "resolved": "https://registry.npmjs.org/ethereum-common/-/ethereum-common-0.0.18.tgz", + "integrity": "sha1-L9w1dvIykDNYl26znaeDIT/5Uj8=", + "dev": true + }, + "ethereumjs-util": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-5.1.2.tgz", + "integrity": "sha1-JboCFcu0wvCxCKb5avKi5i5Fkh8=", + "dev": true, + "requires": { + "babel-preset-es2015": "6.24.1", + "babelify": "7.3.0", + "bn.js": "4.11.8", + "create-hash": "1.1.3", + "ethjs-util": "0.1.4", + "keccak": "1.3.0", + "rlp": "2.0.0", + "secp256k1": "3.3.1" + } + } + } + }, + "ethereumjs-util": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/ethereumjs-util/-/ethereumjs-util-4.5.0.tgz", + "integrity": "sha1-PpQosxfuvaPXJg2FT93alUsfG8Y=", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "create-hash": "1.1.3", + "keccakjs": "0.2.1", + "rlp": "2.0.0", + "secp256k1": "3.3.1" + } + }, + "ethjs-util": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/ethjs-util/-/ethjs-util-0.1.4.tgz", + "integrity": "sha1-HItoeSV0RO9NPz+7rC3tEs2ZfZM=", + "dev": true, + "requires": { + "is-hex-prefixed": "1.0.0", + "strip-hex-prefix": "1.0.0" + } + }, + "event-emitter": { + "version": "0.3.5", + "resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz", + "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", + "dev": true, + "requires": { + "d": "1.0.0", + "es5-ext": "0.10.37" + } + }, + "events": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", + "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", + "dev": true + }, + "evp_bytestokey": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", + "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", + "dev": true, + "requires": { + "md5.js": "1.3.4", + "safe-buffer": "5.1.1" + } + }, + "execa": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz", + "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", + "dev": true, + "requires": { + "cross-spawn": "5.1.0", + "get-stream": "3.0.0", + "is-stream": "1.1.0", + "npm-run-path": "2.0.2", + "p-finally": "1.0.0", + "signal-exit": "3.0.2", + "strip-eof": "1.0.0" + } + }, + "expand-brackets": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-0.1.5.tgz", + "integrity": "sha1-3wcoTjQqgHzXM6xa9yQR5YHRF3s=", + "dev": true, + "requires": { + "is-posix-bracket": "0.1.1" + } + }, + "expand-range": { + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/expand-range/-/expand-range-1.8.2.tgz", + "integrity": "sha1-opnv/TNf4nIeuujiV+x5ZE/IUzc=", + "dev": true, + "requires": { + "fill-range": "2.2.3" + } + }, + "expand-template": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-1.1.0.tgz", + "integrity": "sha512-kkjwkMqj0h4w/sb32ERCDxCQkREMCAgS39DscDnSwDsbxnwwM1BTZySdC3Bn1lhY7vL08n9GoO/fVTynjDgRyQ==", + "dev": true + }, + "extglob": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/extglob/-/extglob-0.3.2.tgz", + "integrity": "sha1-Lhj/PS9JqydlzskCPwEdqo2DSaE=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "falafel": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/falafel/-/falafel-2.1.0.tgz", + "integrity": "sha1-lrsXdh2rqU9G0AFzizzt86Z/4Gw=", + "dev": true, + "requires": { + "acorn": "5.2.1", + "foreach": "2.0.5", + "isarray": "0.0.1", + "object-keys": "1.0.11" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "object-keys": { + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.0.11.tgz", + "integrity": "sha1-xUYBd4rVYPEULODgG8yotW0TQm0=", + "dev": true + } + } + }, + "fast-deep-equal": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-1.0.0.tgz", + "integrity": "sha1-liVqO8l1WV6zbYLpkp0GDYk0Of8=", + "dev": true + }, + "fast-future": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fast-future/-/fast-future-1.0.2.tgz", + "integrity": "sha1-hDWpqqAteSSNF9cE52JZMB2ZKAo=", + "dev": true + }, + "fast-json-stable-stringify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", + "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", + "dev": true + }, + "file-type": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-6.2.0.tgz", + "integrity": "sha512-YPcTBDV+2Tm0VqjybVd32MHdlEGAtuxS3VAYsumFokDSMG+ROT5wawGlnHDoz7bfMcMDt9hxuXvXwoKUx2fkOg==", + "dev": true + }, + "filename-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/filename-regex/-/filename-regex-2.0.1.tgz", + "integrity": "sha1-wcS5vuPglyXdsQa3XB4wH+LxiyY=", + "dev": true + }, + "filesize": { + "version": "3.5.11", + "resolved": "https://registry.npmjs.org/filesize/-/filesize-3.5.11.tgz", + "integrity": "sha512-ZH7loueKBoDb7yG9esn1U+fgq7BzlzW6NRi5/rMdxIZ05dj7GFD/Xc5rq2CDt5Yq86CyfSYVyx4242QQNZbx1g==", + "dev": true + }, + "fill-range": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-2.2.3.tgz", + "integrity": "sha1-ULd9/X5Gm8dJJHCWNpn+eoSFpyM=", + "dev": true, + "requires": { + "is-number": "2.1.0", + "isobject": "2.1.0", + "randomatic": "1.1.7", + "repeat-element": "1.1.2", + "repeat-string": "1.6.1" + } + }, + "find-cache-dir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-1.0.0.tgz", + "integrity": "sha1-kojj6ePMN0hxfTnq3hfPcfww7m8=", + "dev": true, + "requires": { + "commondir": "1.0.1", + "make-dir": "1.1.0", + "pkg-dir": "2.0.0" + } + }, + "find-process": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/find-process/-/find-process-1.1.0.tgz", + "integrity": "sha1-8h+ggiD+yXK0cdkq488MYr681bs=", + "dev": true, + "requires": { + "chalk": "2.3.0", + "commander": "2.12.2", + "debug": "2.6.9" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", + "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", + "dev": true, + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "4.5.0" + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "find-up": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", + "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "dev": true, + "requires": { + "locate-path": "2.0.0" + } + }, + "flatmap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/flatmap/-/flatmap-0.0.3.tgz", + "integrity": "sha1-Hxik2TgVLUlZZfnJWNkjqy3WabQ=", + "dev": true + }, + "flush-write-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/flush-write-stream/-/flush-write-stream-1.0.2.tgz", + "integrity": "sha1-yBuQ2HRnZvGmCaRoCZRsRd2K5Bc=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.3" + } + }, + "for-in": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", + "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", + "dev": true + }, + "for-own": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/for-own/-/for-own-0.1.5.tgz", + "integrity": "sha1-UmXGgaTylNq78XyVCbZ2OqhFEM4=", + "dev": true, + "requires": { + "for-in": "1.0.2" + } + }, + "foreach": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/foreach/-/foreach-2.0.5.tgz", + "integrity": "sha1-C+4AUBiusmDQo6865ljdATbsG5k=", + "dev": true + }, + "from2": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", + "integrity": "sha1-i/tVAr3kpNNs/e6gB/zKIdfjgq8=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.3" + } + }, + "fs-ext": { + "version": "github:baudehlo/node-fs-ext#500be8514729c194ac7ca2b30b5bc7eaf812670d", + "dev": true, + "optional": true, + "requires": { + "nan": "2.7.0" + } + }, + "fs-pull-blob-store": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/fs-pull-blob-store/-/fs-pull-blob-store-0.4.1.tgz", + "integrity": "sha1-CZsKDj/FlOnaBfL4j+XOg7ajNFo=", + "requires": { + "mkdirp": "0.5.1", + "pull-defer": "0.2.2", + "pull-file": "1.0.0", + "pull-stream": "3.6.1", + "pull-write-file": "0.2.4" + } + }, + "fs-write-stream-atomic": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/fs-write-stream-atomic/-/fs-write-stream-atomic-1.0.10.tgz", + "integrity": "sha1-tH31NJPvkR33VzHnCp3tAYnbQMk=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "iferr": "0.1.5", + "imurmurhash": "0.1.4", + "readable-stream": "2.3.3" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz", + "integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==", + "dev": true, + "optional": true, + "requires": { + "nan": "2.7.0", + "node-pre-gyp": "0.6.39" + }, + "dependencies": { + "abbrev": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "ajv": { + "version": "4.11.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.2.9" + } + }, + "asn1": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "asynckit": { + "version": "0.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws4": { + "version": "1.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "balanced-match": { + "version": "0.4.2", + "bundled": true, + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "block-stream": { + "version": "0.0.9", + "bundled": true, + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "brace-expansion": { + "version": "1.1.7", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "0.4.2", + "concat-map": "0.0.1" + } + }, + "buffer-shims": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "caseless": { + "version": "0.12.0", + "bundled": true, + "dev": true, + "optional": true + }, + "co": { + "version": "4.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.10.1" + } + }, + "dashdash": { + "version": "1.14.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "debug": { + "version": "2.6.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.4.2", + "bundled": true, + "dev": true, + "optional": true + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "detect-libc": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "extend": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "extsprintf": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "optional": true + }, + "form-data": { + "version": "2.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.15" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "fstream": { + "version": "1.0.11", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.1" + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fstream": "1.0.11", + "inherits": "2.0.3", + "minimatch": "3.0.4" + } + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "1.1.1", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "getpass": { + "version": "0.1.7", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "bundled": true, + "dev": true + }, + "har-schema": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "har-validator": { + "version": "4.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "dev": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true, + "dev": true + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.0", + "sshpk": "1.13.0" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "jodid25519": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "jsonify": { + "version": "0.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "jsprim": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.0.2", + "json-schema": "0.2.3", + "verror": "1.3.6" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "mime-db": { + "version": "1.27.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.15", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "1.27.0" + } + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "node-pre-gyp": { + "version": "0.6.39", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "1.0.2", + "hawk": "3.1.3", + "mkdirp": "0.5.1", + "nopt": "4.0.1", + "npmlog": "4.1.0", + "rc": "1.2.1", + "request": "2.81.0", + "rimraf": "2.6.1", + "semver": "5.3.0", + "tar": "2.2.1", + "tar-pack": "3.4.0" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1.1.0", + "osenv": "0.1.4" + } + }, + "npmlog": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "performance-now": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "dev": true + }, + "punycode": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "qs": { + "version": "6.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.2.9", + "bundled": true, + "dev": true, + "requires": { + "buffer-shims": "1.0.0", + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "string_decoder": "1.0.1", + "util-deprecate": "1.0.2" + } + }, + "request": { + "version": "2.81.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.15", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.0.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.2", + "tunnel-agent": "0.6.0", + "uuid": "3.0.1" + } + }, + "rimraf": { + "version": "2.6.1", + "bundled": true, + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.0.1", + "bundled": true, + "dev": true + }, + "semver": { + "version": "5.3.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "sshpk": { + "version": "1.13.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jodid25519": "1.0.2", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.0.1" + } + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "tar-pack": { + "version": "3.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.8", + "fstream": "1.0.11", + "fstream-ignore": "1.0.5", + "once": "1.4.0", + "readable-stream": "2.2.9", + "rimraf": "2.6.1", + "tar": "2.2.1", + "uid-number": "0.0.6" + } + }, + "tough-cookie": { + "version": "2.3.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "punycode": "1.4.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "bundled": true, + "dev": true, + "optional": true + }, + "uid-number": { + "version": "0.0.6", + "bundled": true, + "dev": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "uuid": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2" + } + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + } + } + }, + "fsm": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/fsm/-/fsm-1.0.2.tgz", + "integrity": "sha1-4uubKXR+gGu7kPjVRT4vnXvSN4M=", + "dev": true, + "requires": { + "split": "0.3.3" + } + }, + "fsm-event": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fsm-event/-/fsm-event-2.1.0.tgz", + "integrity": "sha1-04VxbtOPnJL+qyumAeKqxsC6WpI=", + "dev": true, + "requires": { + "fsm": "1.0.2" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "functional-red-black-tree": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", + "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", + "dev": true + }, + "gauge": { + "version": "2.7.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", + "dev": true, + "requires": { + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "gc-stats": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/gc-stats/-/gc-stats-1.0.2.tgz", + "integrity": "sha512-/mXXARj1tc4Q3nOf/K88bOc1wLWvm0tiWy0EZGWxxR7yLDuM5mZmwrKtYnWIEotKI4o2Sycz3mnszFRIIV/v2w==", + "dev": true, + "optional": true, + "requires": { + "nan": "2.7.0", + "node-pre-gyp": "0.6.36" + }, + "dependencies": { + "abbrev": { + "version": "1.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "ajv": { + "version": "4.11.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "co": "4.6.0", + "json-stable-stringify": "1.0.1" + } + }, + "ansi-regex": { + "version": "2.1.1", + "bundled": true, + "dev": true + }, + "aproba": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "are-we-there-yet": { + "version": "1.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "delegates": "1.0.0", + "readable-stream": "2.3.1" + } + }, + "asn1": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "assert-plus": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "asynckit": { + "version": "0.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws-sign2": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "aws4": { + "version": "1.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "balanced-match": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "bcrypt-pbkdf": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "tweetnacl": "0.14.5" + } + }, + "block-stream": { + "version": "0.0.9", + "bundled": true, + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "boom": { + "version": "2.10.1", + "bundled": true, + "dev": true, + "requires": { + "hoek": "2.16.3" + } + }, + "brace-expansion": { + "version": "1.1.8", + "bundled": true, + "dev": true, + "requires": { + "balanced-match": "1.0.0", + "concat-map": "0.0.1" + } + }, + "caseless": { + "version": "0.12.0", + "bundled": true, + "dev": true, + "optional": true + }, + "co": { + "version": "4.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "code-point-at": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "combined-stream": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "requires": { + "delayed-stream": "1.0.0" + } + }, + "concat-map": { + "version": "0.0.1", + "bundled": true, + "dev": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true, + "dev": true + }, + "core-util-is": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "cryptiles": { + "version": "2.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "boom": "2.10.1" + } + }, + "dashdash": { + "version": "1.14.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "debug": { + "version": "2.6.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ms": "2.0.0" + } + }, + "deep-extend": { + "version": "0.4.2", + "bundled": true, + "dev": true, + "optional": true + }, + "delayed-stream": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "delegates": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "ecc-jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsbn": "0.1.1" + } + }, + "extend": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "extsprintf": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "forever-agent": { + "version": "0.6.1", + "bundled": true, + "dev": true, + "optional": true + }, + "form-data": { + "version": "2.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asynckit": "0.4.0", + "combined-stream": "1.0.5", + "mime-types": "2.1.15" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "fstream": { + "version": "1.0.11", + "bundled": true, + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "inherits": "2.0.3", + "mkdirp": "0.5.1", + "rimraf": "2.6.1" + } + }, + "fstream-ignore": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "fstream": "1.0.11", + "inherits": "2.0.3", + "minimatch": "3.0.4" + } + }, + "gauge": { + "version": "2.7.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aproba": "1.1.2", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.2" + } + }, + "getpass": { + "version": "0.1.7", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "glob": { + "version": "7.1.2", + "bundled": true, + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "graceful-fs": { + "version": "4.1.11", + "bundled": true, + "dev": true + }, + "har-schema": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "har-validator": { + "version": "4.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ajv": "4.11.8", + "har-schema": "1.0.5" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "hawk": { + "version": "3.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "boom": "2.10.1", + "cryptiles": "2.0.5", + "hoek": "2.16.3", + "sntp": "1.0.9" + } + }, + "hoek": { + "version": "2.16.3", + "bundled": true, + "dev": true + }, + "http-signature": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "0.2.0", + "jsprim": "1.4.0", + "sshpk": "1.13.1" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true + }, + "ini": { + "version": "1.3.4", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-typedarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true + }, + "isstream": { + "version": "0.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "jsbn": { + "version": "0.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "json-schema": { + "version": "0.2.3", + "bundled": true, + "dev": true, + "optional": true + }, + "json-stable-stringify": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "jsonify": "0.0.0" + } + }, + "json-stringify-safe": { + "version": "5.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "jsonify": { + "version": "0.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "jsprim": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.0.2", + "json-schema": "0.2.3", + "verror": "1.3.6" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "mime-db": { + "version": "1.27.0", + "bundled": true, + "dev": true + }, + "mime-types": { + "version": "2.1.15", + "bundled": true, + "dev": true, + "requires": { + "mime-db": "1.27.0" + } + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "node-pre-gyp": { + "version": "0.6.36", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "mkdirp": "0.5.1", + "nopt": "4.0.1", + "npmlog": "4.1.0", + "rc": "1.2.1", + "request": "2.81.0", + "rimraf": "2.6.1", + "semver": "5.3.0", + "tar": "2.2.1", + "tar-pack": "3.4.0" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1.1.0", + "osenv": "0.1.4" + } + }, + "npmlog": { + "version": "4.1.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "oauth-sign": { + "version": "0.8.2", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true + }, + "performance-now": { + "version": "0.2.0", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "1.0.7", + "bundled": true, + "dev": true + }, + "punycode": { + "version": "1.4.1", + "bundled": true, + "dev": true, + "optional": true + }, + "qs": { + "version": "6.4.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.4", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.1", + "bundled": true, + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.2", + "util-deprecate": "1.0.2" + } + }, + "request": { + "version": "2.81.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "aws-sign2": "0.6.0", + "aws4": "1.6.0", + "caseless": "0.12.0", + "combined-stream": "1.0.5", + "extend": "3.0.1", + "forever-agent": "0.6.1", + "form-data": "2.1.4", + "har-validator": "4.2.1", + "hawk": "3.1.3", + "http-signature": "1.1.1", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.15", + "oauth-sign": "0.8.2", + "performance-now": "0.2.0", + "qs": "6.4.0", + "safe-buffer": "5.1.1", + "stringstream": "0.0.5", + "tough-cookie": "2.3.2", + "tunnel-agent": "0.6.0", + "uuid": "3.1.0" + } + }, + "rimraf": { + "version": "2.6.1", + "bundled": true, + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "safe-buffer": { + "version": "5.1.1", + "bundled": true, + "dev": true + }, + "semver": { + "version": "5.3.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sntp": { + "version": "1.0.9", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "hoek": "2.16.3" + } + }, + "sshpk": { + "version": "1.13.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" + }, + "dependencies": { + "assert-plus": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "requires": { + "safe-buffer": "5.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.0.1", + "bundled": true, + "dev": true + } + } + }, + "stringstream": { + "version": "0.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "2.2.1", + "bundled": true, + "dev": true, + "requires": { + "block-stream": "0.0.9", + "fstream": "1.0.11", + "inherits": "2.0.3" + } + }, + "tar-pack": { + "version": "3.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "2.6.8", + "fstream": "1.0.11", + "fstream-ignore": "1.0.5", + "once": "1.4.0", + "readable-stream": "2.3.1", + "rimraf": "2.6.1", + "tar": "2.2.1", + "uid-number": "0.0.6" + } + }, + "tough-cookie": { + "version": "2.3.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "punycode": "1.4.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "bundled": true, + "dev": true, + "optional": true + }, + "uid-number": { + "version": "0.0.6", + "bundled": true, + "dev": true, + "optional": true + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true + }, + "uuid": { + "version": "3.1.0", + "bundled": true, + "dev": true, + "optional": true + }, + "verror": { + "version": "1.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "extsprintf": "1.0.2" + } + }, + "wide-align": { + "version": "1.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "1.0.2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true + } + } + }, + "get-browser-rtc": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-browser-rtc/-/get-browser-rtc-1.0.2.tgz", + "integrity": "sha1-u81AyEUaftTvXDc7gWmkCd0dEdk=", + "dev": true + }, + "get-caller-file": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.2.tgz", + "integrity": "sha1-9wLmMSfn4jHBYKgMFVSstw1QR+U=", + "dev": true + }, + "get-stream": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz", + "integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=", + "dev": true + }, + "github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha1-l/tdlr/eiXMxPyDoKI75oWf6ZM4=", + "dev": true + }, + "glob": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", + "dev": true, + "requires": { + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" + } + }, + "glob-base": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz", + "integrity": "sha1-27Fk9iIbHAscz4Kuoyi0l98Oo8Q=", + "dev": true, + "requires": { + "glob-parent": "2.0.0", + "is-glob": "2.0.1" + } + }, + "glob-escape": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/glob-escape/-/glob-escape-0.0.2.tgz", + "integrity": "sha1-nCf3gh7RwTd1gvPv2VWOP2dWKO0=", + "dev": true + }, + "glob-parent": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", + "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", + "dev": true, + "requires": { + "is-glob": "2.0.1" + } + }, + "global-dirs": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-0.1.1.tgz", + "integrity": "sha1-sxnA3UYH81PzvpzKTHL8FIxJ9EU=", + "dev": true, + "requires": { + "ini": "1.3.5" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + }, + "got": { + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/got/-/got-6.7.1.tgz", + "integrity": "sha1-JAzQV4WpoY5WHcG0S0HHY+8ejbA=", + "dev": true, + "requires": { + "create-error-class": "3.0.2", + "duplexer3": "0.1.4", + "get-stream": "3.0.0", + "is-redirect": "1.0.0", + "is-retry-allowed": "1.1.0", + "is-stream": "1.1.0", + "lowercase-keys": "1.0.0", + "safe-buffer": "5.1.1", + "timed-out": "4.0.1", + "unzip-response": "2.0.1", + "url-parse-lax": "1.0.0" + }, + "dependencies": { + "unzip-response": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-2.0.1.tgz", + "integrity": "sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c=", + "dev": true + } + } + }, + "graceful-fs": { + "version": "4.1.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.11.tgz", + "integrity": "sha1-Dovf5NHduIVNZOBOp8AOKgJuVlg=" + }, + "growl": { + "version": "1.10.3", + "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.3.tgz", + "integrity": "sha512-hKlsbA5Vu3xsh1Cg3J7jSmX/WaW6A5oBeqzM88oNbCRQFz+zUaXm6yxS4RVytp1scBoJzSYl4YAEOQIt6O8V1Q==", + "dev": true + }, + "hapi": { + "version": "16.6.2", + "resolved": "https://registry.npmjs.org/hapi/-/hapi-16.6.2.tgz", + "integrity": "sha512-DBeIsge8nn3rBSFGX/btOwwkkVIMTuWHIkkiWtRAq8IHxhBfmVSewPm4BprU50PQjncQFw44JTN77l/pMKVHlA==", + "dev": true, + "requires": { + "accept": "2.1.4", + "ammo": "2.0.4", + "boom": "5.2.0", + "call": "4.0.2", + "catbox": "7.1.5", + "catbox-memory": "2.0.4", + "cryptiles": "3.1.2", + "heavy": "4.0.4", + "hoek": "4.2.0", + "iron": "4.0.5", + "items": "2.1.1", + "joi": "11.4.0", + "mimos": "3.0.3", + "podium": "1.3.0", + "shot": "3.4.2", + "statehood": "5.0.3", + "subtext": "5.0.0", + "topo": "2.0.2" + }, + "dependencies": { + "isemail": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/isemail/-/isemail-3.0.0.tgz", + "integrity": "sha512-rz0ng/c+fX+zACpLgDB8fnUQ845WSU06f4hlhk4K8TJxmR6f5hyvitu9a9JdMD7aq/P4E0XdG1uaab2OiXgHlA==", + "dev": true, + "requires": { + "punycode": "2.1.0" + } + }, + "joi": { + "version": "11.4.0", + "resolved": "https://registry.npmjs.org/joi/-/joi-11.4.0.tgz", + "integrity": "sha512-O7Uw+w/zEWgbL6OcHbyACKSj0PkQeUgmehdoXVSxt92QFCq4+1390Rwh5moI2K/OgC7D8RHRZqHZxT2husMJHA==", + "dev": true, + "requires": { + "hoek": "4.2.0", + "isemail": "3.0.0", + "topo": "2.0.2" + } + } + } + }, + "hapi-set-header": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/hapi-set-header/-/hapi-set-header-1.0.2.tgz", + "integrity": "sha1-KvrgAsZxnW1U8/qIRi+CKJLS3xM=", + "dev": true + }, + "has": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.1.tgz", + "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", + "dev": true, + "requires": { + "function-bind": "1.1.1" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "has-binary2": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-binary2/-/has-binary2-1.0.2.tgz", + "integrity": "sha1-6D26SfC5vk0CbSc2U1DZ8D9Uvpg=", + "dev": true, + "requires": { + "isarray": "2.0.1" + }, + "dependencies": { + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "dev": true + } + } + }, + "has-cors": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-cors/-/has-cors-1.1.0.tgz", + "integrity": "sha1-XkdHk/fqmEPRu5nCPu9J/xJv/zk=", + "dev": true + }, + "has-flag": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-2.0.0.tgz", + "integrity": "sha1-6CB68cx7MNRGzHC3NLXovhj4jVE=", + "dev": true + }, + "has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", + "dev": true + }, + "hash-base": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-2.0.2.tgz", + "integrity": "sha1-ZuodhW206KVHDK32/OI65SRO8uE=", + "dev": true, + "requires": { + "inherits": "2.0.3" + } + }, + "hash.js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.3.tgz", + "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", + "requires": { + "inherits": "2.0.3", + "minimalistic-assert": "1.0.0" + } + }, + "hashlru": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/hashlru/-/hashlru-2.2.0.tgz", + "integrity": "sha1-eTpYlD+QKupXgXfXsDNfE/JpS3E=", + "dev": true + }, + "he": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/he/-/he-1.1.1.tgz", + "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", + "dev": true + }, + "heap": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/heap/-/heap-0.2.6.tgz", + "integrity": "sha1-CH4fELBGky/IWU3Z5tN4r8nR5aw=", + "dev": true + }, + "heavy": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/heavy/-/heavy-4.0.4.tgz", + "integrity": "sha1-NskTNsAMz+hSyqTRUwhjNc0vAOk=", + "dev": true, + "requires": { + "boom": "5.2.0", + "hoek": "4.2.0", + "joi": "10.6.0" + } + }, + "hmac-drbg": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", + "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", + "requires": { + "hash.js": "1.1.3", + "minimalistic-assert": "1.0.0", + "minimalistic-crypto-utils": "1.0.1" + } + }, + "hoek": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/hoek/-/hoek-4.2.0.tgz", + "integrity": "sha512-v0XCLxICi9nPfYrS9RL8HbYnXi9obYAeLbSP00BmnZwCK9+Ih9WOjoZ8YoHCoav2csqn4FOz4Orldsy2dmDwmQ==", + "dev": true + }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "dev": true, + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, + "hosted-git-info": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.5.0.tgz", + "integrity": "sha512-pNgbURSuab90KbTqvRPsseaTxOJCZBD0a7t+haSN33piP9cCM4l0CqdzAif2hUqm716UovKB2ROmiabGAKVXyg==", + "dev": true + }, + "https-browserify": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", + "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", + "dev": true + }, + "hyperdiff": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hyperdiff/-/hyperdiff-2.0.3.tgz", + "integrity": "sha512-NAJxMV58m7Riefe0HAVt6gQx9KgRrYIBdd2dKLZ0wzdyNJlwO3gNPt8SXNxh8VrO5eOrp3ipdOePpPdPircKLw==", + "requires": { + "debug": "3.0.1", + "lodash.clonedeep": "4.5.0", + "lodash.pullat": "4.6.0" + } + }, + "idb-pull-blob-store": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/idb-pull-blob-store/-/idb-pull-blob-store-0.5.1.tgz", + "integrity": "sha1-nBP58Q6wWqOp8g71cVE8R1efddQ=", + "requires": { + "dexie": "1.5.1", + "pull-defer": "0.2.2", + "pull-pushable": "2.1.1", + "pull-window": "2.1.4", + "pull-write": "1.1.4", + "typedarray-to-buffer": "3.1.2" + } + }, + "idb-readable-stream": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/idb-readable-stream/-/idb-readable-stream-0.0.4.tgz", + "integrity": "sha1-MoPaZkW/ayINxhumHfYr7l2uSs8=", + "dev": true, + "requires": { + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "idb-wrapper": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/idb-wrapper/-/idb-wrapper-1.7.1.tgz", + "integrity": "sha1-ajJnASLhc6hOzFz6lmj6LOsiGwQ=", + "dev": true + }, + "ieee754": { + "version": "1.1.8", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.1.8.tgz", + "integrity": "sha1-vjPUCsEO8ZJnAfbwii2G+/0a0+Q=", + "dev": true + }, + "iferr": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz", + "integrity": "sha1-xg7taebY/bazEEofy8ocGS3FtQE=", + "dev": true + }, + "immediate": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.2.3.tgz", + "integrity": "sha1-0UD6j2FGWb1lQSMwl92qwlzdmRw=", + "dev": true + }, + "import-lazy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", + "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", + "dev": true + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=" + }, + "indexof": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", + "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "1.4.0", + "wrappy": "1.0.2" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=" + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "interface-connection": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/interface-connection/-/interface-connection-0.3.2.tgz", + "integrity": "sha1-5JSYg/bqeft+3QHuP0/KR6Kf0sQ=", + "dev": true, + "requires": { + "pull-defer": "0.2.2", + "timed-tape": "0.1.1" + } + }, + "interface-datastore": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-0.4.1.tgz", + "integrity": "sha512-K7wXBqkhEw1ry+Gf4OXol04JFaBreHPQYxzohZx+G7xgrb6E2ku3WDe936ZO1W0p5LsFiwlfgLPDNZpJjpR9yQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "pull-defer": "0.2.2", + "pull-stream": "3.6.1", + "uuid": "3.1.0" + } + }, + "interpret": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", + "integrity": "sha1-ftGxQQxqDg94z5XTuEQMY/eLhhQ=", + "dev": true + }, + "invariant": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz", + "integrity": "sha1-nh9WrArNtr8wMwbzOL47IErmA2A=", + "dev": true, + "requires": { + "loose-envify": "1.3.1" + } + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true + }, + "ip": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", + "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", + "dev": true + }, + "ip-address": { + "version": "5.8.8", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-5.8.8.tgz", + "integrity": "sha1-X9H490ZSSft9Kzwe7HtB0p0fG3Y=", + "dev": true, + "requires": { + "jsbn": "0.1.0", + "lodash.find": "4.6.0", + "lodash.max": "4.0.1", + "lodash.merge": "4.6.0", + "lodash.padstart": "4.6.1", + "lodash.repeat": "4.1.0", + "sprintf-js": "1.1.1", + "util-deprecate": "1.0.2" + } + }, + "ipfs": { + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/ipfs/-/ipfs-0.26.0.tgz", + "integrity": "sha512-0FKFV7oyiIaZVE+PtuxB16Xg76jw+LCXEGWy+BF0QWSdyqqaXpfQvd2XSgAYLSctbOxlMKLJSOJV5Sb32X2QCw==", + "dev": true, + "requires": { + "async": "2.6.0", + "bl": "1.2.1", + "boom": "5.2.0", + "cids": "0.5.2", + "debug": "3.0.1", + "file-type": "6.2.0", + "filesize": "3.5.11", + "fsm-event": "2.1.0", + "glob": "7.1.2", + "hapi": "16.6.2", + "hapi-set-header": "1.0.2", + "hoek": "4.2.0", + "ipfs-api": "14.3.7", + "ipfs-bitswap": "0.17.4", + "ipfs-block": "0.6.1", + "ipfs-block-service": "0.12.0", + "ipfs-multipart": "0.1.0", + "ipfs-repo": "0.17.0", + "ipfs-unixfs": "0.1.14", + "ipfs-unixfs-engine": "0.22.5", + "ipld-resolver": "0.13.4", + "is-ipfs": "0.3.2", + "is-stream": "1.1.0", + "joi": "10.6.0", + "libp2p": "0.12.4", + "libp2p-floodsub": "0.11.1", + "libp2p-kad-dht": "0.5.1", + "libp2p-mdns": "0.9.1", + "libp2p-multiplex": "0.5.0", + "libp2p-railing": "0.7.1", + "libp2p-secio": "0.8.1", + "libp2p-tcp": "0.11.1", + "libp2p-webrtc-star": "0.13.2", + "libp2p-websockets": "0.10.4", + "lodash.flatmap": "4.5.0", + "lodash.get": "4.4.2", + "lodash.sortby": "4.7.0", + "lodash.values": "4.3.0", + "mafmt": "3.0.2", + "mime-types": "2.1.17", + "mkdirp": "0.5.1", + "multiaddr": "3.0.1", + "multihashes": "0.4.12", + "once": "1.4.0", + "path-exists": "3.0.0", + "peer-book": "0.5.1", + "peer-id": "0.10.2", + "peer-info": "0.11.1", + "prom-client": "10.2.2", + "prometheus-gc-stats": "0.5.0", + "promisify-es6": "1.0.3", + "pull-file": "1.0.0", + "pull-paramap": "1.2.2", + "pull-pushable": "2.1.1", + "pull-sort": "1.0.1", + "pull-stream": "3.6.1", + "pull-stream-to-stream": "1.3.4", + "pull-zip": "2.0.1", + "read-pkg-up": "2.0.0", + "readable-stream": "2.3.3", + "safe-buffer": "5.1.1", + "stream-to-pull-stream": "1.7.2", + "tar-stream": "1.5.5", + "temp": "0.8.3", + "through2": "2.0.3", + "update-notifier": "2.3.0", + "yargs": "8.0.2" + }, + "dependencies": { + "datastore-core": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/datastore-core/-/datastore-core-0.3.0.tgz", + "integrity": "sha1-yoguDqTQr86H1PujZZjTGr13K0k=", + "dev": true, + "requires": { + "async": "2.6.0", + "interface-datastore": "0.3.1", + "left-pad": "1.2.0", + "pull-many": "1.0.8", + "pull-stream": "3.6.1" + } + }, + "datastore-level": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/datastore-level/-/datastore-level-0.6.0.tgz", + "integrity": "sha1-MYulZF2fjWzgUdJh5sPF+B/d+DE=", + "dev": true, + "requires": { + "datastore-core": "0.3.0", + "interface-datastore": "0.3.1", + "level-js": "2.2.4", + "leveldown": "1.9.0", + "levelup": "1.3.9", + "pull-stream": "3.6.1" + }, + "dependencies": { + "level-js": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/level-js/-/level-js-2.2.4.tgz", + "integrity": "sha1-vAVfQYBjXUSJtWHJSG+jcOjBFpc=", + "dev": true, + "requires": { + "abstract-leveldown": "0.12.4", + "idb-wrapper": "1.7.1", + "isbuffer": "0.0.0", + "ltgt": "2.2.0", + "typedarray-to-buffer": "1.0.4", + "xtend": "2.1.2" + } + } + } + }, + "interface-datastore": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-0.3.1.tgz", + "integrity": "sha512-xoHrLkKZQpxhHOd+8ET2fW6jKxXTzl4o71/A59X5JhzwUDJb6Az5G8//RUtNJxQbyRU3k3q5uDMMu9v1hyF7cA==", + "dev": true, + "requires": { + "async": "2.6.0", + "libp2p-crypto": "0.10.3", + "pull-defer": "0.2.2", + "pull-stream": "3.6.1", + "uuid": "3.1.0" + } + }, + "ipfs-repo": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/ipfs-repo/-/ipfs-repo-0.17.0.tgz", + "integrity": "sha1-WyuEsrvW3jJQTooqpZdNTdD4Q4k=", + "dev": true, + "requires": { + "async": "2.6.0", + "base32.js": "0.1.0", + "cids": "0.5.2", + "datastore-core": "0.3.0", + "datastore-fs": "0.3.0", + "datastore-level": "0.6.0", + "debug": "2.6.9", + "interface-datastore": "0.3.1", + "ipfs-block": "0.6.1", + "level-js": "github:timkuijsten/level.js#18e03adab34c49523be7d3d58fafb0c632f61303", + "leveldown": "1.9.0", + "lock-me": "1.0.3", + "lodash.get": "4.4.2", + "lodash.has": "4.5.2", + "lodash.set": "4.3.2", + "multiaddr": "2.3.0", + "safe-buffer": "5.1.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "multiaddr": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-2.3.0.tgz", + "integrity": "sha1-VmNIJPSLy9hAX9VDTDGyd0JMYvw=", + "dev": true, + "requires": { + "bs58": "4.0.1", + "ip": "1.1.5", + "lodash.filter": "4.6.0", + "lodash.map": "4.6.0", + "varint": "5.0.0", + "xtend": "4.0.1" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "level-js": { + "version": "github:timkuijsten/level.js#18e03adab34c49523be7d3d58fafb0c632f61303", + "dev": true, + "requires": { + "abstract-leveldown": "2.4.1", + "idb-readable-stream": "0.0.4", + "ltgt": "2.2.0", + "xtend": "4.0.1" + }, + "dependencies": { + "abstract-leveldown": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.4.1.tgz", + "integrity": "sha1-s7/tuITraToSd18MVenwpCDM7mQ=", + "dev": true, + "requires": { + "xtend": "4.0.1" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "typedarray-to-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-1.0.4.tgz", + "integrity": "sha1-m7i6DoQfs/TPH+fCRenz+opf6Zw=", + "dev": true + } + } + }, + "ipfs-api": { + "version": "14.3.7", + "resolved": "https://registry.npmjs.org/ipfs-api/-/ipfs-api-14.3.7.tgz", + "integrity": "sha512-SeCKT6KwMuu/qDEMDd5CRj2KhSa1+Dyx63jJgadU2tD6QINyxCy/ooPFBhZRwlGuAhb61IVSV8pfZ0nHNQEINQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "bs58": "4.0.1", + "cids": "0.5.2", + "concat-stream": "1.6.0", + "detect-node": "2.0.3", + "flatmap": "0.0.3", + "glob": "7.1.2", + "glob-escape": "0.0.2", + "ipfs-block": "0.6.1", + "ipfs-unixfs": "0.1.14", + "ipld-dag-pb": "0.11.3", + "is-ipfs": "0.3.2", + "is-stream": "1.1.0", + "lru-cache": "4.1.1", + "multiaddr": "3.0.1", + "multihashes": "0.4.12", + "multipart-stream": "2.0.1", + "ndjson": "1.5.0", + "once": "1.4.0", + "peer-id": "0.10.2", + "peer-info": "0.11.1", + "promisify-es6": "1.0.3", + "pump": "1.0.3", + "qs": "6.5.1", + "readable-stream": "2.3.3", + "stream-http": "2.7.2", + "streamifier": "0.1.1", + "tar-stream": "1.5.5" + } + }, + "ipfs-bitswap": { + "version": "0.17.4", + "resolved": "https://registry.npmjs.org/ipfs-bitswap/-/ipfs-bitswap-0.17.4.tgz", + "integrity": "sha512-IMDA0dr377fVaDdi6tVOTPlmbPQkWxe/KBsL85epjIhsKtFoZwz9WvY2INpNotT6OdTA/Wiwr2pWrFQsymDIeA==", + "dev": true, + "requires": { + "async": "2.6.0", + "cids": "0.5.2", + "debug": "3.1.0", + "ipfs-block": "0.6.1", + "lodash.debounce": "4.0.8", + "lodash.find": "4.6.0", + "lodash.groupby": "4.6.0", + "lodash.isequalwith": "4.4.0", + "lodash.isundefined": "3.0.1", + "lodash.pullallwith": "4.7.0", + "lodash.sortby": "4.7.0", + "lodash.uniqwith": "4.5.0", + "lodash.values": "4.3.0", + "multicodec": "0.2.5", + "multihashing-async": "0.4.7", + "protons": "1.0.0", + "pull-defer": "0.2.2", + "pull-length-prefixed": "1.3.0", + "pull-pushable": "2.1.1", + "pull-stream": "3.6.1", + "safe-buffer": "5.1.1", + "varint-decoder": "0.1.1" + }, + "dependencies": { + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "ipfs-block": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/ipfs-block/-/ipfs-block-0.6.1.tgz", + "integrity": "sha512-28dgGsb2YsYnFs+To4cVBX8e/lTCb8eWDzGhN5csj3a/sHMOYrHeK8+Ez0IV67CI3lqKGuG/ZD01Cmd6JUvKrQ==", + "dev": true, + "requires": { + "cids": "0.5.2" + } + }, + "ipfs-block-service": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/ipfs-block-service/-/ipfs-block-service-0.12.0.tgz", + "integrity": "sha1-gpOjg3uW031P7EyuV9erj+rIx1w=", + "dev": true + }, + "ipfs-log": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/ipfs-log/-/ipfs-log-4.0.4.tgz", + "integrity": "sha512-Y8e1qg/E3jJmyTwG4rVxusxXG1gc700FFItQS1/949jx2xt3KaNWhY8AwW4ruRx1wqI3XC/W8oxuPQKt2FAJIA==", + "requires": { + "p-map": "1.2.0", + "p-whilst": "1.0.0" + } + }, + "ipfs-multipart": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/ipfs-multipart/-/ipfs-multipart-0.1.0.tgz", + "integrity": "sha1-Wo7RP0LoLYvvfS4VHY6vXjow4+o=", + "dev": true, + "requires": { + "content": "3.0.6", + "dicer": "0.2.5" + } + }, + "ipfs-pubsub-room": { + "version": "github:haadcode/ipfs-pubsub-room#abc74650fc57a22ce0c31754b9667a6948e549d0", + "requires": { + "hyperdiff": "2.0.3", + "lodash.clonedeep": "4.5.0", + "pull-pushable": "2.1.1", + "pull-stream": "3.6.1", + "safe-buffer": "5.1.1" + } + }, + "ipfs-repo": { + "version": "0.18.3", + "resolved": "https://registry.npmjs.org/ipfs-repo/-/ipfs-repo-0.18.3.tgz", + "integrity": "sha512-XTbawXJ0CcxVUa1i+r+vnQ6gDcpTDp0SVfTdskuWxfhW4YSsNlsIl0jhB7ZEgE66Nc3A1bxhTpmL4wmAHqMoLQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "base32.js": "0.1.0", + "cids": "0.5.2", + "datastore-core": "0.4.0", + "datastore-fs": "0.4.1", + "datastore-level": "0.7.0", + "debug": "3.1.0", + "interface-datastore": "0.4.1", + "ipfs-block": "0.6.1", + "level-js": "github:timkuijsten/level.js#18e03adab34c49523be7d3d58fafb0c632f61303", + "leveldown": "1.9.0", + "lock-me": "1.0.3", + "lodash.get": "4.4.2", + "lodash.has": "4.5.2", + "lodash.set": "4.3.2", + "multiaddr": "3.0.1" + }, + "dependencies": { + "abstract-leveldown": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.4.1.tgz", + "integrity": "sha1-s7/tuITraToSd18MVenwpCDM7mQ=", + "dev": true, + "requires": { + "xtend": "4.0.1" + } + }, + "datastore-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/datastore-fs/-/datastore-fs-0.4.1.tgz", + "integrity": "sha512-I8N6kn/7pyQ+VY5WCel3GMbOoLXORoytM50Edyq55X1L0Ad40jXR6X3Y/hjvVHgFe495ciQk8OU6sx1TCxGJBw==", + "dev": true, + "requires": { + "datastore-core": "0.4.0", + "glob": "7.1.2", + "graceful-fs": "4.1.11", + "interface-datastore": "0.4.1", + "mkdirp": "0.5.1", + "pull-stream": "3.6.1", + "write-file-atomic": "2.3.0" + } + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "level-js": { + "version": "github:timkuijsten/level.js#18e03adab34c49523be7d3d58fafb0c632f61303", + "dev": true, + "requires": { + "abstract-leveldown": "2.4.1", + "idb-readable-stream": "0.0.4", + "ltgt": "2.2.0", + "xtend": "4.0.1" + } + }, + "write-file-atomic": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.3.0.tgz", + "integrity": "sha512-xuPeK4OdjWqtfi59ylvVL0Yn35SF3zgcAcv7rBPFHVaEapaDr4GdGgm3j7ckTwH9wHL7fGmgfAnb0+THrHb8tA==", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "signal-exit": "3.0.2" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "ipfs-unixfs": { + "version": "0.1.14", + "resolved": "https://registry.npmjs.org/ipfs-unixfs/-/ipfs-unixfs-0.1.14.tgz", + "integrity": "sha512-s1tEnwKhdd17MmyC/EUMNVMDYzKhCiHDI11TF8tSBeWkEQp+0WUxkYuqvz0R5TSi2lNDJ/oVnEmwWhki2spUiQ==", + "dev": true, + "requires": { + "protons": "1.0.0" + } + }, + "ipfs-unixfs-engine": { + "version": "0.22.5", + "resolved": "https://registry.npmjs.org/ipfs-unixfs-engine/-/ipfs-unixfs-engine-0.22.5.tgz", + "integrity": "sha512-50ul7nWlzYXQDLH2kiGJ9PA12l6FXTgr3vDOpl/ro2b5uoc2f8RtxqpyWyevHCxTSbKKBjziq2qNJNWLlNj8dA==", + "dev": true, + "requires": { + "async": "2.6.0", + "bs58": "4.0.1", + "cids": "0.5.2", + "deep-extend": "0.5.0", + "ipfs-unixfs": "0.1.14", + "ipld-dag-pb": "0.11.3", + "ipld-resolver": "0.13.4", + "left-pad": "1.2.0", + "lodash": "4.17.4", + "multihashes": "0.4.12", + "multihashing-async": "0.4.7", + "pull-batch": "1.0.0", + "pull-block": "1.4.0", + "pull-cat": "1.1.11", + "pull-defer": "0.2.2", + "pull-pair": "1.1.0", + "pull-paramap": "1.2.2", + "pull-pause": "0.0.1", + "pull-pushable": "2.1.1", + "pull-stream": "3.6.1", + "pull-traverse": "1.0.3", + "pull-write": "1.1.4", + "sparse-array": "1.3.1" + }, + "dependencies": { + "deep-extend": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.0.tgz", + "integrity": "sha1-bvSgmwX5iw41jW2T1Mo8rsZnKAM=", + "dev": true + } + } + }, + "ipld-dag-cbor": { + "version": "0.11.2", + "resolved": "https://registry.npmjs.org/ipld-dag-cbor/-/ipld-dag-cbor-0.11.2.tgz", + "integrity": "sha512-6fUTMBd4I/HBhUSw5wkxh4Zmae3XN9BQ0UPEmF9s0nM0FOEtP0tPBKlrct7jwXFClH4QbMZb0TlKvW1MflDAzA==", + "dev": true, + "requires": { + "async": "2.6.0", + "borc": "2.0.2", + "bs58": "4.0.1", + "cids": "0.5.2", + "is-circular": "1.0.1", + "multihashes": "0.4.12", + "multihashing-async": "0.4.7", + "traverse": "0.6.6" + } + }, + "ipld-dag-pb": { + "version": "0.11.3", + "resolved": "https://registry.npmjs.org/ipld-dag-pb/-/ipld-dag-pb-0.11.3.tgz", + "integrity": "sha512-EVu9hxlvvZQyEmV27vokBJbi3EgAJZYPYAbEvutcW3gQidADlgRx8R7WJ6+w/aL80H6ZyMuzR/8JT91YsoZNeA==", + "dev": true, + "requires": { + "async": "2.6.0", + "bs58": "4.0.1", + "buffer-loader": "0.0.1", + "cids": "0.5.2", + "ipfs-block": "0.6.1", + "is-ipfs": "0.3.2", + "multihashes": "0.4.12", + "multihashing-async": "0.4.7", + "protons": "1.0.0", + "pull-stream": "3.6.1", + "pull-traverse": "1.0.3", + "stable": "0.1.6" + } + }, + "ipld-ethereum": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/ipld-ethereum/-/ipld-ethereum-1.4.4.tgz", + "integrity": "sha512-GxDfr8YYVSefb6Ju1TywHU6Ymuwx//X1sEmRuDFGYxD/pxJJrDLhSBRjbsq8BIaxSjIRTNkcmyxHKp4bhAZvlw==", + "dev": true, + "requires": { + "async": "2.6.0", + "cids": "0.5.2", + "ethereumjs-account": "2.0.4", + "ethereumjs-block": "1.7.0", + "ethereumjs-tx": "1.3.3", + "ipfs-block": "0.6.1", + "merkle-patricia-tree": "2.2.0", + "multihashes": "0.4.12", + "multihashing-async": "0.4.7", + "rlp": "2.0.0" + } + }, + "ipld-git": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/ipld-git/-/ipld-git-0.1.1.tgz", + "integrity": "sha512-jAfbZiEtigB21v6if/L6crAVywYKblXWCzXC0TtPMIZIfVvFWKs0waVU2Sp6KdcitEZSZDe3RVxEFhnJrSk2IQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "cids": "0.5.2", + "multicodec": "0.2.5", + "multihashes": "0.4.12", + "multihashing-async": "0.4.7", + "smart-buffer": "4.0.1", + "traverse": "0.6.6" + } + }, + "ipld-raw": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/ipld-raw/-/ipld-raw-1.0.7.tgz", + "integrity": "sha512-Epbw/40NahfDssRuSOGJ7GXbdOykizGQsgb6r4Fisor0PYPmY8ZwNbR5w5qRr3sPbIB5eGvgCX5hSEERcCj23w==", + "dev": true, + "requires": { + "cids": "0.5.2" + } + }, + "ipld-resolver": { + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/ipld-resolver/-/ipld-resolver-0.13.4.tgz", + "integrity": "sha512-jyMYvSESTocKGYuI5b6WCP7650GId9W/SalIr3fvk23Q8w2T/TuIaYOSyaalZasNy+gxzFqxAU8KtNe++7/w+Q==", + "dev": true, + "requires": { + "async": "2.6.0", + "cids": "0.5.2", + "interface-datastore": "0.3.1", + "ipfs-block": "0.6.1", + "ipfs-block-service": "0.12.0", + "ipfs-repo": "0.17.0", + "ipld-dag-cbor": "0.11.2", + "ipld-dag-pb": "0.11.3", + "ipld-ethereum": "1.4.4", + "ipld-git": "0.1.1", + "ipld-raw": "1.0.7", + "is-ipfs": "0.3.2", + "lodash.flatten": "4.4.0", + "lodash.includes": "4.3.0", + "memdown": "1.4.1", + "multihashes": "0.4.12", + "pull-sort": "1.0.1", + "pull-stream": "3.6.1", + "pull-traverse": "1.0.3" + }, + "dependencies": { + "datastore-core": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/datastore-core/-/datastore-core-0.3.0.tgz", + "integrity": "sha1-yoguDqTQr86H1PujZZjTGr13K0k=", + "dev": true, + "requires": { + "async": "2.6.0", + "interface-datastore": "0.3.1", + "left-pad": "1.2.0", + "pull-many": "1.0.8", + "pull-stream": "3.6.1" + } + }, + "datastore-level": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/datastore-level/-/datastore-level-0.6.0.tgz", + "integrity": "sha1-MYulZF2fjWzgUdJh5sPF+B/d+DE=", + "dev": true, + "requires": { + "datastore-core": "0.3.0", + "interface-datastore": "0.3.1", + "level-js": "2.2.4", + "leveldown": "1.9.0", + "levelup": "1.3.9", + "pull-stream": "3.6.1" + }, + "dependencies": { + "level-js": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/level-js/-/level-js-2.2.4.tgz", + "integrity": "sha1-vAVfQYBjXUSJtWHJSG+jcOjBFpc=", + "dev": true, + "requires": { + "abstract-leveldown": "0.12.4", + "idb-wrapper": "1.7.1", + "isbuffer": "0.0.0", + "ltgt": "2.2.0", + "typedarray-to-buffer": "1.0.4", + "xtend": "2.1.2" + } + } + } + }, + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "interface-datastore": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-0.3.1.tgz", + "integrity": "sha512-xoHrLkKZQpxhHOd+8ET2fW6jKxXTzl4o71/A59X5JhzwUDJb6Az5G8//RUtNJxQbyRU3k3q5uDMMu9v1hyF7cA==", + "dev": true, + "requires": { + "async": "2.6.0", + "libp2p-crypto": "0.10.3", + "pull-defer": "0.2.2", + "pull-stream": "3.6.1", + "uuid": "3.1.0" + } + }, + "ipfs-repo": { + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/ipfs-repo/-/ipfs-repo-0.17.0.tgz", + "integrity": "sha1-WyuEsrvW3jJQTooqpZdNTdD4Q4k=", + "dev": true, + "requires": { + "async": "2.6.0", + "base32.js": "0.1.0", + "cids": "0.5.2", + "datastore-core": "0.3.0", + "datastore-fs": "0.3.0", + "datastore-level": "0.6.0", + "debug": "2.6.9", + "interface-datastore": "0.3.1", + "ipfs-block": "0.6.1", + "level-js": "github:timkuijsten/level.js#18e03adab34c49523be7d3d58fafb0c632f61303", + "leveldown": "1.9.0", + "lock-me": "1.0.3", + "lodash.get": "4.4.2", + "lodash.has": "4.5.2", + "lodash.set": "4.3.2", + "multiaddr": "2.3.0", + "safe-buffer": "5.1.1" + } + }, + "level-js": { + "version": "github:timkuijsten/level.js#18e03adab34c49523be7d3d58fafb0c632f61303", + "dev": true, + "requires": { + "abstract-leveldown": "2.4.1", + "idb-readable-stream": "0.0.4", + "ltgt": "2.2.0", + "xtend": "4.0.1" + }, + "dependencies": { + "abstract-leveldown": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.4.1.tgz", + "integrity": "sha1-s7/tuITraToSd18MVenwpCDM7mQ=", + "dev": true, + "requires": { + "xtend": "4.0.1" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "multiaddr": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-2.3.0.tgz", + "integrity": "sha1-VmNIJPSLy9hAX9VDTDGyd0JMYvw=", + "dev": true, + "requires": { + "bs58": "4.0.1", + "ip": "1.1.5", + "lodash.filter": "4.6.0", + "lodash.map": "4.6.0", + "varint": "5.0.0", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "typedarray-to-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-1.0.4.tgz", + "integrity": "sha1-m7i6DoQfs/TPH+fCRenz+opf6Zw=", + "dev": true + } + } + }, + "iron": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/iron/-/iron-4.0.5.tgz", + "integrity": "sha1-TwQszri5c480a1mqc0yDqJvDFCg=", + "dev": true, + "requires": { + "boom": "5.2.0", + "cryptiles": "3.1.2", + "hoek": "4.2.0" + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "1.11.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-builtin-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-1.0.0.tgz", + "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", + "dev": true, + "requires": { + "builtin-modules": "1.1.1" + } + }, + "is-circular": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-circular/-/is-circular-1.0.1.tgz", + "integrity": "sha1-ZbBHaoWI5Ua4CHwdZtTAjYKjFnk=", + "dev": true + }, + "is-dotfile": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-dotfile/-/is-dotfile-1.0.3.tgz", + "integrity": "sha1-pqLzL/0t+wT1yiXs0Pa4PPeYoeE=", + "dev": true + }, + "is-equal-shallow": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz", + "integrity": "sha1-IjgJj8Ih3gvPpdnqxMRdY4qhxTQ=", + "dev": true, + "requires": { + "is-primitive": "2.0.0" + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-extglob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", + "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "1.0.1" + } + }, + "is-glob": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", + "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", + "dev": true, + "requires": { + "is-extglob": "1.0.0" + } + }, + "is-hex-prefixed": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-hex-prefixed/-/is-hex-prefixed-1.0.0.tgz", + "integrity": "sha1-fY035q135dEnFIkTxXPggtd39VQ=", + "dev": true + }, + "is-installed-globally": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.1.0.tgz", + "integrity": "sha1-Df2Y9akRFxbdU13aZJL2e/PSWoA=", + "dev": true, + "requires": { + "global-dirs": "0.1.1", + "is-path-inside": "1.0.0" + } + }, + "is-ipfs": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-ipfs/-/is-ipfs-0.3.2.tgz", + "integrity": "sha512-82V1j4LMkYy7H4seQQzOWqo7FiW3I64/1/ryo3dhtWKfOvm7ZolLMRQQfGKs4OXWauh5rAkPnamVcRISHwhmpQ==", + "dev": true, + "requires": { + "bs58": "4.0.1", + "cids": "0.5.2", + "multihashes": "0.4.12" + } + }, + "is-npm": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-1.0.0.tgz", + "integrity": "sha1-8vtjpl5JBbQGyGBydloaTceTufQ=", + "dev": true + }, + "is-number": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-2.1.0.tgz", + "integrity": "sha1-Afy7s5NGOlSPL0ZszhbezknbkI8=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + } + }, + "is-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-1.0.1.tgz", + "integrity": "sha1-PkcprB9f3gJc19g6iW2rn09n2w8=", + "dev": true + }, + "is-path-inside": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-1.0.0.tgz", + "integrity": "sha1-/AbloWg/vaE95mev9xe7wQpI838=", + "dev": true, + "requires": { + "path-is-inside": "1.0.2" + } + }, + "is-posix-bracket": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz", + "integrity": "sha1-MzTceXdDaOkvAW5vvAqI9c1ua8Q=", + "dev": true + }, + "is-primitive": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-primitive/-/is-primitive-2.0.0.tgz", + "integrity": "sha1-IHurkWOEmcB7Kt8kCkGochADRXU=", + "dev": true + }, + "is-promise": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-1.0.1.tgz", + "integrity": "sha1-MVc3YcBX4zwukaq56W2gjO++duU=", + "dev": true + }, + "is-redirect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-redirect/-/is-redirect-1.0.0.tgz", + "integrity": "sha1-HQPd7VO9jbDzDCbk+V02/HyH3CQ=", + "dev": true + }, + "is-retry-allowed": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-1.1.0.tgz", + "integrity": "sha1-EaBgVotnM5REAz0BJaYaINVk+zQ=", + "dev": true + }, + "is-stream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", + "integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=", + "dev": true + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isbuffer": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/isbuffer/-/isbuffer-0.0.0.tgz", + "integrity": "sha1-OMFG2d9Si4v5sHAcPUPPEt8/w5s=", + "dev": true + }, + "isemail": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/isemail/-/isemail-2.2.1.tgz", + "integrity": "sha1-A1PT2aYpUQgMJiwqoKQrjqjp4qY=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + }, + "items": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/items/-/items-2.1.1.tgz", + "integrity": "sha1-i9FtnIOxlSneWuoyGsqtp4NkoZg=", + "dev": true + }, + "joi": { + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/joi/-/joi-10.6.0.tgz", + "integrity": "sha512-hBF3LcqyAid+9X/pwg+eXjD2QBZI5eXnBFJYaAkH4SK3mp9QSRiiQnDYlmlz5pccMvnLcJRS4whhDOTCkmsAdQ==", + "dev": true, + "requires": { + "hoek": "4.2.0", + "isemail": "2.2.1", + "items": "2.1.1", + "topo": "2.0.2" + } + }, + "js-sha3": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/js-sha3/-/js-sha3-0.6.1.tgz", + "integrity": "sha1-W4n3enR3Z5h39YxKB1JAk0sflcA=", + "dev": true + }, + "js-tokens": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", + "dev": true + }, + "jsbn": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.0.tgz", + "integrity": "sha1-ZQmH2g3XT06/WhE3eiqi0nPpff0=", + "dev": true + }, + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=", + "dev": true + }, + "json-loader": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/json-loader/-/json-loader-0.5.7.tgz", + "integrity": "sha512-QLPs8Dj7lnf3e3QYS1zkCo+4ZwqOiF9d/nZnYozTISxXWCfNs9yuky5rJw4/W34s7POaNlbZmQGaB5NiXCbP4w==", + "dev": true + }, + "json-schema-traverse": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.3.1.tgz", + "integrity": "sha1-NJptRMU6Ud6JtAgFxdXlm0F9M0A=", + "dev": true + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", + "dev": true + }, + "json-text-sequence": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/json-text-sequence/-/json-text-sequence-0.1.1.tgz", + "integrity": "sha1-py8hfcSvxGKf/1/rME3BvVGi89I=", + "dev": true, + "requires": { + "delimit-stream": "0.1.0" + } + }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=", + "dev": true + }, + "k-bucket": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/k-bucket/-/k-bucket-3.3.0.tgz", + "integrity": "sha512-WIAQ54LfNjzt4viUIEVnXo9cr7ALS9Yocg+USLoiO89Uvbf9hz0OBtqmfzSr49kT3vbnhlzFfsJHFQ0xnp7LbA==", + "dev": true, + "requires": { + "buffer-equals": "1.0.4", + "inherits": "2.0.3", + "randombytes": "2.0.5" + } + }, + "keccak": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/keccak/-/keccak-1.3.0.tgz", + "integrity": "sha512-JgsKPxYhcJxKrV+TrCyg/GwZbOjhpRPrz2kG8xbAsUaIDelUlKjm08YcwBO9Fm8sqf/Kg8ZWkk6nWujhLykfvw==", + "dev": true, + "requires": { + "bindings": "1.3.0", + "inherits": "2.0.3", + "nan": "2.7.0", + "prebuild-install": "2.3.0", + "safe-buffer": "5.1.1" + } + }, + "keccakjs": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/keccakjs/-/keccakjs-0.2.1.tgz", + "integrity": "sha1-HWM6+QfvMFu/ny+mFtVsRFYd+k0=", + "dev": true, + "requires": { + "browserify-sha3": "0.0.1", + "sha3": "1.2.0" + } + }, + "keypair": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/keypair/-/keypair-1.0.1.tgz", + "integrity": "sha1-dgNxknCvtlZO04oiCHoG/Jqk6hs=", + "dev": true + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + }, + "latest-version": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-3.1.0.tgz", + "integrity": "sha1-ogU4P+oyKzO1rjsYq+4NwvNW7hU=", + "dev": true, + "requires": { + "package-json": "4.0.1" + } + }, + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "dev": true + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "dev": true, + "requires": { + "invert-kv": "1.0.0" + } + }, + "left-pad": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/left-pad/-/left-pad-1.2.0.tgz", + "integrity": "sha1-0wpzxrggHY99jnlWupYWCHpo4O4=", + "dev": true + }, + "length-prefixed-stream": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/length-prefixed-stream/-/length-prefixed-stream-1.5.1.tgz", + "integrity": "sha1-mer1FnLd3vv92Ige57e33zXR7XM=", + "dev": true, + "requires": { + "readable-stream": "2.3.3", + "varint": "5.0.0" + } + }, + "level-codec": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/level-codec/-/level-codec-7.0.1.tgz", + "integrity": "sha512-Ua/R9B9r3RasXdRmOtd+t9TCOEIIlts+TN/7XTT2unhDaL6sJn83S3rUyljbr6lVtw49N3/yA0HHjpV6Kzb2aQ==", + "dev": true + }, + "level-errors": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/level-errors/-/level-errors-1.0.5.tgz", + "integrity": "sha512-/cLUpQduF6bNrWuAC4pwtUKA5t669pCsCi2XbmojG2tFeOr9j6ShtdDCtFFQO1DRt+EVZhx9gPzP9G2bUaG4ig==", + "dev": true, + "requires": { + "errno": "0.1.4" + } + }, + "level-iterator-stream": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/level-iterator-stream/-/level-iterator-stream-1.3.1.tgz", + "integrity": "sha1-5Dt4sagUPm+pek9IXrjqUwNS8u0=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "level-errors": "1.0.5", + "readable-stream": "1.1.14", + "xtend": "4.0.1" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.1.14", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", + "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "level-js": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/level-js/-/level-js-2.2.4.tgz", + "integrity": "sha1-vAVfQYBjXUSJtWHJSG+jcOjBFpc=", + "dev": true, + "requires": { + "abstract-leveldown": "0.12.4", + "idb-wrapper": "1.7.1", + "isbuffer": "0.0.0", + "ltgt": "2.2.0", + "typedarray-to-buffer": "1.0.4", + "xtend": "2.1.2" + }, + "dependencies": { + "typedarray-to-buffer": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-1.0.4.tgz", + "integrity": "sha1-m7i6DoQfs/TPH+fCRenz+opf6Zw=", + "dev": true + } + } + }, + "level-ws": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/level-ws/-/level-ws-0.0.0.tgz", + "integrity": "sha1-Ny5RIXeSSgBCSwtDrvK7QkltIos=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "2.1.2" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + } + } + }, + "leveldown": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/leveldown/-/leveldown-1.9.0.tgz", + "integrity": "sha512-3MwcrnCUIuFiKp/jSrG1UqDTV4k1yH8f5HH6T9dpqCKG+lRxcfo2KwAqbzTT+TTKfCbaATeHMy9mm1y6sI3ZvA==", + "dev": true, + "requires": { + "abstract-leveldown": "2.7.2", + "bindings": "1.3.0", + "fast-future": "1.0.2", + "nan": "2.7.0", + "prebuild-install": "2.3.0" + }, + "dependencies": { + "abstract-leveldown": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.7.2.tgz", + "integrity": "sha512-+OVvxH2rHVEhWLdbudP6p0+dNMXu8JA1CbhP19T8paTYAcX7oJ4OVjT+ZUVpv7mITxXHqDMej+GdqXBmXkw09w==", + "dev": true, + "requires": { + "xtend": "4.0.1" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "levelup": { + "version": "1.3.9", + "resolved": "https://registry.npmjs.org/levelup/-/levelup-1.3.9.tgz", + "integrity": "sha512-VVGHfKIlmw8w1XqpGOAGwq6sZm2WwWLmlDcULkKWQXEA5EopA8OBNJ2Ck2v6bdk8HeEZSbCSEgzXadyQFm76sQ==", + "dev": true, + "requires": { + "deferred-leveldown": "1.2.2", + "level-codec": "7.0.1", + "level-errors": "1.0.5", + "level-iterator-stream": "1.3.1", + "prr": "1.0.1", + "semver": "5.4.1", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "libp2p": { + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/libp2p/-/libp2p-0.12.4.tgz", + "integrity": "sha512-u5ZgtZjET6XHwQA61PyP8urQfMcbsrR7NQxbrpzeDGGXTXWrHgtRnsekhjfOl59+8GRNrqkkbkYG1SCYqrfGug==", + "dev": true, + "requires": { + "async": "2.6.0", + "libp2p-ping": "0.6.0", + "libp2p-swarm": "0.32.4", + "mafmt": "3.0.2", + "multiaddr": "3.0.1", + "peer-book": "0.5.1", + "peer-id": "0.10.2", + "peer-info": "0.11.1" + } + }, + "libp2p-crypto": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/libp2p-crypto/-/libp2p-crypto-0.10.3.tgz", + "integrity": "sha512-E03YpbwOOQzEunR0OpWtuU8LPcBJnVZEfwCsVP17ngLH5pMhzIy3t9imEOkMT6vLnsxe25Q/HIiipNgRDxyd5g==", + "dev": true, + "requires": { + "asn1.js": "4.9.2", + "async": "2.6.0", + "browserify-aes": "1.1.1", + "keypair": "1.0.1", + "libp2p-crypto-secp256k1": "0.2.2", + "multihashing-async": "0.4.7", + "pem-jwk": "1.5.1", + "protons": "1.0.0", + "rsa-pem-to-jwk": "1.1.3", + "tweetnacl": "1.0.0", + "webcrypto-shim": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8" + } + }, + "libp2p-crypto-secp256k1": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/libp2p-crypto-secp256k1/-/libp2p-crypto-secp256k1-0.2.2.tgz", + "integrity": "sha1-DdUh8Yq8TjahUuJOmzYwewrpzwU=", + "dev": true, + "requires": { + "async": "2.6.0", + "multihashing-async": "0.4.7", + "nodeify": "1.0.1", + "safe-buffer": "5.1.1", + "secp256k1": "3.3.1" + } + }, + "libp2p-floodsub": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/libp2p-floodsub/-/libp2p-floodsub-0.11.1.tgz", + "integrity": "sha512-3RwzR6MWIPMclgXm8QtnfSz1h3n6OhslvGH/wM96BeVmELPTIh/jjVuZss8GDHpT4U1Uqq6FCOsMbZTC5vddfA==", + "dev": true, + "requires": { + "async": "2.6.0", + "debug": "3.0.1", + "length-prefixed-stream": "1.5.1", + "libp2p-crypto": "0.10.3", + "lodash.values": "4.3.0", + "protons": "1.0.0", + "pull-pushable": "2.1.1", + "time-cache": "0.3.0" + } + }, + "libp2p-identify": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/libp2p-identify/-/libp2p-identify-0.6.1.tgz", + "integrity": "sha512-9Cv86QKBWGbyBgO1pj70+tSqcYttovH6D7YuZtM9MeP03qMIAnpPdBHIYWTs0e9M9if55xayRfiULc6LjAX62A==", + "dev": true, + "requires": { + "multiaddr": "3.0.1", + "peer-id": "0.10.2", + "peer-info": "0.11.1", + "protons": "1.0.0", + "pull-length-prefixed": "1.3.0", + "pull-stream": "3.6.1" + } + }, + "libp2p-kad-dht": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/libp2p-kad-dht/-/libp2p-kad-dht-0.5.1.tgz", + "integrity": "sha512-dhsqNAlAszCH6D7BZxtiEgQa6d+40SxuwI2L4STjgc9ew87amu7wSvof0QJ2FGxftjvjvvevKYm0j1MtGmdQzQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "base32.js": "0.1.0", + "cids": "0.5.2", + "debug": "3.0.1", + "hashlru": "2.2.0", + "heap": "0.2.6", + "interface-datastore": "0.3.1", + "k-bucket": "3.3.0", + "libp2p-crypto": "0.10.3", + "libp2p-record": "0.5.1", + "multihashing-async": "0.4.7", + "peer-id": "0.10.2", + "peer-info": "0.11.1", + "priorityqueue": "0.2.0", + "protons": "1.0.0", + "pull-length-prefixed": "1.3.0", + "pull-stream": "3.6.1", + "safe-buffer": "5.1.1", + "varint": "5.0.0", + "xor-distance": "1.0.0" + }, + "dependencies": { + "interface-datastore": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/interface-datastore/-/interface-datastore-0.3.1.tgz", + "integrity": "sha512-xoHrLkKZQpxhHOd+8ET2fW6jKxXTzl4o71/A59X5JhzwUDJb6Az5G8//RUtNJxQbyRU3k3q5uDMMu9v1hyF7cA==", + "dev": true, + "requires": { + "async": "2.6.0", + "libp2p-crypto": "0.10.3", + "pull-defer": "0.2.2", + "pull-stream": "3.6.1", + "uuid": "3.1.0" + } + } + } + }, + "libp2p-mdns": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/libp2p-mdns/-/libp2p-mdns-0.9.1.tgz", + "integrity": "sha512-nmbHsN3bX8aFo0XCdS12R9MTiC+x/D3PDQty5nF3MCYs2U/P77ez5Bg4eutChPs0LsqFbA4Uwea0lD5OWDbs4w==", + "dev": true, + "requires": { + "libp2p-tcp": "0.11.1", + "multiaddr": "3.0.1", + "multicast-dns": "6.2.1", + "peer-id": "0.10.2", + "peer-info": "0.11.1" + } + }, + "libp2p-multiplex": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/libp2p-multiplex/-/libp2p-multiplex-0.5.0.tgz", + "integrity": "sha512-cZjK66wr2zcaC5sW0QjBZ/lXouBlYQ9Hr3Y6j2DImTtOjPufccnaULkCxbnpnfQ/g52AEsIQh0DlwW4L0gZ8Ag==", + "dev": true, + "requires": { + "async": "2.6.0", + "multiplex": "github:dignifiedquire/multiplex#b5d5edd30454e2c978ee8c52df86f5f4840d2eab", + "pull-catch": "1.0.0", + "pull-stream": "3.6.1", + "pull-stream-to-stream": "1.3.4", + "stream-to-pull-stream": "1.7.2" + } + }, + "libp2p-ping": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/libp2p-ping/-/libp2p-ping-0.6.0.tgz", + "integrity": "sha512-e+J3IsF6B1oV4l534di/5kyAIJ1wjzACdpYpHF87pdEX+CFJGgCtYa2Kup/vWiBumuEsb2VtWWVlNmZS2HV/FQ==", + "dev": true, + "requires": { + "libp2p-crypto": "0.10.3", + "pull-handshake": "1.1.4", + "pull-stream": "3.6.1" + } + }, + "libp2p-railing": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/libp2p-railing/-/libp2p-railing-0.7.1.tgz", + "integrity": "sha512-IrmBwIhaXpeTMCSoJTTtUPUumO/tQdTV9cmc98rEm+dgJ9Lfl7LgOMQWUdBAcqUC2mrFmBElAphV19DR7jYU1g==", + "dev": true, + "requires": { + "async": "2.6.0", + "debug": "3.0.1", + "lodash": "4.17.4", + "multiaddr": "3.0.1", + "peer-id": "0.10.2", + "peer-info": "0.11.1" + } + }, + "libp2p-record": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/libp2p-record/-/libp2p-record-0.5.1.tgz", + "integrity": "sha512-e2qLv0Tx4yBrGQrTbogWKpRFAM5rhmwTAnm/IfVn8/TzRBcB4F0PTVRB/Wf0eFCa8dNmD6vTn9wyhe+zmcI1zQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "buffer-split": "1.0.0", + "left-pad": "1.2.0", + "multihashes": "0.4.12", + "multihashing-async": "0.4.7", + "peer-id": "0.10.2", + "protons": "1.0.0" + } + }, + "libp2p-secio": { + "version": "0.8.1", + "resolved": "https://registry.npmjs.org/libp2p-secio/-/libp2p-secio-0.8.1.tgz", + "integrity": "sha512-d88KCgvocl+JtmCu1Hz2GzV7mtprN6eSJCqd3DFRGLDEcZuxoam/EuWp9E9j77k6vxuEPTL6odTr089dK0hwRA==", + "dev": true, + "requires": { + "async": "2.6.0", + "debug": "3.0.1", + "interface-connection": "0.3.2", + "libp2p-crypto": "0.10.3", + "multihashing-async": "0.4.7", + "peer-id": "0.10.2", + "protons": "1.0.0", + "pull-defer": "0.2.2", + "pull-handshake": "1.1.4", + "pull-length-prefixed": "1.3.0", + "pull-stream": "3.6.1" + } + }, + "libp2p-swarm": { + "version": "0.32.4", + "resolved": "https://registry.npmjs.org/libp2p-swarm/-/libp2p-swarm-0.32.4.tgz", + "integrity": "sha512-L2mTMoXutMIELenyMJiNZUu7qvXNH4kAdsdkFkgU0rgl4obHuxDtcrECTcJf/nNgy6CTsJ2vy3Y2IFuj+p+haw==", + "dev": true, + "requires": { + "async": "2.6.0", + "browserify-zlib-next": "1.0.1", + "debug": "3.0.1", + "interface-connection": "0.3.2", + "ip-address": "5.8.8", + "libp2p-identify": "0.6.1", + "lodash.includes": "4.3.0", + "multiaddr": "3.0.1", + "multistream-select": "0.13.5", + "once": "1.4.0", + "peer-id": "0.10.2", + "peer-info": "0.11.1", + "pull-stream": "3.6.1" + } + }, + "libp2p-tcp": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/libp2p-tcp/-/libp2p-tcp-0.11.1.tgz", + "integrity": "sha512-8CFykuSedjOqtFhT1X82M7cW+4PDCgnUK5ygkg/vSaQqKdRWMBtVqGId2mCCOJ2aP/nGJ0kp/bP904napI9XKQ==", + "dev": true, + "requires": { + "interface-connection": "0.3.2", + "ip-address": "5.8.8", + "lodash.includes": "4.3.0", + "lodash.isfunction": "3.0.8", + "mafmt": "3.0.2", + "multiaddr": "3.0.1", + "once": "1.4.0", + "stream-to-pull-stream": "1.7.2" + } + }, + "libp2p-webrtc-star": { + "version": "0.13.2", + "resolved": "https://registry.npmjs.org/libp2p-webrtc-star/-/libp2p-webrtc-star-0.13.2.tgz", + "integrity": "sha512-iYtB6sce9AHFujI9QeV0O7cTFkNFV5jAEPnk/pQENhQEpICahcMFNd9YbH/DdKTmF4DzjtNhRGdmfL0R+JB4FQ==", + "dev": true, + "requires": { + "async": "2.6.0", + "debug": "3.0.1", + "detect-node": "2.0.3", + "hapi": "16.6.2", + "interface-connection": "0.3.2", + "mafmt": "3.0.2", + "minimist": "1.2.0", + "multiaddr": "3.0.1", + "once": "1.4.0", + "peer-id": "0.10.2", + "peer-info": "0.11.1", + "pull-stream": "3.6.1", + "simple-peer": "8.1.1", + "socket.io": "2.0.4", + "socket.io-client": "2.0.4", + "stream-to-pull-stream": "1.7.2", + "webrtcsupport": "github:ipfs/webrtcsupport#0669f576582c53a3a42aa5ac014fcc5966809615" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "libp2p-websockets": { + "version": "0.10.4", + "resolved": "https://registry.npmjs.org/libp2p-websockets/-/libp2p-websockets-0.10.4.tgz", + "integrity": "sha512-2o8woNK961Bx6kM3NvTPbkHKprJ3AZyDBKCfIfqTlvcMYv+eP0ZledF4OL6ArN8jb+i0oFSllZa7UqLlFZLSLQ==", + "dev": true, + "requires": { + "interface-connection": "0.3.2", + "lodash.includes": "4.3.0", + "mafmt": "3.0.2", + "pull-ws": "3.3.0" + } + }, + "load-json-file": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "parse-json": "2.2.0", + "pify": "2.3.0", + "strip-bom": "3.0.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "loader-runner": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/loader-runner/-/loader-runner-2.3.0.tgz", + "integrity": "sha1-9IKuqC1UPgeSFwDVpG7yb9rGuKI=", + "dev": true + }, + "loader-utils": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.1.0.tgz", + "integrity": "sha1-yYrvSIvM7aL/teLeZG1qdUQp9c0=", + "dev": true, + "requires": { + "big.js": "3.2.0", + "emojis-list": "2.1.0", + "json5": "0.5.1" + } + }, + "locate-path": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", + "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "dev": true, + "requires": { + "p-locate": "2.0.0", + "path-exists": "3.0.0" + } + }, + "lock": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/lock/-/lock-0.1.4.tgz", + "integrity": "sha1-/sfervF+fDoKVeHaBCgD4l2RdF0=" + }, + "lock-me": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/lock-me/-/lock-me-1.0.3.tgz", + "integrity": "sha512-8Oc/h8ltAtEvq4+qZvqpbopWKEWFmcoI3cVoEWnlVWsoBGihwtw3abO3T4hERswRS0aHY1rIfqnIjo2uBqqlXA==", + "dev": true, + "requires": { + "async": "2.6.0", + "find-process": "1.1.0", + "fs-ext": "github:baudehlo/node-fs-ext#500be8514729c194ac7ca2b30b5bc7eaf812670d", + "nodeify": "1.0.1", + "once": "1.4.0" + } + }, + "lodash": { + "version": "4.17.4", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz", + "integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4=", + "dev": true + }, + "lodash.clonedeep": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz", + "integrity": "sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8=" + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", + "dev": true + }, + "lodash.filter": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.filter/-/lodash.filter-4.6.0.tgz", + "integrity": "sha1-ZosdSYFgOuHMWm+nYBQ+SAtMSs4=", + "dev": true + }, + "lodash.find": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.find/-/lodash.find-4.6.0.tgz", + "integrity": "sha1-ywcE1Hq3F4n/oN6Ll92Sb7iLE7E=", + "dev": true + }, + "lodash.flatmap": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.flatmap/-/lodash.flatmap-4.5.0.tgz", + "integrity": "sha1-74y/QI9uSCaGYzRTBcaswLd4cC4=", + "dev": true + }, + "lodash.flatten": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz", + "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8=", + "dev": true + }, + "lodash.get": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz", + "integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk=", + "dev": true + }, + "lodash.groupby": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz", + "integrity": "sha1-Cwih3PaDl8OXhVwyOXg4Mt90A9E=", + "dev": true + }, + "lodash.has": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/lodash.has/-/lodash.has-4.5.2.tgz", + "integrity": "sha1-0Z9NwQlQWMzL4rDN9O4P5Ko3yGI=", + "dev": true + }, + "lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=", + "dev": true + }, + "lodash.isequalwith": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/lodash.isequalwith/-/lodash.isequalwith-4.4.0.tgz", + "integrity": "sha1-Jmcm3dUo+FTyH06pigZWBuD7xrA=", + "dev": true + }, + "lodash.isfunction": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/lodash.isfunction/-/lodash.isfunction-3.0.8.tgz", + "integrity": "sha1-TbcJ/IG8So/XEnpFilNGxc3OLGs=", + "dev": true + }, + "lodash.isundefined": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/lodash.isundefined/-/lodash.isundefined-3.0.1.tgz", + "integrity": "sha1-I+89lTVWUgOmbO/VuDD4SJEa+0g=", + "dev": true + }, + "lodash.map": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz", + "integrity": "sha1-dx7Hg540c9nEzeKLGTlMNWL09tM=", + "dev": true + }, + "lodash.max": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/lodash.max/-/lodash.max-4.0.1.tgz", + "integrity": "sha1-hzVWbGGLNan3YFILSHrnllivE2o=", + "dev": true + }, + "lodash.merge": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.0.tgz", + "integrity": "sha1-aYhLoUSsM/5plzemCG3v+t0PicU=", + "dev": true + }, + "lodash.padstart": { + "version": "4.6.1", + "resolved": "https://registry.npmjs.org/lodash.padstart/-/lodash.padstart-4.6.1.tgz", + "integrity": "sha1-0uPuv/DZ05rVD1y9G1KnvOa7YRs=", + "dev": true + }, + "lodash.pullallwith": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.pullallwith/-/lodash.pullallwith-4.7.0.tgz", + "integrity": "sha1-ZX5CAHENi1nWlO5SE2Yq4FEdEXA=", + "dev": true + }, + "lodash.pullat": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.pullat/-/lodash.pullat-4.6.0.tgz", + "integrity": "sha1-vfrPDiCf0n+WXnEfplp3SoTTAmE=" + }, + "lodash.range": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/lodash.range/-/lodash.range-3.2.0.tgz", + "integrity": "sha1-9GHliPZmg/fq3q3lE+OKaaVloV0=", + "dev": true + }, + "lodash.repeat": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-4.1.0.tgz", + "integrity": "sha1-/H3oEx2MisB+S0n3T/6CnR8r7EQ=", + "dev": true + }, + "lodash.set": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/lodash.set/-/lodash.set-4.3.2.tgz", + "integrity": "sha1-2HV7HagH3eJIFrDWqEvqGnYjCyM=", + "dev": true + }, + "lodash.sortby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz", + "integrity": "sha1-7dFMgk4sycHgsKG0K7UhBRakJDg=", + "dev": true + }, + "lodash.throttle": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.throttle/-/lodash.throttle-4.1.1.tgz", + "integrity": "sha1-wj6RtxAkKscMN/HhzaknTMOb8vQ=", + "dev": true + }, + "lodash.uniqby": { + "version": "4.7.0", + "resolved": "https://registry.npmjs.org/lodash.uniqby/-/lodash.uniqby-4.7.0.tgz", + "integrity": "sha1-2ZwHpmnp5tJOE2Lf4mbGdhavEwI=", + "dev": true + }, + "lodash.uniqwith": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/lodash.uniqwith/-/lodash.uniqwith-4.5.0.tgz", + "integrity": "sha1-egy/ZfQ7WShiWp1NDcVLGMrcfvM=", + "dev": true + }, + "lodash.values": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.values/-/lodash.values-4.3.0.tgz", + "integrity": "sha1-o6bCsOvsxcLLocF+bmIP6BtT00c=", + "dev": true + }, + "logplease": { + "version": "1.2.14", + "resolved": "https://registry.npmjs.org/logplease/-/logplease-1.2.14.tgz", + "integrity": "sha512-n6bf1Ce0zvcmuyOzDi2xxLix6F1D/Niz7Qa4K3BmkjyaXcovzEjwZKUYsV+0F2Uv4rlXm5cToIEB+ynqSRdwGw==" + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "looper": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/looper/-/looper-2.0.0.tgz", + "integrity": "sha1-Zs0Md0rz1P7axTeU90LbVtqPCew=" + }, + "loose-envify": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", + "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", + "dev": true, + "requires": { + "js-tokens": "3.0.2" + } + }, + "lowercase-keys": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.0.tgz", + "integrity": "sha1-TjNms55/VFfjXxMkvfb4jQv8cwY=", + "dev": true + }, + "lru-cache": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.1.tgz", + "integrity": "sha512-q4spe4KTfsAS1SUHLO0wz8Qiyf1+vMIAgpRYioFYDMNqKfHQbg+AVDH3i4fvpl71/P1L0dBl+fQi+P37UYf0ew==", + "dev": true, + "requires": { + "pseudomap": "1.0.2", + "yallist": "2.1.2" + } + }, + "ltgt": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/ltgt/-/ltgt-2.2.0.tgz", + "integrity": "sha1-tlul/LNJopkkyOMz98alVi8uSEI=", + "dev": true + }, + "mafmt": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mafmt/-/mafmt-3.0.2.tgz", + "integrity": "sha512-BUXP1OceVN2/t2SiMH8iNTGQZ4BQK4iVWUEIT/dIyUqHypiAcUZvtW5u+CSHGcmNT2KopqDkPzhWu1K7Fy8pqg==", + "dev": true, + "requires": { + "multiaddr": "3.0.1" + } + }, + "make-dir": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-1.1.0.tgz", + "integrity": "sha512-0Pkui4wLJ7rxvmfUvs87skoEaxmu0hCUApF8nonzpl7q//FWp9zu8W61Scz4sd/kUiqDxvUhtoam2efDyiBzcA==", + "dev": true, + "requires": { + "pify": "3.0.0" + } + }, + "md5.js": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.4.tgz", + "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", + "dev": true, + "requires": { + "hash-base": "3.0.4", + "inherits": "2.0.3" + }, + "dependencies": { + "hash-base": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", + "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "safe-buffer": "5.1.1" + } + } + } + }, + "mem": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz", + "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", + "dev": true, + "requires": { + "mimic-fn": "1.1.0" + } + }, + "memdown": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/memdown/-/memdown-1.4.1.tgz", + "integrity": "sha1-tOThkhdGZP+65BNhqlAPMRnv4hU=", + "dev": true, + "requires": { + "abstract-leveldown": "2.7.2", + "functional-red-black-tree": "1.0.1", + "immediate": "3.2.3", + "inherits": "2.0.3", + "ltgt": "2.2.0", + "safe-buffer": "5.1.1" + }, + "dependencies": { + "abstract-leveldown": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/abstract-leveldown/-/abstract-leveldown-2.7.2.tgz", + "integrity": "sha512-+OVvxH2rHVEhWLdbudP6p0+dNMXu8JA1CbhP19T8paTYAcX7oJ4OVjT+ZUVpv7mITxXHqDMej+GdqXBmXkw09w==", + "dev": true, + "requires": { + "xtend": "4.0.1" + } + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "memory-fs": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/memory-fs/-/memory-fs-0.4.1.tgz", + "integrity": "sha1-OpoguEYlI+RHz7x+i7gO1me/xVI=", + "dev": true, + "requires": { + "errno": "0.1.4", + "readable-stream": "2.3.3" + } + }, + "merkle-patricia-tree": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/merkle-patricia-tree/-/merkle-patricia-tree-2.2.0.tgz", + "integrity": "sha1-ekeHsSYqsA/psgSrRxsAUzIwbvo=", + "dev": true, + "requires": { + "async": "1.5.2", + "ethereumjs-util": "4.5.0", + "level-ws": "0.0.0", + "levelup": "1.3.9", + "memdown": "1.4.1", + "readable-stream": "2.3.3", + "rlp": "2.0.0", + "semaphore": "1.1.0" + }, + "dependencies": { + "async": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", + "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=", + "dev": true + } + } + }, + "micromatch": { + "version": "2.3.11", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-2.3.11.tgz", + "integrity": "sha1-hmd8l9FyCzY0MdBNDRUpO9OMFWU=", + "dev": true, + "requires": { + "arr-diff": "2.0.0", + "array-unique": "0.2.1", + "braces": "1.8.5", + "expand-brackets": "0.1.5", + "extglob": "0.3.2", + "filename-regex": "2.0.1", + "is-extglob": "1.0.0", + "is-glob": "2.0.1", + "kind-of": "3.2.2", + "normalize-path": "2.1.1", + "object.omit": "2.0.1", + "parse-glob": "3.0.4", + "regex-cache": "0.4.4" + } + }, + "miller-rabin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", + "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "brorand": "1.1.0" + } + }, + "mime-db": { + "version": "1.31.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.31.0.tgz", + "integrity": "sha512-oB3w9lx50CMd6nfonoV5rBRUbJtjMifUHaFb5MfzjC8ksAIfVjT0BsX46SjjqBz7n9JGTrTX3paIeLSK+rS5fQ==", + "dev": true + }, + "mime-types": { + "version": "2.1.17", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.17.tgz", + "integrity": "sha1-Cdejk/A+mVp5+K+Fe3Cp4KsWVXo=", + "dev": true, + "requires": { + "mime-db": "1.30.0" + }, + "dependencies": { + "mime-db": { + "version": "1.30.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.30.0.tgz", + "integrity": "sha1-dMZD2i3Z1qRTmZY0ZbJtXKfXHwE=", + "dev": true + } + } + }, + "mimic-fn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.1.0.tgz", + "integrity": "sha1-5md4PZLonb00KBi1IwudYqZyrRg=", + "dev": true + }, + "mimos": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/mimos/-/mimos-3.0.3.tgz", + "integrity": "sha1-uRCQcq03jCty9qAQHEPd+ys2ZB8=", + "dev": true, + "requires": { + "hoek": "4.2.0", + "mime-db": "1.31.0" + } + }, + "minimalistic-assert": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.0.tgz", + "integrity": "sha1-cCvi3aazf0g2vLP121ZkG2Sh09M=" + }, + "minimalistic-crypto-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", + "integrity": "sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=" + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "1.1.8" + } + }, + "minimist": { + "version": "0.0.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" + }, + "mississippi": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-1.3.0.tgz", + "integrity": "sha1-0gFYPrEjJ+PFwWQqQEqcrPlONPU=", + "dev": true, + "requires": { + "concat-stream": "1.6.0", + "duplexify": "3.5.1", + "end-of-stream": "1.4.0", + "flush-write-stream": "1.0.2", + "from2": "2.3.0", + "parallel-transform": "1.1.0", + "pump": "1.0.3", + "pumpify": "1.3.5", + "stream-each": "1.2.2", + "through2": "2.0.3" + } + }, + "mkdirp": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", + "requires": { + "minimist": "0.0.8" + } + }, + "mocha": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-4.0.1.tgz", + "integrity": "sha512-evDmhkoA+cBNiQQQdSKZa2b9+W2mpLoj50367lhy+Klnx9OV8XlCIhigUnn1gaTFLQCa0kdNhEGDr0hCXOQFDw==", + "dev": true, + "requires": { + "browser-stdout": "1.3.0", + "commander": "2.11.0", + "debug": "3.1.0", + "diff": "3.3.1", + "escape-string-regexp": "1.0.5", + "glob": "7.1.2", + "growl": "1.10.3", + "he": "1.1.1", + "mkdirp": "0.5.1", + "supports-color": "4.4.0" + }, + "dependencies": { + "commander": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz", + "integrity": "sha512-b0553uYA5YAEGgyYIGYROzKQ7X5RAqedkfjiZxwi0kL1g3bOaBNNZfYkzt/CL0umgD5wc9Jec2FbB98CjkMRvQ==", + "dev": true + }, + "debug": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", + "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "supports-color": { + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.4.0.tgz", + "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "move-concurrently": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/move-concurrently/-/move-concurrently-1.0.1.tgz", + "integrity": "sha1-viwAX9oy4LKa8fBdfEszIUxwH5I=", + "dev": true, + "requires": { + "aproba": "1.2.0", + "copy-concurrently": "1.0.5", + "fs-write-stream-atomic": "1.0.10", + "mkdirp": "0.5.1", + "rimraf": "2.6.2", + "run-queue": "1.0.3" + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + }, + "multiaddr": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/multiaddr/-/multiaddr-3.0.1.tgz", + "integrity": "sha512-MnEf7gozRpX+x5sVl38lwv59YX9/HBojJuunINH+ko1/k11RMe3igA2oAOea1wVDltD5xkDnsoVxWnFiRxsScw==", + "dev": true, + "requires": { + "bs58": "4.0.1", + "ip": "1.1.5", + "lodash.filter": "4.6.0", + "lodash.map": "4.6.0", + "varint": "5.0.0", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "multibase": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/multibase/-/multibase-0.3.4.tgz", + "integrity": "sha1-+6iwqslyT2LiR4JVfioGLjDTrn8=", + "dev": true, + "requires": { + "base-x": "3.0.0" + }, + "dependencies": { + "base-x": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/base-x/-/base-x-3.0.0.tgz", + "integrity": "sha1-d7VvAxEHC3gLPIpfU0vqxH5QZwI=", + "dev": true + } + } + }, + "multicast-dns": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/multicast-dns/-/multicast-dns-6.2.1.tgz", + "integrity": "sha512-uV3/ckdsffHx9IrGQrx613mturMdMqQ06WTq+C09NsStJ9iNG6RcUWgPKs1Rfjy+idZT6tfQoXEusGNnEZhT3w==", + "dev": true, + "requires": { + "dns-packet": "1.2.2", + "thunky": "0.1.0" + } + }, + "multicodec": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/multicodec/-/multicodec-0.2.5.tgz", + "integrity": "sha512-83MVRQi0j6cgYP0lqC+7HHbYKYpd074qy94OuzX/elmN8CTMF0/aH0Khb0pcRtALjD2ZFG3lgEy3bhwpCreO1g==", + "dev": true, + "requires": { + "varint": "5.0.0" + } + }, + "multihashes": { + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/multihashes/-/multihashes-0.4.12.tgz", + "integrity": "sha512-NU9bw9v9Lk1yd25qv4/c9Ks5ru85F3U0XBGmgooXX+BHVnHWyhgCZS0fsq0a2Jqjj2hqpT1AKjWw+og0e+OrpQ==", + "requires": { + "bs58": "4.0.1", + "varint": "5.0.0" + } + }, + "multihashing-async": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/multihashing-async/-/multihashing-async-0.4.7.tgz", + "integrity": "sha512-jjW5r2M3zS7YZmylUH1FmrckD6pQXMeMQTAvTJyo83hfTZ3B6fyph7AvHaDdr3M6c4zlmvSCM8jpEItjJ9dxuw==", + "dev": true, + "requires": { + "async": "2.6.0", + "blakejs": "1.1.0", + "js-sha3": "0.6.1", + "multihashes": "0.4.12", + "murmurhash3js": "3.0.1", + "nodeify": "1.0.1" + } + }, + "multipart-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/multipart-stream/-/multipart-stream-2.0.1.tgz", + "integrity": "sha1-GVyctLLEHnjHKh6POMfQ66HNC6A=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "is-stream": "1.1.0", + "sandwich-stream": "1.0.0" + } + }, + "multiplex": { + "version": "github:dignifiedquire/multiplex#b5d5edd30454e2c978ee8c52df86f5f4840d2eab", + "dev": true, + "requires": { + "debug": "2.6.9", + "duplexify": "3.5.1", + "readable-stream": "2.3.3", + "varint": "4.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "varint": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/varint/-/varint-4.0.1.tgz", + "integrity": "sha1-SQgpuULSSEY7KzUJeZXDv3NxmOk=", + "dev": true + } + } + }, + "multistream-select": { + "version": "0.13.5", + "resolved": "https://registry.npmjs.org/multistream-select/-/multistream-select-0.13.5.tgz", + "integrity": "sha1-/jNnYgLmRhkFSu60UzaogcycVOk=", + "dev": true, + "requires": { + "async": "2.6.0", + "debug": "2.6.9", + "interface-connection": "0.3.2", + "lodash.isfunction": "3.0.8", + "lodash.range": "3.2.0", + "once": "1.4.0", + "pull-handshake": "1.1.4", + "pull-length-prefixed": "1.3.0", + "pull-stream": "3.6.1", + "semver": "5.4.1", + "varint": "5.0.0" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "murmurhash3js": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/murmurhash3js/-/murmurhash3js-3.0.1.tgz", + "integrity": "sha1-Ppg+W0fCoG9DpxMXTn5DXKBEuZg=", + "dev": true + }, + "nan": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.7.0.tgz", + "integrity": "sha1-2Vv3IeyHfgjbJ27T/G63j5CDrUY=", + "dev": true + }, + "ndjson": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/ndjson/-/ndjson-1.5.0.tgz", + "integrity": "sha1-rmA7NrE0vOw0e0UkIrC/mNWDLsg=", + "dev": true, + "requires": { + "json-stringify-safe": "5.0.1", + "minimist": "1.2.0", + "split2": "2.2.0", + "through2": "2.0.3" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "negotiator": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.1.tgz", + "integrity": "sha1-KzJxhOiZIQEXeyhWP7XnECrNDKk=", + "dev": true + }, + "nigel": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/nigel/-/nigel-2.0.2.tgz", + "integrity": "sha1-k6GGb7DFLYc5CqdeKxYfS1x15bE=", + "dev": true, + "requires": { + "hoek": "4.2.0", + "vise": "2.0.2" + } + }, + "node-abi": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.1.2.tgz", + "integrity": "sha512-hmUtb8m75RSi7N+zZLYqe75XDvZB+6LyTBPkj2DConvNgQet2e3BIqEwe1LLvqMrfyjabuT5ZOrTioLCH1HTdA==", + "dev": true, + "requires": { + "semver": "5.4.1" + } + }, + "node-libs-browser": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/node-libs-browser/-/node-libs-browser-2.1.0.tgz", + "integrity": "sha512-5AzFzdoIMb89hBGMZglEegffzgRg+ZFoUmisQ8HI4j1KDdpx13J0taNp2y9xPbur6W61gepGDDotGBVQ7mfUCg==", + "dev": true, + "requires": { + "assert": "1.4.1", + "browserify-zlib": "0.2.0", + "buffer": "4.9.1", + "console-browserify": "1.1.0", + "constants-browserify": "1.0.0", + "crypto-browserify": "3.12.0", + "domain-browser": "1.1.7", + "events": "1.1.1", + "https-browserify": "1.0.0", + "os-browserify": "0.3.0", + "path-browserify": "0.0.0", + "process": "0.11.10", + "punycode": "1.4.1", + "querystring-es3": "0.2.1", + "readable-stream": "2.3.3", + "stream-browserify": "2.0.1", + "stream-http": "2.7.2", + "string_decoder": "1.0.3", + "timers-browserify": "2.0.4", + "tty-browserify": "0.0.0", + "url": "0.11.0", + "util": "0.10.3", + "vm-browserify": "0.0.4" + }, + "dependencies": { + "punycode": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", + "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", + "dev": true + } + } + }, + "node-localstorage": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/node-localstorage/-/node-localstorage-1.3.0.tgz", + "integrity": "sha1-LkNqro3Mms6XtDxlwWwNV3vgpVw=", + "requires": { + "write-file-atomic": "1.3.4" + } + }, + "nodeify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/nodeify/-/nodeify-1.0.1.tgz", + "integrity": "sha1-ZKtpp7268DzhB7TwM1yHwLnpGx0=", + "dev": true, + "requires": { + "is-promise": "1.0.1", + "promise": "1.3.0" + } + }, + "noop-logger": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/noop-logger/-/noop-logger-0.1.1.tgz", + "integrity": "sha1-lKKxYzxPExdVMAfYlm/Q6EG2pMI=", + "dev": true + }, + "normalize-package-data": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.0.tgz", + "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", + "dev": true, + "requires": { + "hosted-git-info": "2.5.0", + "is-builtin-module": "1.0.0", + "semver": "5.4.1", + "validate-npm-package-license": "3.0.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "1.1.0" + } + }, + "npm-run-path": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", + "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", + "dev": true, + "requires": { + "path-key": "2.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", + "dev": true, + "requires": { + "are-we-there-yet": "1.1.4", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "object-component": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/object-component/-/object-component-0.0.3.tgz", + "integrity": "sha1-8MaapQ78lbhmwYb0AKM3acsvEpE=", + "dev": true + }, + "object-inspect": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-0.4.0.tgz", + "integrity": "sha1-9RV8EWwUVbJDsG7pdwM5LFrYn+w=", + "dev": true + }, + "object-keys": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz", + "integrity": "sha1-KKaq50KN0sOpLz2V8hM13SBOAzY=", + "dev": true + }, + "object.omit": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/object.omit/-/object.omit-2.0.1.tgz", + "integrity": "sha1-Gpx0SCnznbuFjHbKNXmuKlTr0fo=", + "dev": true, + "requires": { + "for-own": "0.1.5", + "is-extendable": "0.1.1" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1.0.2" + } + }, + "optimist": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz", + "integrity": "sha1-yQlBrVnkJzMokjB00s8ufLxuwNk=", + "dev": true, + "requires": { + "wordwrap": "0.0.3" + } + }, + "optional": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/optional/-/optional-0.1.4.tgz", + "integrity": "sha512-gtvrrCfkE08wKcgXaVwQVgwEQ8vel2dc5DDBn9RLQZ3YtmtkBss6A2HY6BnJH4N/4Ku97Ri/SF8sNWE2225WJw==", + "dev": true, + "optional": true + }, + "options": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/options/-/options-0.0.6.tgz", + "integrity": "sha1-7CLTEoBrtT5zF3Pnza788cZDEo8=", + "dev": true + }, + "orbit-db-cache": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/orbit-db-cache/-/orbit-db-cache-0.0.7.tgz", + "integrity": "sha512-bvIimrujda1di1p0R2I0MY3VmnSz2y8l7Bc4Qvp/jsJpf5jxTIvfC97pGpO6Fm3kUGGZDhKNjY/ZW3VfXoBRFw==", + "requires": { + "fs-pull-blob-store": "0.4.1", + "idb-pull-blob-store": "0.5.1", + "lock": "0.1.4", + "pull-stream": "3.6.1" + } + }, + "orbit-db-counterstore": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/orbit-db-counterstore/-/orbit-db-counterstore-1.0.0.tgz", + "integrity": "sha512-IyL8w8MKm45Wp0iIXBYJgH/trz9/umBFU7LAAETIbxD20PnWNy87cCQka6uLKxcw8axw1tHn7GIYUGSqysBu7A==", + "requires": { + "crdts": "0.0.1", + "orbit-db-store": "2.0.2" + } + }, + "orbit-db-docstore": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/orbit-db-docstore/-/orbit-db-docstore-1.0.1.tgz", + "integrity": "sha512-fxXkqtmGs2VSawayoPckzePQ7HNlrvomQFGBX2jCKeSeKkBtei8gTUHNjrK5rPg2V9Nn5hgoO6YLHSS4YkLvwg==", + "requires": { + "orbit-db-store": "2.0.2", + "p-map": "1.2.0" + } + }, + "orbit-db-eventstore": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/orbit-db-eventstore/-/orbit-db-eventstore-1.0.0.tgz", + "integrity": "sha512-wvDPLKoqxnj1Oz+710n2CjyGNzpoYcT0ldYam2EzYzNkMBxmFOqYKiVddew6RslskzivTTV0KALiCLnjlMmaoA==", + "requires": { + "orbit-db-store": "2.0.2" + } + }, + "orbit-db-feedstore": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/orbit-db-feedstore/-/orbit-db-feedstore-1.0.0.tgz", + "integrity": "sha512-BxCY/MOhR3xhGRETLmerE6RUVskodH8tngYTiRqRM4Eh3f2ISlK7S5rwuHxvZoEgFyTsflcV3lDXH81BQ44g+Q==", + "requires": { + "orbit-db-eventstore": "1.0.0" + } + }, + "orbit-db-keystore": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/orbit-db-keystore/-/orbit-db-keystore-0.0.2.tgz", + "integrity": "sha512-uhf3ynp+/iEIhDOuseyUMO6NdrF/Ke3iwUqQk5wf3oCaxD7oUGC3AQBvyOPprRQhilcOLqFywRCvn5sqFNmYZQ==", + "requires": { + "elliptic": "6.4.0", + "mkdirp": "0.5.1", + "node-localstorage": "1.3.0" + } + }, + "orbit-db-kvstore": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/orbit-db-kvstore/-/orbit-db-kvstore-1.0.0.tgz", + "integrity": "sha512-c0CfFb/2l2h5CCKSD646ofv/xfK2vUoQtvQYRzbJc6brj+p4n1aOCzjoXLkpXg3/5/VZho1sYvFsqYtNSGeiuw==", + "requires": { + "orbit-db-store": "2.0.2" + } + }, + "orbit-db-pubsub": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/orbit-db-pubsub/-/orbit-db-pubsub-0.3.1.tgz", + "integrity": "sha512-YX1HK0Xx0YoMB9hay97LB0pMzhlhARYutL81lEiNyUusBhWzxlQmvHHfOHrbXuVG/rmnXEj4MI/HUxfOTS4Ncg==", + "requires": { + "ipfs-pubsub-room": "github:haadcode/ipfs-pubsub-room#abc74650fc57a22ce0c31754b9667a6948e549d0", + "logplease": "1.2.14" + } + }, + "orbit-db-store": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/orbit-db-store/-/orbit-db-store-2.0.2.tgz", + "integrity": "sha512-ZBrAmeJI3XZ+JeHlwGqchVNaT73llY9yDlTQEocqng8SarLbHngg4n+O+rBY0SyjLuThYdDl4qV4ng2Y6bf0rA==", + "requires": { + "ipfs-log": "4.0.4", + "orbit-db-cache": "0.0.7", + "orbit-db-keystore": "0.0.2", + "readable-stream": "2.3.3" + } + }, + "os-browserify": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", + "integrity": "sha1-hUNzx/XCMVkU/Jv8a9gjj92h7Cc=", + "dev": true + }, + "os-homedir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", + "dev": true + }, + "os-locale": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz", + "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", + "dev": true, + "requires": { + "execa": "0.7.0", + "lcid": "1.0.0", + "mem": "1.1.0" + } + }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", + "dev": true + }, + "p-each-series": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-1.0.0.tgz", + "integrity": "sha1-kw89Et0fUOdDRFeiLNbwSsatf3E=", + "dev": true, + "requires": { + "p-reduce": "1.0.0" + } + }, + "p-finally": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", + "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", + "dev": true + }, + "p-limit": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.1.0.tgz", + "integrity": "sha1-sH/y2aXYi+yAYDWJWiurZqJ5iLw=", + "dev": true + }, + "p-locate": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", + "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "dev": true, + "requires": { + "p-limit": "1.1.0" + } + }, + "p-map": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-1.2.0.tgz", + "integrity": "sha512-r6zKACMNhjPJMTl8KcFH4li//gkrXWfbD6feV8l6doRHlzljFWGJ2AP6iKaCJXyZmAUMOPtvbW7EXkbWO/pLEA==" + }, + "p-map-series": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-map-series/-/p-map-series-1.0.0.tgz", + "integrity": "sha1-v5j+V1cFZYqeE1G++4WuTB8Hvco=", + "dev": true, + "requires": { + "p-reduce": "1.0.0" + } + }, + "p-reduce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-reduce/-/p-reduce-1.0.0.tgz", + "integrity": "sha1-GMKw3ZNqRpClKfgjH1ig/bakffo=", + "dev": true + }, + "p-whilst": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/p-whilst/-/p-whilst-1.0.0.tgz", + "integrity": "sha1-VGaOrX+TR5n8APHlIw/Wrd645+Y=" + }, + "package-json": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/package-json/-/package-json-4.0.1.tgz", + "integrity": "sha1-iGmgQBJTZhxMTKPabCEh7VVfXu0=", + "dev": true, + "requires": { + "got": "6.7.1", + "registry-auth-token": "3.3.1", + "registry-url": "3.1.0", + "semver": "5.4.1" + } + }, + "pako": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.6.tgz", + "integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==", + "dev": true + }, + "parallel-transform": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/parallel-transform/-/parallel-transform-1.1.0.tgz", + "integrity": "sha1-1BDwZbBdojCB/NEPKIVMKb2jOwY=", + "dev": true, + "requires": { + "cyclist": "0.2.2", + "inherits": "2.0.3", + "readable-stream": "2.3.3" + } + }, + "parse-asn1": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.0.tgz", + "integrity": "sha1-N8T5t+06tlx0gXtfJICTf7+XxxI=", + "dev": true, + "requires": { + "asn1.js": "4.9.2", + "browserify-aes": "1.1.1", + "create-hash": "1.1.3", + "evp_bytestokey": "1.0.3", + "pbkdf2": "3.0.14" + } + }, + "parse-glob": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/parse-glob/-/parse-glob-3.0.4.tgz", + "integrity": "sha1-ssN2z7EfNVE7rdFz7wu246OIORw=", + "dev": true, + "requires": { + "glob-base": "0.3.0", + "is-dotfile": "1.0.3", + "is-extglob": "1.0.0", + "is-glob": "2.0.1" + } + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "1.3.1" + } + }, + "parseqs": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/parseqs/-/parseqs-0.0.5.tgz", + "integrity": "sha1-1SCKNzjkZ2bikbouoXNoSSGouJ0=", + "dev": true, + "requires": { + "better-assert": "1.0.2" + } + }, + "parseuri": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/parseuri/-/parseuri-0.0.5.tgz", + "integrity": "sha1-gCBKUNTbt3m/3G6+J3jZDkvOMgo=", + "dev": true, + "requires": { + "better-assert": "1.0.2" + } + }, + "path-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.0.tgz", + "integrity": "sha1-oLhwcpquIUAFt9UDLsLLuw+0RRo=", + "dev": true + }, + "path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-is-inside": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz", + "integrity": "sha1-NlQX3t5EQw0cEa9hAn+s8HS9/FM=", + "dev": true + }, + "path-key": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", + "integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=", + "dev": true + }, + "path-parse": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.5.tgz", + "integrity": "sha1-PBrfhx6pzWyUMbbqK9dKD/BVxME=", + "dev": true + }, + "path-type": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-2.0.0.tgz", + "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", + "dev": true, + "requires": { + "pify": "2.3.0" + }, + "dependencies": { + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + } + } + }, + "pbkdf2": { + "version": "3.0.14", + "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.0.14.tgz", + "integrity": "sha512-gjsZW9O34fm0R7PaLHRJmLLVfSoesxztjPjE9o6R+qtVJij90ltg1joIovN9GKrRW3t1PzhDDG3UMEMFfZ+1wA==", + "dev": true, + "requires": { + "create-hash": "1.1.3", + "create-hmac": "1.1.6", + "ripemd160": "2.0.1", + "safe-buffer": "5.1.1", + "sha.js": "2.4.9" + } + }, + "peer-book": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/peer-book/-/peer-book-0.5.1.tgz", + "integrity": "sha512-BDbOU5lWnEczLzoiYfpje3OMVv5TEP70EQqVqqoe/1/PhkVNbjnq80hhDykc9eSKguP4hGyAArywDzd4YjZ76Q==", + "dev": true, + "requires": { + "bs58": "4.0.1", + "peer-id": "0.10.2", + "peer-info": "0.11.1" + } + }, + "peer-id": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/peer-id/-/peer-id-0.10.2.tgz", + "integrity": "sha512-E5uxAAhbLylyNE2FNWykyGqsRoiOOfprFOkZfCO7yTBFIJc2Gq+l6XKBeyWTQKR/eUizHbzZgexqEDcqFw84iw==", + "dev": true, + "requires": { + "async": "2.6.0", + "libp2p-crypto": "0.10.3", + "lodash": "4.17.4", + "multihashes": "0.4.12" + } + }, + "peer-info": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/peer-info/-/peer-info-0.11.1.tgz", + "integrity": "sha512-CSkBYu6gkEGRCbO7hS4S/drlniMxaZ/oAC7s0XzFDzNB/fTk5pQrgpn261IP4mJCn63leI4+Nl7R2NJecS47QQ==", + "dev": true, + "requires": { + "lodash.uniqby": "4.7.0", + "multiaddr": "3.0.1", + "peer-id": "0.10.2" + } + }, + "pem-jwk": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/pem-jwk/-/pem-jwk-1.5.1.tgz", + "integrity": "sha1-eoY3/S9nqCflfAxC4cI8P9Us+wE=", + "dev": true, + "requires": { + "asn1.js": "1.0.3" + }, + "dependencies": { + "asn1.js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-1.0.3.tgz", + "integrity": "sha1-KBuj7B8kSP52X5Kk7s+IP+E2S1Q=", + "dev": true, + "requires": { + "bn.js": "1.3.0", + "inherits": "2.0.3", + "minimalistic-assert": "1.0.0" + } + }, + "bn.js": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-1.3.0.tgz", + "integrity": "sha1-DbTL+W+PI7dC9by50ap6mZSgXoM=", + "dev": true, + "optional": true + } + } + }, + "pez": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/pez/-/pez-2.1.5.tgz", + "integrity": "sha1-XsLMYlAMw+tCNtSkFM9aF7XrUAc=", + "dev": true, + "requires": { + "b64": "3.0.3", + "boom": "5.2.0", + "content": "3.0.6", + "hoek": "4.2.0", + "nigel": "2.0.2" + } + }, + "pify": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", + "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", + "dev": true + }, + "pkg-dir": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-2.0.0.tgz", + "integrity": "sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s=", + "dev": true, + "requires": { + "find-up": "2.1.0" + } + }, + "podium": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/podium/-/podium-1.3.0.tgz", + "integrity": "sha512-ZIujqk1pv8bRZNVxwwwq0BhXilZ2udycQT3Kp8ah3f3TcTmVg7ILJsv/oLf47gRa2qeiP584lNq+pfvS9U3aow==", + "dev": true, + "requires": { + "hoek": "4.2.0", + "items": "2.1.1", + "joi": "10.6.0" + } + }, + "prebuild-install": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-2.3.0.tgz", + "integrity": "sha512-gzjq2oHB8oMbzJSsSh9MQ64zrXZGt092/uT4TLZlz2qnrPxpWqp4vYB7LZrDxnlxf5RfbCjkgDI/z0EIVuYzAw==", + "dev": true, + "requires": { + "expand-template": "1.1.0", + "github-from-package": "0.0.0", + "minimist": "1.2.0", + "mkdirp": "0.5.1", + "node-abi": "2.1.2", + "noop-logger": "0.1.1", + "npmlog": "4.1.2", + "os-homedir": "1.0.2", + "pump": "1.0.3", + "rc": "1.2.2", + "simple-get": "1.4.3", + "tar-fs": "1.16.0", + "tunnel-agent": "0.6.0", + "xtend": "4.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "prepend-http": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", + "integrity": "sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw=", + "dev": true + }, + "preserve": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/preserve/-/preserve-0.2.0.tgz", + "integrity": "sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=", + "dev": true + }, + "priorityqueue": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/priorityqueue/-/priorityqueue-0.2.0.tgz", + "integrity": "sha1-cXlI4i+DkslXDS12LpDrQRobf5o=", + "dev": true + }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==", + "dev": true + }, + "process": { + "version": "0.11.10", + "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", + "integrity": "sha1-czIwDoQBYb2j5podHZGn1LwW8YI=", + "dev": true + }, + "process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=" + }, + "prom-client": { + "version": "10.2.2", + "resolved": "https://registry.npmjs.org/prom-client/-/prom-client-10.2.2.tgz", + "integrity": "sha512-d3qCBK41qZx00/WVzWOX4tau9FinCztqaECZiGuMI5vGYD//5VSdKMOZPRQKjVh5RkI4Ex98DI0YPsoFnEo1QQ==", + "dev": true, + "optional": true, + "requires": { + "tdigest": "0.1.1" + } + }, + "prometheus-gc-stats": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/prometheus-gc-stats/-/prometheus-gc-stats-0.5.0.tgz", + "integrity": "sha1-3OQasgXx15CfnqYF2FYYEmQEp4k=", + "dev": true, + "optional": true, + "requires": { + "gc-stats": "1.0.2", + "optional": "0.1.4" + } + }, + "promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/promise/-/promise-1.3.0.tgz", + "integrity": "sha1-5cyaTIJ45GZP/twBx9qEhCsEAXU=", + "dev": true, + "requires": { + "is-promise": "1.0.1" + } + }, + "promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", + "dev": true + }, + "promisify-es6": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/promisify-es6/-/promisify-es6-1.0.3.tgz", + "integrity": "sha512-N9iVG+CGJsI4b4ZGazjwLnxErD2d9Pe4DPvvXSxYA9tFNu8ymXME4Qs5HIQ0LMJpNM7zj+m0NlNnNeqFpKzqnA==", + "dev": true + }, + "protocol-buffers-schema": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/protocol-buffers-schema/-/protocol-buffers-schema-3.3.2.tgz", + "integrity": "sha512-Xdayp8sB/mU+sUV4G7ws8xtYMGdQnxbeIfLjyO9TZZRJdztBGhlmbI5x1qcY4TG5hBkIKGnc28i7nXxaugu88w==", + "dev": true + }, + "protons": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/protons/-/protons-1.0.0.tgz", + "integrity": "sha512-n+FhiYi0NMM3A84BeeD4tQ878F6qZnbaoBiO4GjIIzqyd4p5SaGiGwduPbtKeVMrNFuzIuh6jEA7vmw9sExcpQ==", + "dev": true, + "requires": { + "brfs": "1.4.3", + "protocol-buffers-schema": "3.3.2", + "safe-buffer": "5.1.1", + "signed-varint": "2.0.1", + "varint": "5.0.0" + } + }, + "prr": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz", + "integrity": "sha1-0/wRS6BplaRexok/SEzrHXj19HY=", + "dev": true + }, + "pseudomap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", + "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", + "dev": true + }, + "public-encrypt": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.0.tgz", + "integrity": "sha1-OfaZ86RlYN1eusvKaTyvfGXBjMY=", + "dev": true, + "requires": { + "bn.js": "4.11.8", + "browserify-rsa": "4.0.1", + "create-hash": "1.1.3", + "parse-asn1": "5.1.0", + "randombytes": "2.0.5" + } + }, + "pull-batch": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pull-batch/-/pull-batch-1.0.0.tgz", + "integrity": "sha1-OopwhNsOmDxcWb8OB0qkHnU/Alg=", + "dev": true, + "requires": { + "pull-through": "1.0.18" + } + }, + "pull-block": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/pull-block/-/pull-block-1.4.0.tgz", + "integrity": "sha512-nqrFveL9SWdpM9FDkgUVifhbH/dgtK65Pmwa/rrdvB9avE32uWXb1uiemxczfrkqZaG4XVc139KdqfyvPoraoA==", + "dev": true, + "requires": { + "pull-through": "1.0.18" + } + }, + "pull-cat": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/pull-cat/-/pull-cat-1.1.11.tgz", + "integrity": "sha1-tkLdElXaN2pwa220+pYvX9t0wxs=" + }, + "pull-catch": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pull-catch/-/pull-catch-1.0.0.tgz", + "integrity": "sha1-9YA361woLMtQavn3awAn0zkx5Is=", + "dev": true + }, + "pull-defer": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/pull-defer/-/pull-defer-0.2.2.tgz", + "integrity": "sha1-CIew/7MK8ypW2+z6csFnInHwexM=" + }, + "pull-file": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pull-file/-/pull-file-1.0.0.tgz", + "integrity": "sha1-WgywNteO4Q4+C0KT389u/6EDYxg=", + "requires": { + "pull-utf8-decoder": "1.0.2" + } + }, + "pull-fs": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/pull-fs/-/pull-fs-1.1.6.tgz", + "integrity": "sha1-8YT2p3KLtNlWQTdr6tafb2bfR80=", + "dev": true, + "requires": { + "pull-file": "0.5.0", + "pull-stream": "3.6.1", + "pull-traverse": "1.0.3", + "pull-write-file": "0.2.4" + }, + "dependencies": { + "pull-file": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/pull-file/-/pull-file-0.5.0.tgz", + "integrity": "sha1-s8pAUwbggvnUUoKIkzutsrZWNls=", + "dev": true, + "requires": { + "pull-utf8-decoder": "1.0.2" + } + } + } + }, + "pull-glob": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/pull-glob/-/pull-glob-1.0.6.tgz", + "integrity": "sha1-3qWsWUjuFZeNqyTXdyApJ/aK6KY=", + "dev": true, + "requires": { + "pull-fs": "1.1.6", + "pull-stream": "3.6.1" + } + }, + "pull-handshake": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/pull-handshake/-/pull-handshake-1.1.4.tgz", + "integrity": "sha1-YACg/QGIhM39c3JU+Mxgqypjd5E=", + "dev": true, + "requires": { + "pull-cat": "1.1.11", + "pull-pair": "1.1.0", + "pull-pushable": "2.1.1", + "pull-reader": "1.2.9" + } + }, + "pull-length-prefixed": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/pull-length-prefixed/-/pull-length-prefixed-1.3.0.tgz", + "integrity": "sha512-FkxMYPNUSFjEDEXuS6MAaKwagQAN0sonifeC+NeutQmgXy+WBdPOtPzDT1dyT69Io1wzraZ+GzXAbBGnFcjdFQ==", + "dev": true, + "requires": { + "pull-pushable": "2.1.1", + "pull-reader": "1.2.9", + "safe-buffer": "5.1.1", + "varint": "5.0.0" + } + }, + "pull-many": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/pull-many/-/pull-many-1.0.8.tgz", + "integrity": "sha1-Pa3ZttFWxUVyG9qNAAPdjqoGKT4=", + "dev": true, + "requires": { + "pull-stream": "3.6.1" + } + }, + "pull-pair": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pull-pair/-/pull-pair-1.1.0.tgz", + "integrity": "sha1-fuQnJj/fTaglOXrAoF4atLdL120=", + "dev": true + }, + "pull-paramap": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/pull-paramap/-/pull-paramap-1.2.2.tgz", + "integrity": "sha1-UaQZPOnI1yFdla2tReK824STsjo=", + "dev": true, + "requires": { + "looper": "4.0.0" + }, + "dependencies": { + "looper": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/looper/-/looper-4.0.0.tgz", + "integrity": "sha1-dwat7VmpntygbmtUu4bI7BnJUVU=", + "dev": true + } + } + }, + "pull-pause": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/pull-pause/-/pull-pause-0.0.1.tgz", + "integrity": "sha1-xJm0Fhqt2+qE9S6JjlcPol1foiw=", + "dev": true + }, + "pull-pushable": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/pull-pushable/-/pull-pushable-2.1.1.tgz", + "integrity": "sha1-hmZqu+P1QC8ffq0D7v1pt4Xspbg=" + }, + "pull-reader": { + "version": "1.2.9", + "resolved": "https://registry.npmjs.org/pull-reader/-/pull-reader-1.2.9.tgz", + "integrity": "sha1-0umtALz7VOYqpm1Cwtu8tetoQ7A=", + "dev": true + }, + "pull-sort": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/pull-sort/-/pull-sort-1.0.1.tgz", + "integrity": "sha1-qKsMcMhvRTQ8mszJOfxCdprT3G0=", + "dev": true, + "requires": { + "pull-defer": "0.2.2", + "pull-stream": "3.6.1" + } + }, + "pull-stream": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/pull-stream/-/pull-stream-3.6.1.tgz", + "integrity": "sha1-xcKuSlEkbv7rzGXAQSo9clqSzgA=" + }, + "pull-stream-to-stream": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/pull-stream-to-stream/-/pull-stream-to-stream-1.3.4.tgz", + "integrity": "sha1-P4HYIWvRjSv9GhmBkEcRgOJzg5k=", + "dev": true + }, + "pull-through": { + "version": "1.0.18", + "resolved": "https://registry.npmjs.org/pull-through/-/pull-through-1.0.18.tgz", + "integrity": "sha1-jdYjFCY+Wc9Qlur7sSeitu8xBzU=", + "dev": true, + "requires": { + "looper": "3.0.0" + }, + "dependencies": { + "looper": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/looper/-/looper-3.0.0.tgz", + "integrity": "sha1-LvpUw7HLq6m5Su4uWRSwvlf7t0k=", + "dev": true + } + } + }, + "pull-traverse": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pull-traverse/-/pull-traverse-1.0.3.tgz", + "integrity": "sha1-dPtde+f6a9enjpeTPhmbeUWGaTg=", + "dev": true + }, + "pull-utf8-decoder": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/pull-utf8-decoder/-/pull-utf8-decoder-1.0.2.tgz", + "integrity": "sha1-p6+iOE0eZBWl1gIFQSbMjeO8vOc=" + }, + "pull-window": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/pull-window/-/pull-window-2.1.4.tgz", + "integrity": "sha1-/DuG/uvRkgx64pdpHiP3BfiFUvA=", + "requires": { + "looper": "2.0.0" + } + }, + "pull-write": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/pull-write/-/pull-write-1.1.4.tgz", + "integrity": "sha1-3d6jFJO0j2douEooHQHrO1Mf4Lg=", + "requires": { + "looper": "4.0.0", + "pull-cat": "1.1.11", + "pull-stream": "3.6.1" + }, + "dependencies": { + "looper": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/looper/-/looper-4.0.0.tgz", + "integrity": "sha1-dwat7VmpntygbmtUu4bI7BnJUVU=" + } + } + }, + "pull-write-file": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/pull-write-file/-/pull-write-file-0.2.4.tgz", + "integrity": "sha1-Q3NErrIYn2XmeO0a838PdgpUU+8=" + }, + "pull-ws": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/pull-ws/-/pull-ws-3.3.0.tgz", + "integrity": "sha1-4cQ+9AMyFn3YEg71nt9+iSvqSq4=", + "dev": true, + "requires": { + "relative-url": "1.0.2", + "safe-buffer": "5.1.1", + "ws": "1.1.5" + }, + "dependencies": { + "ultron": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.0.2.tgz", + "integrity": "sha1-rOEWq1V80Zc4ak6I9GhTeMiy5Po=", + "dev": true + }, + "ws": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/ws/-/ws-1.1.5.tgz", + "integrity": "sha512-o3KqipXNUdS7wpQzBHSe180lBGO60SoK0yVo3CYJgb2MkobuWuBX6dhkYP5ORCLd55y+SaflMOV5fqAB53ux4w==", + "dev": true, + "requires": { + "options": "0.0.6", + "ultron": "1.0.2" + } + } + } + }, + "pull-zip": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pull-zip/-/pull-zip-2.0.1.tgz", + "integrity": "sha1-4GQc6v+WSvJ1ltqsBwDnmzgQKPU=", + "dev": true + }, + "pump": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", + "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", + "dev": true, + "requires": { + "end-of-stream": "1.4.0", + "once": "1.4.0" + } + }, + "pumpify": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.3.5.tgz", + "integrity": "sha1-G2ccYZlAq8rqwK0OOjwWS+dgmTs=", + "dev": true, + "requires": { + "duplexify": "3.5.1", + "inherits": "2.0.3", + "pump": "1.0.3" + } + }, + "punycode": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.0.tgz", + "integrity": "sha1-X4Y+3Im5bbCQdLrXlHvwkFbKTn0=", + "dev": true + }, + "qs": { + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.1.tgz", + "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==", + "dev": true + }, + "querystring": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", + "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", + "dev": true + }, + "querystring-es3": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", + "integrity": "sha1-nsYfeQSYdXB9aUFFlv2Qek1xHnM=", + "dev": true + }, + "quote-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/quote-stream/-/quote-stream-1.0.2.tgz", + "integrity": "sha1-hJY/jJwmuULhU/7rU6rnRlK34LI=", + "dev": true, + "requires": { + "buffer-equal": "0.0.1", + "minimist": "1.2.0", + "through2": "2.0.3" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "randomatic": { + "version": "1.1.7", + "resolved": "https://registry.npmjs.org/randomatic/-/randomatic-1.1.7.tgz", + "integrity": "sha512-D5JUjPyJbaJDkuAazpVnSfVkLlpeO3wDlPROTMLGKG1zMFNFRgrciKo1ltz/AzNTkqE0HzDx655QOL51N06how==", + "dev": true, + "requires": { + "is-number": "3.0.0", + "kind-of": "4.0.0" + }, + "dependencies": { + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "3.2.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "1.1.6" + } + } + } + }, + "randombytes": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.0.5.tgz", + "integrity": "sha512-8T7Zn1AhMsQ/HI1SjcCfT/t4ii3eAqco3yOcSzS4mozsOz69lHLsoMXmF9nZgnFanYscnSlUSgs8uZyKzpE6kg==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "randomfill": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.3.tgz", + "integrity": "sha512-YL6GrhrWoic0Eq8rXVbMptH7dAxCs0J+mh5Y0euNekPPYaxEmdVGim6GdoxoRzKW2yJoU8tueifS7mYxvcFDEQ==", + "dev": true, + "requires": { + "randombytes": "2.0.5", + "safe-buffer": "5.1.1" + } + }, + "rc": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.2.tgz", + "integrity": "sha1-2M6ctX6NZNnHut2YdsfDTL48cHc=", + "dev": true, + "requires": { + "deep-extend": "0.4.2", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + } + } + }, + "read-pkg": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-2.0.0.tgz", + "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", + "dev": true, + "requires": { + "load-json-file": "2.0.0", + "normalize-package-data": "2.4.0", + "path-type": "2.0.0" + } + }, + "read-pkg-up": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-2.0.0.tgz", + "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", + "dev": true, + "requires": { + "find-up": "2.1.0", + "read-pkg": "2.0.0" + } + }, + "readable-stream": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.3.tgz", + "integrity": "sha512-m+qzzcn7KUxEmd1gMbchF+Y2eIUbieUaxkWtptyHywrX0rE8QEYqPC07Vuy4Wm32/xE16NcdBctb8S0Xe/5IeQ==", + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "1.0.7", + "safe-buffer": "5.1.1", + "string_decoder": "1.0.3", + "util-deprecate": "1.0.2" + } + }, + "readdirp": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.1.0.tgz", + "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", + "dev": true, + "requires": { + "graceful-fs": "4.1.11", + "minimatch": "3.0.4", + "readable-stream": "2.3.3", + "set-immediate-shim": "1.0.1" + } + }, + "regenerate": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.3.3.tgz", + "integrity": "sha512-jVpo1GadrDAK59t/0jRx5VxYWQEDkkEKi6+HjE3joFVLfDOh9Xrdh0dF1eSq+BI/SwvTQ44gSscJ8N5zYL61sg==", + "dev": true + }, + "regenerator-runtime": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz", + "integrity": "sha512-/aA0kLeRb5N9K0d4fw7ooEbI+xDe+DKD499EQqygGqeS8N3xto15p09uY2xj7ixP81sNPXvRLnAQIqdVStgb1A==", + "dev": true + }, + "regenerator-transform": { + "version": "0.10.1", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.10.1.tgz", + "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", + "dev": true, + "requires": { + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "private": "0.1.8" + } + }, + "regex-cache": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/regex-cache/-/regex-cache-0.4.4.tgz", + "integrity": "sha512-nVIZwtCjkC9YgvWkpM55B5rBhBYRZhAaJbgcFYXXsHnbZ9UZI9nnVWYZpBlCqv9ho2eZryPnWrZGsOdPwVWXWQ==", + "dev": true, + "requires": { + "is-equal-shallow": "0.1.3" + } + }, + "regexpu-core": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-2.0.0.tgz", + "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", + "dev": true, + "requires": { + "regenerate": "1.3.3", + "regjsgen": "0.2.0", + "regjsparser": "0.1.5" + } + }, + "registry-auth-token": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-3.3.1.tgz", + "integrity": "sha1-+w0yie4Nmtosu1KvXf5mywcNMAY=", + "dev": true, + "requires": { + "rc": "1.2.2", + "safe-buffer": "5.1.1" + } + }, + "registry-url": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-3.1.0.tgz", + "integrity": "sha1-PU74cPc93h138M+aOBQyRE4XSUI=", + "dev": true, + "requires": { + "rc": "1.2.2" + } + }, + "regjsgen": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.2.0.tgz", + "integrity": "sha1-bAFq3qxVT3WCP+N6wFuS1aTtsfc=", + "dev": true + }, + "regjsparser": { + "version": "0.1.5", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.1.5.tgz", + "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", + "dev": true, + "requires": { + "jsesc": "0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha1-597mbjXW/Bb3EP6R1c9p9w8IkR0=", + "dev": true + } + } + }, + "relative-url": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/relative-url/-/relative-url-1.0.2.tgz", + "integrity": "sha1-0hxSpy1gYQGLzun5yfwQa/fWUoc=", + "dev": true + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.2.tgz", + "integrity": "sha1-7wiaF40Ug7quTZPrmLT55OEdmQo=", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "1.0.2" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "resolve": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.5.0.tgz", + "integrity": "sha512-hgoSGrc3pjzAPHNBg+KnFcK2HwlHTs/YrAGUr6qgTVUZmXv1UEXXl0bZNBKMA9fud6lRYFdPGz0xXxycPzmmiw==", + "dev": true, + "requires": { + "path-parse": "1.0.5" + } + }, + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "dev": true, + "requires": { + "align-text": "0.1.4" + } + }, + "rimraf": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", + "dev": true, + "requires": { + "glob": "7.1.2" + } + }, + "ripemd160": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.1.tgz", + "integrity": "sha1-D0WEKVxTo2KK9+bXmsohzlfRxuc=", + "dev": true, + "requires": { + "hash-base": "2.0.2", + "inherits": "2.0.3" + } + }, + "rlp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/rlp/-/rlp-2.0.0.tgz", + "integrity": "sha1-nbOE/0uJqPYVY9kjldhiWxjzr7A=", + "dev": true + }, + "rsa-pem-to-jwk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/rsa-pem-to-jwk/-/rsa-pem-to-jwk-1.1.3.tgz", + "integrity": "sha1-JF52vbfnI0z+58oDLTG1TDj6uY4=", + "dev": true, + "requires": { + "object-assign": "2.1.1", + "rsa-unpack": "0.0.6" + }, + "dependencies": { + "object-assign": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-2.1.1.tgz", + "integrity": "sha1-Q8NuXVaf+OSBbE76i+AtJpZ8GKo=", + "dev": true + } + } + }, + "rsa-unpack": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/rsa-unpack/-/rsa-unpack-0.0.6.tgz", + "integrity": "sha1-9Q69VqYoN45jHylxYQJs6atO3bo=", + "dev": true, + "requires": { + "optimist": "0.3.7" + } + }, + "run-queue": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/run-queue/-/run-queue-1.0.3.tgz", + "integrity": "sha1-6Eg5bwV9Ij8kOGkkYY4laUFh7Ec=", + "dev": true, + "requires": { + "aproba": "1.2.0" + } + }, + "safe-buffer": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==" + }, + "sandwich-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/sandwich-stream/-/sandwich-stream-1.0.0.tgz", + "integrity": "sha1-eDDkV5e1kzKH8fmyj4cZB0ViYvI=", + "dev": true + }, + "schema-utils": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/schema-utils/-/schema-utils-0.3.0.tgz", + "integrity": "sha1-9YdyIs4+kx7a4DnxfrNxbnE3+M8=", + "dev": true, + "requires": { + "ajv": "5.5.0" + } + }, + "secp256k1": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/secp256k1/-/secp256k1-3.3.1.tgz", + "integrity": "sha512-lygjgfjzjBHblEDDkppUF5KK1EeVk6P/Dv2MsJZpYIR3vW5TKFRexOFkf0hHy9J5YxEpjQZ6x98Y3XQpMQO/vA==", + "dev": true, + "requires": { + "bindings": "1.3.0", + "bip66": "1.1.5", + "bn.js": "4.11.8", + "create-hash": "1.1.3", + "drbg.js": "1.0.1", + "elliptic": "6.4.0", + "nan": "2.7.0", + "prebuild-install": "2.3.0", + "safe-buffer": "5.1.1" + } + }, + "semaphore": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/semaphore/-/semaphore-1.1.0.tgz", + "integrity": "sha512-O4OZEaNtkMd/K0i6js9SL+gqy0ZCBMgUvlSqHKi4IBdjhe7wB8pwztUk1BbZ1fmrvpwFrPbHzqd2w5pTcJH6LA==", + "dev": true + }, + "semver": { + "version": "5.4.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.4.1.tgz", + "integrity": "sha512-WfG/X9+oATh81XtllIo/I8gOiY9EXRdv1cQdyykeXK17YcUW3EXUAi2To4pcH6nZtJPr7ZOpM5OMyWJZm+8Rsg==", + "dev": true + }, + "semver-diff": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-2.1.0.tgz", + "integrity": "sha1-S7uEN8jTfksM8aaP1ybsbWRdbTY=", + "dev": true, + "requires": { + "semver": "5.4.1" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-immediate-shim": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/set-immediate-shim/-/set-immediate-shim-1.0.1.tgz", + "integrity": "sha1-SysbJ+uAip+NzEgaWOXlb1mfP2E=", + "dev": true + }, + "setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", + "dev": true + }, + "sha.js": { + "version": "2.4.9", + "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.9.tgz", + "integrity": "sha512-G8zektVqbiPHrylgew9Zg1VRB1L/DtXNUVAM6q4QLy8NE3qtHlFXTf8VLL4k1Yl6c7NMjtZUTdXV+X44nFaT6A==", + "dev": true, + "requires": { + "inherits": "2.0.3", + "safe-buffer": "5.1.1" + } + }, + "sha3": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/sha3/-/sha3-1.2.0.tgz", + "integrity": "sha1-aYnxtwpJhwWHajc+LGKs6WqpOZo=", + "dev": true, + "requires": { + "nan": "2.7.0" + } + }, + "shallow-copy": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/shallow-copy/-/shallow-copy-0.0.1.tgz", + "integrity": "sha1-QV9CcC1z2BAzApLMXuhurhoRoXA=", + "dev": true + }, + "shebang-command": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", + "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", + "dev": true, + "requires": { + "shebang-regex": "1.0.0" + } + }, + "shebang-regex": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", + "integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=", + "dev": true + }, + "shot": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/shot/-/shot-3.4.2.tgz", + "integrity": "sha1-Hlw/bysmZJrcQvfrNQIUpaApHWc=", + "dev": true, + "requires": { + "hoek": "4.2.0", + "joi": "10.6.0" + } + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "signed-varint": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/signed-varint/-/signed-varint-2.0.1.tgz", + "integrity": "sha1-UKmYnafJjCxh2tEZvJdHDvhSgSk=", + "dev": true, + "requires": { + "varint": "5.0.0" + } + }, + "simple-get": { + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-1.4.3.tgz", + "integrity": "sha1-6XVe2kB+ltpAxeUVjJ6jezO+y+s=", + "dev": true, + "requires": { + "once": "1.4.0", + "unzip-response": "1.0.2", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "simple-peer": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/simple-peer/-/simple-peer-8.1.1.tgz", + "integrity": "sha512-t2zRYgj1HE5lbfkuL2bJ8s8Q60TQfPwOfDj/TA1/N/Qvi8pdj4uEU0bctrZIsHZlzuU7HM+RFR/YBbiLJjHpxQ==", + "dev": true, + "requires": { + "debug": "2.6.9", + "get-browser-rtc": "1.0.2", + "inherits": "2.0.3", + "randombytes": "2.0.5", + "readable-stream": "2.3.3" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=", + "dev": true + }, + "slide": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/slide/-/slide-1.1.6.tgz", + "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=" + }, + "smart-buffer": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.0.1.tgz", + "integrity": "sha512-RFqinRVJVcCAL9Uh1oVqE6FZkqsyLiVOYEZ20TqIOjuX7iFVJ+zsbs4RIghnw/pTs7mZvt8ZHhvm1ZUrR4fykg==", + "dev": true + }, + "socket.io": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io/-/socket.io-2.0.4.tgz", + "integrity": "sha1-waRZDO/4fs8TxyZS8Eb3FrKeYBQ=", + "dev": true, + "requires": { + "debug": "2.6.9", + "engine.io": "3.1.4", + "socket.io-adapter": "1.1.1", + "socket.io-client": "2.0.4", + "socket.io-parser": "3.1.2" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "socket.io-adapter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-1.1.1.tgz", + "integrity": "sha1-KoBeihTWNyEk3ZFZrUUC+MsH8Gs=", + "dev": true + }, + "socket.io-client": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/socket.io-client/-/socket.io-client-2.0.4.tgz", + "integrity": "sha1-CRilUkBtxeVAs4Dc2Xr8SmQzL44=", + "dev": true, + "requires": { + "backo2": "1.0.2", + "base64-arraybuffer": "0.1.5", + "component-bind": "1.0.0", + "component-emitter": "1.2.1", + "debug": "2.6.9", + "engine.io-client": "3.1.4", + "has-cors": "1.1.0", + "indexof": "0.0.1", + "object-component": "0.0.3", + "parseqs": "0.0.5", + "parseuri": "0.0.5", + "socket.io-parser": "3.1.2", + "to-array": "0.1.4" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + } + } + }, + "socket.io-parser": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/socket.io-parser/-/socket.io-parser-3.1.2.tgz", + "integrity": "sha1-28IoIVH8T6675Aru3Ady66YZ9/I=", + "dev": true, + "requires": { + "component-emitter": "1.2.1", + "debug": "2.6.9", + "has-binary2": "1.0.2", + "isarray": "2.0.1" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "dev": true, + "requires": { + "ms": "2.0.0" + } + }, + "isarray": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.1.tgz", + "integrity": "sha1-o32U7ZzaLVmGXJ92/llu4fM4dB4=", + "dev": true + } + } + }, + "source-list-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/source-list-map/-/source-list-map-2.0.0.tgz", + "integrity": "sha512-I2UmuJSRr/T8jisiROLU3A3ltr+swpniSmNPI4Ml3ZCX6tVnDsuZzK7F2hl5jTqbZBWCEKlj5HRQiPExXLgE8A==", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "dev": true, + "requires": { + "source-map": "0.5.7" + } + }, + "sparse-array": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/sparse-array/-/sparse-array-1.3.1.tgz", + "integrity": "sha1-1Wm5i55JIz1EGN5gmFAqSmxB2Dw=", + "dev": true + }, + "spdx-correct": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-1.0.2.tgz", + "integrity": "sha1-SzBz2TP/UfORLwOsVRlJikFQ20A=", + "dev": true, + "requires": { + "spdx-license-ids": "1.2.2" + } + }, + "spdx-expression-parse": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz", + "integrity": "sha1-m98vIOH0DtRH++JzJmGR/O1RYmw=", + "dev": true + }, + "spdx-license-ids": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz", + "integrity": "sha1-yd96NCRZSt5r0RkA1ZZpbcBrrFc=", + "dev": true + }, + "split": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/split/-/split-0.3.3.tgz", + "integrity": "sha1-zQ7qXmOiEd//frDwkcQTPi0N0o8=", + "dev": true, + "requires": { + "through": "2.3.8" + } + }, + "split2": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/split2/-/split2-2.2.0.tgz", + "integrity": "sha512-RAb22TG39LhI31MbreBgIuKiIKhVsawfTgEGqKHTK87aG+ul/PB8Sqoi3I7kVdRWiCfrKxK3uo4/YUkpNvhPbw==", + "dev": true, + "requires": { + "through2": "2.0.3" + } + }, + "sprintf-js": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.1.tgz", + "integrity": "sha1-Nr54Mgr+WAH2zqPueLblqrlA6gw=", + "dev": true + }, + "ssri": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-5.0.0.tgz", + "integrity": "sha512-728D4yoQcQm1ooZvSbywLkV1RjfITZXh0oWrhM/lnsx3nAHx7LsRGJWB/YyvoceAYRq98xqbstiN4JBv1/wNHg==", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "stable": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/stable/-/stable-0.1.6.tgz", + "integrity": "sha1-kQ9dKu17Ugxud3SZwfMuE5/eyxA=", + "dev": true + }, + "statehood": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/statehood/-/statehood-5.0.3.tgz", + "integrity": "sha512-YrPrCt10t3ImH/JMO5szSwX7sCm8HoqVl3VFLOa9EZ1g/qJx/ZmMhN+2uzPPB/vaU6hpkJpXxcBWsgIkkG+MXA==", + "dev": true, + "requires": { + "boom": "5.2.0", + "cryptiles": "3.1.2", + "hoek": "4.2.0", + "iron": "4.0.5", + "items": "2.1.1", + "joi": "10.6.0" + } + }, + "static-eval": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/static-eval/-/static-eval-0.2.4.tgz", + "integrity": "sha1-t9NNg4k3uWn5ZBygfUj47eJj6ns=", + "dev": true, + "requires": { + "escodegen": "0.0.28" + }, + "dependencies": { + "escodegen": { + "version": "0.0.28", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-0.0.28.tgz", + "integrity": "sha1-Dk/xcV8yh3XWyrUaxEpAbNer/9M=", + "dev": true, + "requires": { + "esprima": "1.0.4", + "estraverse": "1.3.2", + "source-map": "0.5.7" + } + }, + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", + "dev": true + }, + "estraverse": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-1.3.2.tgz", + "integrity": "sha1-N8K4k+8T1yPydth41g2FNRUqbEI=", + "dev": true + } + } + }, + "static-module": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/static-module/-/static-module-1.5.0.tgz", + "integrity": "sha1-J9qYg8QajNCSNvhC8MHrxu32PYY=", + "dev": true, + "requires": { + "concat-stream": "1.6.0", + "duplexer2": "0.0.2", + "escodegen": "1.3.3", + "falafel": "2.1.0", + "has": "1.0.1", + "object-inspect": "0.4.0", + "quote-stream": "0.0.0", + "readable-stream": "1.0.34", + "shallow-copy": "0.0.1", + "static-eval": "0.2.4", + "through2": "0.4.2" + }, + "dependencies": { + "isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", + "dev": true + }, + "quote-stream": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/quote-stream/-/quote-stream-0.0.0.tgz", + "integrity": "sha1-zeKelMQJsW4Z3HCYuJtmWPlyHTs=", + "dev": true, + "requires": { + "minimist": "0.0.8", + "through2": "0.4.2" + } + }, + "readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha1-Elgg40vIQtLyqq+v5MKRbuMsFXw=", + "dev": true, + "requires": { + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "0.0.1", + "string_decoder": "0.10.31" + } + }, + "string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", + "dev": true + }, + "through2": { + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.4.2.tgz", + "integrity": "sha1-2/WGYDEVHsg1K7bE22SiKSqEC5s=", + "dev": true, + "requires": { + "readable-stream": "1.0.34", + "xtend": "2.1.2" + } + } + } + }, + "stream-browserify": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", + "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", + "dev": true, + "requires": { + "inherits": "2.0.3", + "readable-stream": "2.3.3" + } + }, + "stream-each": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/stream-each/-/stream-each-1.2.2.tgz", + "integrity": "sha512-mc1dbFhGBxvTM3bIWmAAINbqiuAk9TATcfIQC8P+/+HJefgaiTlMn2dHvkX8qlI12KeYKSQ1Ua9RrIqrn1VPoA==", + "dev": true, + "requires": { + "end-of-stream": "1.4.0", + "stream-shift": "1.0.0" + } + }, + "stream-http": { + "version": "2.7.2", + "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-2.7.2.tgz", + "integrity": "sha512-c0yTD2rbQzXtSsFSVhtpvY/vS6u066PcXOX9kBB3mSO76RiUQzL340uJkGBWnlBg4/HZzqiUXtaVA7wcRcJgEw==", + "dev": true, + "requires": { + "builtin-status-codes": "3.0.0", + "inherits": "2.0.3", + "readable-stream": "2.3.3", + "to-arraybuffer": "1.0.1", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "stream-shift": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, + "stream-to-pull-stream": { + "version": "1.7.2", + "resolved": "https://registry.npmjs.org/stream-to-pull-stream/-/stream-to-pull-stream-1.7.2.tgz", + "integrity": "sha1-dXYJrhzr0zx0MtSvvjH/eGULnd4=", + "dev": true, + "requires": { + "looper": "3.0.0", + "pull-stream": "3.6.1" + }, + "dependencies": { + "looper": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/looper/-/looper-3.0.0.tgz", + "integrity": "sha1-LvpUw7HLq6m5Su4uWRSwvlf7t0k=", + "dev": true + } + } + }, + "streamifier": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/streamifier/-/streamifier-0.1.1.tgz", + "integrity": "sha1-l+mNj6TRBdYqJpHR3AfoINuN/E8=", + "dev": true + }, + "streamsearch": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-0.1.2.tgz", + "integrity": "sha1-gIudDlb8Jz2Am6VzOOkpkZoanxo=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" + } + }, + "string_decoder": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.0.3.tgz", + "integrity": "sha512-4AH6Z5fzNNBcH+6XDMfA/BTt87skxqJlO0lAh3Dker5zThcAxG6mKz+iGu308UKoPPQ8Dcqx/4JhujzltRa+hQ==", + "requires": { + "safe-buffer": "5.1.1" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "2.1.1" + } + }, + "strip-bom": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", + "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", + "dev": true + }, + "strip-eof": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", + "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", + "dev": true + }, + "strip-hex-prefix": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/strip-hex-prefix/-/strip-hex-prefix-1.0.0.tgz", + "integrity": "sha1-DF8VX+8RUTczd96du1iNoFUA428=", + "dev": true, + "requires": { + "is-hex-prefixed": "1.0.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", + "dev": true + }, + "subtext": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/subtext/-/subtext-5.0.0.tgz", + "integrity": "sha512-2nXG1G1V+K64Z20cQII7k0s38J2DSycMXBLMAk9RXUFG0uAkAbLSVoa88croX9VhTdBCJbLAe9g6LmzKwpJhhQ==", + "dev": true, + "requires": { + "boom": "5.2.0", + "content": "3.0.6", + "hoek": "4.2.0", + "pez": "2.1.5", + "wreck": "12.5.1" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + }, + "tapable": { + "version": "0.2.8", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-0.2.8.tgz", + "integrity": "sha1-mTcqXJmb8t8WCvwNdL7U9HlIzSI=", + "dev": true + }, + "tar-fs": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-1.16.0.tgz", + "integrity": "sha512-I9rb6v7mjWLtOfCau9eH5L7sLJyU2BnxtEZRQ5Mt+eRKmf1F0ohXmT/Jc3fr52kDvjJ/HV5MH3soQfPL5bQ0Yg==", + "dev": true, + "requires": { + "chownr": "1.0.1", + "mkdirp": "0.5.1", + "pump": "1.0.3", + "tar-stream": "1.5.5" + } + }, + "tar-stream": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.5.5.tgz", + "integrity": "sha512-mQdgLPc/Vjfr3VWqWbfxW8yQNiJCbAZ+Gf6GDu1Cy0bdb33ofyiNGBtAY96jHFhDuivCwgW1H9DgTON+INiXgg==", + "dev": true, + "requires": { + "bl": "1.2.1", + "end-of-stream": "1.4.0", + "readable-stream": "2.3.3", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "tdigest": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/tdigest/-/tdigest-0.1.1.tgz", + "integrity": "sha1-Ljyyw56kSeVdHmzZEReszKRYgCE=", + "dev": true, + "optional": true, + "requires": { + "bintrees": "1.0.1" + } + }, + "temp": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz", + "integrity": "sha1-4Ma8TSa5AxJEEOT+2BEDAU38H1k=", + "dev": true, + "requires": { + "os-tmpdir": "1.0.2", + "rimraf": "2.2.8" + }, + "dependencies": { + "rimraf": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", + "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", + "dev": true + } + } + }, + "term-size": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/term-size/-/term-size-1.2.0.tgz", + "integrity": "sha1-RYuDiH8oj8Vtb/+/rSYuJmOO+mk=", + "dev": true, + "requires": { + "execa": "0.7.0" + } + }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", + "dev": true + }, + "through2": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.3.tgz", + "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", + "dev": true, + "requires": { + "readable-stream": "2.3.3", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "thunky": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/thunky/-/thunky-0.1.0.tgz", + "integrity": "sha1-vzAUaCTituZ7Dy16Ssi+smkIaE4=", + "dev": true + }, + "time-cache": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/time-cache/-/time-cache-0.3.0.tgz", + "integrity": "sha1-7Q388P2kXNyV+9YB/agw6/G9XYs=", + "dev": true, + "requires": { + "lodash.throttle": "4.1.1" + } + }, + "timed-out": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/timed-out/-/timed-out-4.0.1.tgz", + "integrity": "sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=", + "dev": true + }, + "timed-tape": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/timed-tape/-/timed-tape-0.1.1.tgz", + "integrity": "sha1-m25WnxfmbHnx7tLSX/eWL8dBjkk=", + "dev": true + }, + "timers-browserify": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.4.tgz", + "integrity": "sha512-uZYhyU3EX8O7HQP+J9fTVYwsq90Vr68xPEFo7yrVImIxYvHgukBEgOB/SgGoorWVTzGM/3Z+wUNnboA4M8jWrg==", + "dev": true, + "requires": { + "setimmediate": "1.0.5" + } + }, + "to-array": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/to-array/-/to-array-0.1.4.tgz", + "integrity": "sha1-F+bBH3PdTz10zaek/zI46a2b+JA=", + "dev": true + }, + "to-arraybuffer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz", + "integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=", + "dev": true + }, + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + }, + "topo": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/topo/-/topo-2.0.2.tgz", + "integrity": "sha1-zVYVdSU5BXwNwEkaYhw7xvvh0YI=", + "dev": true, + "requires": { + "hoek": "4.2.0" + } + }, + "traverse": { + "version": "0.6.6", + "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.6.tgz", + "integrity": "sha1-y99WD9e5r2MlAv7UD5GMFX6pcTc=", + "dev": true + }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=", + "dev": true + }, + "tty-browserify": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.0.tgz", + "integrity": "sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=", + "dev": true + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "dev": true, + "requires": { + "safe-buffer": "5.1.1" + } + }, + "tweetnacl": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-1.0.0.tgz", + "integrity": "sha1-cT2LgY2kIGh0C/aDhtBHnmb8ins=", + "dev": true + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "typedarray-to-buffer": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.2.tgz", + "integrity": "sha1-EBezLZhP9VbroQD1AViauhrOLgQ=", + "requires": { + "is-typedarray": "1.0.0" + } + }, + "uglify-es": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/uglify-es/-/uglify-es-3.2.0.tgz", + "integrity": "sha512-eD4rjK4o6rzrvE1SMZJLQFEVMnWRUyIu6phJ0BXk5TIthMmP5B4QP0HI8o3bkQB5wf1N4WHA0leZAQyQBAd+Jg==", + "dev": true, + "requires": { + "commander": "2.12.2", + "source-map": "0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "dev": true, + "optional": true + }, + "uglifyjs-webpack-plugin": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-1.1.1.tgz", + "integrity": "sha512-JPs2UFQxIbaPd7iOvWx1beA7My7YMo3tjTLTAmxuKFoKHQkt6fB70Jm6nm25ponWp4+gu/7U4eamelgDlu0Y3g==", + "dev": true, + "requires": { + "cacache": "10.0.1", + "find-cache-dir": "1.0.0", + "schema-utils": "0.3.0", + "source-map": "0.6.1", + "uglify-es": "3.2.0", + "webpack-sources": "1.1.0", + "worker-farm": "1.5.2" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "ultron": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", + "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", + "dev": true + }, + "unique-filename": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.0.tgz", + "integrity": "sha1-0F8v5AMlYIcfMOk8vnNe6iAVFPM=", + "dev": true, + "requires": { + "unique-slug": "2.0.0" + } + }, + "unique-slug": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.0.tgz", + "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", + "dev": true, + "requires": { + "imurmurhash": "0.1.4" + } + }, + "unique-string": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-1.0.0.tgz", + "integrity": "sha1-nhBXzKhRq7kzmPizOuGHuZyuwRo=", + "dev": true, + "requires": { + "crypto-random-string": "1.0.0" + } + }, + "unzip-response": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/unzip-response/-/unzip-response-1.0.2.tgz", + "integrity": "sha1-uYTwh3/AqJwsdzzB73tbIytbBv4=", + "dev": true + }, + "update-notifier": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-2.3.0.tgz", + "integrity": "sha1-TognpruRUUCrCTVZ1wFOPruDdFE=", + "dev": true, + "requires": { + "boxen": "1.2.2", + "chalk": "2.3.0", + "configstore": "3.1.1", + "import-lazy": "2.1.0", + "is-installed-globally": "0.1.0", + "is-npm": "1.0.0", + "latest-version": "3.1.0", + "semver-diff": "2.1.0", + "xdg-basedir": "3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.0.tgz", + "integrity": "sha512-NnSOmMEYtVR2JVMIGTzynRkkaxtiq1xnFBcdQD/DnNCYPoEPsVJhM98BDyaoNOQIi7p4okdi3E27eN7GQbsUug==", + "dev": true, + "requires": { + "color-convert": "1.9.1" + } + }, + "chalk": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.3.0.tgz", + "integrity": "sha512-Az5zJR2CBujap2rqXGaJKaPHyJ0IrUimvYNX+ncCy8PJP4ltOGTrHUIo097ZaL2zMeKYpiCdqDvS6zdrTFok3Q==", + "dev": true, + "requires": { + "ansi-styles": "3.2.0", + "escape-string-regexp": "1.0.5", + "supports-color": "4.5.0" + } + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + } + } + }, + "url": { + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", + "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", + "dev": true, + "requires": { + "punycode": "1.3.2", + "querystring": "0.2.0" + }, + "dependencies": { + "punycode": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", + "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", + "dev": true + } + } + }, + "url-parse-lax": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-1.0.0.tgz", + "integrity": "sha1-evjzA2Rem9eaJy56FKxovAYJ2nM=", + "dev": true, + "requires": { + "prepend-http": "1.0.4" + } + }, + "util": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", + "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", + "dev": true, + "requires": { + "inherits": "2.0.1" + }, + "dependencies": { + "inherits": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", + "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", + "dev": true + } + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "uuid": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.1.0.tgz", + "integrity": "sha512-DIWtzUkw04M4k3bf1IcpS2tngXEL26YUD2M0tMDUpnUrz2hgzUBlD55a4FjdLGPvfHxS6uluGWvaVEqgBcVa+g==", + "dev": true + }, + "uws": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/uws/-/uws-0.14.5.tgz", + "integrity": "sha1-Z6rzPEaypYel9mZtAPdpEyjxSdw=", + "dev": true, + "optional": true + }, + "validate-npm-package-license": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz", + "integrity": "sha1-KAS6vnEq0zeUWaz74kdGqywwP7w=", + "dev": true, + "requires": { + "spdx-correct": "1.0.2", + "spdx-expression-parse": "1.0.4" + } + }, + "varint": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/varint/-/varint-5.0.0.tgz", + "integrity": "sha1-2Ca4n3SQcy+rwMDtaT7Uddyynr8=" + }, + "varint-decoder": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/varint-decoder/-/varint-decoder-0.1.1.tgz", + "integrity": "sha1-YT1i8HHX51dqIO/RbvTB4zWg3f0=", + "dev": true, + "requires": { + "varint": "5.0.0" + } + }, + "vise": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/vise/-/vise-2.0.2.tgz", + "integrity": "sha1-awjo+0y3bjpQzW3Q7DczjoEaDTk=", + "dev": true, + "requires": { + "hoek": "4.2.0" + } + }, + "vm-browserify": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", + "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", + "dev": true, + "requires": { + "indexof": "0.0.1" + } + }, + "watchpack": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-1.4.0.tgz", + "integrity": "sha1-ShRyvLuVK9Cpu0A2gB+VTfs5+qw=", + "dev": true, + "requires": { + "async": "2.6.0", + "chokidar": "1.7.0", + "graceful-fs": "4.1.11" + } + }, + "webcrypto-shim": { + "version": "github:dignifiedquire/webcrypto-shim#190bc9ec341375df6025b17ae12ddb2428ea49c8", + "dev": true + }, + "webpack": { + "version": "3.8.1", + "resolved": "https://registry.npmjs.org/webpack/-/webpack-3.8.1.tgz", + "integrity": "sha512-5ZXLWWsMqHKFr5y0N3Eo5IIisxeEeRAajNq4mELb/WELOR7srdbQk2N5XiyNy2A/AgvlR3AmeBCZJW8lHrolbw==", + "dev": true, + "requires": { + "acorn": "5.2.1", + "acorn-dynamic-import": "2.0.2", + "ajv": "5.5.0", + "ajv-keywords": "2.1.1", + "async": "2.6.0", + "enhanced-resolve": "3.4.1", + "escope": "3.6.0", + "interpret": "1.1.0", + "json-loader": "0.5.7", + "json5": "0.5.1", + "loader-runner": "2.3.0", + "loader-utils": "1.1.0", + "memory-fs": "0.4.1", + "mkdirp": "0.5.1", + "node-libs-browser": "2.1.0", + "source-map": "0.5.7", + "supports-color": "4.5.0", + "tapable": "0.2.8", + "uglifyjs-webpack-plugin": "0.4.6", + "watchpack": "1.4.0", + "webpack-sources": "1.1.0", + "yargs": "8.0.2" + }, + "dependencies": { + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "dev": true, + "requires": { + "center-align": "0.1.3", + "right-align": "0.1.3", + "wordwrap": "0.0.2" + } + }, + "supports-color": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-4.5.0.tgz", + "integrity": "sha1-vnoN5ITexcXN34s9WRJQRJEvY1s=", + "dev": true, + "requires": { + "has-flag": "2.0.0" + } + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "dev": true, + "requires": { + "source-map": "0.5.7", + "uglify-to-browserify": "1.0.2", + "yargs": "3.10.0" + }, + "dependencies": { + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "dev": true, + "requires": { + "camelcase": "1.2.1", + "cliui": "2.1.0", + "decamelize": "1.2.0", + "window-size": "0.1.0" + } + } + } + }, + "uglifyjs-webpack-plugin": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/uglifyjs-webpack-plugin/-/uglifyjs-webpack-plugin-0.4.6.tgz", + "integrity": "sha1-uVH0q7a9YX5m9j64kUmOORdj4wk=", + "dev": true, + "requires": { + "source-map": "0.5.7", + "uglify-js": "2.8.29", + "webpack-sources": "1.1.0" + } + }, + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "dev": true + } + } + }, + "webpack-sources": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-1.1.0.tgz", + "integrity": "sha512-aqYp18kPphgoO5c/+NaUvEeACtZjMESmDChuD3NBciVpah3XpMEU9VAAtIaB1BsfJWWTSdv8Vv1m3T0aRk2dUw==", + "dev": true, + "requires": { + "source-list-map": "2.0.0", + "source-map": "0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "webrtcsupport": { + "version": "github:ipfs/webrtcsupport#0669f576582c53a3a42aa5ac014fcc5966809615", + "dev": true + }, + "which": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.0.tgz", + "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", + "dev": true, + "requires": { + "isexe": "2.0.0" + } + }, + "which-module": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", + "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", + "dev": true + }, + "wide-align": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", + "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", + "dev": true, + "requires": { + "string-width": "1.0.2" + } + }, + "widest-line": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-1.0.0.tgz", + "integrity": "sha1-DAnIXCqUaD0Nfq+O4JfVZL8OEFw=", + "dev": true, + "requires": { + "string-width": "1.0.2" + } + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "dev": true + }, + "wordwrap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "dev": true + }, + "worker-farm": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/worker-farm/-/worker-farm-1.5.2.tgz", + "integrity": "sha512-XxiQ9kZN5n6mmnW+mFJ+wXjNNI/Nx4DIdaAKLX1Bn6LYBWlN/zaBhu34DQYPZ1AJobQuu67S2OfDdNSVULvXkQ==", + "dev": true, + "requires": { + "errno": "0.1.4", + "xtend": "4.0.1" + }, + "dependencies": { + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + } + } + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "1.0.2", + "strip-ansi": "3.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "wreck": { + "version": "12.5.1", + "resolved": "https://registry.npmjs.org/wreck/-/wreck-12.5.1.tgz", + "integrity": "sha512-l5DUGrc+yDyIflpty1x9XuMj1ehVjC/dTbF3/BasOO77xk0EdEa4M/DuOY8W88MQDAD0fEDqyjc8bkIMHd2E9A==", + "dev": true, + "requires": { + "boom": "5.2.0", + "hoek": "4.2.0" + } + }, + "write-file-atomic": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-1.3.4.tgz", + "integrity": "sha1-+Aek8LHZ6ROuekgRLmzDrxmRtF8=", + "requires": { + "graceful-fs": "4.1.11", + "imurmurhash": "0.1.4", + "slide": "1.1.6" + } + }, + "ws": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.2.tgz", + "integrity": "sha512-t+WGpsNxhMR4v6EClXS8r8km5ZljKJzyGhJf7goJz9k5Ye3+b5Bvno5rjqPuIBn5mnn5GBb7o8IrIWHxX1qOLQ==", + "dev": true, + "requires": { + "async-limiter": "1.0.0", + "safe-buffer": "5.1.1", + "ultron": "1.1.1" + } + }, + "xdg-basedir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-3.0.0.tgz", + "integrity": "sha1-SWsswQnsqNus/i3HK2A8F8WHCtQ=", + "dev": true + }, + "xmlhttprequest-ssl": { + "version": "1.5.4", + "resolved": "https://registry.npmjs.org/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.4.tgz", + "integrity": "sha1-BPVgkVcks4kIhxXMDteBPpZ3v1c=", + "dev": true + }, + "xor-distance": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/xor-distance/-/xor-distance-1.0.0.tgz", + "integrity": "sha1-2nNdmyT8yo282bN00W0qAe6VQcY=", + "dev": true + }, + "xtend": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-2.1.2.tgz", + "integrity": "sha1-bv7MKk2tjmlixJAbM3znuoe10os=", + "dev": true, + "requires": { + "object-keys": "0.4.0" + } + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yallist": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", + "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", + "dev": true + }, + "yargs": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-8.0.2.tgz", + "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", + "dev": true, + "requires": { + "camelcase": "4.1.0", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.2", + "os-locale": "2.1.0", + "read-pkg-up": "2.0.0", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "2.1.1", + "which-module": "2.0.0", + "y18n": "3.2.1", + "yargs-parser": "7.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz", + "integrity": "sha1-7QMXwyIGT3lGbAKWa922Bas32Zg=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", + "dev": true + }, + "string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dev": true, + "requires": { + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "4.0.0" + } + }, + "strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", + "dev": true, + "requires": { + "ansi-regex": "3.0.0" + } + } + } + }, + "yargs-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-7.0.0.tgz", + "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", + "dev": true, + "requires": { + "camelcase": "4.1.0" + } + }, + "yeast": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/yeast/-/yeast-0.1.2.tgz", + "integrity": "sha1-AI4G2AlDIMNy28L47XagymyKxBk=", + "dev": true + } + } +} diff --git a/package.json b/package.json index a2f22b732..2f358c28d 100644 --- a/package.json +++ b/package.json @@ -1,51 +1,56 @@ { "name": "orbit-db", - "version": "0.17.3", + "version": "1.0.0", "description": "Distributed p2p database on IPFS", "author": "Haad", "license": "MIT", "repository": { "type": "git", - "url": "https://github.com/haadcode/orbit-db" + "url": "https://github.com/orbitdb/orbit-db" }, "engines": { - "node": "^6.x.x" + "node": ">=8.0.0" }, "browser": { "fs-pull-blob-store": "idb-pull-blob-store" }, "main": "src/OrbitDB.js", "dependencies": { - "libp2p-floodsub": "github:libp2p/js-libp2p-floodsub#orbit-floodsub", - "logplease": "^1.2.12", - "orbit-db-counterstore": "~0.2.0", - "orbit-db-docstore": "~0.2.0", - "orbit-db-eventstore": "~0.2.0", - "orbit-db-feedstore": "~0.2.0", - "orbit-db-kvstore": "~0.2.0", - "orbit-db-pubsub": "~0.2.1" + "logplease": "^1.2.14", + "multihashes": "^0.4.12", + "orbit-db-cache": "~0.0.7", + "orbit-db-counterstore": "~1.0.0", + "orbit-db-docstore": "~1.0.1", + "orbit-db-eventstore": "~1.0.0", + "orbit-db-feedstore": "~1.0.0", + "orbit-db-keystore": "~0.0.2", + "orbit-db-kvstore": "~1.0.0", + "orbit-db-pubsub": "~0.3.1" }, "devDependencies": { - "babel-core": "^6.24.0", - "babel-loader": "^6.4.1", - "babel-plugin-transform-runtime": "^6.22.0", - "babel-polyfill": "^6.22.0", - "babel-preset-es2015": "^6.24.0", - "ipfs-daemon": "~0.3.1", - "json-loader": "^0.5.4", - "mocha": "^3.2.0", + "babel-core": "^6.26.0", + "babel-loader": "^7.1.2", + "babel-plugin-transform-runtime": "^6.23.0", + "babel-polyfill": "^6.26.0", + "babel-preset-es2015": "^6.24.1", + "datastore-level": "~0.7.0", + "ipfs": "~0.26.0", + "ipfs-repo": "~0.18.0", + "mocha": "^4.0.1", "p-each-series": "^1.0.0", - "rimraf": "^2.6.1", - "uglify-js": "github:mishoo/UglifyJS2#harmony", - "webpack": "^2.3.1" + "p-map-series": "^1.0.0", + "rimraf": "^2.6.2", + "uglifyjs-webpack-plugin": "~1.1.0", + "webpack": "^3.8.1" }, "scripts": { "examples": "npm run examples:node", "examples:node": "node examples/eventlog.js", - "examples:browser": "open examples/browser/index.html && LOG=debug node examples/start-daemon.js", + "examples:browser": "open examples/browser/browser.html", "test": "mocha", - "build": "npm run build:examples && npm run build:dist", + "build": "npm run build:dist && npm run build:examples", "build:examples": "webpack --config conf/webpack.example.config.js --sort-modules-by size", - "build:dist": "webpack -p --config conf/webpack.config.js --sort-modules-by size" + "build:dist": "webpack --config conf/webpack.config.js --sort-modules-by size && cp dist/orbitdb.min.js examples/browser/lib/orbitdb.min.js", + "build:debug": "webpack --config conf/webpack.debug.config.js --sort-modules-by size && cp dist/orbitdb.js examples/browser/lib/orbitdb.min.js" } } diff --git a/screenshots/example1.png b/screenshots/example1.png new file mode 100644 index 0000000000000000000000000000000000000000..fecc688daef7c15bb350c75b2c7715fcd77a0936 GIT binary patch literal 189158 zcmcF~V{~QB*XNDxbnK)%b~?6gCmpk6JGrs#j&0j^cWm3XGwJ8~zq8(%H8bDl!#($` zT6L;+)!y~ntWbGbF$7o~SO5TkAR#WS2mpXO0svqj(2$=kCRda&pMNm6;u;PB0LIt9 zKM)B;vP%E}p4MDQNM7E|#?i*X%*K{TLP&_n*51a%+|n2Ta9yrYGgU?p#&|D0r87Pf z;UAq&BkGX6@B=!A1RA^e7SN2h`k@l=_k#^@Ctt#XY%}oVUiPC>cAG)z z@ybvofkrF<>c5&FVFQ#vfX-2PxS*5cafal8<+%I+WFR&yMRkj|1Y$N05>RP$EEcrX z03b`!DGy$34Y4^fws#FOCkrryg$sWK;@|>h<~Oc)Ur9~p#bxQ(Ou@%IKmZg0uu}aH ztJse|TKc}0%|X}z=Sngr5Fji6={S9uET9`Q#4xvfksa_0U?)2a6?B=QtzmSH+?A|` z8VACUNz`)?Bnrj=F8)Kq+kO(+c}o(&krnYpGA}O3HYuM%pMp<=iYg=$d$f*14f%Tn z8=Pb>YB0xA?=K5 z%%Fvli*can=#AUzq!1%uqd@@@@Iy#C#FOmRDF4bPqcu?n(?!Plw!nV{k-JN5m7q+6 zAd3}7i;3BfbXD@l&o2c0DZK>jYe8sVjaq(Oeom?q(oOTu&faqgn}NA!oHniuDI_s8 z1Qe5POd!dwz~cPMB;5F9hOI5J03x_8)-}9Xz8@Tn@Foe0@go`uv^*0kCOjP(ayB}N zC(hOA1mZ9xCTfBp5OsHlk&GfA!OUklIV$Jvh<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g0KmY&sJXdu-yP3K7Zw&0|DR1s7C*vl!Eb`s!2qaN z&F|%6s}1H;Q8Log=QlKPb7m+eXJmYmDVqMz-u|`kH^Y`pMOt|Ug`(i#;N~3UQideS zga5L#;8WNmifHc93jA+P3qEg?!F~Dv0k2N@|4YWAzB&fWO6`(|{Ew>b5yg`L909OV j)&FzqU#Zj{KVShgmSdJE?sb9y@Z*!TveZurqu~Ds$$!r1 literal 0 HcmV?d00001 diff --git a/scripts/post_install.sh b/scripts/post_install.sh deleted file mode 100755 index 1cccb01cd..000000000 --- a/scripts/post_install.sh +++ /dev/null @@ -1,4 +0,0 @@ -# !/bin/sh -rm -rf ./node_modules/ipfs/node_modules/ipfs-api -rm -rf ./node_modules/ipfsd-ctl/node_modules/go-ipfs-dep -rm -rf ./node_modules/ipfsd-ctl/node_modules/ipfs-api diff --git a/src/OrbitDB.js b/src/OrbitDB.js index dfd91757c..be2e007d3 100644 --- a/src/OrbitDB.js +++ b/src/OrbitDB.js @@ -1,98 +1,360 @@ 'use strict' -const EventEmitter = require('events').EventEmitter -const EventStore = require('orbit-db-eventstore') -const FeedStore = require('orbit-db-feedstore') +const path = require('path') +const EventStore = require('orbit-db-eventstore') +const FeedStore = require('orbit-db-feedstore') const KeyValueStore = require('orbit-db-kvstore') -const CounterStore = require('orbit-db-counterstore') +const CounterStore = require('orbit-db-counterstore') const DocumentStore = require('orbit-db-docstore') -const Pubsub = require('orbit-db-pubsub') +const Pubsub = require('orbit-db-pubsub') +const Cache = require('orbit-db-cache') +const Keystore = require('orbit-db-keystore') +const AccessController = require('./ipfs-access-controller') +const OrbitDBAddress = require('./orbit-db-address') -const defaultNetworkName = 'Orbit DEV Network' +const Logger = require('logplease') +const logger = Logger.create("orbit-db") +Logger.setLogLevel('NONE') + +const validTypes = ['eventlog', 'feed', 'docstore', 'counter', 'keyvalue'] class OrbitDB { - constructor(ipfs, id = 'default', options = {}) { + constructor(ipfs, directory, options = {}) { this._ipfs = ipfs - this._pubsub = options && options.broker ? new options.broker(ipfs) : new Pubsub(ipfs) - this.user = { id: id } - this.network = { name: defaultNetworkName } - this.events = new EventEmitter() + this.id = options.peerId || (this._ipfs._peerInfo ? this._ipfs._peerInfo.id._idB58String : 'default') + this._pubsub = options && options.broker + ? new options.broker(this._ipfs) + : new Pubsub(this._ipfs, this.id) this.stores = {} + this.types = validTypes + this.directory = directory || './orbitdb' + this.keystore = new Keystore(path.join(this.directory, this.id, '/keystore')) + this.key = this.keystore.getKey(this.id) || this.keystore.createKey(this.id) } /* Databases */ - feed(dbname, options) { - return this._createStore(FeedStore, dbname, options) + async feed (address, options = {}) { + options = Object.assign({ create: true, type: 'feed' }, options) + return this.open(address, options) } - eventlog(dbname, options) { - return this._createStore(EventStore, dbname, options) + async log (address, options) { + options = Object.assign({ create: true, type: 'eventlog' }, options) + return this.open(address, options) } - kvstore(dbname, options) { - return this._createStore(KeyValueStore, dbname, options) + async eventlog (address, options = {}) { + return this.log(address, options) } - counter(dbname, options) { - return this._createStore(CounterStore, dbname, options) + async keyvalue (address, options) { + options = Object.assign({ create: true, type: 'keyvalue' }, options) + return this.open(address, options) } - docstore(dbname, options) { - return this._createStore(DocumentStore, dbname, options) + async kvstore (address, options) { + return this.keyvalue(address, options) } - close(dbname) { - if(this._pubsub) this._pubsub.unsubscribe(dbname) - if (this.stores[dbname]) { - this.stores[dbname].events.removeAllListeners('write') - delete this.stores[dbname] - } + async counter (address, options = {}) { + options = Object.assign({ create: true, type: 'counter' }, options) + return this.open(address, options) } - disconnect() { - Object.keys(this.stores).forEach((e) => this.close(e)) - if (this._pubsub) this._pubsub.disconnect() + async docs (address, options = {}) { + options = Object.assign({ create: true, type: 'docstore' }, options) + return this.open(address, options) + } + + async docstore (address, options = {}) { + return this.docs(address, options) + } + + async disconnect () { + // Close all open databases + const databases = Object.values(this.stores) + for (let db of databases) { + await db.close() + delete this.stores[db.address.toString()] + } + + // Disconnect from pubsub + if (this._pubsub) + this._pubsub.disconnect() + + // Remove all databases from the state this.stores = {} - this.user = null - this.network = null + } + + // Alias for disconnect() + async stop () { + await this.disconnect() } /* Private methods */ - _createStore(Store, dbname, options) { - const opts = Object.assign({ replicate: true }, options) + async _createStore (Store, address, options) { + const addr = address.toString() + + let accessController + if (options.accessControllerAddress) { + accessController = new AccessController(this._ipfs) + await accessController.load(options.accessControllerAddress) + } - const store = new Store(this._ipfs, this.user.id, dbname, opts) + const opts = Object.assign({ replicate: true }, options, { + accessController: accessController, + keystore: this.keystore, + cache: this._cache, + }) + + const store = new Store(this._ipfs, this.id, address, opts) store.events.on('write', this._onWrite.bind(this)) - store.events.on('ready', this._onReady.bind(this)) + store.events.on('closed', this._onClosed.bind(this)) - this.stores[dbname] = store + this.stores[addr] = store if(opts.replicate && this._pubsub) - this._pubsub.subscribe(dbname, this._onMessage.bind(this)) + this._pubsub.subscribe(addr, this._onMessage.bind(this), this._onPeerConnected.bind(this)) return store } - /* Replication request from the message broker */ - _onMessage(dbname, heads) { - // console.log(".MESSAGE", dbname, heads) - const store = this.stores[dbname] - store.sync(heads) + // Callback for local writes to the database. We the update to pubsub. + _onWrite (address, entry, heads) { + if(!heads) throw new Error("'heads' not defined") + if(this._pubsub) setImmediate(() => this._pubsub.publish(address, heads)) } - /* Data events */ - _onWrite(dbname, hash, entry, heads) { - // 'New entry written to database...', after adding a new db entry locally - // console.log(".WRITE", dbname, hash, this.user.username) - if(!heads) throw new Error("'heads' not defined") - if(this._pubsub) setImmediate(() => this._pubsub.publish(dbname, heads)) + // Callback for receiving a message from the network + async _onMessage (address, heads) { + const store = this.stores[address] + try { + logger.debug(`Received heads for '${address}':\n`, JSON.stringify(heads, null, 2)) + await store.sync(heads) + } catch (e) { + logger.error(e) + } + } + + // Callback for when a peer connected to a database + _onPeerConnected (address, peer, room) { + logger.debug(`New peer '${peer}' connected to '${address}'`) + const store = this.stores[address] + if (store) { + // Send the newly connected peer our latest heads + let heads = store._oplog.heads + if (heads.length > 0) { + logger.debug(`Send latest heads:\n`, JSON.stringify(heads, null, 2)) + room.sendTo(peer, new Buffer(JSON.stringify(heads))) + } + store.events.emit('peer', peer) + } + } + + // Callback when database was closed + _onClosed (address) { + logger.debug(`Database '${address}' was closed`) + + // Remove the callback from the database + this.stores[address].events.removeAllListeners('closed') + + // Unsubscribe from pubsub + if(this._pubsub) + this._pubsub.unsubscribe(address) + + delete this.stores[address] + } + + /* Create and Open databases */ + + /* + options = { + admin: [], // array of keys that are the admins of this database (same as write access) + write: [], // array of keys that can write to this database + directory: './orbitdb', // directory in which to place the database files + overwrite: false, // whether we should overwrite the existing database if it exists + } + */ + async create (name, type, options = {}) { + if (!OrbitDB.isValidType(type)) + throw new Error(`Invalid database type '${type}'`) + + // The directory to look databases from can be passed in as an option + const directory = options.directory || this.directory + logger.debug(`Creating database '${name}' as ${type} in '${directory}'`) + + if (OrbitDBAddress.isValid(name)) + throw new Error(`Given database name is an address. Please give only the name of the database!`) + + // Create an AccessController + const accessController = new AccessController(this._ipfs) + /* Disabled temporarily until we do something with the admin keys */ + // Add admins of the database to the access controller + // if (options && options.admin) { + // options.admin.forEach(e => accessController.add('admin', e)) + // } else { + // // Default is to add ourselves as the admin of the database + // accessController.add('admin', this.key.getPublic('hex')) + // } + // Add keys that can write to the database + if (options && options.write) { + options.write.forEach(e => accessController.add('write', e)) + } else { + // Default is to add ourselves as the admin of the database + accessController.add('write', this.key.getPublic('hex')) + } + // Save the Access Controller in IPFS + const accessControllerAddress = await accessController.save() + + // Creates a DB manifest file + const createDBManifest = () => { + return { + name: name, + type: type, + accessController: path.join('/ipfs', accessControllerAddress), + } + } + + // Save the manifest to IPFS + const manifest = createDBManifest() + const dag = await this._ipfs.object.put(new Buffer(JSON.stringify(manifest))) + const manifestHash = dag.toJSON().multihash.toString() + + // Create the database address + const address = path.join('/orbitdb', manifestHash, name) + const dbAddress = OrbitDBAddress.parse(address) + + // Load local cache + try { + const cacheFilePath = path.join(dbAddress.root, dbAddress.path) + this._cache = new Cache(path.join(directory), cacheFilePath) + await this._cache.load() + } catch (e) { + logger.warn("Couldn't load Cache:", e) + } + + // Check if we already have the database + let localData = await this._cache.get(dbAddress.toString()) + + if (localData && localData.manifest && !options.overwrite) + throw new Error(`Database '${dbAddress}' already exists!`) + + // Save the database locally + localData = Object.assign({}, this._cache.get(dbAddress.toString()), { + manifest: dbAddress.root + }) + await this._cache.set(dbAddress.toString(), localData) + logger.debug(`Saved manifest to IPFS as '${dbAddress.root}'`) + + logger.debug(`Created database '${dbAddress}'`) + + // Open the database + return this.open(dbAddress, options) } - _onReady(dbname, heads) { - // if(heads && this._pubsub) setImmediate(() => this._pubsub.publish(dbname, heads)) - if(heads && this._pubsub) { - setTimeout(() => this._pubsub.publish(dbname, heads), 1000) + /* + options = { + localOnly: false // if set to true, throws an error if database can't be found locally + create: false // wether to create the database + type: TODO + overwrite: TODO + + } + */ + async open (address, options = {}) { + options = Object.assign({ localOnly: false, create: false }, options) + logger.debug(`Open database '${address}'`) + + // The directory to look databases from can be passed in as an option + const directory = options.directory || this.directory + logger.debug(`Look from '${directory}'`) + + // If address is just the name of database, check the options to crate the database + if (!OrbitDBAddress.isValid(address)) { + if (!options.create) { + throw new Error(`'options.create' set to 'false'. If you want to create a database, set 'options.create' to 'true'.`) + } else if (options.create && !options.type) { + throw new Error(`Database type not provided! Provide a type with 'options.type' (${validTypes.join('|')})`) + } else { + logger.warn(`Not a valid OrbitDB address '${address}', creating the database`) + options.overwrite = options.overwrite ? options.overwrite : true + return this.create(address, options.type, options) + } + } + + // Parse the database address + const dbAddress = OrbitDBAddress.parse(address) + + // Load local cache + try { + const cacheFilePath = path.join(dbAddress.root, dbAddress.path) + this._cache = new Cache(path.join(directory), cacheFilePath) + await this._cache.load() + } catch (e) { + console.warn(e) + logger.warn("Couldn't load Cache:", e) } + + // Check if we have the database + let localData = await this._cache.get(dbAddress.toString()) + const haveDB = localData && localData.manifest + logger.debug((haveDB ? 'Found' : 'Didn\'t find') + ` database '${dbAddress}'`) + + // If we want to try and open the database local-only, throw an error + // if we don't have the database locally + if (options.localOnly && !haveDB) { + logger.error(`Database '${dbAddress}' doesn't exist!`) + throw new Error(`Database '${dbAddress}' doesn't exist!`) + } + + logger.debug(`Loading Manifest for '${dbAddress}'`) + + // Get the database manifest from IPFS + const dag = await this._ipfs.object.get(dbAddress.root) + const manifest = JSON.parse(dag.toJSON().data) + logger.debug(`Manifest for '${dbAddress}':\n${JSON.stringify(manifest, null, 2)}`) + + // Make sure the type from the manifest matches the type that was given as an option + if (options.type && manifest.type !== options.type) + throw new Error(`Database '${dbAddress}' is type '${manifest.type}' but was opened as '${options.type}'`) + + // Save the database locally + localData = Object.assign({}, this._cache.get(dbAddress.toString()), { + manifest: dbAddress.root + }) + await this._cache.set(dbAddress.toString(), localData) + logger.debug(`Saved manifest to IPFS as '${dbAddress.root}'`) + + // Open the the database + options = Object.assign({}, options, { accessControllerAddress: manifest.accessController }) + return this._openDatabase(dbAddress, manifest.type, options) + } + + async _openDatabase (address, type, options) { + if (type === 'counter') + return this._createStore(CounterStore, address, options) + else if (type === 'eventlog') + return this._createStore(EventStore, address, options) + else if (type === 'feed') + return this._createStore(FeedStore, address, options) + else if (type === 'docstore') + return this._createStore(DocumentStore, address, options) + else if (type === 'keyvalue') + return this._createStore(KeyValueStore, address, options) + else + throw new Error(`Invalid database type '${type}'`) + } + + static isValidType (type) { + return validTypes.includes(type) + } + + static create () { + return new Error('Not implemented yet!') + } + + static open () { + return new Error('Not implemented yet!') } } diff --git a/src/access-controller.js b/src/access-controller.js new file mode 100644 index 000000000..882e66b5f --- /dev/null +++ b/src/access-controller.js @@ -0,0 +1,85 @@ +'use strict' + +class AccessController { + constructor () { + this._access = { + admin: [], + write: [], + read: [], // Not used atm + } + } + + /* Overridable functions */ + async load (address) {} + async save () {} + + /* Properties */ + get admin () { + return this._access.admin + } + + get write () { + // Both admins and write keys can write + return this._access.write.concat(this._access.admin) + } + + // Not used atm + get read () { + return this._access.read + } + + /* Public Methods */ + add (access, key) { + // if(!Object.keys(this._access).includes(access)) + // throw new Error(`unknown access level: ${access}`) + // if (!this._access[access].includes(key)) + // this._access[access].push(key) + + // TODO: uniques only + switch (access) { + case 'admin': + this._access.admin.push(key) + break + case 'write': + this._access.write.push(key) + break + case 'read': + this._access.read.push(key) + break + default: + break + } + } + + remove (access, key) { + const without = (arr, e) => { + const reducer = (res, val) => { + if (val !== key) + res.push(val) + return res + } + return arr.reduce(reducer, []) + } + + // if(!Object.keys(this._access).includes(access)) + // throw new Error(`unknown access level: ${access}`) + // if (this._access[access].includes(key)) + // this._access[access] = without(this._access[access], key) + + switch (access) { + case 'admin': + this._access.admin = without(this._access.admin, key) + break + case 'write': + this._access.write = without(this._access.write, key) + break + case 'read': + this._access.read = without(this._access.read, key) + break + default: + break + } + } +} + +module.exports = AccessController diff --git a/src/ipfs-access-controller.js b/src/ipfs-access-controller.js new file mode 100644 index 000000000..cc64895a2 --- /dev/null +++ b/src/ipfs-access-controller.js @@ -0,0 +1,39 @@ +'use strict' + +const AccessController = require('./access-controller') + +class IPFSAccessController extends AccessController { + constructor (ipfs) { + super() + this._ipfs = ipfs + } + + async load (address) { + // Transform '/ipfs/QmPFtHi3cmfZerxtH9ySLdzpg1yFhocYDZgEZywdUXHxFU' + // to 'QmPFtHi3cmfZerxtH9ySLdzpg1yFhocYDZgEZywdUXHxFU' + if (address.indexOf('/ipfs') === 0) + address = address.split('/')[2] + + try { + const dag = await this._ipfs.object.get(address) + const obj = JSON.parse(dag.toJSON().data) + this._access = obj + } catch (e) { + console.log("ACCESS ERROR:", e) + } + } + + async save () { + let hash + try { + const access = JSON.stringify(this._access, null, 2) + const dag = await this._ipfs.object.put(new Buffer(access)) + hash = dag.toJSON().multihash.toString() + } catch (e) { + console.log("ACCESS ERROR:", e) + } + return hash + } +} + +module.exports = IPFSAccessController diff --git a/src/orbit-db-address.js b/src/orbit-db-address.js new file mode 100644 index 000000000..1fb1f6be0 --- /dev/null +++ b/src/orbit-db-address.js @@ -0,0 +1,48 @@ +'use strict' + +const path = require('path') +const multihash = require('multihashes') + +class OrbitDBAddress { + constructor (root, path) { + this.root = root + this.path = path + } + + toString () { + return path.join('/orbitdb', this.root, this.path) + } + + static isValid (address) { + const parts = address.toString() + .split('/') + .filter((e, i) => !((i === 0 || i === 1) && address.toString().indexOf('/orbit') === 0 && e === 'orbitdb')) + .filter(e => e !== '' && e !== ' ') + + const accessControllerHash = parts[0].indexOf('Qm') > -1 ? multihash.fromB58String(parts[0]) : null + try { + multihash.validate(accessControllerHash) + } catch (e) { + return false + } + + return accessControllerHash !== null + } + + static parse (address) { + if (!address) + throw new Error(`Not a valid OrbitDB address: ${address}`) + + if (!OrbitDBAddress.isValid(address)) + throw new Error(`Not a valid OrbitDB address: ${address}`) + + const parts = address.toString() + .split('/') + .filter((e, i) => !((i === 0 || i === 1) && address.toString().indexOf('/orbit') === 0 && e === 'orbitdb')) + .filter(e => e !== '' && e !== ' ') + + return new OrbitDBAddress(parts[0], parts.slice(1, parts.length).join('/')) + } +} + +module.exports = OrbitDBAddress diff --git a/test/counterdb.test.js b/test/counterdb.test.js index 0d74e7ae0..4a4febfcc 100644 --- a/test/counterdb.test.js +++ b/test/counterdb.test.js @@ -1,127 +1,112 @@ -// 'use strict' - -// const path = require('path') -// const assert = require('assert') -// const Promise = require('bluebird') -// const rmrf = require('rimraf') -// const IpfsNodeDaemon = require('ipfs-daemon/src/ipfs-node-daemon') -// const IpfsNativeDaemon = require('ipfs-daemon/src/ipfs-native-daemon') -// const OrbitDB = require('../src/OrbitDB') - -// const username = 'testrunner' -// const username2 = 'rennurtset' -// const cacheFile = path.join(process.cwd(), '/tmp/orbit-db-tests/cache.json') - -// const daemonConfs = require('./ipfs-daemons.conf.js') - -// const waitForPeers = (ipfs, peersToWait, topic, callback) => { -// const i = setInterval(() => { -// ipfs.pubsub.peers(topic, (err, peers) => { -// if (err) { -// return callback(err) -// } - -// const hasAllPeers = peersToWait.map((e) => peers.includes(e)).filter((e) => e === false).length === 0 -// if (hasAllPeers) { -// clearInterval(i) -// callback(null) -// } -// }) -// }, 1000) -// } - -// [IpfsNodeDaemon].forEach((IpfsDaemon) => { -// let ipfs, ipfsDaemon - -// describe('CounterStore', function() { -// this.timeout(20000) -// let client1, client2 -// let daemon1, daemon2 - -// before((done) => { -// rmrf.sync(cacheFile) -// daemon1 = new IpfsDaemon(daemonConfs.daemon1) -// daemon1.on('ready', () => { -// daemon2 = new IpfsDaemon(daemonConfs.daemon2) -// daemon2.on('ready', () => { -// ipfs = [daemon1, daemon2] -// done() -// }) -// }) -// }) - -// after((done) => { -// daemon1.stop() -// daemon2.stop() -// rmrf.sync(cacheFile) -// done() -// }) - -// beforeEach(() => { -// client1 = new OrbitDB(ipfs[0]) -// client2 = new OrbitDB(ipfs[1]) -// }) - -// afterEach(() => { -// if (client1) client1.disconnect() -// if (client2) client2.disconnect() -// }) - -// describe('counters', function() { -// it('increases a counter value', function(done) { -// const timeout = setTimeout(() => done(new Error('event was not fired')), 2000) -// const counter = client1.counter('counter test', { subscribe: false, cacheFile: cacheFile }) -// counter.events.on('ready', () => { -// Promise.map([13, 1], (f) => counter.inc(f), { concurrency: 1, cacheFile: cacheFile }) -// .then(() => { -// assert.equal(counter.value, 14) -// clearTimeout(timeout) -// client1.disconnect() -// done() -// }) -// .catch(done) -// }) -// }) - -// it.skip('creates a new counter from cached data', function(done) { -// const timeout = setTimeout(() => done(new Error('event was not fired')), 2000) -// const counter = client1.counter('counter test', { subscribe: false, cacheFile: cacheFile }) -// counter.events.on('ready', () => { -// assert.equal(counter.value, 14) -// clearTimeout(timeout) -// client1.disconnect() -// done() -// }) -// }) - -// it.only('syncs counters', (done) => { -// const name = new Date().getTime() -// const counter1 = client1.counter(name) -// const counter2 = client2.counter(name) -// const numbers = [[13, 10], [2, 5]] -// // const res1 = ([13, 10]).map((f) => counter1.inc(f))//, { concurrency: 1 }) -// // const res2 = ([2, 5]).map((f) => counter2.inc(f))//, { concurrency: 1 }) - -// waitForPeers(daemon1, [daemon2.PeerId], name, (err, res) => { -// waitForPeers(daemon2, [daemon1.PeerId], name, (err, res) => { -// console.log("load!!!") -// const increaseCounter = (counter, i) => numbers[i].map((e) => counter.inc(e)) -// Promise.map([counter1, counter2], increaseCounter, { concurrency: 1 }) -// .then((res) => { -// console.log("..", res) -// // wait for a while to make sure db's have been synced -// setTimeout(() => { -// assert.equal(counter2.value, 30) -// assert.equal(counter1.value, 30) -// done() -// }, 2000) -// }) -// .catch(done) -// }) -// }) -// }) - -// }) -// }) - -// }) +'use strict' + +const path = require('path') +const assert = require('assert') +const rmrf = require('rimraf') +const mapSeries = require('p-each-series') +const OrbitDB = require('../src/OrbitDB') +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') +const waitForPeers = require('./utils/wait-for-peers') + +const dbPath1 = './orbitdb/tests/counters/peer1' +const dbPath2 = './orbitdb/tests/counters/peer2' +const ipfsPath1 = './orbitdb/tests/counters/peer1/ipfs' +const ipfsPath2 = './orbitdb/tests/counters/peer2/ipfs' + +describe('CounterStore', function() { + this.timeout(config.timeout) + + let orbitdb1, orbitdb2 + let ipfs1, ipfs2 + + before(async () => { + rmrf.sync(dbPath1) + rmrf.sync(dbPath2) + config.daemon1.repo = ipfsPath1 + config.daemon2.repo = ipfsPath2 + ipfs1 = await startIpfs(config.daemon1) + ipfs2 = await startIpfs(config.daemon2) + }) + + after(async () => { + if (orbitdb1) + orbitdb1.stop() + + if (orbitdb2) + orbitdb2.stop() + + if (ipfs1) + await ipfs1.stop() + + if (ipfs2) + await ipfs2.stop() + }) + + beforeEach(() => { + orbitdb1 = new OrbitDB(ipfs1, './orbitdb/1') + orbitdb2 = new OrbitDB(ipfs2, './orbitdb/2') + }) + + afterEach(() => { + if (orbitdb1) + orbitdb1.stop() + + if (orbitdb2) + orbitdb2.stop() + }) + + describe('counters', function() { + let address + + it('increases a counter value', async () => { + const counter = await orbitdb1.counter('counter test', { path: dbPath1 }) + address = counter.address.toString() + await mapSeries([13, 1], (f) => counter.inc(f)) + assert.equal(counter.value, 14) + await counter.close() + }) + + it('opens a saved counter', async () => { + const counter = await orbitdb1.counter(address, { path: dbPath1 }) + await counter.load() + assert.equal(counter.value, 14) + await counter.close() + }) + + it('syncs counters', async () => { + let options = { + // Set write access for both clients + write: [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + } + + const numbers = [[13, 10], [2, 5]] + const increaseCounter = (counterDB, i) => mapSeries(numbers[i], n => counterDB.inc(n)) + + // Create a new counter database in the first client + options = Object.assign({}, options, { path: dbPath1 }) + const counter1 = await orbitdb1.counter(new Date().getTime().toString(), options) + // Open the database in the second client + options = Object.assign({}, options, { path: dbPath2, sync: true }) + const counter2 = await orbitdb2.counter(counter1.address.toString(), options) + + // Wait for peers to connect first + await waitForPeers(ipfs1, [orbitdb2.id], counter1.address.toString()) + await waitForPeers(ipfs2, [orbitdb1.id], counter1.address.toString()) + // Increase the counters sequentially + await mapSeries([counter1, counter2], increaseCounter) + + return new Promise(resolve => { + // Wait for a while to make sure db's have been synced + setTimeout(() => { + assert.equal(counter1.value, 30) + assert.equal(counter2.value, 30) + resolve() + }, 2000) + }) + }) + }) +}) diff --git a/test/create-open.test.js b/test/create-open.test.js new file mode 100644 index 000000000..b2e4b6f02 --- /dev/null +++ b/test/create-open.test.js @@ -0,0 +1,238 @@ +'use strict' + +const assert = require('assert') +const fs = require('fs') +const path = require('path') +const rmrf = require('rimraf') +const mapSeries = require('p-map-series') +const OrbitDB = require('../src/OrbitDB') +const OrbitDBAddress = require('../src/orbit-db-address') +const { first, last } = require('./utils/test-utils') +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') +const stopIpfs = require('./utils/stop-ipfs') + +const dbPath = './orbitdb/tests/create-open' +const ipfsPath = './orbitdb/tests/create-open/ipfs' + +describe('orbit-db - Create & Open', function() { + this.timeout(config.timeout) + + let ipfs, orbitdb, db, address + let localDataPath + + before(async () => { + config.daemon1.repo = ipfsPath + rmrf.sync(config.daemon1.repo) + rmrf.sync(dbPath) + ipfs = await startIpfs(config.daemon1) + orbitdb = new OrbitDB(ipfs, dbPath) + }) + + after(async () => { + if(orbitdb) + orbitdb.stop() + + if (ipfs) + await stopIpfs(ipfs) + }) + + describe('Create', function() { + describe('Errors', function() { + it('throws an error if given an invalid database type', async () => { + let err + try { + db = await orbitdb.create('first', 'invalid-type') + } catch (e) { + err = e.toString() + } + assert.equal(err, 'Error: Invalid database type \'invalid-type\'') + }) + + it('throws an error if given an address instead of name', async () => { + let err + try { + db = await orbitdb.create('/orbitdb/Qmc9PMho3LwTXSaUXJ8WjeBZyXesAwUofdkGeadFXsqMzW/first', 'feed') + } catch (e) { + err = e.toString() + } + assert.equal(err, 'Error: Given database name is an address. Please give only the name of the database!') + }) + + it('throws an error if database already exists', async () => { + let err + try { + db = await orbitdb.create('first', 'feed') + db = await orbitdb.create('first', 'feed') + } catch (e) { + err = e.toString() + } + assert.equal(err, `Error: Database '${db.address}' already exists!`) + }) + + it('throws an error if database type doesn\'t match', async () => { + let err, log, kv + try { + log = await orbitdb.kvstore('keyvalue') + kv = await orbitdb.eventlog(log.address.toString()) + } catch (e) { + err = e.toString() + } + assert.equal(err, `Error: Database '${log.address}' is type 'keyvalue' but was opened as 'eventlog'`) + }) + }) + + describe('Success', function() { + before(async () => { + db = await orbitdb.create('second', 'feed') + localDataPath = path.join(dbPath, db.address.root, db.address.path + '.orbitdb') + }) + + it('creates a feed database', async () => { + assert.notEqual(db, null) + }) + + it('database has the correct address', async () => { + assert.equal(db.address.toString().indexOf('/orbitdb'), 0) + assert.equal(db.address.toString().indexOf('Qm'), 9) + assert.equal(db.address.toString().indexOf('second'), 56) + }) + + it('saves the database locally', async () => { + assert.equal(fs.existsSync(localDataPath), true) + }) + + it('saves database manifest reference locally', async () => { + const buffer = JSON.parse(fs.readFileSync(localDataPath)) + const data = buffer[db.address.toString()] + assert.equal(data.manifest, db.address.root) + assert.equal(db.address.path, 'second') + }) + + it('saves database manifest file locally', async () => { + const dag = await ipfs.object.get(db.address.root) + const manifest = JSON.parse(dag.toJSON().data) + assert.notEqual(manifest, ) + assert.equal(manifest.name, 'second') + assert.equal(manifest.type, 'feed') + assert.notEqual(manifest.accessController, null) + assert.equal(manifest.accessController.indexOf('/ipfs'), 0) + }) + + it('can pass local database directory as an option', async () => { + const dir = './orbitdb/tests/another-feed' + db = await orbitdb.create('third', 'feed', { directory: dir }) + localDataPath = path.join(dir, db.address.root, db.address.path + '.orbitdb') + assert.equal(fs.existsSync(localDataPath), true) + }) + + describe('Access Controller', function() { + before(async () => { + if (db) { + await db.close() + await db.drop() + } + }) + + afterEach(async () => { + if (db) { + await db.close() + await db.drop() + } + }) + + it('creates an access controller and adds ourselves as writer by default', async () => { + db = await orbitdb.create('fourth', 'feed') + assert.deepEqual(db.access.write, [orbitdb.key.getPublic('hex')]) + }) + + it('creates an access controller and adds writers', async () => { + db = await orbitdb.create('fourth', 'feed', { write: ['another-key', 'yet-another-key', orbitdb.key.getPublic('hex')] }) + assert.deepEqual(db.access.write, ['another-key', 'yet-another-key', orbitdb.key.getPublic('hex')]) + }) + + it('creates an access controller and doesn\'t add an admin', async () => { + db = await orbitdb.create('sixth', 'feed') + assert.deepEqual(db.access.admin, []) + }) + + it('creates an access controller and doesn\'t add read access keys', async () => { + db = await orbitdb.create('seventh', 'feed', { read: ['one', 'two'] }) + assert.deepEqual(db.access.read, []) + }) + }) + }) + }) + + describe('Open', function() { + before(async () => { + db = await orbitdb.open('abc', { create: true, type: 'feed' }) + }) + + it('throws an error if trying to open a database with name only and \'create\' is not set to \'true\'', async () => { + let err + try { + db = await orbitdb.open('XXX', { create: false }) + } catch (e) { + err = e.toString() + } + assert.equal(err, "Error: 'options.create' set to 'false'. If you want to create a database, set 'options.create' to 'true'.") + }) + + it('throws an error if trying to open a database with name only and \'create\' is not set to true', async () => { + let err + try { + db = await orbitdb.open('YYY', { create: true }) + } catch (e) { + err = e.toString() + } + assert.equal(err, "Error: Database type not provided! Provide a type with 'options.type' (eventlog|feed|docstore|counter|keyvalue)") + }) + + it('opens a database - name only', async () => { + db = await orbitdb.open('abc', { create: true, type: 'feed', overwrite: true }) + assert.equal(db.address.toString().indexOf('/orbitdb'), 0) + assert.equal(db.address.toString().indexOf('Qm'), 9) + assert.equal(db.address.toString().indexOf('abc'), 56) + }) + + it('opens the same database - from an address', async () => { + db = await orbitdb.open(db.address) + assert.equal(db.address.toString().indexOf('/orbitdb'), 0) + assert.equal(db.address.toString().indexOf('Qm'), 9) + assert.equal(db.address.toString().indexOf('abc'), 56) + }) + + it('doesn\'t open a database if we don\'t have it locally', async () => { + const address = new OrbitDBAddress(db.address.root.slice(0, -1) + 'A', 'non-existent') + return new Promise((resolve, reject) => { + setTimeout(resolve, 1000) + orbitdb.open(address) + .then(() => reject(new Error('Shouldn\'t open the database'))) + }) + }) + + it('throws an error if trying to open a database locally and we don\'t have it', () => { + const address = new OrbitDBAddress(db.address.root.slice(0, -1) + 'A', 'second') + return orbitdb.open(address, { localOnly: true }) + .then(() => new Error('Shouldn\'t open the database')) + .catch(e => { + assert.equal(e.toString(), `Error: Database '${address}' doesn't exist!`) + }) + }) + + it('open the database and it has the added entries', async () => { + db = await orbitdb.open('ZZZ', { create: true, type: 'feed' }) + await db.add('hello1') + await db.add('hello2') + + db = await orbitdb.open(db.address) + await db.load() + const res = db.iterator({ limit: -1 }).collect() + + assert.equal(res.length, 2) + assert.equal(res[0].payload.value, 'hello1') + assert.equal(res[1].payload.value, 'hello2') + }) + }) +}) diff --git a/test/docstore.test.js b/test/docstore.test.js index 61451b170..ba15fd2ba 100644 --- a/test/docstore.test.js +++ b/test/docstore.test.js @@ -2,190 +2,165 @@ const assert = require('assert') const rmrf = require('rimraf') -const IpfsNodeDaemon = require('ipfs-daemon/src/ipfs-node-daemon') -const IpfsNativeDaemon = require('ipfs-daemon/src/ipfs-native-daemon') const OrbitDB = require('../src/OrbitDB') -const hasIpfsApiWithPubsub = require('./test-utils').hasIpfsApiWithPubsub -const config = require('./test-config') - -config.daemons.forEach((IpfsDaemon) => { - - describe('orbit-db - Document Store', function() { - this.timeout(config.timeout) - - let ipfs, client1, client2, db - - before(function (done) { - rmrf.sync(config.defaultIpfsDirectory) - rmrf.sync(config.defaultOrbitDBDirectory) - ipfs = new IpfsDaemon() - ipfs.on('error', done) - ipfs.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs), true) - client1 = new OrbitDB(ipfs, 'A') - client2 = new OrbitDB(ipfs, 'B') - done() - }) - }) +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') + +const dbPath = './orbitdb/tests/docstore' +const ipfsPath = './orbitdb/tests/docstore/ipfs' + +describe('orbit-db - Document Store', function() { + this.timeout(config.timeout) - after(() => { - if(client1) client1.disconnect() - if(client2) client2.disconnect() + let ipfs, orbitdb1, orbitdb2, db + + before(async () => { + config.daemon1.repo = ipfsPath + rmrf.sync(config.daemon1.repo) + ipfs = await startIpfs(config.daemon1) + orbitdb1 = new OrbitDB(ipfs, dbPath + '/1') + orbitdb2 = new OrbitDB(ipfs, dbPath + '/2') + }) + + after(() => { + if(orbitdb1) + orbitdb1.disconnect() + + if(orbitdb2) + orbitdb2.disconnect() + + if (ipfs) ipfs.stop() - rmrf.sync(config.defaultOrbitDBDirectory) - rmrf.sync(config.defaultIpfsDirectory) + }) + + it('creates and opens a database', async () => { + db = await orbitdb1.docstore('first doc database') + db = await orbitdb1.docstore('first doc database') + }) + + describe('Default index \'_id\'', function() { + beforeEach(async () => { + const options = { + replicate: false, + maxHistory: 0, + path: dbPath, + } + db = await orbitdb1.docstore(config.dbname, options) + }) + + afterEach(async () => { + await db.drop() }) - describe('Default index \'_id\'', function() { - beforeEach(() => { - db = client1.docstore(config.dbname, { replicate: false, maxHistory: 0 }) - }) - - it('put', () => { - const doc = { _id: 'hello world', doc: 'all the things'} - return db.put(doc) - .then(() => { - const value = db.get('hello world') - assert.deepEqual(value, [doc]) - }) - }) - - it('get - partial term match', () => { - const doc1 = { _id: 'hello world', doc: 'some things'} - const doc2 = { _id: 'hello universe', doc: 'all the things'} - const doc3 = { _id: 'sup world', doc: 'other things'} - return db.put(doc1) - .then(() => db.put(doc2)) - .then(() => db.put(doc3)) - .then(() => { - const value = db.get('hello') - assert.deepEqual(value, [doc1, doc2]) - }) - }) - - it('get after delete', () => { - const doc1 = { _id: 'hello world', doc: 'some things'} - const doc2 = { _id: 'hello universe', doc: 'all the things'} - const doc3 = { _id: 'sup world', doc: 'other things'} - return db.put(doc1) - .then(() => db.put(doc2)) - .then(() => db.put(doc3)) - .then(() => db.del('hello universe')) - .then(() => { - const value1 = db.get('hello') - const value2 = db.get('sup') - assert.deepEqual(value1, [doc1]) - assert.deepEqual(value2, [doc3]) - }) - }) - - it('put updates a value', () => { - const doc1 = { _id: 'hello world', doc: 'all the things'} - const doc2 = { _id: 'hello world', doc: 'some of the things'} - return db.put(doc1) - .then(() => db.put(doc2)) - .then(() => { - const value = db.get('hello') - assert.deepEqual(value, [doc2]) - }) - }) - - it('query', () => { - const doc1 = { _id: 'hello world', doc: 'all the things', views: 17} - const doc2 = { _id: 'sup world', doc: 'some of the things', views: 10} - const doc3 = { _id: 'hello other world', doc: 'none of the things', views: 5} - const doc4 = { _id: 'hey universe', doc: ''} - - return db.put(doc1) - .then(() => db.put(doc2)) - .then(() => db.put(doc3)) - .then(() => db.put(doc4)) - .then(() => { - const value1 = db.query((e) => e.views > 5) - const value2 = db.query((e) => e.views > 10) - const value3 = db.query((e) => e.views > 17) - assert.deepEqual(value1, [doc1, doc2]) - assert.deepEqual(value2, [doc1]) - assert.deepEqual(value3, []) - }) - }) - - it('query after delete', () => { - const doc1 = { _id: 'hello world', doc: 'all the things', views: 17} - const doc2 = { _id: 'sup world', doc: 'some of the things', views: 10} - const doc3 = { _id: 'hello other world', doc: 'none of the things', views: 5} - const doc4 = { _id: 'hey universe', doc: ''} - - return db.put(doc1) - .then(() => db.put(doc2)) - .then(() => db.put(doc3)) - .then(() => db.del('hello world')) - .then(() => db.put(doc4)) - .then(() => { - const value1 = db.query((e) => e.views >= 5) - const value2 = db.query((e) => e.views >= 10) - assert.deepEqual(value1, [doc2, doc3]) - assert.deepEqual(value2, [doc2]) - }) - }) + it('put', async () => { + const doc = { _id: 'hello world', doc: 'all the things'} + await db.put(doc) + const value = db.get('hello world') + assert.deepEqual(value, [doc]) }) - describe('Specified index', function() { - beforeEach(() => { - db = client1.docstore(config.dbname, { indexBy: 'doc', replicate: false, maxHistory: 0 }) - }) - - it('put', () => { - const doc = { _id: 'hello world', doc: 'all the things'} - return db.put(doc) - .then(() => { - const value = db.get('all') - assert.deepEqual(value, [doc]) - }) - }) - - it('get - matches specified index', () => { - const doc1 = { _id: 'hello world', doc: 'all the things'} - const doc2 = { _id: 'hello world', doc: 'some things'} - - return db.put(doc1) - .then(() => db.put(doc2)) - .then(() => { - const value1 = db.get('all') - const value2 = db.get('some') - assert.deepEqual(value1, [doc1]) - assert.deepEqual(value2, [doc2]) - }) - }) + it('get - partial term match', async () => { + const doc1 = { _id: 'hello world', doc: 'some things'} + const doc2 = { _id: 'hello universe', doc: 'all the things'} + const doc3 = { _id: 'sup world', doc: 'other things'} + await db.put(doc1) + await db.put(doc2) + await db.put(doc3) + const value = db.get('hello') + assert.deepEqual(value, [doc1, doc2]) }) - describe('Sync', function() { + it('get after delete', async () => { + const doc1 = { _id: 'hello world', doc: 'some things'} + const doc2 = { _id: 'hello universe', doc: 'all the things'} + const doc3 = { _id: 'sup world', doc: 'other things'} + await db.put(doc1) + await db.put(doc2) + await db.put(doc3) + await db.del('hello universe') + const value1 = db.get('hello') + const value2 = db.get('sup') + assert.deepEqual(value1, [doc1]) + assert.deepEqual(value2, [doc3]) + }) + + it('put updates a value', async () => { const doc1 = { _id: 'hello world', doc: 'all the things'} - const doc2 = { _id: 'moi moi', doc: 'everything'} + const doc2 = { _id: 'hello world', doc: 'some of the things'} + await db.put(doc1) + await db.put(doc2) + const value = db.get('hello') + assert.deepEqual(value, [doc2]) + }) + + it('query', async () => { + const doc1 = { _id: 'hello world', doc: 'all the things', views: 17} + const doc2 = { _id: 'sup world', doc: 'some of the things', views: 10} + const doc3 = { _id: 'hello other world', doc: 'none of the things', views: 5} + const doc4 = { _id: 'hey universe', doc: ''} + + await db.put(doc1) + await db.put(doc2) + await db.put(doc3) + await db.put(doc4) + + const value1 = db.query((e) => e.views > 5) + const value2 = db.query((e) => e.views > 10) + const value3 = db.query((e) => e.views > 17) + + assert.deepEqual(value1, [doc1, doc2]) + assert.deepEqual(value2, [doc1]) + assert.deepEqual(value3, []) + }) + + it('query after delete', async () => { + const doc1 = { _id: 'hello world', doc: 'all the things', views: 17} + const doc2 = { _id: 'sup world', doc: 'some of the things', views: 10} + const doc3 = { _id: 'hello other world', doc: 'none of the things', views: 5} + const doc4 = { _id: 'hey universe', doc: ''} + + await db.put(doc1) + await db.put(doc2) + await db.put(doc3) + await db.del('hello world') + await db.put(doc4) + const value1 = db.query((e) => e.views >= 5) + const value2 = db.query((e) => e.views >= 10) + assert.deepEqual(value1, [doc2, doc3]) + assert.deepEqual(value2, [doc2]) + }) + }) + describe('Specified index', function() { + beforeEach(async () => { const options = { + indexBy: 'doc', replicate: false, - maxHistory: 0, + maxHistory: 0 } + db = await orbitdb1.docstore(config.dbname, options) + }) - it('syncs databases', (done) => { - const db1 = client1.docstore(config.dbname, options) - const db2 = client2.docstore(config.dbname, options) - - db2.events.on('write', (dbname, hash, entry, heads) => { - assert.deepEqual(db1.get('hello world'), []) - db1.sync(heads) - }) + afterEach(async () => { + await db.drop() + }) - db1.events.on('synced', () => { - const value = db1.get(doc1._id) - assert.deepEqual(value, [doc1]) - done() - }) + it('put', async () => { + const doc = { _id: 'hello world', doc: 'all the things'} + await db.put(doc) + const value = db.get('all') + assert.deepEqual(value, [doc]) + }) - db2.put(doc1) - .catch(done) - }) + it('get - matches specified index', async () => { + const doc1 = { _id: 'hello world', doc: 'all the things'} + const doc2 = { _id: 'hello world', doc: 'some things'} + await db.put(doc1) + await db.put(doc2) + const value1 = db.get('all') + const value2 = db.get('some') + assert.deepEqual(value1, [doc1]) + assert.deepEqual(value2, [doc2]) }) }) }) diff --git a/test/eventlog.test.js b/test/eventlog.test.js index 15ce04145..81160414a 100644 --- a/test/eventlog.test.js +++ b/test/eventlog.test.js @@ -2,385 +2,350 @@ const assert = require('assert') const rmrf = require('rimraf') -const mapSeries = require('./promise-map-series') +const mapSeries = require('p-map-series') const OrbitDB = require('../src/OrbitDB') -const hasIpfsApiWithPubsub = require('./test-utils').hasIpfsApiWithPubsub -const first = require('./test-utils').first -const last = require('./test-utils').last -const config = require('./test-config') - -config.daemons.forEach((IpfsDaemon) => { - - describe('orbit-db - Eventlog', function() { - this.timeout(config.timeout) - - let ipfs, client1, client2, db - - before(function (done) { - rmrf.sync(config.defaultIpfsDirectory) - rmrf.sync(config.defaultOrbitDBDirectory) - ipfs = new IpfsDaemon() - ipfs.on('error', done) - ipfs.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs), true) - client1 = new OrbitDB(ipfs, 'A') - client2 = new OrbitDB(ipfs, 'B') - done() - }) +const first = require('./utils/test-utils').first +const last = require('./utils/test-utils').last +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') + +const dbPath = './orbitdb/tests/eventlog' +const ipfsPath = './orbitdb/tests/eventlog/ipfs' + +describe('orbit-db - Eventlog', function() { + this.timeout(config.timeout) + + let ipfs, orbitdb1, orbitdb2, db + + before(async () => { + config.daemon1.repo = ipfsPath + rmrf.sync(config.daemon1.repo) + rmrf.sync(dbPath) + ipfs = await startIpfs(config.daemon1) + orbitdb1 = new OrbitDB(ipfs, dbPath + '/1') + orbitdb2 = new OrbitDB(ipfs, dbPath + '/2') + }) + + after(async () => { + if(orbitdb1) + orbitdb1.stop() + + if(orbitdb2) + orbitdb2.stop() + + if (ipfs) + await ipfs.stop() + }) + + describe('Eventlog', function () { + it('creates and opens a database', async () => { + db = await orbitdb1.eventlog('first database') + db = await orbitdb1.eventlog('first database') + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 0) + }) + + it('returns the added entry\'s hash, 1 entry', async () => { + db = await orbitdb1.eventlog('first database') + const hash = await db.add('hello1') + const items = db.iterator({ limit: -1 }).collect() + assert.notEqual(hash, null) + assert.equal(hash, last(items).hash) + assert.equal(items.length, 1) + }) + + it('returns the added entry\'s hash, 2 entries', async () => { + const prevHash = db.iterator().collect()[0].hash + const hash = await db.add('hello2') + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 2) + assert.notEqual(hash, null) + assert.notEqual(hash, prevHash) + assert.equal(hash, last(items).hash) }) - after(() => { - if(client1) client1.disconnect() - if(client2) client2.disconnect() - ipfs.stop() - rmrf.sync(config.defaultOrbitDBDirectory) - rmrf.sync(config.defaultIpfsDirectory) + it('adds five items', async () => { + db = await orbitdb1.eventlog('second database') + await mapSeries([1, 2, 3, 4, 5], (i) => db.add('hello' + i)) + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 5) + assert.equal(first(items.map((f) => f.payload.value)), 'hello1') + assert.equal(last(items.map((f) => f.payload.value)), 'hello5') }) - describe('Eventlog', function() { - it('returns the added entry\'s hash, 1 entry', () => { - db = client1.eventlog(config.dbname, { replicate: false, maxHistory: 0 }) - return db.add('hello1') - .then((hash) => { - const items = db.iterator({ limit: -1 }).collect() - assert.notEqual(hash, null) - assert.equal(hash, last(items).hash) - assert.equal(items.length, 1) - }) + it('adds an item that is > 256 bytes', async () => { + db = await orbitdb1.eventlog('third database') + let msg = new Buffer(1024) + msg.fill('a') + const hash = await db.add(msg.toString()) + assert.notEqual(hash, null) + assert.equal(hash.startsWith('Qm'), true) + assert.equal(hash.length, 46) + }) + }) + + describe('Iterator', function() { + let items = [] + const itemCount = 5 + + before(async () => { + items = [] + db = await orbitdb1.eventlog('iterator tests') + items = await mapSeries([0, 1, 2, 3, 4], (i) => db.add('hello' + i)) + }) + + describe('Defaults', function() { + it('returns an iterator', () => { + const iter = db.iterator() + const next = iter.next().value + assert.notEqual(iter, null) + assert.notEqual(next, null) }) - it('returns the added entry\'s hash, 2 entries', () => { - const prevHash = db.iterator().collect()[0].hash - return db.add('hello2') - .then((hash) => { - const items = db.iterator({ limit: -1 }).collect() - assert.equal(items.length, 2) - assert.notEqual(hash, null) - assert.notEqual(hash, prevHash) - assert.equal(hash, last(items).hash) - }) + it('returns an item with the correct structure', () => { + const iter = db.iterator() + const next = iter.next().value + assert.notEqual(next, null) + assert.equal(next.hash.startsWith('Qm'), true) + assert.equal(next.payload.key, null) + assert.equal(next.payload.value, 'hello4') }) - it('adds five items', () => { - db = client1.eventlog(config.dbname, { replicate: false, maxHistory: 0 }) - return mapSeries([1, 2, 3, 4, 5], (i) => db.add('hello' + i)) - .then(() => { - const items = db.iterator({ limit: -1 }).collect() - assert.equal(items.length, 5) - assert.equal(first(items.map((f) => f.payload.value)), 'hello1') - assert.equal(last(items.map((f) => f.payload.value)), 'hello5') - }) + it('implements Iterator interface', () => { + const iter = db.iterator({ limit: -1 }) + let messages = [] + + for(let i of iter) + messages.push(i.key) + + assert.equal(messages.length, items.length) }) - it('adds an item that is > 256 bytes', () => { - db = client1.eventlog(config.dbname, { replicate: false, maxHistory: 0 }) - - let msg = new Buffer(1024) - msg.fill('a') - return db.add(msg.toString()) - .then((hash) => { - assert.notEqual(hash, null) - assert.equal(hash.startsWith('Qm'), true) - assert.equal(hash.length, 46) - }) + it('returns 1 item as default', () => { + const iter = db.iterator() + const first = iter.next().value + const second = iter.next().value + assert.equal(first.hash, items[items.length - 1]) + assert.equal(second, null) + assert.equal(first.payload.value, 'hello4') }) - }) - describe('Iterator', function() { - let items = [] - const itemCount = 5 + it('returns items in the correct order', () => { + const amount = 3 + const iter = db.iterator({ limit: amount }) + let i = items.length - amount + for(let item of iter) { + assert.equal(item.payload.value, 'hello' + i) + i ++ + } + }) + }) - beforeEach(() => { - items = [] - db = client1.eventlog(config.dbname, { replicate: false, maxHistory: 0 }) - return mapSeries([0, 1, 2, 3, 4], (i) => db.add('hello' + i)) - .then((res) => items = res) + describe('Collect', function() { + it('returns all items', () => { + const messages = db.iterator({ limit: -1 }).collect() + assert.equal(messages.length, items.length) + assert.equal(messages[0].payload.value, 'hello0') + assert.equal(messages[messages.length - 1].payload.value, 'hello4') }) - describe('Defaults', function() { - it('returns an iterator', () => { - const iter = db.iterator() - const next = iter.next().value - assert.notEqual(iter, null) - assert.notEqual(next, null) - }) + it('returns 1 item', () => { + const messages = db.iterator().collect() + assert.equal(messages.length, 1) + }) - it('returns an item with the correct structure', () => { - const iter = db.iterator() - const next = iter.next().value - assert.notEqual(next, null) - assert.equal(next.hash.startsWith('Qm'), true) - assert.equal(next.payload.key, null) - assert.equal(next.payload.value, 'hello4') - }) + it('returns 3 items', () => { + const messages = db.iterator({ limit: 3 }).collect() + assert.equal(messages.length, 3) + }) + }) - it('implements Iterator interface', () => { - const iter = db.iterator({ limit: -1 }) - let messages = [] + describe('Options: limit', function() { + it('returns 1 item when limit is 0', () => { + const iter = db.iterator({ limit: 1 }) + const first = iter.next().value + const second = iter.next().value + assert.equal(first.hash, last(items)) + assert.equal(second, null) + }) - for(let i of iter) - messages.push(i.key) + it('returns 1 item when limit is 1', () => { + const iter = db.iterator({ limit: 1 }) + const first = iter.next().value + const second = iter.next().value + assert.equal(first.hash, last(items)) + assert.equal(second, null) + }) - assert.equal(messages.length, items.length) - }) + it('returns 3 items', () => { + const iter = db.iterator({ limit: 3 }) + const first = iter.next().value + const second = iter.next().value + const third = iter.next().value + const fourth = iter.next().value + assert.equal(first.hash, items[items.length - 3]) + assert.equal(second.hash, items[items.length - 2]) + assert.equal(third.hash, items[items.length - 1]) + assert.equal(fourth, null) + }) - it('returns 1 item as default', () => { - const iter = db.iterator() - const first = iter.next().value - const second = iter.next().value - assert.equal(first.hash, items[items.length - 1]) - assert.equal(second, null) - assert.equal(first.payload.value, 'hello4') - }) + it('returns all items', () => { + const messages = db.iterator({ limit: -1 }) + .collect() + .map((e) => e.hash) - it('returns items in the correct order', () => { - const amount = 3 - const iter = db.iterator({ limit: amount }) - let i = items.length - amount - for(let item of iter) { - assert.equal(item.payload.value, 'hello' + i) - i ++ - } - }) + messages.reverse() + assert.equal(messages.length, items.length) + assert.equal(messages[0], items[items.length - 1]) }) - describe('Collect', function() { - it('returns all items', () => { - const messages = db.iterator({ limit: -1 }).collect() - assert.equal(messages.length, items.length) - assert.equal(messages[0].payload.value, 'hello0') - assert.equal(messages[messages.length - 1].payload.value, 'hello4') - }) + it('returns all items when limit is bigger than -1', () => { + const messages = db.iterator({ limit: -300 }) + .collect() + .map((e) => e.hash) - it('returns 1 item', () => { - const messages = db.iterator().collect() - assert.equal(messages.length, 1) - }) + assert.equal(messages.length, items.length) + assert.equal(messages[0], items[0]) + }) - it('returns 3 items', () => { - const messages = db.iterator({ limit: 3 }).collect() - assert.equal(messages.length, 3) - }) + it('returns all items when limit is bigger than number of items', () => { + const messages = db.iterator({ limit: 300 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, items.length) + assert.equal(messages[0], items[0]) }) + }) - describe('Options: limit', function() { - it('returns 1 item when limit is 0', () => { - const iter = db.iterator({ limit: 1 }) - const first = iter.next().value - const second = iter.next().value - assert.equal(first.hash, last(items)) - assert.equal(second, null) - }) + describe('Option: ranges', function() { + describe('gt & gte', function() { + it('returns 1 item when gte is the head', () => { + const messages = db.iterator({ gte: last(items), limit: -1 }) + .collect() + .map((e) => e.hash) - it('returns 1 item when limit is 1', () => { - const iter = db.iterator({ limit: 1 }) - const first = iter.next().value - const second = iter.next().value - assert.equal(first.hash, last(items)) - assert.equal(second, null) + assert.equal(messages.length, 1) + assert.equal(messages[0], last(items)) }) - it('returns 3 items', () => { - const iter = db.iterator({ limit: 3 }) - const first = iter.next().value - const second = iter.next().value - const third = iter.next().value - const fourth = iter.next().value - assert.equal(first.hash, items[items.length - 3]) - assert.equal(second.hash, items[items.length - 2]) - assert.equal(third.hash, items[items.length - 1]) - assert.equal(fourth, null) + it('returns 0 items when gt is the head', () => { + const messages = db.iterator({ gt: last(items) }).collect() + assert.equal(messages.length, 0) }) - it('returns all items', () => { - const messages = db.iterator({ limit: -1 }) + it('returns 2 item when gte is defined', () => { + const gte = items[items.length - 2] + const messages = db.iterator({ gte: gte, limit: -1 }) .collect() .map((e) => e.hash) - messages.reverse() - assert.equal(messages.length, items.length) - assert.equal(messages[0], items[items.length - 1]) + assert.equal(messages.length, 2) + assert.equal(messages[0], items[items.length - 2]) + assert.equal(messages[1], items[items.length - 1]) }) - it('returns all items when limit is bigger than -1', () => { - const messages = db.iterator({ limit: -300 }) + it('returns all items when gte is the root item', () => { + const messages = db.iterator({ gte: items[0], limit: -1 }) .collect() .map((e) => e.hash) assert.equal(messages.length, items.length) assert.equal(messages[0], items[0]) + assert.equal(messages[messages.length - 1], last(items)) }) - it('returns all items when limit is bigger than number of items', () => { - const messages = db.iterator({ limit: 300 }) + it('returns items when gt is the root item', () => { + const messages = db.iterator({ gt: items[0], limit: -1 }) .collect() .map((e) => e.hash) - assert.equal(messages.length, items.length) - assert.equal(messages[0], items[0]) + assert.equal(messages.length, itemCount - 1) + assert.equal(messages[0], items[1]) + assert.equal(messages[3], last(items)) + }) + + it('returns items when gt is defined', () => { + const messages = db.iterator({ limit: -1}) + .collect() + .map((e) => e.hash) + + const gt = messages[2] + + const messages2 = db.iterator({ gt: gt, limit: 100 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages2.length, 2) + assert.equal(messages2[0], messages[messages.length - 2]) + assert.equal(messages2[1], messages[messages.length - 1]) }) }) - describe('Option: ranges', function() { - describe('gt & gte', function() { - it('returns 1 item when gte is the head', () => { - const messages = db.iterator({ gte: last(items), limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 1) - assert.equal(messages[0], last(items)) - }) - - it('returns 0 items when gt is the head', () => { - const messages = db.iterator({ gt: last(items) }).collect() - assert.equal(messages.length, 0) - }) - - it('returns 2 item when gte is defined', () => { - const gte = items[items.length - 2] - const messages = db.iterator({ gte: gte, limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 2) - assert.equal(messages[0], items[items.length - 2]) - assert.equal(messages[1], items[items.length - 1]) - }) - - it('returns all items when gte is the root item', () => { - const messages = db.iterator({ gte: items[0], limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, items.length) - assert.equal(messages[0], items[0]) - assert.equal(messages[messages.length - 1], last(items)) - }) - - it('returns items when gt is the root item', () => { - const messages = db.iterator({ gt: items[0], limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, itemCount - 1) - assert.equal(messages[0], items[1]) - assert.equal(messages[3], last(items)) - }) - - it('returns items when gt is defined', () => { - const messages = db.iterator({ limit: -1}) - .collect() - .map((e) => e.hash) - - const gt = messages[2] - - const messages2 = db.iterator({ gt: gt, limit: 100 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages2.length, 2) - assert.equal(messages2[0], messages[messages.length - 2]) - assert.equal(messages2[1], messages[messages.length - 1]) - }) + describe('lt & lte', function() { + it('returns one item after head when lt is the head', () => { + const messages = db.iterator({ lt: last(items) }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, 1) + assert.equal(messages[0], items[items.length - 2]) }) - describe('lt & lte', function() { - it('returns one item after head when lt is the head', () => { - const messages = db.iterator({ lt: last(items) }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 1) - assert.equal(messages[0], items[items.length - 2]) - }) - - it('returns all items when lt is head and limit is -1', () => { - const messages = db.iterator({ lt: last(items), limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, items.length - 1) - assert.equal(messages[0], items[0]) - assert.equal(messages[messages.length - 1], items[items.length - 2]) - }) - - it('returns 3 items when lt is head and limit is 3', () => { - const messages = db.iterator({ lt: last(items), limit: 3 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 3) - assert.equal(messages[0], items[items.length - 4]) - assert.equal(messages[2], items[items.length - 2]) - }) - - it('returns null when lt is the root item', () => { - const messages = db.iterator({ lt: items[0] }).collect() - assert.equal(messages.length, 0) - }) - - it('returns one item when lte is the root item', () => { - const messages = db.iterator({ lte: items[0] }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 1) - assert.equal(messages[0], items[0]) - }) - - it('returns all items when lte is the head', () => { - const messages = db.iterator({ lte: last(items), limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, itemCount) - assert.equal(messages[0], items[0]) - assert.equal(messages[4], last(items)) - }) - - it('returns 3 items when lte is the head', () => { - const messages = db.iterator({ lte: last(items), limit: 3 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 3) - assert.equal(messages[0], items[items.length - 3]) - assert.equal(messages[1], items[items.length - 2]) - assert.equal(messages[2], last(items)) - }) + it('returns all items when lt is head and limit is -1', () => { + const messages = db.iterator({ lt: last(items), limit: -1 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, items.length - 1) + assert.equal(messages[0], items[0]) + assert.equal(messages[messages.length - 1], items[items.length - 2]) }) - }) - }) - describe('sync', () => { - const options = { - replicate: false, - } + it('returns 3 items when lt is head and limit is 3', () => { + const messages = db.iterator({ lt: last(items), limit: 3 }) + .collect() + .map((e) => e.hash) - it('syncs databases', (done) => { - const db1 = client1.eventlog(config.dbname, options) - const db2 = client2.eventlog(config.dbname, options) + assert.equal(messages.length, 3) + assert.equal(messages[0], items[items.length - 4]) + assert.equal(messages[2], items[items.length - 2]) + }) - db1.events.on('error', (e) => { - console.log(e.stack()) - done(e) + it('returns null when lt is the root item', () => { + const messages = db.iterator({ lt: items[0] }).collect() + assert.equal(messages.length, 0) }) - db2.events.on('write', (dbname, hash, entry, heads) => { - assert.equal(db1.iterator({ limit: -1 }).collect().length, 0) - db1.sync(heads) + it('returns one item when lte is the root item', () => { + const messages = db.iterator({ lte: items[0] }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, 1) + assert.equal(messages[0], items[0]) }) - db1.events.on('synced', () => { - const items = db1.iterator({ limit: -1 }).collect() - assert.equal(items.length, 1) - assert.equal(items[0].payload.value, 'hello2') - done() + it('returns all items when lte is the head', () => { + const messages = db.iterator({ lte: last(items), limit: -1 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, itemCount) + assert.equal(messages[0], items[0]) + assert.equal(messages[4], last(items)) }) - db2.add('hello2') - .catch(done) + it('returns 3 items when lte is the head', () => { + const messages = db.iterator({ lte: last(items), limit: 3 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, 3) + assert.equal(messages[0], items[items.length - 3]) + assert.equal(messages[1], items[items.length - 2]) + assert.equal(messages[2], last(items)) + }) }) }) }) diff --git a/test/feed.test.js b/test/feed.test.js index f2e20d414..92e485880 100644 --- a/test/feed.test.js +++ b/test/feed.test.js @@ -2,426 +2,392 @@ const assert = require('assert') const rmrf = require('rimraf') -const mapSeries = require('./promise-map-series') +const mapSeries = require('p-map-series') const OrbitDB = require('../src/OrbitDB') -const hasIpfsApiWithPubsub = require('./test-utils').hasIpfsApiWithPubsub -const first = require('./test-utils').first -const last = require('./test-utils').last -const config = require('./test-config') - -config.daemons.forEach((IpfsDaemon) => { - - describe('orbit-db - Feed', function() { - this.timeout(config.timeout) - - let ipfs, client1, client2, db - - before(function (done) { - rmrf.sync(config.defaultIpfsDirectory) - rmrf.sync(config.defaultOrbitDBDirectory) - ipfs = new IpfsDaemon() - ipfs.on('error', done) - ipfs.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs), true) - client1 = new OrbitDB(ipfs, 'A') - client2 = new OrbitDB(ipfs, 'B') - done() - }) +const first = require('./utils/test-utils').first +const last = require('./utils/test-utils').last +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') + +const dbPath = './orbitdb/tests/feed' +const ipfsPath = './orbitdb/tests/feed/ipfs' + +describe('orbit-db - Feed', function() { + this.timeout(config.timeout) + + let ipfs, orbitdb1, orbitdb2, db, address + + before(async () => { + config.daemon1.repo = ipfsPath + rmrf.sync(config.daemon1.repo) + rmrf.sync(dbPath) + ipfs = await startIpfs(config.daemon1) + orbitdb1 = new OrbitDB(ipfs, dbPath + '/1') + orbitdb2 = new OrbitDB(ipfs, dbPath + '/2') + }) + + after(async () => { + if(orbitdb1) + orbitdb1.stop() + + if(orbitdb2) + orbitdb2.stop() + + if (ipfs) + await ipfs.stop() + }) + + describe('Feed', function() { + it('creates and opens a database', async () => { + db = await orbitdb1.feed('first database') + db = await orbitdb1.feed('first database') + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 0) + }) + + it('returns the added entry\'s hash, 1 entry', async () => { + db = await orbitdb1.feed('first') + address = db.address.toString() + const hash = await db.add('hello1') + const items = db.iterator({ limit: -1 }).collect() + assert.notEqual(hash, null) + assert.equal(hash, last(items).hash) + assert.equal(items.length, 1) }) - after(() => { - if(client1) client1.disconnect() - if(client2) client2.disconnect() - ipfs.stop() - rmrf.sync(config.defaultOrbitDBDirectory) - rmrf.sync(config.defaultIpfsDirectory) + it('returns the added entry\'s hash, 2 entries', async () => { + db = await orbitdb1.feed(address) + await db.load() + const prevHash = db.iterator().collect()[0].hash + const hash = await db.add('hello2') + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 2) + assert.notEqual(hash, null) + assert.notEqual(hash, prevHash) + assert.equal(hash, last(items).hash) }) - describe('Feed', function() { - it('returns the added entry\'s hash, 1 entry', () => { - db = client1.feed(config.dbname, { replicate: false, maxHistory: 0 }) - return db.add('hello1') - .then((hash) => { - const items = db.iterator({ limit: -1 }).collect() - assert.notEqual(hash, null) - assert.equal(hash, last(items).hash) - assert.equal(items.length, 1) - }) + it('adds five items', async () => { + db = await orbitdb1.feed('second') + await mapSeries([1, 2, 3, 4, 5], (i) => db.add('hello' + i)) + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 5) + assert.equal(first(items.map((f) => f.payload.value)), 'hello1') + assert.equal(last(items.map((f) => f.payload.value)), 'hello5') + }) + + it('adds an item that is > 256 bytes', async () => { + db = await orbitdb1.feed('third') + let msg = new Buffer(1024) + msg.fill('a') + const hash = await db.add(msg.toString()) + assert.notEqual(hash, null) + assert.equal(hash.startsWith('Qm'), true) + assert.equal(hash.length, 46) + }) + + it('deletes an item when only one item in the database', async () => { + db = await orbitdb1.feed('fourth') + const hash = await db.add('hello3') + const delopHash = await db.remove(hash) + const items = db.iterator().collect() + assert.equal(delopHash.startsWith('Qm'), true) + assert.equal(items.length, 0) + }) + + it('deletes an item when two items in the database', async () => { + db = await orbitdb1.feed('fifth') + + await db.add('hello1') + const hash = await db.add('hello2') + await db.remove(hash) + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 1) + assert.equal(first(items).payload.value, 'hello1') + }) + + it('deletes an item between adds', async () => { + db = await orbitdb1.feed('sixth') + + const hash = await db.add('hello1') + await db.add('hello2') + await db.remove(hash) + await db.add('hello3') + + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, 2) + + const firstItem = first(items) + const secondItem = items[1] + assert.equal(firstItem.hash.startsWith('Qm'), true) + assert.equal(firstItem.payload.key, null) + assert.equal(firstItem.payload.value, 'hello2') + assert.equal(secondItem.payload.value, 'hello3') + }) + }) + + describe('Iterator', function() { + let items = [] + const itemCount = 5 + + before(async () => { + items = [] + db = await orbitdb1.feed('feed-iterator') + items = await mapSeries([0, 1, 2, 3, 4], (i) => db.add('hello' + i)) + }) + + describe('Defaults', function() { + it('returns an iterator', () => { + const iter = db.iterator() + const next = iter.next().value + assert.notEqual(iter, null) + assert.notEqual(next, null) }) - it('returns the added entry\'s hash, 2 entries', () => { - const prevHash = db.iterator().collect()[0].hash - return db.add('hello2') - .then((hash) => { - const items = db.iterator({ limit: -1 }).collect() - assert.equal(items.length, 2) - assert.notEqual(hash, null) - assert.notEqual(hash, prevHash) - assert.equal(hash, last(items).hash) - }) + it('returns an item with the correct structure', () => { + const iter = db.iterator() + const next = iter.next().value + assert.notEqual(next, null) + assert.equal(next.hash.startsWith('Qm'), true) + assert.equal(next.payload.key, null) + assert.equal(next.payload.value, 'hello4') }) - it('adds five items', () => { - db = client1.feed(config.dbname, { replicate: false, maxHistory: 0 }) - return mapSeries([1, 2, 3, 4, 5], (i) => db.add('hello' + i)) - .then(() => { - const items = db.iterator({ limit: -1 }).collect() - assert.equal(items.length, 5) - assert.equal(first(items.map((f) => f.payload.value)), 'hello1') - assert.equal(last(items.map((f) => f.payload.value)), 'hello5') - }) + it('implements Iterator interface', () => { + const iter = db.iterator({ limit: -1 }) + let messages = [] + + for(let i of iter) + messages.push(i.key) + + assert.equal(messages.length, items.length) }) - it('adds an item that is > 256 bytes', () => { - db = client1.feed(config.dbname, { replicate: false, maxHistory: 0 }) - - let msg = new Buffer(1024) - msg.fill('a') - return db.add(msg.toString()) - .then((hash) => { - assert.notEqual(hash, null) - assert.equal(hash.startsWith('Qm'), true) - assert.equal(hash.length, 46) - }) + it('returns 1 item as default', () => { + const iter = db.iterator() + const first = iter.next().value + const second = iter.next().value + assert.equal(first.hash, items[items.length - 1]) + assert.equal(second, null) + assert.equal(first.payload.value, 'hello4') }) - it('deletes an item when only one item in the database', () => { - db = client1.feed(config.dbname, { replicate: false, maxHistory: 0 }) + it('returns items in the correct order', () => { + const amount = 3 + const iter = db.iterator({ limit: amount }) + let i = items.length - amount + for(let item of iter) { + assert.equal(item.payload.value, 'hello' + i) + i ++ + } + }) + }) - return db.add('hello3') - .then((hash) => db.remove(hash)) - .then((delopHash) => { - const items = db.iterator().collect() - assert.equal(delopHash.startsWith('Qm'), true) - assert.equal(items.length, 0) - }) + describe('Collect', function() { + it('returns all items', () => { + const messages = db.iterator({ limit: -1 }).collect() + assert.equal(messages.length, items.length) + assert.equal(messages[0].payload.value, 'hello0') + assert.equal(messages[messages.length - 1].payload.value, 'hello4') }) - it('deletes an item when two items in the database', () => { - db = client1.feed(config.dbname, { replicate: false, maxHistory: 0 }) - - return db.add('hello1') - .then(() => db.add('hello2')) - .then((hash) => db.remove(hash)) - .then(() => { - const items = db.iterator({ limit: -1 }).collect() - assert.equal(items.length, 1) - assert.equal(first(items).payload.value, 'hello1') - }) + it('returns 1 item', () => { + const messages = db.iterator().collect() + assert.equal(messages.length, 1) }) - it('deletes an item between adds', () => { - db = client1.feed(config.dbname, { replicate: false, maxHistory: 0 }) - - let hash - return db.add('hello1') - .then((res) => hash = res) - .then(() => db.add('hello2')) - .then(() => db.remove(hash)) - .then(() => db.add('hello3')) - .then(() => { - const items = db.iterator({ limit: -1 }).collect() - assert.equal(items.length, 2) - - const firstItem = first(items) - const secondItem = items[1] - assert.equal(firstItem.hash.startsWith('Qm'), true) - assert.equal(firstItem.payload.key, null) - assert.equal(firstItem.payload.value, 'hello2') - assert.equal(secondItem.payload.value, 'hello3') - }) + it('returns 3 items', () => { + const messages = db.iterator({ limit: 3 }).collect() + assert.equal(messages.length, 3) }) }) - describe('Iterator', function() { - let items = [] - const itemCount = 5 + describe('Options: limit', function() { + it('returns 1 item when limit is 0', () => { + const iter = db.iterator({ limit: 1 }) + const first = iter.next().value + const second = iter.next().value + assert.equal(first.hash, last(items)) + assert.equal(second, null) + }) - beforeEach(() => { - items = [] - db = client1.feed(config.dbname, { replicate: false, maxHistory: 0 }) - return mapSeries([0, 1, 2, 3, 4], (i) => db.add('hello' + i)) - .then((res) => items = res) + it('returns 1 item when limit is 1', () => { + const iter = db.iterator({ limit: 1 }) + const first = iter.next().value + const second = iter.next().value + assert.equal(first.hash, last(items)) + assert.equal(second, null) }) - describe('Defaults', function() { - it('returns an iterator', () => { - const iter = db.iterator() - const next = iter.next().value - assert.notEqual(iter, null) - assert.notEqual(next, null) - }) + it('returns 3 items', () => { + const iter = db.iterator({ limit: 3 }) + const first = iter.next().value + const second = iter.next().value + const third = iter.next().value + const fourth = iter.next().value + assert.equal(first.hash, items[items.length - 3]) + assert.equal(second.hash, items[items.length - 2]) + assert.equal(third.hash, items[items.length - 1]) + assert.equal(fourth, null) + }) - it('returns an item with the correct structure', () => { - const iter = db.iterator() - const next = iter.next().value - assert.notEqual(next, null) - assert.equal(next.hash.startsWith('Qm'), true) - assert.equal(next.payload.key, null) - assert.equal(next.payload.value, 'hello4') - }) + it('returns all items', () => { + const messages = db.iterator({ limit: -1 }) + .collect() + .map((e) => e.hash) - it('implements Iterator interface', () => { - const iter = db.iterator({ limit: -1 }) - let messages = [] + messages.reverse() + assert.equal(messages.length, items.length) + assert.equal(messages[0], items[items.length - 1]) + }) - for(let i of iter) - messages.push(i.key) + it('returns all items when limit is bigger than -1', () => { + const messages = db.iterator({ limit: -300 }) + .collect() + .map((e) => e.hash) - assert.equal(messages.length, items.length) - }) + assert.equal(messages.length, items.length) + assert.equal(messages[0], items[0]) + }) - it('returns 1 item as default', () => { - const iter = db.iterator() - const first = iter.next().value - const second = iter.next().value - assert.equal(first.hash, items[items.length - 1]) - assert.equal(second, null) - assert.equal(first.payload.value, 'hello4') - }) + it('returns all items when limit is bigger than number of items', () => { + const messages = db.iterator({ limit: 300 }) + .collect() + .map((e) => e.hash) - it('returns items in the correct order', () => { - const amount = 3 - const iter = db.iterator({ limit: amount }) - let i = items.length - amount - for(let item of iter) { - assert.equal(item.payload.value, 'hello' + i) - i ++ - } - }) + assert.equal(messages.length, items.length) + assert.equal(messages[0], items[0]) }) + }) - describe('Collect', function() { - it('returns all items', () => { - const messages = db.iterator({ limit: -1 }).collect() - assert.equal(messages.length, items.length) - assert.equal(messages[0].payload.value, 'hello0') - assert.equal(messages[messages.length - 1].payload.value, 'hello4') - }) + describe('Option: ranges', function() { + describe('gt & gte', function() { + it('returns 1 item when gte is the head', () => { + const messages = db.iterator({ gte: last(items), limit: -1 }) + .collect() + .map((e) => e.hash) - it('returns 1 item', () => { - const messages = db.iterator().collect() assert.equal(messages.length, 1) + assert.equal(messages[0], last(items)) }) - it('returns 3 items', () => { - const messages = db.iterator({ limit: 3 }).collect() - assert.equal(messages.length, 3) + it('returns 0 items when gt is the head', () => { + const messages = db.iterator({ gt: last(items) }).collect() + assert.equal(messages.length, 0) }) - }) - describe('Options: limit', function() { - it('returns 1 item when limit is 0', () => { - const iter = db.iterator({ limit: 1 }) - const first = iter.next().value - const second = iter.next().value - assert.equal(first.hash, last(items)) - assert.equal(second, null) + it('returns 2 item when gte is defined', () => { + const gte = items[items.length - 2] + const messages = db.iterator({ gte: gte, limit: -1 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, 2) + assert.equal(messages[0], items[items.length - 2]) + assert.equal(messages[1], items[items.length - 1]) }) - it('returns 1 item when limit is 1', () => { - const iter = db.iterator({ limit: 1 }) - const first = iter.next().value - const second = iter.next().value - assert.equal(first.hash, last(items)) - assert.equal(second, null) + it('returns all items when gte is the root item', () => { + const messages = db.iterator({ gte: items[0], limit: -1 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, items.length) + assert.equal(messages[0], items[0]) + assert.equal(messages[messages.length - 1], last(items)) }) - it('returns 3 items', () => { - const iter = db.iterator({ limit: 3 }) - const first = iter.next().value - const second = iter.next().value - const third = iter.next().value - const fourth = iter.next().value - assert.equal(first.hash, items[items.length - 3]) - assert.equal(second.hash, items[items.length - 2]) - assert.equal(third.hash, items[items.length - 1]) - assert.equal(fourth, null) + it('returns items when gt is the root item', () => { + const messages = db.iterator({ gt: items[0], limit: -1 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, itemCount - 1) + assert.equal(messages[0], items[1]) + assert.equal(messages[3], last(items)) }) - it('returns all items', () => { - const messages = db.iterator({ limit: -1 }) + it('returns items when gt is defined', () => { + const messages = db.iterator({ limit: -1}) .collect() .map((e) => e.hash) - messages.reverse() - assert.equal(messages.length, items.length) - assert.equal(messages[0], items[items.length - 1]) + const gt = messages[2] + + const messages2 = db.iterator({ gt: gt, limit: 100 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages2.length, 2) + assert.equal(messages2[0], messages[messages.length - 2]) + assert.equal(messages2[1], messages[messages.length - 1]) }) + }) - it('returns all items when limit is bigger than -1', () => { - const messages = db.iterator({ limit: -300 }) + describe('lt & lte', function() { + it('returns one item after head when lt is the head', () => { + const messages = db.iterator({ lt: last(items) }) .collect() .map((e) => e.hash) - assert.equal(messages.length, items.length) - assert.equal(messages[0], items[0]) + assert.equal(messages.length, 1) + assert.equal(messages[0], items[items.length - 2]) }) - it('returns all items when limit is bigger than number of items', () => { - const messages = db.iterator({ limit: 300 }) + it('returns all items when lt is head and limit is -1', () => { + const messages = db.iterator({ lt: last(items), limit: -1 }) .collect() .map((e) => e.hash) - assert.equal(messages.length, items.length) + assert.equal(messages.length, items.length - 1) assert.equal(messages[0], items[0]) + assert.equal(messages[messages.length - 1], items[items.length - 2]) }) - }) - describe('Option: ranges', function() { - describe('gt & gte', function() { - it('returns 1 item when gte is the head', () => { - const messages = db.iterator({ gte: last(items), limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 1) - assert.equal(messages[0], last(items)) - }) - - it('returns 0 items when gt is the head', () => { - const messages = db.iterator({ gt: last(items) }).collect() - assert.equal(messages.length, 0) - }) - - it('returns 2 item when gte is defined', () => { - const gte = items[items.length - 2] - const messages = db.iterator({ gte: gte, limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 2) - assert.equal(messages[0], items[items.length - 2]) - assert.equal(messages[1], items[items.length - 1]) - }) - - it('returns all items when gte is the root item', () => { - const messages = db.iterator({ gte: items[0], limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, items.length) - assert.equal(messages[0], items[0]) - assert.equal(messages[messages.length - 1], last(items)) - }) - - it('returns items when gt is the root item', () => { - const messages = db.iterator({ gt: items[0], limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, itemCount - 1) - assert.equal(messages[0], items[1]) - assert.equal(messages[3], last(items)) - }) - - it('returns items when gt is defined', () => { - const messages = db.iterator({ limit: -1}) - .collect() - .map((e) => e.hash) - - const gt = messages[2] - - const messages2 = db.iterator({ gt: gt, limit: 100 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages2.length, 2) - assert.equal(messages2[0], messages[messages.length - 2]) - assert.equal(messages2[1], messages[messages.length - 1]) - }) + it('returns 3 items when lt is head and limit is 3', () => { + const messages = db.iterator({ lt: last(items), limit: 3 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, 3) + assert.equal(messages[0], items[items.length - 4]) + assert.equal(messages[2], items[items.length - 2]) }) - describe('lt & lte', function() { - it('returns one item after head when lt is the head', () => { - const messages = db.iterator({ lt: last(items) }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 1) - assert.equal(messages[0], items[items.length - 2]) - }) - - it('returns all items when lt is head and limit is -1', () => { - const messages = db.iterator({ lt: last(items), limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, items.length - 1) - assert.equal(messages[0], items[0]) - assert.equal(messages[messages.length - 1], items[items.length - 2]) - }) - - it('returns 3 items when lt is head and limit is 3', () => { - const messages = db.iterator({ lt: last(items), limit: 3 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 3) - assert.equal(messages[0], items[items.length - 4]) - assert.equal(messages[2], items[items.length - 2]) - }) - - it('returns null when lt is the root item', () => { - const messages = db.iterator({ lt: items[0] }).collect() - assert.equal(messages.length, 0) - }) - - it('returns one item when lte is the root item', () => { - const messages = db.iterator({ lte: items[0] }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 1) - assert.equal(messages[0], items[0]) - }) - - it('returns all items when lte is the head', () => { - const messages = db.iterator({ lte: last(items), limit: -1 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, itemCount) - assert.equal(messages[0], items[0]) - assert.equal(messages[4], last(items)) - }) - - it('returns 3 items when lte is the head', () => { - const messages = db.iterator({ lte: last(items), limit: 3 }) - .collect() - .map((e) => e.hash) - - assert.equal(messages.length, 3) - assert.equal(messages[0], items[items.length - 3]) - assert.equal(messages[1], items[items.length - 2]) - assert.equal(messages[2], last(items)) - }) + it('returns null when lt is the root item', () => { + const messages = db.iterator({ lt: items[0] }).collect() + assert.equal(messages.length, 0) }) - }) - }) - describe('sync', () => { - const options = { - replicate: false, - } - - it('syncs databases', (done) => { - const db1 = client1.feed(config.dbname, options) - const db2 = client2.feed(config.dbname, options) - db2.events.on('write', (dbname, hash, entry, heads) => { - assert.equal(db1.iterator({ limit: -1 }).collect().length, 0) - db1.sync(heads) + it('returns one item when lte is the root item', () => { + const messages = db.iterator({ lte: items[0] }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, 1) + assert.equal(messages[0], items[0]) }) - db1.events.on('synced', () => { - const items = db1.iterator({ limit: -1 }).collect() - assert.equal(items.length, 1) - assert.equal(items[0].payload.value, 'hello2') - done() + it('returns all items when lte is the head', () => { + const messages = db.iterator({ lte: last(items), limit: -1 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, itemCount) + assert.equal(messages[0], items[0]) + assert.equal(messages[4], last(items)) }) - db2.add('hello2') - .catch(done) + it('returns 3 items when lte is the head', () => { + const messages = db.iterator({ lte: last(items), limit: 3 }) + .collect() + .map((e) => e.hash) + + assert.equal(messages.length, 3) + assert.equal(messages[0], items[items.length - 3]) + assert.equal(messages[1], items[items.length - 2]) + assert.equal(messages[2], last(items)) + }) }) }) }) diff --git a/test/ipfs-daemons.conf.js b/test/ipfs-daemons.conf.js deleted file mode 100644 index 580476a91..000000000 --- a/test/ipfs-daemons.conf.js +++ /dev/null @@ -1,38 +0,0 @@ -module.exports = { - daemon1: { - IpfsDataDir: '/tmp/orbit-db-tests-1', - Addresses: { - API: '/ip4/127.0.0.1/tcp/0', - Swarm: ['/ip4/0.0.0.0/tcp/0'], - Gateway: '/ip4/0.0.0.0/tcp/0' - }, - Bootstrap: [], - Discovery: { - MDNS: { - Enabled: true, - Interval: 10 - }, - webRTCStar: { - Enabled: false - } - } - }, - daemon2: { - IpfsDataDir: '/tmp/orbit-db-tests-2', - Addresses: { - API: '/ip4/127.0.0.1/tcp/0', - Swarm: ['/ip4/0.0.0.0/tcp/0'], - Gateway: '/ip4/0.0.0.0/tcp/0' - }, - Bootstrap: [], - Discovery: { - MDNS: { - Enabled: true, - Interval: 10 - }, - webRTCStar: { - Enabled: false - } - } - } -} diff --git a/test/kvstore.test.js b/test/kvstore.test.js index 9f207fe83..5cb7e0926 100644 --- a/test/kvstore.test.js +++ b/test/kvstore.test.js @@ -3,161 +3,121 @@ const assert = require('assert') const rmrf = require('rimraf') const OrbitDB = require('../src/OrbitDB') -const hasIpfsApiWithPubsub = require('./test-utils').hasIpfsApiWithPubsub -const config = require('./test-config') - -config.daemons.forEach((IpfsDaemon) => { - - describe('orbit-db - Key-Value Store', function() { - this.timeout(config.timeout) - - let ipfs, client1, client2, db - - before(function (done) { - rmrf.sync(config.defaultIpfsDirectory) - rmrf.sync(config.defaultOrbitDBDirectory) - ipfs = new IpfsDaemon() - ipfs.on('error', done) - ipfs.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs), true) - client1 = new OrbitDB(ipfs, 'A') - client2 = new OrbitDB(ipfs, 'B') - done() - }) - }) - - after(() => { - if(client1) client1.disconnect() - if(client2) client2.disconnect() - ipfs.stop() - rmrf.sync(config.defaultOrbitDBDirectory) - rmrf.sync(config.defaultIpfsDirectory) - }) - - beforeEach(() => { - db = client1.kvstore(config.dbname, { replicate: false, maxHistory: 0 }) - }) - - it('put', () => { - return db.put('key1', 'hello1') - .then(() => { - const value = db.get('key1') - assert.equal(value, 'hello1') - }) - }) - - it('get', () => { - return db.put('key1', 'hello2') - .then(() => { - const value = db.get('key1') - assert.equal(value, 'hello2') - }) - }) - - it('put updates a value', () => { - return db.put('key1', 'hello3') - .then(() => db.put('key1', 'hello4')) - .then(() => { - const value = db.get('key1') - assert.equal(value, 'hello4') - }) - }) - - it('set is an alias for put', () => { - return db.set('key1', 'hello5') - .then(() => { - const value = db.get('key1') - assert.equal(value, 'hello5') - }) - }) - - it('put/get - multiple keys', () => { - return db.put('key1', 'hello1') - .then(() => db.put('key2', 'hello2')) - .then(() => db.put('key3', 'hello3')) - .then(() => { - const v1 = db.get('key1') - const v2 = db.get('key2') - const v3 = db.get('key3') - assert.equal(v1, 'hello1') - assert.equal(v2, 'hello2') - assert.equal(v3, 'hello3') - }) - }) - - it('deletes a key', () => { - return db.put('key1', 'hello!') - .then(() => db.del('key1')) - .then(() => { - const value = db.get('key1') - assert.equal(value, null) - }) - }) - - it('deletes a key after multiple updates', () => { - return db.put('key1', 'hello1') - .then(() => db.put('key1', 'hello2')) - .then(() => db.put('key1', 'hello3')) - .then(() => db.del('key1')) - .then(() => { - const value = db.get('key1') - assert.equal(value, null) - }) - }) - - it('get - integer value', () => { - const val = 123 - return db.put('key1', val) - .then(() => { - const v1 = db.get('key1') - assert.equal(v1, val) - }) - }) - - it('get - object value', () => { - const val = { one: 'first', two: 2 } - return db.put('key1', val) - .then(() => { - const v1 = db.get('key1') - assert.deepEqual(v1, val) - }) - }) - - it('get - array value', () => { - const val = [1, 2, 3, 4, 5] - return db.put('key1', val) - .then(() => { - const v1 = db.get('key1') - assert.deepEqual(v1, val) - }) - }) - - describe('sync', () => { - const options = { - replicate: false, - } - - it('syncs databases', (done) => { - const db1 = client1.kvstore(config.dbname, options) - const db2 = client2.kvstore(config.dbname, options) - - db1.events.on('error', done) - - db2.events.on('write', (dbname, hash, entry, heads) => { - assert.equal(db1.get('key1'), null) - assert.equal(db2.get('key1'), 'hello1') - db1.sync(heads) - }) - - db1.events.on('synced', () => { - const value = db1.get('key1') - assert.equal(value, 'hello1') - done() - }) - - db2.put('key1', 'hello1') - .catch(done) - }) - }) +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') + +const dbPath = './orbitdb/tests/kvstore' +const ipfsPath = './orbitdb/tests/kvstore/ipfs' + +describe('orbit-db - Key-Value Store', function() { + this.timeout(config.timeout) + + let ipfs, orbitdb1, orbitdb2, db + + before(async () => { + config.daemon1.repo = ipfsPath + rmrf.sync(config.daemon1.repo) + rmrf.sync(dbPath) + ipfs = await startIpfs(config.daemon1) + orbitdb1 = new OrbitDB(ipfs, dbPath + '/1') + orbitdb2 = new OrbitDB(ipfs, dbPath + '/2') + }) + + after(async () => { + if(orbitdb1) + orbitdb1.stop() + + if(orbitdb2) + orbitdb2.stop() + + if (ipfs) + await ipfs.stop() + }) + + beforeEach(async () => { + db = await orbitdb1.kvstore(config.dbname, { path: dbPath }) + }) + + afterEach(async () => { + await db.drop() + }) + + it('creates and opens a database', async () => { + db = await orbitdb1.keyvalue('first kv database') + db = await orbitdb1.keyvalue('first kv database') + }) + + it('put', async () => { + await db.put('key1', 'hello1') + const value = db.get('key1') + assert.equal(value, 'hello1') + }) + + it('get', async () => { + await db.put('key1', 'hello2') + const value = db.get('key1') + assert.equal(value, 'hello2') + }) + + it('put updates a value', async () => { + await db.put('key1', 'hello3') + await db.put('key1', 'hello4') + const value = db.get('key1') + assert.equal(value, 'hello4') + }) + + it('set is an alias for put', async () => { + await db.set('key1', 'hello5') + const value = db.get('key1') + assert.equal(value, 'hello5') + }) + + it('put/get - multiple keys', async () => { + await db.put('key1', 'hello1') + await db.put('key2', 'hello2') + await db.put('key3', 'hello3') + const v1 = db.get('key1') + const v2 = db.get('key2') + const v3 = db.get('key3') + assert.equal(v1, 'hello1') + assert.equal(v2, 'hello2') + assert.equal(v3, 'hello3') + }) + + it('deletes a key', async () => { + await db.put('key1', 'hello!') + await db.del('key1') + const value = db.get('key1') + assert.equal(value, null) + }) + + it('deletes a key after multiple updates', async () => { + await db.put('key1', 'hello1') + await db.put('key1', 'hello2') + await db.put('key1', 'hello3') + await db.del('key1') + const value = db.get('key1') + assert.equal(value, null) + }) + + it('get - integer value', async () => { + const val = 123 + await db.put('key1', val) + const v1 = db.get('key1') + assert.equal(v1, val) + }) + + it('get - object value', async () => { + const val = { one: 'first', two: 2 } + await db.put('key1', val) + const v1 = db.get('key1') + assert.deepEqual(v1, val) + }) + + it('get - array value', async () => { + const val = [1, 2, 3, 4, 5] + await db.put('key1', val) + const v1 = db.get('key1') + assert.deepEqual(v1, val) }) }) diff --git a/test/mocha.opts b/test/mocha.opts index 8a49b092f..3c317158f 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1,3 +1,4 @@ --reporter spec --colors --recursive +--exit \ No newline at end of file diff --git a/test/network-stress.tests.js b/test/network-stress.tests.js new file mode 100644 index 000000000..35dd37587 --- /dev/null +++ b/test/network-stress.tests.js @@ -0,0 +1,265 @@ +'use strict' + +const fs = require('fs') +const rmrf = require('rimraf') +const path = require('path') +const assert = require('assert') +const pMap = require('p-map') +const pEachSeries = require('p-each-series') +const pWhilst = require('p-whilst') +const OrbitDB = require('../src/OrbitDB') +const startIpfs = require('./utils/start-ipfs') + +// Settings for the test ipfs daemons +const config = require('./utils/config.js') + +describe.skip('OrbitDB - Network Stress Tests', function() { + // We need a huge timeout since we're running + // very long-running tests (takes minutes) + this.timeout(1000 * 60 * 60) // 1 hour + + const tests = [ + { + description: '1 update - 2 peers - as fast as possible', + updates: 1, + maxInterval: -1, + minInterval: 0, + sequential: false, + content: 'Hello #', + clients: [ + { name: 'daemon1' }, + { name: 'daemon2' }, + // { name: 'daemon3' }, + // { name: 'daemon4' }, + // { name: 'daemon5' }, + // { name: 'daemon6' }, + // Don't go beyond 6... + // { name: 'daemon7' }, + // { name: 'daemon8' }, + ], + }, + { + description: '32 update - concurrent - 2 peers - random interval', + updates: 32, + maxInterval: 2000, + minInterval: 10, + sequential: false, + content: 'Hello random! ', + clients: [ + { name: 'daemon1' }, + { name: 'daemon2' }, + ], + }, + { + description: '1000 update concurrently - 2 peers - as fast as possible', + updates: 1000, + maxInterval: -1, + minInterval: 0, + sequential: false, + content: 'Hello #', + clients: [ + { name: 'daemon1' }, + { name: 'daemon2' }, + ], + }, + { + description: '200 update as Buffers sequentially - 2 peers - as fast as possible', + updates: 200, + maxInterval: -1, + minInterval: 0, + sequential: true, + content: Buffer.from('👻'), + clients: [ + { name: 'daemon1' }, + { name: 'daemon2' }, + ], + }, + { + description: '50 update over a period long time - 6 peers - slow, random write intervals', + updates: 50, + maxInterval: 3000, + minInterval: 1000, + sequential: false, + content: 'Terve! ', + clients: [ + { name: 'daemon1' }, + { name: 'daemon2' }, + { name: 'daemon3' }, + { name: 'daemon4' }, + { name: 'daemon5' }, + { name: 'daemon6' }, + ], + }, + { + description: '50 update over a period long time - 8 peers - slow, random write intervals', + updates: 100, + maxInterval: 3000, + minInterval: 1000, + sequential: false, + content: 'Terve! ', + clients: [ + { name: 'daemon1' }, + { name: 'daemon2' }, + { name: 'daemon3' }, + { name: 'daemon4' }, + { name: 'daemon5' }, + { name: 'daemon6' }, + { name: 'daemon7' }, + { name: 'daemon8' }, + ], + }, + ] + + const rootPath = './orbitdb/network-tests/' + const channelName = 'orbitdb-network-stress-tests' + + tests.forEach(test => { + it(test.description, (done) => { + const updateCount = test.updates + const maxInterval = test.maxInterval || -1 + const minInterval = test.minInterval || 0 + const sequential = test.sequential + const clientData = test.clients + + rmrf.sync(rootPath) + + // Create IPFS instances + const createIpfsInstance = (c) => { + const repoPath = path.join(rootPath, c.name, '/ipfs' + new Date().getTime()) + console.log("Starting IPFS instance <<>>", repoPath) + return startIpfs(Object.assign({}, config.defaultIpfsConfig, { + repo: repoPath, + start: true, + })) + } + + const createOrbitDB = async (databaseConfig, ipfs) => { + const orbitdb = new OrbitDB(ipfs, path.join('./orbitdb/network-tests/', databaseConfig.name)) + const db = await orbitdb.eventlog(databaseConfig.address, { + write: ['*'] + }) + return db + } + + let allTasks = [] + + const setupAllTasks = (databases) => { + // Create the payloads + let texts = [] + for (let i = 1; i < updateCount + 1; i ++) { + texts.push(test.content + i) + } + + const setupUpdates = (client) => texts.reduce((res, acc) => { + return res.concat([{ db: client, content: acc }]) + }, []) + + allTasks = databases.map(db => { + return { + name: db.id, + tasks: setupUpdates(db), + } + }) + } + + const runAllTasks = () => { + if (sequential) { + return pEachSeries(allTasks, e => pEachSeries(e.tasks, writeToDB)) + .then(() => console.log()) + } else { + return pMap(allTasks, e => pEachSeries(e.tasks, writeToDB)) + .then(() => console.log()) + } + } + + let i = 0 + const writeToDB = (task) => { + return new Promise((resolve, reject) => { + if (maxInterval === -1) { + task.db.add(task.content) + .then(() => process.stdout.write(`\rUpdates (${databases.length} peers): ${Math.floor(++i)} / ${updateCount}`)) + .then(resolve) + .catch(reject) + } else { + setTimeout(() => { + task.db.add(task.content) + .then(() => process.stdout.write(`\rUpdates (${databases.length} peers): ${Math.floor(++i)} / ${updateCount}`)) + .then(resolve) + .catch(reject) + }, Math.floor(Math.random() * maxInterval) + minInterval) + } + }) + } + + const waitForAllTasks = (address) => { + let msgCount = 0 + return pWhilst( + () => msgCount < databases.length * databases.length * updateCount, + () => new Promise(resolve => { + return queryDatabases(address) + .then(res => { + msgCount = res.reduce((val, acc) => val += acc.length, 0) + }) + .then(() => process.stdout.write(`\rUpdated (${databases.length} peers): ` + msgCount.toString() + ' / ' + (updateCount * databases.length * databases.length))) + .then(() => setTimeout(resolve, 100)) + }) + ) + .then(() => process.stdout.write(`\rUpdated (${databases.length} peers): ` + msgCount.toString() + ' / ' + (updateCount * databases.length * databases.length) + '\n')) + } + + const queryDatabases = () => { + return pMap(databases, db => db.iterator({ limit: -1 }).collect(), { concurrency: 2 }) + } + + // All our databases instances + let databases = [] + let addr + + // Start the test + pMap(clientData, (c, idx) => { + return createIpfsInstance(c) + .then(async (ipfs) => { + let db + if (idx === 0 && !addr) { + c.address = channelName + db = await createOrbitDB(c, ipfs) + addr = db.address.toString() + } else if (addr) { + c.address = addr + db = await createOrbitDB(c, ipfs) + } else { + console.error("Address not defined!") + } + return db + }) + }, { concurrency: 1 }) + .then((result) => databases = result) + .then(() => setupAllTasks(databases)) + .then(() => console.log(`Applying ${updateCount} updates per peer. This will take a while...`)) + .then(() => runAllTasks()) + .then(() => console.log('Done. Waiting for all updates to reach the peers...')) + .then(() => waitForAllTasks(addr)) + .then(() => queryDatabases()) + .then((result) => { + // Both databases have the same amount of entries + result.forEach(entries => { + assert.equal(entries.length, updateCount * databases.length) + }) + + // Both databases have the same entries in the same order + result.reduce((prev, entries) => { + assert.deepEqual(entries, prev) + return entries + }, result[0]) + + // Success! Cleanup and finish + pEachSeries(databases, db => { + db.close() + db._ipfs.stop() + }) + .then(() => done()) + }) + .catch(done) + }) + }) +}) diff --git a/test/persistency.js b/test/persistency.js index 38744f62a..68fad9d5c 100644 --- a/test/persistency.js +++ b/test/persistency.js @@ -1,95 +1,184 @@ 'use strict' const assert = require('assert') -const mapSeries = require('./promise-map-series') +const mapSeries = require('p-map-series') const rmrf = require('rimraf') -const hasIpfsApiWithPubsub = require('./test-utils').hasIpfsApiWithPubsub const OrbitDB = require('../src/OrbitDB') -const config = require('./test-config') - -// Daemon settings -const daemonsConf = require('./ipfs-daemons.conf.js') - -// orbit-db path -const testDataDir = './orbit-db' - -config.daemons.forEach((IpfsDaemon) => { - - describe('orbit-db - Persistency', function() { - this.timeout(config.timeout) - - let ipfs1, ipfs2, client1, client2, db1, db2 - - const removeDirectories = () => { - rmrf.sync(daemonsConf.daemon1.IpfsDataDir) - rmrf.sync(daemonsConf.daemon2.IpfsDataDir) - rmrf.sync(config.defaultIpfsDirectory) - rmrf.sync(config.defaultOrbitDBDirectory) - rmrf.sync(testDataDir) - } - - before(function (done) { - removeDirectories() - ipfs1 = new IpfsDaemon(daemonsConf.daemon1) - ipfs1.on('error', done) - ipfs1.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs1), true) - ipfs2 = new IpfsDaemon(daemonsConf.daemon2) - ipfs2.on('error', done) - ipfs2.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs2), true) - client1 = new OrbitDB(ipfs1, "one") - client2 = new OrbitDB(ipfs2, "two") - done() +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') + +const dbPath = './orbitdb/tests/persistency' +const ipfsPath = './orbitdb/tests/persistency/ipfs' + +describe('orbit-db - Persistency', function() { + this.timeout(config.timeout) + + const entryCount = 100 + + let ipfs, orbitdb1, db, address + + before(async () => { + config.daemon1.repo = ipfsPath + rmrf.sync(config.daemon1.repo) + rmrf.sync(dbPath) + ipfs = await startIpfs(config.daemon1) + orbitdb1 = new OrbitDB(ipfs, dbPath + '/1') + }) + + after(async () => { + if(orbitdb1) + orbitdb1.stop() + + if (ipfs) + await ipfs.stop() + }) + + describe('load', function() { + beforeEach(async () => { + const dbName = new Date().getTime().toString() + const entryArr = [] + + for (let i = 0; i < entryCount; i ++) + entryArr.push(i) + + db = await orbitdb1.eventlog(dbName) + address = db.address.toString() + await mapSeries(entryArr, (i) => db.add('hello' + i)) + await db.close() + db = null + }) + + afterEach(async () => { + await db.drop() + }) + + it('loads database from local cache', async () => { + db = await orbitdb1.eventlog(address) + await db.load() + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, entryCount) + assert.equal(items[0].payload.value, 'hello0') + assert.equal(items[entryCount - 1].payload.value, 'hello99') + }) + + it('loading a database emits \'ready\' event', async () => { + db = await orbitdb1.eventlog(address) + return new Promise(async (resolve) => { + db.events.on('ready', () => { + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, entryCount) + assert.equal(items[0].payload.value, 'hello0') + assert.equal(items[entryCount - 1].payload.value, 'hello99') + resolve() }) + await db.load() }) }) - after(() => { - ipfs1.stop() - ipfs2.stop() - removeDirectories() + it('loading a database emits \'load.progress\' event', async () => { + db = await orbitdb1.eventlog(address) + return new Promise(async (resolve, reject) => { + let count = 0 + db.events.on('load.progress', (address, hash, entry, progress, total) => { + count ++ + try { + assert.equal(address, db.address.toString()) + assert.equal(total, entryCount) + assert.equal(progress, count) + assert.notEqual(hash, null) + assert.notEqual(entry, null) + if (progress === entryCount && count === entryCount) { + resolve() + } + } catch (e) { + reject(e) + } + }) + // Start loading the database + await db.load() + }) + }) + }) + + describe('load from snapshot', function() { + beforeEach(async () => { + const dbName = new Date().getTime().toString() + const entryArr = [] + + for (let i = 0; i < entryCount; i ++) + entryArr.push(i) + + db = await orbitdb1.eventlog(dbName) + address = db.address.toString() + await mapSeries(entryArr, (i) => db.add('hello' + i)) + await db.saveSnapshot() + await db.close() + db = null + }) + + afterEach(async () => { + await db.drop() + }) + + it('loads database from snapshot', async () => { + db = await orbitdb1.eventlog(address) + await db.loadFromSnapshot() + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, entryCount) + assert.equal(items[0].payload.value, 'hello0') + assert.equal(items[entryCount - 1].payload.value, 'hello99') }) - describe('load', function() { - it('loads database from local cache', function(done) { - const entryCount = 100 - const entryArr = [] - - for (let i = 0; i < entryCount; i ++) - entryArr.push(i) - - const options = { - replicate: false, - maxHistory: -1, - cachePath: testDataDir, - } - - let db = client1.eventlog(config.dbname, options) - - db.events.on('error', done) - db.load().then(function () { - mapSeries(entryArr, (i) => db.add('hello' + i)) - .then(function() { - db = null - db = client1.eventlog(config.dbname, options) - db.events.on('error', done) - db.events.on('ready', () => { - try { - const items = db.iterator({ limit: -1 }).collect() - assert.equal(items.length, entryCount) - assert.equal(items[0].payload.value, 'hello0') - assert.equal(items[entryCount - 1].payload.value, 'hello99') - done() - } catch(e) { - done(e) - } - }) - db.load() - .catch(done) - }) - .catch(done) - }).catch(done) + it('throws an error when trying to load a missing snapshot', async () => { + db = await orbitdb1.eventlog(address) + await db.drop() + db = null + db = await orbitdb1.eventlog(address) + + let err + try { + await db.loadFromSnapshot() + } catch (e) { + err = e.toString() + } + assert.equal(err, `Error: Snapshot for ${address} not found!`) + }) + + it('loading a database emits \'ready\' event', async () => { + db = await orbitdb1.eventlog(address) + return new Promise(async (resolve) => { + db.events.on('ready', () => { + const items = db.iterator({ limit: -1 }).collect() + assert.equal(items.length, entryCount) + assert.equal(items[0].payload.value, 'hello0') + assert.equal(items[entryCount - 1].payload.value, 'hello99') + resolve() + }) + await db.loadFromSnapshot() + }) + }) + + it('loading a database emits \'load.progress\' event', async () => { + db = await orbitdb1.eventlog(address) + return new Promise(async (resolve, reject) => { + let count = 0 + db.events.on('load.progress', (address, hash, entry, progress, total) => { + count ++ + try { + assert.equal(address, db.address.toString()) + assert.equal(total, entryCount) + assert.equal(progress, count) + assert.notEqual(hash, null) + assert.notEqual(entry, null) + if (progress === entryCount && count === entryCount) { + resolve() + } + } catch (e) { + reject(e) + } + }) + // Start loading the database + await db.loadFromSnapshot() }) }) }) diff --git a/test/promise-map-series.js b/test/promise-map-series.js deleted file mode 100644 index a2b0221ea..000000000 --- a/test/promise-map-series.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict' - -// https://gist.github.com/dignifiedquire/dd08d2f3806a7b87f45b00c41fe109b7 - -module.exports = function mapSeries (list, func) { - const res = [] - return list.reduce((acc, next) => { - return acc.then((val) => { - res.push(val) - return func(next) - }) - }, Promise.resolve(null)).then((val) => { - res.push(val) - return res.slice(1) - }) -} diff --git a/test/replicate-and-load.test.js b/test/replicate-and-load.test.js new file mode 100644 index 000000000..48bee34db --- /dev/null +++ b/test/replicate-and-load.test.js @@ -0,0 +1,153 @@ +'use strict' + +const assert = require('assert') +const mapSeries = require('p-each-series') +const rmrf = require('rimraf') +const OrbitDB = require('../src/OrbitDB') +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') +const stopIpfs = require('./utils/stop-ipfs') +const waitForPeers = require('./utils/wait-for-peers') + +const dbPath1 = './orbitdb/tests/replicate-and-load/1' +const dbPath2 = './orbitdb/tests/replicate-and-load/2' +const ipfsPath1 = './orbitdb/tests/replicate-and-load/1/ipfs' +const ipfsPath2 = './orbitdb/tests/replicate-and-load/2/ipfs' + +describe('orbit-db - Replicate and Load', function() { + this.timeout(config.timeout) + + let ipfs1, ipfs2, orbitdb1, orbitdb2, db1, db2 + + before(async () => { + config.daemon1.repo = ipfsPath1 + config.daemon2.repo = ipfsPath2 + rmrf.sync(config.daemon1.repo) + rmrf.sync(config.daemon2.repo) + rmrf.sync(dbPath1) + rmrf.sync(dbPath2) + ipfs1 = await startIpfs(config.daemon1) + ipfs2 = await startIpfs(config.daemon2) + orbitdb1 = new OrbitDB(ipfs1, dbPath1) + orbitdb2 = new OrbitDB(ipfs2, dbPath2) + }) + + after(async () => { + if(orbitdb1) + await orbitdb1.stop() + + if(orbitdb2) + await orbitdb2.stop() + + if (ipfs1) + await stopIpfs(ipfs1) + + if (ipfs2) + await stopIpfs(ipfs2) + }) + + describe('two peers', function() { + // Opens two databases db1 and db2 and gives write-access to both of the peers + const openDatabases1 = async (options) => { + // Set write access for both clients + options.write = [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + + options = Object.assign({}, options, { path: dbPath1 }) + db1 = await orbitdb1.eventlog('replicate-and-load-tests', options) + // Set 'localOnly' flag on and it'll error if the database doesn't exist locally + options = Object.assign({}, options, { path: dbPath2 }) + db2 = await orbitdb2.eventlog(db1.address.toString(), options) + } + + const openDatabases = async (options) => { + // Set write access for both clients + options.write = [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + + options = Object.assign({}, options, { path: dbPath1, create: true }) + db1 = await orbitdb1.eventlog('tests', options) + // Set 'localOnly' flag on and it'll error if the database doesn't exist locally + options = Object.assign({}, options, { path: dbPath2 }) + db2 = await orbitdb2.eventlog(db1.address.toString(), options) + } + + beforeEach(async () => { + await openDatabases({ sync: true }) + + assert.equal(db1.address.toString(), db2.address.toString()) + + console.log("Waiting for peers...") + await waitForPeers(ipfs1, [orbitdb2.id], db1.address.toString()) + await waitForPeers(ipfs2, [orbitdb1.id], db1.address.toString()) + console.log("Found peers") + }) + + afterEach(async () => { + await db1.drop() + await db2.drop() + }) + + it('replicates database of 100 entries and loads it from the disk', async () => { + const entryCount = 100 + const entryArr = [] + let timer + + for (let i = 0; i < entryCount; i ++) + entryArr.push(i) + + await mapSeries(entryArr, (i) => db1.add('hello' + i)) + + return new Promise((resolve, reject) => { + timer = setInterval(async () => { + const items = db2.iterator({ limit: -1 }).collect() + if (items.length === entryCount) { + clearInterval(timer) + assert.equal(items.length, entryCount) + assert.equal(items[0].payload.value, 'hello0') + assert.equal(items[items.length - 1].payload.value, 'hello99') + + db2 = null + + try { + + // Set write access for both clients + let options = { + write: [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + } + + // Get the previous address to make sure nothing mutates it + const addr = db1.address.toString() + + // Open the database again (this time from the disk) + options = Object.assign({}, options, { path: dbPath1, create: false }) + db1 = await orbitdb1.eventlog(addr, options) + // Set 'localOnly' flag on and it'll error if the database doesn't exist locally + options = Object.assign({}, options, { path: dbPath2, localOnly: true }) + db2 = await orbitdb2.eventlog(addr, options) + + await db1.load() + await db2.load() + + // Make sure we have all the entries in the databases + const result1 = db1.iterator({ limit: -1 }).collect() + const result2 = db2.iterator({ limit: -1 }).collect() + assert.equal(result1.length, entryCount) + assert.equal(result2.length, entryCount) + } catch (e) { + reject(e) + } + resolve() + } + }, 100) + }) + }) + }) +}) diff --git a/test/replicate-automatically.test.js b/test/replicate-automatically.test.js new file mode 100644 index 000000000..eb6908ea8 --- /dev/null +++ b/test/replicate-automatically.test.js @@ -0,0 +1,100 @@ +'use strict' + +const assert = require('assert') +const mapSeries = require('p-each-series') +const rmrf = require('rimraf') +const OrbitDB = require('../src/OrbitDB') +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') +const stopIpfs = require('./utils/stop-ipfs') +const waitForPeers = require('./utils/wait-for-peers') + +const dbPath1 = './orbitdb/tests/replicate-automatically/1' +const dbPath2 = './orbitdb/tests/replicate-automatically/2' +const ipfsPath1 = './orbitdb/tests/replicate-automatically/1/ipfs' +const ipfsPath2 = './orbitdb/tests/replicate-automatically/2/ipfs' + +describe('orbit-db - Automatic Replication', function() { + this.timeout(config.timeout) + + let ipfs1, ipfs2, orbitdb1, orbitdb2, db1, db2 + + before(async () => { + config.daemon1.repo = ipfsPath1 + config.daemon2.repo = ipfsPath2 + rmrf.sync(config.daemon1.repo) + rmrf.sync(config.daemon2.repo) + rmrf.sync(dbPath1) + rmrf.sync(dbPath2) + ipfs1 = await startIpfs(config.daemon1) + ipfs2 = await startIpfs(config.daemon2) + orbitdb1 = new OrbitDB(ipfs1, dbPath1) + orbitdb2 = new OrbitDB(ipfs2, dbPath2) + }) + + after(async () => { + if(orbitdb1) + await orbitdb1.stop() + + if(orbitdb2) + await orbitdb2.stop() + + if (ipfs1) + await stopIpfs(ipfs1) + + if (ipfs2) + await stopIpfs(ipfs2) + }) + + beforeEach(async () => { + let options = {} + // Set write access for both clients + options.write = [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + + options = Object.assign({}, options, { path: dbPath1 }) + db1 = await orbitdb1.eventlog('replicate-automatically-tests', options) + }) + + afterEach(async () => { + await db1.drop() + await db2.drop() + }) + + it('starts replicating the database when peers connect', async () => { + const entryCount = 10 + const entryArr = [] + let options = {} + let timer + + // Create the entries in the first database + for (let i = 0; i < entryCount; i ++) + entryArr.push(i) + + await mapSeries(entryArr, (i) => db1.add('hello' + i)) + + // Open the second database + options = Object.assign({}, options, { path: dbPath2, sync: true }) + db2 = await orbitdb2.eventlog(db1.address.toString(), options) + + // Listen for the 'replicated' events and check that all the entries + // were replicated to the second database + return new Promise((resolve, reject) => { + db2.events.on('replicated', (address) => { + try { + const result1 = db1.iterator({ limit: -1 }).collect() + const result2 = db2.iterator({ limit: -1 }).collect() + // Make sure we have all the entries + if (result1.length === entryCount && result2.length === entryCount) { + assert.deepEqual(result1, result2) + resolve() + } + } catch (e) { + reject(e) + } + }) + }) + }) +}) diff --git a/test/replicate.test.js b/test/replicate.test.js index 21a67037d..144e1e2e6 100644 --- a/test/replicate.test.js +++ b/test/replicate.test.js @@ -3,131 +3,110 @@ const assert = require('assert') const mapSeries = require('p-each-series') const rmrf = require('rimraf') -const hasIpfsApiWithPubsub = require('./test-utils').hasIpfsApiWithPubsub const OrbitDB = require('../src/OrbitDB') -const config = require('./test-config') - -// Daemon settings -const daemonsConf = require('./ipfs-daemons.conf.js') - -// Shared database name -const waitForPeers = (ipfs, channel) => { - return new Promise((resolve, reject) => { - console.log("Waiting for peers...") - const interval = setInterval(() => { - ipfs.pubsub.peers(channel) - .then((peers) => { - if (peers.length > 0) { - console.log("Found peers, running tests...") - clearInterval(interval) - resolve() - } - }) - .catch((e) => { - clearInterval(interval) - reject(e) - }) - }, 1000) +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') +const stopIpfs = require('./utils/stop-ipfs') +const waitForPeers = require('./utils/wait-for-peers') + +const dbPath1 = './orbitdb/tests/replication/1' +const dbPath2 = './orbitdb/tests/replication/2' +const ipfsPath1 = './orbitdb/tests/replication/1/ipfs' +const ipfsPath2 = './orbitdb/tests/replication/2/ipfs' + +describe('orbit-db - Replication', function() { + this.timeout(config.timeout) + + let ipfs1, ipfs2, orbitdb1, orbitdb2, db1, db2 + + before(async () => { + config.daemon1.repo = ipfsPath1 + config.daemon2.repo = ipfsPath2 + rmrf.sync(config.daemon1.repo) + rmrf.sync(config.daemon2.repo) + rmrf.sync(dbPath1) + rmrf.sync(dbPath2) + ipfs1 = await startIpfs(config.daemon1) + ipfs2 = await startIpfs(config.daemon2) + orbitdb1 = new OrbitDB(ipfs1, dbPath1) + orbitdb2 = new OrbitDB(ipfs2, dbPath2) }) -} - -config.daemons.forEach((IpfsDaemon) => { - - describe('orbit-db - Replication', function() { - this.timeout(config.timeout) - - let ipfs1, ipfs2, client1, client2, db1, db2 - - const removeDirectories = () => { - rmrf.sync(daemonsConf.daemon1.IpfsDataDir) - rmrf.sync(daemonsConf.daemon2.IpfsDataDir) - rmrf.sync(config.defaultIpfsDirectory) - rmrf.sync(config.defaultOrbitDBDirectory) - rmrf.sync('/tmp/daemon1') - rmrf.sync('/tmp/daemon2') - } - - before(function (done) { - removeDirectories() - ipfs1 = new IpfsDaemon(daemonsConf.daemon1) - ipfs1.on('error', done) - ipfs1.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs1), true) - ipfs2 = new IpfsDaemon(daemonsConf.daemon2) - ipfs2.on('error', done) - ipfs2.on('ready', () => { - assert.equal(hasIpfsApiWithPubsub(ipfs2), true) - client1 = new OrbitDB(ipfs1, "one") - client2 = new OrbitDB(ipfs2, "two") - done() - }) - }) + + after(async () => { + if(orbitdb1) + await orbitdb1.stop() + + if(orbitdb2) + await orbitdb2.stop() + + if (ipfs1) + await stopIpfs(ipfs1) + + if (ipfs2) + await stopIpfs(ipfs2) + }) + + describe('two peers', function() { + beforeEach(async () => { + let options = { + // Set write access for both clients + write: [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + } + + options = Object.assign({}, options, { path: dbPath1 }) + db1 = await orbitdb1.eventlog('replication tests', options) + // Set 'sync' flag on. It'll prevent creating a new local database and rather + // fetch the database from the network + options = Object.assign({}, options, { path: dbPath2, sync: true }) + db2 = await orbitdb2.eventlog(db1.address.toString(), options) + + assert.equal(db1.address.toString(), db2.address.toString()) + + await waitForPeers(ipfs1, [orbitdb2.id], db1.address.toString()) + await waitForPeers(ipfs2, [orbitdb1.id], db1.address.toString()) }) - after((done) => { - if (client1) client1.disconnect() - if (client2) client2.disconnect() - if (ipfs1) ipfs1.stop() - if (ipfs2) ipfs2.stop() - removeDirectories() - setTimeout(() => done(), 10000) + afterEach(async () => { + await db1.drop() + await db2.drop() }) - describe('two peers', function() { - beforeEach(() => { - db1 = client1.eventlog(config.dbname, { maxHistory: 1, cachePath: '/tmp/daemon1' }) - db2 = client2.eventlog(config.dbname, { maxHistory: 1, cachePath: '/tmp/daemon2' }) + it('replicates database of 1 entry', async () => { + await db1.add('hello') + return new Promise(resolve => { + setTimeout(() => { + const items = db2.iterator().collect() + assert.equal(items.length, 1) + assert.equal(items[0].payload.value, 'hello') + resolve() + }, 1000) }) + }) - it('replicates database of 1 entry', (done) => { - waitForPeers(ipfs1, config.dbname) - .then(() => { - db2.events.once('error', done) - db2.events.once('synced', (db) => { - const items = db2.iterator().collect() - assert.equal(items.length, 1) - assert.equal(items[0].payload.value, 'hello') - done() - }) - db1.add('hello') - .catch(done) - }) - .catch(done) - }) + it('replicates database of 100 entries', async () => { + const entryCount = 100 + const entryArr = [] + let timer + + for (let i = 0; i < entryCount; i ++) + entryArr.push(i) - it('replicates database of 100 entries', (done) => { - const entryCount = 100 - const entryArr = [] - let timer - - for (let i = 0; i < entryCount; i ++) - entryArr.push(i) - - waitForPeers(ipfs1, config.dbname) - .then(() => { - let count = 0 - db2.events.once('error', done) - db2.events.on('synced', (d) => { - if (count === entryCount && !timer) { - timer = setInterval(() => { - const items = db2.iterator({ limit: -1 }).collect() - if (items.length === count) { - clearInterval(timer) - assert.equal(items.length, entryCount) - assert.equal(items[0].payload.value, 'hello0') - assert.equal(items[items.length - 1].payload.value, 'hello99') - setTimeout(done, 5000) - } - }, 1000) - } - }) - - db1.events.on('write', () => count++) - - mapSeries(entryArr, (i) => db1.add('hello' + i)) - .catch(done) - }) - .catch(done) + await mapSeries(entryArr, (i) => db1.add('hello' + i)) + + return new Promise(resolve => { + timer = setInterval(() => { + const items = db2.iterator({ limit: -1 }).collect() + if (items.length === entryCount) { + clearInterval(timer) + assert.equal(items.length, entryCount) + assert.equal(items[0].payload.value, 'hello0') + assert.equal(items[items.length - 1].payload.value, 'hello99') + resolve() + } + }, 1000) }) }) }) diff --git a/test/test-config.js b/test/test-config.js deleted file mode 100644 index 68a14d466..000000000 --- a/test/test-config.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict' - -const IpfsNodeDaemon = require('ipfs-daemon/src/ipfs-node-daemon') -const IpfsNativeDaemon = require('ipfs-daemon/src/ipfs-native-daemon') -const testDaemons = require('./test-daemons') - -// Set logplease logging level if in the browser -if (typeof window !== 'undefined') - window.LOG = 'ERROR' - -// Config -module.exports = { - daemons: testDaemons, - timeout: 60000, - defaultIpfsDirectory: './ipfs', - defaultOrbitDBDirectory: './orbit-db', - dbname: 'abcdefghijklmn', -} diff --git a/test/test-daemons.js b/test/test-daemons.js deleted file mode 100644 index 865374d00..000000000 --- a/test/test-daemons.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict' - -const IpfsNodeDaemon = require('ipfs-daemon/src/ipfs-node-daemon') -const IpfsNativeDaemon = require('ipfs-daemon/src/ipfs-native-daemon') - -// module.exports = [IpfsNodeDaemon] -// module.exports = [IpfsNativeDaemon] -// module.exports = [IpfsNativeDaemon, IpfsNodeDaemon] -module.exports = [IpfsNodeDaemon, IpfsNativeDaemon] diff --git a/test/utils/config.js b/test/utils/config.js new file mode 100644 index 000000000..90e392659 --- /dev/null +++ b/test/utils/config.js @@ -0,0 +1,75 @@ +module.exports = { + timeout: 60000, + dbname: 'orbit-db-tests', + defaultIpfsConfig: { + start: true, + EXPERIMENTAL: { + pubsub: true + }, + config: { + Addresses: { + API: '/ip4/127.0.0.1/tcp/0', + Swarm: ['/ip4/0.0.0.0/tcp/0'], + Gateway: '/ip4/0.0.0.0/tcp/0' + }, + Bootstrap: [], + Discovery: { + MDNS: { + Enabled: true, + Interval: 10 + }, + webRTCStar: { + Enabled: false + } + }, + } + }, + daemon1: { + repo: './ipfs/orbitdb/tests/daemon1', + start: true, + EXPERIMENTAL: { + pubsub: true + }, + config: { + Addresses: { + API: '/ip4/127.0.0.1/tcp/0', + Swarm: ['/ip4/0.0.0.0/tcp/0'], + Gateway: '/ip4/0.0.0.0/tcp/0' + }, + Bootstrap: [], + Discovery: { + MDNS: { + Enabled: true, + Interval: 10 + }, + webRTCStar: { + Enabled: false + } + }, + }, + }, + daemon2: { + repo: './ipfs/orbitdb/tests/daemon2', + start: true, + EXPERIMENTAL: { + pubsub: true + }, + config: { + Addresses: { + API: '/ip4/127.0.0.1/tcp/0', + Swarm: ['/ip4/0.0.0.0/tcp/0'], + Gateway: '/ip4/0.0.0.0/tcp/0' + }, + Bootstrap: [], + Discovery: { + MDNS: { + Enabled: true, + Interval: 10 + }, + webRTCStar: { + Enabled: false + } + }, + }, + }, +} diff --git a/test/utils/start-ipfs.js b/test/utils/start-ipfs.js new file mode 100644 index 000000000..39ac3abec --- /dev/null +++ b/test/utils/start-ipfs.js @@ -0,0 +1,18 @@ +'use strict' + +const IPFS = require('ipfs') + +/** + * Start an IPFS instance + * @param {Object} config [IPFS configuration to use] + * @return {[Promise]} [IPFS instance] + */ +const startIpfs = (config = {}) => { + return new Promise((resolve, reject) => { + const ipfs = new IPFS(config) + ipfs.on('error', reject) + ipfs.on('ready', () => resolve(ipfs)) + }) +} + +module.exports = startIpfs diff --git a/test/utils/stop-ipfs.js b/test/utils/stop-ipfs.js new file mode 100644 index 000000000..f76edd6ae --- /dev/null +++ b/test/utils/stop-ipfs.js @@ -0,0 +1,23 @@ +'use strict' + +const IPFS = require('ipfs') + +/** + * Stop an IPFS instance + * @param {[IPFS]} ipfs [IPFS instance to stop] + * @return {[Promise]} [Empty] + */ +const stopIpfs = (ipfs) => { + return new Promise((resolve, reject) => { + // TODO: ipfs.stop() should return a Promise, PR it in github/js-ipfs + ipfs.stop((err) => { + if (err) { + reject(err) + } else { + resolve() + } + }) + }) +} + +module.exports = stopIpfs diff --git a/test/test-utils.js b/test/utils/test-utils.js similarity index 100% rename from test/test-utils.js rename to test/utils/test-utils.js diff --git a/test/utils/wait-for-peers.js b/test/utils/wait-for-peers.js new file mode 100644 index 000000000..bc22efb82 --- /dev/null +++ b/test/utils/wait-for-peers.js @@ -0,0 +1,16 @@ +'use strict' + +const waitForPeers = (ipfs, peersToWait, topic, callback) => { + return new Promise((resolve, reject) => { + const i = setInterval(async () => { + const peers = await ipfs.pubsub.peers(topic) + const hasAllPeers = peersToWait.map((e) => peers.includes(e)).filter((e) => e === false).length === 0 + if (hasAllPeers) { + clearInterval(i) + resolve() + } + }, 500) + }) +} + +module.exports = waitForPeers diff --git a/test/write-permissions.test.js b/test/write-permissions.test.js new file mode 100644 index 000000000..446e464a6 --- /dev/null +++ b/test/write-permissions.test.js @@ -0,0 +1,221 @@ +'use strict' + +const assert = require('assert') +const rmrf = require('rimraf') +const OrbitDB = require('../src/OrbitDB') +const config = require('./utils/config') +const startIpfs = require('./utils/start-ipfs') + +const dbPath = './orbitdb/tests/sync' +const ipfsPath = './orbitdb/tests/feed/ipfs' + +const databases = [ + { + type: 'eventlog', + create: (orbitdb, name, options) => orbitdb.eventlog(name, options), + tryInsert: (db) => db.add('hello'), + query: (db) => db.iterator({ limit: -1 }).collect(), + getTestValue: (db) => db.iterator({ limit: -1 }).collect()[0].payload.value, + expectedValue: 'hello', + }, + { + type: 'feed', + create: (orbitdb, name, options) => orbitdb.feed(name, options), + tryInsert: (db) => db.add('hello'), + query: (db) => db.iterator({ limit: -1 }).collect(), + getTestValue: (db) => db.iterator({ limit: -1 }).collect()[0].payload.value, + expectedValue: 'hello', + }, + { + type: 'key-value', + create: (orbitdb, name, options) => orbitdb.kvstore(name, options), + tryInsert: (db) => db.set('one', 'hello'), + query: (db) => [], + getTestValue: (db) => db.get('one'), + expectedValue: 'hello', + }, + { + type: 'documents', + create: (orbitdb, name, options) => orbitdb.docstore(name, options), + tryInsert: (db) => db.put({ _id: 'hello world', doc: 'all the things'}), + query: (db) => [], + getTestValue: (db) => db.get('hello world'), + expectedValue: [{ _id: 'hello world', doc: 'all the things'}], + }, + { + type: 'counter', + create: (orbitdb, name, options) => orbitdb.counter(name, options), + tryInsert: (db) => db.inc(8), + query: (db) => [], + getTestValue: (db) => db.value, + expectedValue: 8, + }, +] + +describe('orbit-db - Write Permissions', function() { + this.timeout(20000) + + let ipfs, orbitdb1, orbitdb2 + + before(async () => { + config.daemon1.repo = ipfsPath + rmrf.sync(config.daemon1.repo) + rmrf.sync(dbPath) + ipfs = await startIpfs(config.daemon1) + orbitdb1 = new OrbitDB(ipfs, dbPath + '/1') + orbitdb2 = new OrbitDB(ipfs, dbPath + '/2') + }) + + after(async () => { + if(orbitdb1) + orbitdb1.stop() + + if(orbitdb2) + orbitdb2.stop() + + if (ipfs) + await ipfs.stop() + }) + + describe('allows multiple peers to write to the databases', function() { + databases.forEach(async (database) => { + it(database.type + ' allows multiple writers', async () => { + let options = { + // Set write access for both clients + write: [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + } + + const db1 = await database.create(orbitdb1, 'sync-test', options) + options = Object.assign({}, options, { sync: true }) + const db2 = await database.create(orbitdb2, db1.address.toString(), options) + + await database.tryInsert(db1) + await database.tryInsert(db2) + + assert.deepEqual(database.getTestValue(db1), database.expectedValue) + assert.deepEqual(database.getTestValue(db2), database.expectedValue) + }) + }) + }) + + describe('syncs databases', function() { + databases.forEach(async (database) => { + it(database.type + ' syncs', async () => { + let options = { + // Set write access for both clients + write: [ + orbitdb1.key.getPublic('hex'), + orbitdb2.key.getPublic('hex') + ], + } + + const db1 = await database.create(orbitdb1, 'sync-test', options) + options = Object.assign({}, options, { sync: true }) + const db2 = await database.create(orbitdb2, db1.address.toString(), options) + + await database.tryInsert(db2) + + assert.equal(database.query(db1).length, 0) + db1.sync(db2._oplog.heads) + + return new Promise(resolve => { + setTimeout(() => { + const value = database.getTestValue(db1) + assert.deepEqual(value, database.expectedValue) + resolve() + }, 1000) + }) + }) + }) + }) + + describe('syncs databases that anyone can write to', function() { + databases.forEach(async (database) => { + it(database.type + ' syncs', async () => { + let options = { + // Set write permission for everyone + write: ['*'], + } + + const db1 = await database.create(orbitdb1, 'sync-test-public-dbs', options) + options = Object.assign({}, options, { sync: true }) + const db2 = await database.create(orbitdb2, db1.address.toString(), options) + + await database.tryInsert(db2) + + assert.equal(database.query(db1).length, 0) + db1.sync(db2._oplog.heads) + + return new Promise(resolve => { + setTimeout(() => { + const value = database.getTestValue(db1) + assert.deepEqual(value, database.expectedValue) + resolve() + }, 1000) + }) + }) + }) + }) + + describe('doesn\'t sync if peer is not allowed to write to the database', function() { + databases.forEach(async (database) => { + it(database.type + ' doesn\'t sync', async () => { + let options = { + // No write access (only creator of the database can write) + write: [], + } + + options = Object.assign({}, options, { path: dbPath + '/sync-test/1' }) + const db1 = await database.create(orbitdb1, 'write error test 1', options) + + options = Object.assign({}, options, { path: dbPath + '/sync-test/2', sync: true }) + const db2 = await database.create(orbitdb2, 'write error test 1', options) + + db1.events.on('replicated', () => { + throw new Error('Shouldn\'t replicate!') + }) + + try { + await database.tryInsert(db2) + } catch (e) { + assert.equal(e.toString(), 'Error: Not allowed to write') + } + + assert.equal(database.query(db1).length, 0) + db1.sync(db2._oplog.heads) + + return new Promise(resolve => { + setTimeout(() => { + assert.equal(database.query(db1).length, 0) + resolve() + }, 500) + }) + }) + }) + }) + + describe('throws an error if peer is not allowed to write to the database', function() { + databases.forEach(async (database) => { + it(database.type + ' throws an error', async () => { + let options = { + // No write access (only creator of the database can write) + write: [], + } + + let err + try { + const db1 = await database.create(orbitdb1, 'write error test 2', options) + options = Object.assign({}, options, { sync: true }) + const db2 = await database.create(orbitdb2, db1.address.toString(), options) + await database.tryInsert(db2) + } catch (e) { + err = e.toString() + } + assert.equal(err, 'Error: Not allowed to write') + }) + }) + }) +})