Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@moneybutton/paymail-client

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moneybutton/paymail-client - npm Package Compare versions

Comparing version 0.32.0 to 0.33.0

34

dist/paymail-client.cjs.js

@@ -133,4 +133,4 @@ 'use strict';

class DnsOverHttps {
constructor(fetch$$1, config) {
this.fetch = fetch$$1;
constructor(fetch, config) {
this.fetch = fetch;
this.config = config;

@@ -152,4 +152,4 @@ }

class Http {
constructor(fetch$$1) {
this.fetch = fetch$$1;
constructor(fetch) {
this.fetch = fetch;
}

@@ -186,12 +186,12 @@

class EndpointResolver {
constructor(dns = null, fetch$$1) {
this.dnsClient = new DnsClient(dns, new DnsOverHttps(fetch$$1, {
constructor(dns = null, fetch) {
this.dnsClient = new DnsClient(dns, new DnsOverHttps(fetch, {
baseUrl: 'https://dns.google.com/resolve'
}));
this.http = new Http(fetch$$1);
this.http = new Http(fetch);
this._cache = {};
}
static create(dnsClient, fetch$$1) {
const instance = new EndpointResolver(null, fetch$$1);
static create(dnsClient, fetch) {
const instance = new EndpointResolver(null, fetch);
instance.dnsClient = dnsClient;

@@ -390,4 +390,4 @@ return instance;

class BrowserDns {
constructor(fetch$$1) {
this.doh = new DnsOverHttps(fetch$$1, {
constructor(fetch) {
this.doh = new DnsOverHttps(fetch, {
baseUrl: 'https://dns.google.com/resolve'

@@ -592,3 +592,3 @@ });

let receiveTxUrl = await this.resolver.getSendTxUrlFor(targetPaymail);
const response = await this.http.postJson(receiveTxUrl, JSON.stringify(this.requestBodyFactory.buildBodySendTx(transactions, metadata, reference)));
const response = await this.http.postJson(receiveTxUrl, this.requestBodyFactory.buildBodySendTx(transactions, metadata, reference));

@@ -605,9 +605,9 @@ if (!response.ok) {

exports.BrowserDns = BrowserDns;
exports.CapabilityCodes = CapabilityCodes;
exports.Clock = Clock;
exports.PaymailClient = PaymailClient;
exports.PaymailNotFound = PaymailNotFound;
exports.RequestBodyFactory = RequestBodyFactory;
exports.VerifiableMessage = VerifiableMessage;
exports.RequestBodyFactory = RequestBodyFactory;
exports.Clock = Clock;
exports.PaymailNotFound = PaymailNotFound;
exports.BrowserDns = BrowserDns;
exports.CapabilityCodes = CapabilityCodes;
//# sourceMappingURL=paymail-client.cjs.js.map

@@ -127,4 +127,4 @@ import AbortController from 'abort-controller';

class DnsOverHttps {
constructor(fetch$$1, config) {
this.fetch = fetch$$1;
constructor(fetch, config) {
this.fetch = fetch;
this.config = config;

@@ -146,4 +146,4 @@ }

class Http {
constructor(fetch$$1) {
this.fetch = fetch$$1;
constructor(fetch) {
this.fetch = fetch;
}

@@ -180,12 +180,12 @@

class EndpointResolver {
constructor(dns = null, fetch$$1) {
this.dnsClient = new DnsClient(dns, new DnsOverHttps(fetch$$1, {
constructor(dns = null, fetch) {
this.dnsClient = new DnsClient(dns, new DnsOverHttps(fetch, {
baseUrl: 'https://dns.google.com/resolve'
}));
this.http = new Http(fetch$$1);
this.http = new Http(fetch);
this._cache = {};
}
static create(dnsClient, fetch$$1) {
const instance = new EndpointResolver(null, fetch$$1);
static create(dnsClient, fetch) {
const instance = new EndpointResolver(null, fetch);
instance.dnsClient = dnsClient;

@@ -384,4 +384,4 @@ return instance;

class BrowserDns {
constructor(fetch$$1) {
this.doh = new DnsOverHttps(fetch$$1, {
constructor(fetch) {
this.doh = new DnsOverHttps(fetch, {
baseUrl: 'https://dns.google.com/resolve'

@@ -586,3 +586,3 @@ });

let receiveTxUrl = await this.resolver.getSendTxUrlFor(targetPaymail);
const response = await this.http.postJson(receiveTxUrl, JSON.stringify(this.requestBodyFactory.buildBodySendTx(transactions, metadata, reference)));
const response = await this.http.postJson(receiveTxUrl, this.requestBodyFactory.buildBodySendTx(transactions, metadata, reference));

@@ -599,3 +599,3 @@ if (!response.ok) {

export { PaymailClient, VerifiableMessage, RequestBodyFactory, Clock, PaymailNotFound, BrowserDns, CapabilityCodes };
export { BrowserDns, CapabilityCodes, Clock, PaymailClient, PaymailNotFound, RequestBodyFactory, VerifiableMessage };
//# sourceMappingURL=paymail-client.esm.js.map
{
"name": "@moneybutton/paymail-client",
"version": "0.32.0",
"version": "0.33.0",
"description": "Money Button isomorphic Paymail utilities.",

@@ -31,3 +31,3 @@ "main": "dist/paymail-client.cjs.js",

"abort-controller": "3.0.0",
"bsv": "^0.30.1",
"bsv": "^1.3.0",
"isomorphic-fetch": "2.2.1",

@@ -42,17 +42,15 @@ "moment": "2.24.0"

"@babel/preset-env": "7.5.5",
"@rollup/plugin-commonjs": "11.0.1",
"@rollup/plugin-node-resolve": "7.0.0",
"@rollup/plugin-replace": "2.3.0",
"babel-eslint": "9.0.0",
"bdd-lazy-var": "2.5.1",
"chai": "4.2.0",
"concurrently": "3.6.1",
"dotenv-cli": "2.0.1",
"http-server": "0.11.1",
"mocha": "6.2.0",
"rollup": "0.66.6",
"rollup-plugin-babel": "4.0.3",
"rollup-plugin-babel-minify": "6.0.0",
"rollup-plugin-commonjs": "9.1.8",
"rollup": "1.29.0",
"rollup-plugin-babel": "4.3.3",
"rollup-plugin-node-builtins": "2.1.2",
"rollup-plugin-node-globals": "1.4.0",
"rollup-plugin-node-resolve": "3.4.0",
"rollup-plugin-replace": "2.0.0",
"should": "13.2.1",

@@ -72,3 +70,3 @@ "standard": "12.0.1"

},
"gitHead": "03babbb5ee0b8fdef965e6ddfb19cd393f8c2bbc"
"gitHead": "72284f2574b939451f0b1cf59b17502125165758"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc