iconv-lite
Advanced tools
Comparing version 0.4.6 to 0.4.7
# 0.4.7 / 2015-02-05 | ||
* stop official support of Node.js v0.8. Should still work, but no guarantees. | ||
reason: Packages needed for testing are hard to get on Travis CI. | ||
* work in environment where Object.prototype is monkey patched with enumerable | ||
props (#89). | ||
# 0.4.6 / 2015-01-12 | ||
@@ -7,2 +15,3 @@ | ||
# 0.4.5 / 2014-11-20 | ||
@@ -13,2 +22,3 @@ | ||
# 0.4.4 / 2014-07-16 | ||
@@ -19,2 +29,3 @@ | ||
# 0.4.3 / 2014-06-14 | ||
@@ -24,2 +35,3 @@ | ||
# 0.4.2 / 2014-06-12 | ||
@@ -29,2 +41,3 @@ | ||
# 0.4.1 / 2014-06-11 | ||
@@ -31,0 +44,0 @@ |
@@ -83,4 +83,7 @@ | ||
// Add more encoding pairs when needed. | ||
for (var uChar in options.encodeAdd || {}) | ||
this._setEncodeChar(uChar.charCodeAt(0), options.encodeAdd[uChar]); | ||
if (options.encodeAdd) { | ||
for (var uChar in options.encodeAdd) | ||
if (Object.prototype.hasOwnProperty.call(options.encodeAdd, uChar)) | ||
this._setEncodeChar(uChar.charCodeAt(0), options.encodeAdd[uChar]); | ||
} | ||
@@ -475,4 +478,2 @@ this.defCharSB = this.encodeTable[0][options.iconv.defaultCharSingleByte.charCodeAt(0)]; | ||
// TODO: Check curByte is number 0 <= < 256 | ||
// Lookup in current trie node. | ||
@@ -479,0 +480,0 @@ var uCode = this.decodeTables[nodeIdx][curByte]; |
@@ -19,3 +19,4 @@ | ||
for (var enc in module) | ||
exports[enc] = module[enc]; | ||
if (Object.prototype.hasOwnProperty.call(module, enc)) | ||
exports[enc] = module[enc]; | ||
} |
@@ -31,4 +31,2 @@ | ||
// Direct: \n, \r, \t, 0x20, 0x27-0x29, (0x2B), 0x2C-0x3A, 0x3F, 0x41-0x5A, 0x61-0x7A | ||
function utf7EncoderWrite(str) { | ||
@@ -35,0 +33,0 @@ // Naive implementation. |
{ | ||
"name": "iconv-lite", | ||
"description": "Convert character encodings in pure javascript.", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"license": "MIT", | ||
@@ -50,4 +50,4 @@ | ||
"istanbul": "*", | ||
"iconv": "~2.1.4" | ||
"iconv": "2.1.4" | ||
} | ||
} |
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
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
324060
3806