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

node-mailjet

Package Overview
Dependencies
Maintainers
8
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-mailjet - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

17

CHANGELOG.md

@@ -5,2 +5,19 @@ # Changelog

### [6.0.1](https://github.com/mailjet/mailjet-apiv3-nodejs/compare/v6.0.0...v6.0.1) (2023-01-09)
### Bug Fixes
* **types:** Fix TypeScript imports ([02fe5e9](https://github.com/mailjet/mailjet-apiv3-nodejs/commits/02fe5e945d9cc9fb1361b9bc681be097f40fddd6))
### Docs changes
* Update TypeScript examples in Readme ([9c202d0](https://github.com/mailjet/mailjet-apiv3-nodejs/commits/9c202d02de6c3af4271adb5e694bef7c6ab5b7de))
### Other changes
* Update TypeScript declaration for SendEmail Body type ([42f49d1](https://github.com/mailjet/mailjet-apiv3-nodejs/commits/42f49d1baf8b2a9227e9b3d54141d9a50962c6c1))
## [6.0.0](https://github.com/mailjet/mailjet-apiv3-nodejs/compare/v5.1.1...v6.0.0) (2022-12-27)

@@ -7,0 +24,0 @@

4

declarations/request/index.d.ts

@@ -1,3 +0,3 @@

import { TObject } from '@custom/types';
import { LibraryResponse, LibraryLocalResponse } from '@mailjet/types/api/LibraryResponse';
import { TObject } from '../types';
import { LibraryResponse, LibraryLocalResponse } from '../types/api';
import HttpMethods from './HttpMethods';

@@ -4,0 +4,0 @@ import { RequestData, RequestParams, RequestConstructorConfig } from './Request';

import { AxiosProxyConfig, AxiosRequestConfig, AxiosRequestHeaders, ResponseType } from 'axios';
import { TObject } from '@custom/types';
import { TObject } from '../types';
export interface RequestConfig {

@@ -4,0 +4,0 @@ host: string;

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace DraftCampaign {

@@ -3,0 +3,0 @@ export enum EditMode {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace Contact {

@@ -3,0 +3,0 @@ export interface Contact {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace Message {

@@ -3,0 +3,0 @@ enum MessageState {

@@ -1,3 +0,3 @@

import { Message } from '@mailjet/types/api/Message';
import { Common } from '@mailjet/types/api/Common';
import { Message } from './Message';
import { Common } from './Common';
export declare namespace MessageEvent {

@@ -4,0 +4,0 @@ interface BounceStatistic {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace Parse {

@@ -3,0 +3,0 @@ export interface ParseRoute {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace Segmentation {

@@ -3,0 +3,0 @@ export enum SegmentStatus {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace SendEmailV3 {

@@ -125,2 +125,12 @@ type MjTemplateErrorDeliver = '0' | 'deliver';

Globals?: Globals;
} | {
Messages: Array<Omit<Message<Headers, Variables>, 'From'> & {
From?: string;
}>;
SandboxMode?: boolean;
AdvanceErrorHandling?: boolean;
Globals: {
From: EmailAddressTo;
[key: string]: unknown;
};
};

@@ -127,0 +137,0 @@ interface ResponseMessage {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace Sender {

@@ -3,0 +3,0 @@ export enum EmailType {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace APIKeyConfiguration {

@@ -3,0 +3,0 @@ export enum RunLevel {

@@ -1,3 +0,3 @@

import { SendMessage } from '@mailjet/types/api/SendMessage';
import { Common } from '@mailjet/types/api/Common';
import { SendMessage } from './SendMessage';
import { Common } from './Common';
export declare namespace SMSMessage {

@@ -4,0 +4,0 @@ type SMS = {

@@ -1,3 +0,3 @@

import { Common } from '@mailjet/types/api/Common';
import { Message } from '@mailjet/types/api/Message';
import { Common } from './Common';
import { Message } from './Message';
export declare namespace Statistic {

@@ -4,0 +4,0 @@ enum CampaignOverviewIDType {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace Template {

@@ -3,0 +3,0 @@ export enum Categories {

@@ -1,2 +0,2 @@

import { Common } from '@mailjet/types/api/Common';
import { Common } from './Common';
export declare namespace Webhook {

@@ -3,0 +3,0 @@ export enum EventType {

@@ -1,3 +0,3 @@

import { TObject } from '@custom/types';
import { TObject } from '../types';
declare function setValueIfNotNil(targetObject: TObject.UnknownRec, path: string, value: unknown): void;
export default setValueIfNotNil;

@@ -15,2 +15,2 @@ /*!

/*! node-mailjet v6.0.0 */
/*! node-mailjet v6.0.1 */

@@ -1,1 +0,1 @@

/*! node-mailjet v6.0.0 */
/*! node-mailjet v6.0.1 */
{
"name": "node-mailjet",
"version": "6.0.0",
"version": "6.0.1",
"main": "./mailjet.node.js",

@@ -5,0 +5,0 @@ "browser": "./mailjet.web.js",

@@ -13,3 +13,3 @@ [mailjet]: http://www.mailjet.com

[![Build Status](https://travis-ci.org/mailjet/mailjet-apiv3-nodejs.svg?branch=master)](https://travis-ci.org/mailjet/mailjet-apiv3-nodejs)
![Current Version](https://img.shields.io/badge/version-6.0.0-green.svg)
![Current Version](https://img.shields.io/badge/version-6.0.1-green.svg)

@@ -486,7 +486,7 @@ ## Overview

```typescript
import Mailjet, { SendEmailV3_1 } from 'node-mailjet'
import Mailjet, { SendEmailV3_1, LibraryResponse } from 'node-mailjet';
const mailjet = new Mailjet({
apiKey: process.env.MJ_APIKEY_PUBLIC,
apiSecret: process.env.MJ_APIKEY_PRIVATE
apiKey: process.env.MJ_APIKEY_PUBLIC,
apiSecret: process.env.MJ_APIKEY_PRIVATE
});

@@ -517,5 +517,5 @@

const result = await mailjet
.post('send', { version: 'v3.1' })
.request<SendEmailV3_1.Response>(data);
const result: LibraryResponse<SendEmailV3_1.Response> = await mailjet
.post('send', { version: 'v3.1' })
.request(data);

@@ -542,3 +542,3 @@ const { Status } = result.body.Messages[0];

```typescript
import Mailjet, { SendMessage } from 'node-mailjet'
import Mailjet, { SendMessage, LibraryResponse } from 'node-mailjet'

@@ -558,5 +558,5 @@ const mailjet = new Mailjet({

const result = await mailjet
const result: LibraryResponse<SendMessage.Response> = await mailjet
.post('contact', { version: 'v3' })
.request<SendMessage.Response>(body);
.request(body);

@@ -595,3 +595,3 @@

```typescript
import Mailjet, { Contact } from 'node-mailjet'
import Mailjet, { Contact, LibraryResponse } from 'node-mailjet'

@@ -609,5 +609,5 @@ const mailjet = new Mailjet({

const result = await mailjet
const result: LibraryResponse<Contact.GetContactResponse> = await mailjet
.get('contact', { version: 'v3' })
.request<Contact.GetContactResponse>({}, queryData);
.request({}, queryData);

@@ -626,2 +626,3 @@ const ContactID = result.body.Data[0].ID;

Data: Array<{
ID: number;
IsExcludedFromCampaigns: boolean;

@@ -628,0 +629,0 @@ Name: string;

@@ -1,1 +0,1 @@

6.0.0
6.0.1

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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