mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-06-30 05:32:00 +02:00
Merge pull request #1 from bigchaindb/0.10-compatible-release
0.10 compatible release
This commit is contained in:
commit
f8381b760e
|
@ -11,6 +11,13 @@ Aimed to support usage in browsers or node and ES∞+, so
|
||||||
you'll probably need a babel here and a bundler there (or use [one of the built versions](./dist)),
|
you'll probably need a babel here and a bundler there (or use [one of the built versions](./dist)),
|
||||||
of which I expect you'll know quite well ([otherwise, go check out js-reactor](https://github.com/bigchaindb/js-reactor)).
|
of which I expect you'll know quite well ([otherwise, go check out js-reactor](https://github.com/bigchaindb/js-reactor)).
|
||||||
|
|
||||||
|
## Compatibility
|
||||||
|
|
||||||
|
| BigchainDB Server | BigchainDB Javascript Driver |
|
||||||
|
| ----------------- |------------------------------|
|
||||||
|
| `~=0.10.1` | `~=0.1.0` |
|
||||||
|
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
- [Getting Started](#getting-started)
|
- [Getting Started](#getting-started)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "js-bigchaindb-driver",
|
"name": "js-bigchaindb-driver",
|
||||||
"version": "0.0.2",
|
"version": "0.1.0",
|
||||||
"description": "JavaScript driver for BigchainDB (node + browser)",
|
"description": "JavaScript driver for BigchainDB (node + browser)",
|
||||||
"homepage": "https://www.bigchaindb.com/",
|
"homepage": "https://www.bigchaindb.com/",
|
||||||
"bugs": "https://github.com/bigchaindb/js-bigchaindb-driver/issues",
|
"bugs": "https://github.com/bigchaindb/js-bigchaindb-driver/issues",
|
||||||
|
|
|
@ -8,9 +8,9 @@
|
||||||
*/
|
*/
|
||||||
export default function makeOutput(condition, amount = 1) {
|
export default function makeOutput(condition, amount = 1) {
|
||||||
return {
|
return {
|
||||||
amount: JSON.stringify(amount),
|
amount: amount,
|
||||||
condition,
|
condition,
|
||||||
'public_keys': condition.details.hasOwnProperty('public_key') ?
|
'public_keys': condition.details.hasOwnProperty('public_key') ?
|
||||||
[condition.details.public_key] : [],
|
[condition.details.public_key] : [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user