Skip to content

Commit

Permalink
Merge pull request #58 from mymonero/develop
Browse files Browse the repository at this point in the history
release-v1.3.0
  • Loading branch information
devinpearson authored Aug 11, 2022
2 parents f302591 + 2c1e1c1 commit 3250eea
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .env.defaults
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NETTYPE=0
SERVER_URL=api.mymonero.com
APP_VERSION=1.2.4
APP_VERSION=1.3.0
APP_NAME=MyMonero
83 changes: 56 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "MyMonero",
"author": "MyMonero",
"description": "The simplest way to use Monero",
"version": "1.2.4",
"version": "1.3.0",
"license": "SEE LICENSE IN LICENSE.txt",
"repository": "https://github.com/mymonero/mymonero-web-js",
"scripts": {
Expand All @@ -16,7 +16,7 @@
},
"dependencies": {
"@mymonero/changenow-exchange-integration": "^1.3.0-alpha.26",
"@mymonero/mymonero-app-bridge": "^1.0.11",
"@mymonero/mymonero-app-bridge": "^2.1.13",
"@mymonero/mymonero-bigint": "^1.0.5",
"@mymonero/mymonero-exchange-helper": "^1.3.1-alpha.4",
"@mymonero/mymonero-hosted-api": "^1.1.5",
Expand All @@ -25,6 +25,7 @@
"@mymonero/mymonero-monero-config": "^1.0.5",
"@mymonero/mymonero-money-format": "^1.0.5",
"@mymonero/mymonero-net-service-utils": "^1.0.5",
"@mymonero/mymonero-openalias": "^2.1.13",
"@mymonero/mymonero-page-templates": "^2.0.2",
"@mymonero/mymonero-paymentid-utils": "^1.0.5",
"@mymonero/mymonero-request-utils": "^1.1.4",
Expand Down
14 changes: 10 additions & 4 deletions src/OpenAlias/TXTResolver.web.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
'use strict'

const request = require('xhr')
const OpenAlias = require('@mymonero/mymonero-openalias')

//TODO: instead of having the TXTRecords function, use instance of OpenAlias instead
class TXTResolver {
//
// Accessors
TXTRecords (
name,
fn // (err, records, dnssec_used, secured, dnssec_fail_reason) -> Void
) {
const completeURL = 'https://cloudflare-dns.com/dns-query?ct=application/dns-json&name=' + encodeURIComponent(name) + '&type=TXT'
const requestHandle = request(
completeURL,
function (err, response, body) {
const completeURL = 'https://cloudflare-dns.com/dns-query?name=' + encodeURIComponent(name) + '&type=TXT'

const requestHandle = request({
uri: completeURL,
headers: {
"accept": "application/dns-json"
}
}, function (err, response, body) {
if (err) {
fn(err)
return
Expand Down

0 comments on commit 3250eea

Please sign in to comment.