You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

mailjet-js

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

mailjet-js

Mailjet NodeJS API client

1.1.1
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Mailjet-JS

npm Actions Status

Overview

Checkout official documentation from Mailjet Node v3 Github.

Installation

npm install mailjet-js

FAQ

Differences from official client

At API level it is compatible with v3 client, but it includes following changes

  • Supports only Node 16.x above
  • Uses native promises
  • Free from any security warnings due to updated dependencies
  • Typescript typings

Using with webpack or esbuild

This library is using vm2 through nested dependencies, bundling this library may give you this error

Error: ENOENT: no such file or directory, open '/home/node/app/lib/contextify.js'
    at Object.openSync (node:fs:585:3)
    at Object.readFileSync (node:fs:453:35)
    at loadAndCompileScript (/home/node/app/lib/server.js:576:35)
    at /home/node/app/lib/server.js:579:14703 {
  errno: -2,
  syscall: 'open',
  code: 'ENOENT',
  path: '/home/node/app/lib/contextify.js'
}

Simple solution to this problem is to mark vm2 an external dependency. For this you can use

Keywords

email

FAQs

Package last updated on 04 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts