emailjs-mime-builder
Advanced tools
Comparing version 1.0.1 to 2.0.0
{ | ||
"name": "emailjs-mime-builder", | ||
"version": "1.0.1", | ||
"version": "2.0.0", | ||
"homepage": "https://github.com/emailjs/emailjs-mime-builder", | ||
@@ -13,3 +13,7 @@ "description": "emailjs-mime-builder is a low level rfc2822 message composer. Define your own mime tree, no magic included.", | ||
"scripts": { | ||
"test": "grunt" | ||
"build": "./scripts/build.sh", | ||
"release": "./scripts/release.sh", | ||
"lint": "$(npm bin)/standard", | ||
"test": "npm run lint && npm run unit", | ||
"unit": "$(npm bin)/mocha './src/*-unit.js' --reporter spec --require babel-register testutils.js" | ||
}, | ||
@@ -20,22 +24,33 @@ "repository": { | ||
}, | ||
"main": "src/emailjs-mime-builder", | ||
"main": "dist/builder", | ||
"dependencies": { | ||
"emailjs-addressparser": "^1.0.1", | ||
"emailjs-mime-codec": "^1.0.1", | ||
"emailjs-addressparser": "^2.0.2", | ||
"emailjs-mime-codec": "^2.0.3", | ||
"emailjs-mime-types": "^1.0.0", | ||
"punycode": "^1.4.0" | ||
"punycode": "^2.1.0", | ||
"ramda": "^0.25.0" | ||
}, | ||
"devDependencies": { | ||
"amdefine": "^1.0.0", | ||
"chai": "^3.4.1", | ||
"grunt": "^0.4.5", | ||
"grunt-contrib-connect": "^0.11.2", | ||
"grunt-contrib-jshint": "^0.11.3", | ||
"grunt-mocha-phantomjs": "^2.0.1", | ||
"grunt-mocha-test": "^0.12.7", | ||
"mocha": "^2.3.4", | ||
"phantomjs": "^1.9.19", | ||
"requirejs": "^2.1.22", | ||
"sinon": "^1.17.2" | ||
"babel-cli": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.2", | ||
"mocha": "^4.0.1", | ||
"pre-commit": "^1.2.2", | ||
"standard": "^10.0.3" | ||
}, | ||
"standard": { | ||
"globals": [ | ||
"describe", | ||
"it", | ||
"before", | ||
"beforeAll", | ||
"afterAll", | ||
"after", | ||
"expect" | ||
], | ||
"ignore": [ | ||
"dist" | ||
] | ||
} | ||
} |
@@ -5,26 +5,18 @@ # emailjs-mime-builder | ||
[![Build Status](https://travis-ci.org/emailjs/emailjs-mime-builder.png?branch=master)](https://travis-ci.org/emailjs/emailjs-mime-builder) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/emailjs/emailjs-mime-builder.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/emailjs/emailjs-mime-builder.png?branch=master)](https://travis-ci.org/emailjs/emailjs-mime-builder) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) [![ES6+](https://camo.githubusercontent.com/567e52200713e0f0c05a5238d91e1d096292b338/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f65732d362b2d627269676874677265656e2e737667)](https://kangax.github.io/compat-table/es6/) | ||
## StringEncoding API | ||
## Usage | ||
This module requires `TextEncoder` and `TextDecoder` to exist as part of the StringEncoding API (see: [MDN](https://developer.mozilla.org/en-US/docs/WebAPI/Encoding_API) [whatwg.org](http://encoding.spec.whatwg.org/#api)). Firefox 19+ and Chrome M38+ support this. For the others, [there is a polyfill](https://github.com/whiteout-io/stringencoding)! | ||
Install via | ||
## Installation | ||
``` | ||
npm install --save emailjs-mime-builder | ||
``` | ||
### [npm](https://www.npmjs.org/): | ||
... and then use via | ||
npm install --save mailbuild | ||
```javascript | ||
import Mimebuilder from 'emailjs-mime-builder' | ||
``` | ||
### Dependencies | ||
This module has dependencies that will be fetched automatically. | ||
* [emailjs-mime-codec](https://github.com/emailjs/emailjs-mime-codec/) | ||
* [emailjs-mime-types](https://github.com/emailjs/emailjs-mime-types/) | ||
* [emailjs-addressparser](https://github.com/emailjs/emailjs-addressparser/) | ||
* [punycode.js](https://github.com/bestiejs/punycode.js) | ||
* [emailjs-stringencoding](https://github.com/emailjs/emailjs-stringencoding) | ||
## API | ||
Create a new `MimeBuilder` object with | ||
@@ -31,0 +23,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
129534
7
16
1937
0
5
430
1
+ Addedramda@^0.25.0
+ Addedemailjs-addressparser@2.0.3(transitive)
+ Addedemailjs-base64@1.1.4(transitive)
+ Addedemailjs-mime-codec@2.0.9(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedramda@0.25.00.26.1(transitive)
+ Addedtext-encoding@0.7.0(transitive)
- Removedemailjs-addressparser@1.0.1(transitive)
- Removedemailjs-mime-codec@1.0.4(transitive)
- Removedemailjs-stringencoding@1.0.1(transitive)
- Removedpunycode@1.4.1(transitive)
Updatedemailjs-addressparser@^2.0.2
Updatedemailjs-mime-codec@^2.0.3
Updatedpunycode@^2.1.0