mailgun.js
Advanced tools
Comparing version 4.2.3 to 5.0.0
@@ -5,2 +5,24 @@ # Changelog | ||
## [5.0.0](https://github.com/mailgun/mailgun.js/compare/v4.2.2...v5.0.0) (2022-02-23) | ||
### ⚠ BREAKING CHANGES | ||
* Concatenation of d.ts files into one. Change import path for types | ||
### Bug Fixes | ||
* Remove redundant log ([49e9e40](https://github.com/mailgun/mailgun.js/commits/49e9e409078a9e520745fb054bcbd89c74b272c5)) | ||
* Remove redundant log ([b088f8e](https://github.com/mailgun/mailgun.js/commits/b088f8e7db2f0e4fa086cfbb6143c795abfb6d05)) | ||
### Other changes | ||
* Move index.ts file to lib folder ([2592c68](https://github.com/mailgun/mailgun.js/commits/2592c68e8368505b56c29dcf0ff13b338205a045)) | ||
### Breaking changes | ||
* Concatenation of d.ts files into one. Change import path for types ([d27db87](https://github.com/mailgun/mailgun.js/commits/d27db87e4f1c08caa68b9719eb17329d94a2a717)) | ||
### [4.2.3](https://github.com/mailgun/mailgun.js/compare/v4.2.2...v4.2.3) (2022-02-23) | ||
@@ -7,0 +29,0 @@ |
@@ -5,2 +5,2 @@ /*! MIT License © Sindre Sorhus */ | ||
/*! mailgun.js v4.2.2 */ | ||
/*! mailgun.js v4.2.3 */ |
@@ -7,2 +7,2 @@ /*! MIT License © Sindre Sorhus */ | ||
/*! mailgun.js v4.2.2 */ | ||
/*! mailgun.js v4.2.3 */ |
/* eslint-disable no-console */ | ||
const mailgun = require('../index'); | ||
const mailgun = require('../lib/index'); | ||
@@ -4,0 +4,0 @@ const mg = mailgun.client({ |
/* eslint-disable no-console */ | ||
const mailgun = require('../index'); | ||
const mailgun = require('../lib/index'); | ||
@@ -4,0 +4,0 @@ const mg = mailgun.client({ username: 'api', key: process.env.MAILGUN_API_KEY || '' }); |
{ | ||
"name": "mailgun.js", | ||
"version": "4.2.3", | ||
"version": "5.0.0", | ||
"main": "dist/mailgun.node.js", | ||
"browser": "dist/mailgun.web.js", | ||
"types": "dist/index.d.ts", | ||
"types": "dist/mailgun.js.d.ts", | ||
"author": "Mailgun", | ||
@@ -22,4 +22,4 @@ "license": "MIT", | ||
"scripts": { | ||
"build": "webpack --config ./webpack/webpack.dev.config.js --progress --color", | ||
"build:release": "webpack --config ./webpack/webpack.release.config.js --progress --color", | ||
"build": "webpack --config ./webpack/webpack.dev.config.js --progress --color && npm run build-dts", | ||
"build:release": "webpack --config ./webpack/webpack.release.config.js --progress --color && npm run build-dts", | ||
"start": "webpack --watch --config ./webpack/webpack.dev.config.js --progress --color", | ||
@@ -31,4 +31,8 @@ "release": "standard-version -a", | ||
"lint": "eslint . && eslint . --ext .ts", | ||
"prepare": "husky install" | ||
"prepare": "husky install", | ||
"build-dts": "node dts-bundle && rm -rf dist/lib" | ||
}, | ||
"typescript": { | ||
"definition": "dist/mailgun.js.d.ts" | ||
}, | ||
"dependencies": { | ||
@@ -57,2 +61,3 @@ "base-64": "^1.0.0", | ||
"chai": "^4.2.0", | ||
"dts-bundle": "^0.7.3", | ||
"eslint": "^7.32.0", | ||
@@ -112,3 +117,3 @@ "eslint-config-airbnb-base": "^14.2.0", | ||
"scripts": { | ||
"prerelease": "npm test && webpack --config ./webpack/webpack.release.config.js --progress --color && git add -A dist", | ||
"prerelease": "npm test && npm run build:release && git add -A dist", | ||
"posttag": "git push && git push --tags && rm -rf build" | ||
@@ -115,0 +120,0 @@ } |
@@ -12,4 +12,4 @@ const webpack = require('webpack'); | ||
entry: { | ||
mailgun: path.join(SRC_DIR, 'index.ts'), | ||
'mailgun.min': path.join(SRC_DIR, 'index.ts') | ||
mailgun: path.join(SRC_DIR, 'lib/index.ts'), | ||
'mailgun.min': path.join(SRC_DIR, 'lib/index.ts') | ||
}, | ||
@@ -16,0 +16,0 @@ output: { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
4782401
10037
6
34
283