Permalink
Browse files

Update dependencies

  • Loading branch information...
mathiasbynens committed Jan 26, 2015
1 parent 19f34b4 commit e5752a4ee8763abc481b8d1f7180450ee4f1958a
Showing with 12 additions and 12 deletions.
  1. +4 −4 README.md
  2. +2 −2 package.json
  3. +4 −4 quoted-printable.js
  4. +1 −1 scripts/export-data.js
  5. +1 −1 src/quoted-printable.js
@@ -1,10 +1,10 @@
# quoted-printable [![Build status](https://travis-ci.org/mathiasbynens/quoted-printable.svg?branch=master)](https://travis-ci.org/mathiasbynens/quoted-printable) [![Code coverage status](http://img.shields.io/coveralls/mathiasbynens/quoted-printable/master.svg)](https://coveralls.io/r/mathiasbynens/quoted-printable) [![Dependency status](https://gemnasium.com/mathiasbynens/quoted-printable.svg)](https://gemnasium.com/mathiasbynens/quoted-printable)
# quoted-printable [![Build status](https://travis-ci.org/mathiasbynens/quoted-printable.svg?branch=master)](https://travis-ci.org/mathiasbynens/quoted-printable) [![Code coverage status](https://coveralls.io/repos/mathiasbynens/quoted-printable/badge.svg)](https://coveralls.io/r/mathiasbynens/quoted-printable) [![Dependency status](https://gemnasium.com/mathiasbynens/quoted-printable.svg)](https://gemnasium.com/mathiasbynens/quoted-printable)

_quoted-printable_ is a character encoding–agnostic JavaScript implementation of [the `Quoted-Printable` content transfer encoding as defined by RFC 2045](https://tools.ietf.org/html/rfc2045#section-6.7). It can be used to encode plaintext to its `Quoted-Printable` encoding, or the other way around (i.e. decoding). [Here’s an online demo using the UTF-8 character encoding.](https://mothereff.in/quoted-printable)

## Installation

Via [npm](https://www.npmjs.org/):
Via [npm](https://www.npmjs.com/):

```bash
npm install quoted-printable
@@ -28,7 +28,7 @@ In a browser:
<script src="quoted-printable.js"></script>
```

In [Narwhal](http://narwhaljs.org/), [Node.js](https://nodejs.org/), and [RingoJS](http://ringojs.org/):
In [Node.js](https://nodejs.org/), [io.js](https://iojs.org/), [Narwhal](http://narwhaljs.org/), and [RingoJS](http://ringojs.org/):

```js
var quotedPrintable = require('quoted-printable');
@@ -130,7 +130,7 @@ See `quoted-printable --help` for the full list of options.

## Support

_quoted-printable_ is designed to work in at least Node.js v0.10.0, Narwhal 0.3.2, RingoJS 0.8-0.9, PhantomJS 1.9.0, Rhino 1.7RC4, as well as old and modern versions of Chrome, Firefox, Safari, Opera, and Internet Explorer.
_quoted-printable_ is designed to work in at least Node.js v0.10.0, io.js v1.0.0, Narwhal 0.3.2, RingoJS 0.8-0.11, PhantomJS 1.9.0, Rhino 1.7RC4, as well as old and modern versions of Chrome, Firefox, Safari, Opera, and Internet Explorer.

## Unit tests & code coverage

@@ -39,7 +39,7 @@
"test": "node tests/tests.js"
},
"dependencies": {
"utf8": "^2.0.0"
"utf8": "^2.1.0"
},
"devDependencies": {
"coveralls": "^2.11.1",
@@ -50,7 +50,7 @@
"jsesc": "^0.5.0",
"qunit-extras": "^1.4.0",
"qunitjs": "~1.11.0",
"regenerate": "^1.0.1",
"regenerate": "^1.2.1",
"requirejs": "^2.1.15",
"string.fromcodepoint": "^0.2.1"
}
@@ -1,4 +1,4 @@
/*! https://mths.be/quoted-printable v0.2.1 by @mathias | MIT license */
/*! https://mths.be/quoted-printable v1.0.0 by @mathias | MIT license */
;(function(root) {

// Detect free variables `exports`.
@@ -45,7 +45,7 @@
.replace(/\t$/, '=09') // Handle trailing tab.
};

var regexUnsafeSymbols = /[\0-\b\n-\x1F=\x7F-\uD7FF\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF]/g;
var regexUnsafeSymbols = /[\0-\x08\n-\x1F=\x7F-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
var encode = function(string) {

// Encode symbols that are definitely unsafe (i.e. unsafe in any context).
@@ -125,7 +125,7 @@
var quotedPrintable = {
'encode': encode,
'decode': decode,
'version': '0.2.1'
'version': '1.0.0'
};

// Some AMD build optimizers, like r.js, check for specific condition patterns
@@ -139,7 +139,7 @@
return quotedPrintable;
});
} else if (freeExports && !freeExports.nodeType) {
if (freeModule) { // in Node.js or RingoJS v0.8.0+
if (freeModule) { // in Node.js, io.js, or RingoJS v0.8.0+
freeModule.exports = quotedPrintable;
} else { // in Narwhal or RingoJS v0.7.0-
for (var key in quotedPrintable) {
@@ -20,6 +20,6 @@ var definitelyUnsafeSymbols = regenerate()
.remove(' ', '\t');

module.exports = {
'unsafeSymbols': definitelyUnsafeSymbols.toString(),
'unsafeSymbols': definitelyUnsafeSymbols.toString({ 'bmpOnly': true }),
'version': JSON.parse(fs.readFileSync('package.json', 'utf-8')).version
};
@@ -139,7 +139,7 @@
return quotedPrintable;
});
} else if (freeExports && !freeExports.nodeType) {
if (freeModule) { // in Node.js or RingoJS v0.8.0+
if (freeModule) { // in Node.js, io.js, or RingoJS v0.8.0+
freeModule.exports = quotedPrintable;
} else { // in Narwhal or RingoJS v0.7.0-
for (var key in quotedPrintable) {

0 comments on commit e5752a4

Please sign in to comment.