@moneybutton/paymail-client
Advanced tools
Comparing version 0.36.0 to 0.37.0
@@ -18,4 +18,4 @@ 'use strict'; | ||
publicProfile: brfc.brfc('Public Profile (Name & Avatar)', ['Ryan X. Charles (Money Button)'], '1'), | ||
receiveTransaction: brfc.brfc('Send raw transaction', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1'), | ||
p2pPaymentDestination: brfc.brfc('Get no monitored payment destination (p2p payment destination)', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1') | ||
receiveTransaction: brfc.brfc('Send raw transaction', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1.1'), | ||
p2pPaymentDestination: brfc.brfc('Get no monitored payment destination (p2p payment destination)', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1.1') | ||
}; | ||
@@ -371,6 +371,7 @@ | ||
buildBodySendTx(hexTransaction, metadata) { | ||
buildBodySendTx(hexTransaction, reference, metadata) { | ||
return { | ||
hex: hexTransaction, | ||
metadata | ||
metadata, | ||
reference | ||
}; | ||
@@ -594,3 +595,3 @@ } | ||
async sendRawTx(targetPaymail, hexTransaction, metadata = {}) { | ||
async sendRawTx(targetPaymail, hexTransaction, reference, metadata = {}) { | ||
if (!hexTransaction) { | ||
@@ -601,3 +602,3 @@ throw new Error('transaction hex cannot be empty'); | ||
let receiveTxUrl = await this.resolver.getSendTxUrlFor(targetPaymail); | ||
const response = await this.http.postJson(receiveTxUrl, this.requestBodyFactory.buildBodySendTx(hexTransaction, metadata)); | ||
const response = await this.http.postJson(receiveTxUrl, this.requestBodyFactory.buildBodySendTx(hexTransaction, reference, metadata)); | ||
@@ -631,3 +632,3 @@ if (!response.ok) { | ||
return body.outputs; | ||
return body; | ||
} | ||
@@ -634,0 +635,0 @@ |
@@ -12,4 +12,4 @@ import { brfc } from '@moneybutton/brfc'; | ||
publicProfile: brfc('Public Profile (Name & Avatar)', ['Ryan X. Charles (Money Button)'], '1'), | ||
receiveTransaction: brfc('Send raw transaction', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1'), | ||
p2pPaymentDestination: brfc('Get no monitored payment destination (p2p payment destination)', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1') | ||
receiveTransaction: brfc('Send raw transaction', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1.1'), | ||
p2pPaymentDestination: brfc('Get no monitored payment destination (p2p payment destination)', ['Miguel Duarte (Money Button)', 'Ryan X. Charles (Money Button)', 'Ivan Mlinaric (Handcash)', 'Rafa (Handcash)'], '1.1') | ||
}; | ||
@@ -365,6 +365,7 @@ | ||
buildBodySendTx(hexTransaction, metadata) { | ||
buildBodySendTx(hexTransaction, reference, metadata) { | ||
return { | ||
hex: hexTransaction, | ||
metadata | ||
metadata, | ||
reference | ||
}; | ||
@@ -588,3 +589,3 @@ } | ||
async sendRawTx(targetPaymail, hexTransaction, metadata = {}) { | ||
async sendRawTx(targetPaymail, hexTransaction, reference, metadata = {}) { | ||
if (!hexTransaction) { | ||
@@ -595,3 +596,3 @@ throw new Error('transaction hex cannot be empty'); | ||
let receiveTxUrl = await this.resolver.getSendTxUrlFor(targetPaymail); | ||
const response = await this.http.postJson(receiveTxUrl, this.requestBodyFactory.buildBodySendTx(hexTransaction, metadata)); | ||
const response = await this.http.postJson(receiveTxUrl, this.requestBodyFactory.buildBodySendTx(hexTransaction, reference, metadata)); | ||
@@ -625,3 +626,3 @@ if (!response.ok) { | ||
return body.outputs; | ||
return body; | ||
} | ||
@@ -628,0 +629,0 @@ |
{ | ||
"name": "@moneybutton/paymail-client", | ||
"version": "0.36.0", | ||
"version": "0.37.0", | ||
"description": "Money Button isomorphic Paymail utilities.", | ||
@@ -22,3 +22,3 @@ "main": "dist/paymail-client.cjs.js", | ||
}, | ||
"repository": "https://github.com/moneybutton/yours", | ||
"repository": "https://github.com/moneybutton/paymail-client", | ||
"author": "Yours Inc.", | ||
@@ -31,3 +31,3 @@ "license": "Open-BSV", | ||
"@babel/runtime": "7.5.5", | ||
"@moneybutton/brfc": "^0.36.0", | ||
"@moneybutton/brfc": "^0.37.0", | ||
"abort-controller": "3.0.0", | ||
@@ -71,3 +71,3 @@ "bsv": "^1.3.0", | ||
}, | ||
"gitHead": "ee7ea48e8c215c6c4139d361714eff85a372bf62" | ||
"gitHead": "d7a4673531859ef8983e86477af2670ccbb6f620" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
123104
1063
+ Added@moneybutton/brfc@0.37.0(transitive)
- Removed@moneybutton/brfc@0.36.0(transitive)
Updated@moneybutton/brfc@^0.37.0