mailgun.js
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -5,2 +5,4 @@ # Changelog | ||
### [4.1.3](https://github.com/mailgun/mailgun.js/compare/v4.1.2...v4.1.3) (2021-12-23) | ||
### [4.1.2](https://github.com/mailgun/mailgun.js/compare/v4.1.1...v4.1.2) (2021-12-14) | ||
@@ -7,0 +9,0 @@ |
@@ -5,3 +5,6 @@ import { DomainsQuery, DomainInfo, DomainShortData, DNSRecord, ConnectionSettings, UpdatedConnectionSettings, DKIMAuthorityInfo, UpdatedDKIMAuthority, DKIMSelectorInfo, UpdatedDKIMSelectorResponse, WebPrefixInfo, UpdatedWebPrefixResponse, ReplacementForPool, MessageResponse } from './interfaces/Domains'; | ||
import { DomainTrackingData, OpenTrackingInfo, ClickTrackingInfo, UnsubscribeTrackingInfo, UpdatedOpenTracking } from './interfaces/DomainTracking'; | ||
import { IDomainCredentials } from './interfaces/DomainCredentials'; | ||
import { IDomainTemplatesClient } from './interfaces/DomainTemplates'; | ||
import DomainCredentialsClient from './domainsCredentials'; | ||
import DomainTemplatesClient from './domainsTemplates'; | ||
export declare class Domain { | ||
@@ -24,4 +27,5 @@ name: string; | ||
request: Request; | ||
domainCredentials: DomainCredentialsClient; | ||
constructor(request: Request, domainCredentialsClient: DomainCredentialsClient); | ||
domainCredentials: IDomainCredentials; | ||
domainTemplates: IDomainTemplatesClient; | ||
constructor(request: Request, domainCredentialsClient: DomainCredentialsClient, domainTemplatesClient: DomainTemplatesClient); | ||
private _parseMessage; | ||
@@ -28,0 +32,0 @@ private _parseDomainList; |
@@ -5,2 +5,2 @@ /*! MIT License © Sindre Sorhus */ | ||
/*! mailgun.js v4.1.1 */ | ||
/*! mailgun.js v4.1.2 */ |
@@ -7,2 +7,2 @@ /*! MIT License © Sindre Sorhus */ | ||
/*! mailgun.js v4.1.1 */ | ||
/*! mailgun.js v4.1.2 */ |
@@ -21,2 +21,3 @@ /* eslint-disable camelcase */ | ||
import MultipleValidationClient from './multipleValidation'; | ||
import DomainTemplatesClient from './domainsTemplates'; | ||
@@ -57,5 +58,6 @@ export default class Client { | ||
const domainCredentialsClient = new DomainCredentialsClient(this.request); | ||
const domainTemplatesClient = new DomainTemplatesClient(this.request); | ||
const multipleValidationClient = new MultipleValidationClient(this.request); | ||
this.domains = new DomainClient(this.request, domainCredentialsClient); | ||
this.domains = new DomainClient(this.request, domainCredentialsClient, domainTemplatesClient); | ||
this.webhooks = new WebhookClient(this.request); | ||
@@ -62,0 +64,0 @@ this.events = new EventClient(this.request); |
@@ -40,3 +40,6 @@ /* eslint-disable camelcase */ | ||
} from './interfaces/DomainTracking'; | ||
import { IDomainCredentials } from './interfaces/DomainCredentials'; | ||
import { IDomainTemplatesClient } from './interfaces/DomainTemplates'; | ||
import DomainCredentialsClient from './domainsCredentials'; | ||
import DomainTemplatesClient from './domainsTemplates'; | ||
@@ -76,7 +79,13 @@ export class Domain { | ||
request: Request; | ||
public domainCredentials: DomainCredentialsClient; | ||
public domainCredentials: IDomainCredentials; | ||
public domainTemplates: IDomainTemplatesClient | ||
constructor(request: Request, domainCredentialsClient: DomainCredentialsClient) { | ||
constructor( | ||
request: Request, | ||
domainCredentialsClient: DomainCredentialsClient, | ||
domainTemplatesClient: DomainTemplatesClient | ||
) { | ||
this.request = request; | ||
this.domainCredentials = domainCredentialsClient; | ||
this.domainTemplates = domainTemplatesClient; | ||
} | ||
@@ -83,0 +92,0 @@ |
{ | ||
"name": "mailgun.js", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"main": "dist/mailgun.node.js", | ||
@@ -26,3 +26,3 @@ "browser": "dist/mailgun.web.js", | ||
"release": "standard-version -a", | ||
"test": "multi='dot=- xunit=./results.xml' mocha -t 10000 -R mocha-multi -r ts-node/register test/*.test.ts", | ||
"test": "multi='dot=- xunit=./results.xml' nyc mocha -t 10000 -R mocha-multi -r ts-node/register test/*.test.ts", | ||
"test-watch": "mocha -r ts-node/register -w -R dot test/*.test.ts", | ||
@@ -67,2 +67,3 @@ "docs": "typedoc --tsconfig ./tsconfig.json", | ||
"nock": "^13.0.4", | ||
"nyc": "^15.1.0", | ||
"path-browserify": "^1.0.1", | ||
@@ -69,0 +70,0 @@ "standard-version": "^9.3.1", |
@@ -17,2 +17,3 @@ import formData from 'form-data'; | ||
} from '../lib/interfaces/Domains'; | ||
import DomainTemplatesClient from '../lib/domainsTemplates'; | ||
@@ -27,3 +28,4 @@ // TODO: fix types | ||
const domainCredentialsClient = new DomainCredentialsClient(reqObject); | ||
client = new DomainClient(reqObject, domainCredentialsClient); | ||
const domainTemplatesClient = new DomainTemplatesClient(reqObject); | ||
client = new DomainClient(reqObject, domainCredentialsClient, domainTemplatesClient); | ||
api = nock('https://api.mailgun.net'); | ||
@@ -30,0 +32,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2379008
179
6650
33
272791