Socket
Socket
Sign inDemoInstall

encoding

Package Overview
Dependencies
2
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.10 to 0.1.11

12

lib/encoding.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc