mailgun.js 6.0.0 → 7.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,3 @@
1
- /*! MIT License © Sindre Sorhus */
2
-
3
1
  /*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
4
2
 
5
- /*! mailgun.js v5.2.2 */
3
+ /*! mailgun.js v7.0.0 */
@@ -1,10 +1,11 @@
1
- import { CanceledMultipleValidationJob, CreatedMultipleValidationJob, IMultipleValidationClient, MultipleValidationJob, MultipleValidationJobsListResult } from './interfaces/MultipleValidation';
1
+ import { CanceledMultipleValidationJob, CreatedMultipleValidationJob, IMultipleValidationClient, MultipleValidationCreationData, MultipleValidationJob, MultipleValidationJobsListResult } from './interfaces/MultipleValidation';
2
2
  import Request from './request';
3
3
  export default class MultipleValidationClient implements IMultipleValidationClient {
4
4
  request: Request;
5
5
  constructor(request: Request);
6
+ private handleResponse;
6
7
  list(): Promise<MultipleValidationJobsListResult>;
7
8
  get(listId: string): Promise<MultipleValidationJob>;
8
- create(listId: string, file: Record<string, unknown>): Promise<CreatedMultipleValidationJob>;
9
+ create(listId: string, data: MultipleValidationCreationData): Promise<CreatedMultipleValidationJob>;
9
10
  destroy(listId: string): Promise<CanceledMultipleValidationJob>;
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailgun.js",
3
- "version": "6.0.0",
3
+ "version": "7.0.1",
4
4
  "main": "./mailgun.node.js",
5
5
  "browser": "./mailgun.web.js",
6
6
  "types": "./index.d.ts",
@@ -23,12 +23,9 @@
23
23
  "definition": "./index.d.ts"
24
24
  },
25
25
  "dependencies": {
26
+ "axios": "^0.27.2",
26
27
  "base-64": "^1.0.0",
27
- "bluebird": "^3.7.2",
28
- "ky": "^0.25.1",
29
- "ky-universal": "^0.8.2",
30
28
  "url-join": "^4.0.1",
31
- "web-streams-polyfill": "^3.0.1",
32
29
  "webpack-merge": "^5.4.0"
33
30
  },
34
31
  "contributors": [
package/request.d.ts CHANGED
@@ -10,11 +10,12 @@ declare class Request {
10
10
  private timeout;
11
11
  private headers;
12
12
  private formDataBuilder;
13
+ private maxBodyLength;
13
14
  constructor(options: RequestOptions, formData: InputFormData);
14
15
  request(method: string, url: string, onCallOptions?: Record<string, unknown | Record<string, unknown>>): Promise<APIResponse>;
15
16
  private getResponseBody;
16
17
  query(method: string, url: string, query?: Record<string, unknown> | Array<Array<string>>, options?: Record<string, unknown>): Promise<APIResponse>;
17
- command(method: string, url: string, data?: Record<string, unknown> | string | NodeFormData | FormData, options?: Record<string, unknown>, addDefaultHeaders?: boolean): Promise<APIResponse>;
18
+ command(method: string, url: string, data?: Record<string, unknown> | Record<string, unknown>[] | string | NodeFormData | FormData, options?: Record<string, unknown>, addDefaultHeaders?: boolean): Promise<APIResponse>;
18
19
  get(url: string, query?: Record<string, unknown> | Array<Array<string>>, options?: Record<string, unknown>): Promise<APIResponse>;
19
20
  post(url: string, data?: Record<string, unknown> | string, options?: Record<string, unknown>): Promise<APIResponse>;
20
21
  postWithFD(url: string, data: Record<string, unknown> | Record<string, unknown>[]): Promise<APIResponse>;
package/version.md CHANGED
@@ -1 +1 @@
1
- 6.0.0
1
+ 7.0.1