libmime 2.1.2 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.1.3 2016-12-08
4
+
5
+ * Revert dot as a special symbol
6
+
3
7
  ## v2.1.2 2016-11-21
4
8
 
5
9
  * Quote special symbols as defined in RFC (surajwy)
package/lib/libmime.js CHANGED
@@ -340,13 +340,13 @@ var libmime = module.exports = {
340
340
  var value = structured.params[param];
341
341
  if (!libmime.isPlainText(value) || value.length >= 75) {
342
342
  libmime.buildHeaderParam(param, value, 50).forEach(function (encodedParam) {
343
- if (!/[\s"\\;:\/=\(\),<>@\[\]\?\.]|^[\-']|'$/.test(encodedParam.value) || encodedParam.key.substr(-1) === '*') {
343
+ if (!/[\s"\\;:\/=\(\),<>@\[\]\?]|^[\-']|'$/.test(encodedParam.value) || encodedParam.key.substr(-1) === '*') {
344
344
  paramsArray.push(encodedParam.key + '=' + encodedParam.value);
345
345
  } else {
346
346
  paramsArray.push(encodedParam.key + '=' + JSON.stringify(encodedParam.value));
347
347
  }
348
348
  });
349
- } else if (/[\s'"\\;:\/=\(\),<>@\[\]\?\.]|^\-/.test(value)) {
349
+ } else if (/[\s'"\\;:\/=\(\),<>@\[\]\?]|^\-/.test(value)) {
350
350
  paramsArray.push(param + '=' + JSON.stringify(value));
351
351
  } else {
352
352
  paramsArray.push(param + '=' + value);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "libmime",
3
3
  "description": "Encode and decode quoted printable and base64 strings",
4
- "version": "2.1.2",
4
+ "version": "2.1.3",
5
5
  "main": "lib/libmime",
6
6
  "homepage": "https://github.com/andris9/libmime",
7
7
  "repository": {
@@ -19,7 +19,7 @@
19
19
  "test": "grunt mochaTest"
20
20
  },
21
21
  "dependencies": {
22
- "iconv-lite": "0.4.13",
22
+ "iconv-lite": "0.4.15",
23
23
  "libbase64": "0.1.0",
24
24
  "libqp": "1.1.0"
25
25
  },
@@ -29,6 +29,6 @@
29
29
  "grunt-cli": "^1.2.0",
30
30
  "grunt-eslint": "^19.0.0",
31
31
  "grunt-mocha-test": "^0.13.2",
32
- "mocha": "^3.1.2"
32
+ "mocha": "^3.2.0"
33
33
  }
34
34
  }