mailgun.js
Advanced tools
Comparing version 9.3.0 to 9.4.0
@@ -5,2 +5,20 @@ # Changelog | ||
## [9.4.0](https://github.com/mailgun/mailgun.js/compare/v9.3.0...v9.4.0) (2023-12-13) | ||
### Features | ||
* Add subaccounts ([3ca1d56](https://github.com/mailgun/mailgun.js/commits/3ca1d56955f7651bcba758c75cdbee3be48d5748)) | ||
### Bug Fixes | ||
* **deps-dev:** bump @babel/traverse from 7.22.5 to 7.23.2 ([53f3e8f](https://github.com/mailgun/mailgun.js/commits/53f3e8fd673857b75ab0844bb1e04e016dad6ed5)) | ||
* **deps:** bump axios from 1.3.3 to 1.6.0 ([729032d](https://github.com/mailgun/mailgun.js/commits/729032d7a19ec307255c401bd698f5e7835925fb)) | ||
### Other changes | ||
* Update the formatting, merge headers to avoid overriding ([6e46eca](https://github.com/mailgun/mailgun.js/commits/6e46ecac1742660673931a99735988e4ffb046ce)) | ||
## [9.3.0](https://github.com/mailgun/mailgun.js/compare/v9.2.1...v9.3.0) (2023-09-18) | ||
@@ -7,0 +25,0 @@ |
import * as NodeFormData from 'form-data'; | ||
import { RequestOptions, InputFormData, APIResponse } from '../../Types/Common'; | ||
import { IpPoolDeleteData } from '../../Types/IPPools'; | ||
import { RequestOptions, InputFormData, APIResponse, IpPoolDeleteData } from '../../Types'; | ||
declare class Request { | ||
@@ -17,2 +16,4 @@ private username; | ||
private makeHeadersFromObject; | ||
setSubaccountHeader(subaccountId: string): void; | ||
resetSubaccountHeader(): void; | ||
query(method: string, url: string, query?: Record<string, unknown> | Array<Array<string>>, options?: Record<string, unknown>): Promise<APIResponse>; | ||
@@ -19,0 +20,0 @@ command(method: string, url: string, data?: Record<string, unknown> | Record<string, unknown>[] | string | NodeFormData | FormData, options?: Record<string, unknown>, addDefaultHeaders?: boolean): Promise<APIResponse>; |
@@ -1,4 +0,3 @@ | ||
import { MailgunClientOptions } from '../Types/MailgunClient'; | ||
import { InputFormData } from '../Types/Common'; | ||
import { IDomainsClient, IWebHooksClient, IMailgunClient, IMailingListsClient, IEventClient, IStatsClient, ISuppressionClient, IMessagesClient, IRoutesClient, IValidationClient, IIPsClient, IIPPoolsClient } from '../Interfaces'; | ||
import { MailgunClientOptions, InputFormData } from '../Types'; | ||
import { IDomainsClient, IWebHooksClient, IMailgunClient, IMailingListsClient, IEventClient, IStatsClient, ISuppressionClient, IMessagesClient, IRoutesClient, IValidationClient, IIPsClient, IIPPoolsClient, ISubaccountsClient } from '../Interfaces'; | ||
export default class MailgunClient implements IMailgunClient { | ||
@@ -17,3 +16,6 @@ private request; | ||
lists: IMailingListsClient; | ||
subaccounts: ISubaccountsClient; | ||
constructor(options: MailgunClientOptions, formData: InputFormData); | ||
setSubaccount(subaccountId: string): void; | ||
resetSubaccount(): void; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { MailgunMessageData, MessagesSendAPIResponse, MessagesSendResult } from '../Types/Messages'; | ||
import { MailgunMessageData, MessagesSendAPIResponse, MessagesSendResult } from '../Types'; | ||
import Request from './common/Request'; | ||
@@ -3,0 +3,0 @@ import { IMessagesClient } from '../Interfaces'; |
import { IMailgunClient } from './Interfaces'; | ||
import { InputFormData } from './Types/Common'; | ||
import { MailgunClientOptions } from './Types/MailgunClient'; | ||
import { InputFormData, MailgunClientOptions } from './Types'; | ||
export * as Enums from './Enums'; | ||
@@ -5,0 +4,0 @@ export * from './Types'; |
@@ -14,1 +14,2 @@ export * from './Common'; | ||
export * from './IPPools'; | ||
export * from './Subaccounts'; |
@@ -12,2 +12,3 @@ import { IWebHooksClient } from '../Webhooks'; | ||
import { IMailingListsClient } from '../MailingLists'; | ||
import { ISubaccountsClient } from '../Subaccounts'; | ||
export interface IMailgunClient { | ||
@@ -25,2 +26,5 @@ domains: IDomainsClient; | ||
lists: IMailingListsClient; | ||
subaccounts: ISubaccountsClient; | ||
setSubaccount(subaccountId: string): void; | ||
resetSubaccount(): void; | ||
} |
@@ -17,2 +17,2 @@ /*! | ||
/*! mailgun.js v9.2.1 */ | ||
/*! mailgun.js v9.3.0 */ |
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */ | ||
/*! mailgun.js v9.2.1 */ | ||
/*! mailgun.js v9.3.0 */ |
{ | ||
"name": "mailgun.js", | ||
"version": "9.3.0", | ||
"version": "9.4.0", | ||
"main": "./mailgun.node.js", | ||
@@ -26,3 +26,3 @@ "browser": "./mailgun.web.js", | ||
"dependencies": { | ||
"axios": "^1.3.3", | ||
"axios": "^1.6.0", | ||
"base-64": "^1.0.0", | ||
@@ -29,0 +29,0 @@ "url-join": "^4.0.1" |
@@ -11,4 +11,5 @@ export * from './Common'; | ||
export * from './Stats'; | ||
export * from './Subaccounts'; | ||
export * from './Suppressions'; | ||
export * from './Validations'; | ||
export * from './Webhooks'; |
@@ -1,1 +0,1 @@ | ||
9.3.0 | ||
9.4.0 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1621222
122
4023
2418
3
Updatedaxios@^1.6.0