encoding
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -7,4 +7,4 @@ 'use strict'; | ||
try { | ||
// this is to fool browserify so it doesn't try (in vain) to install iconv. | ||
var iconv_package = 'iconv'; | ||
// this is to fool browserify so it doesn't try (in vain) to install iconv. | ||
var iconv_package = 'iconv'; | ||
Iconv = require(iconv_package).Iconv; | ||
@@ -49,7 +49,7 @@ } catch (E) { | ||
} catch (E) { | ||
console.log(E); | ||
console.error(E); | ||
try { | ||
result = convertIconvLite(str, to, from); | ||
} catch (E) { | ||
console.log(E); | ||
console.error(E); | ||
result = str; | ||
@@ -62,3 +62,3 @@ } | ||
} catch (E) { | ||
console.log(E); | ||
console.error(E); | ||
result = str; | ||
@@ -123,2 +123,2 @@ } | ||
toUpperCase(); | ||
} | ||
} |
{ | ||
"name": "encoding", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed", | ||
@@ -5,0 +5,0 @@ "main": "lib/encoding.js", |
7602
146