external-editor
Advanced tools
Comparing version 2.0.5 to 2.1.0
@@ -10,3 +10,3 @@ // Generated by CoffeeScript 1.12.7 | ||
(function() { | ||
var CreateFileError, ExternalEditor, FS, IConvLite, JSCharDet, LaunchEditorError, ReadFileError, RemoveFileError, Spawn, SpawnSync, Temp, | ||
var ChatDet, CreateFileError, ExternalEditor, FS, IConvLite, LaunchEditorError, ReadFileError, RemoveFileError, Spawn, SpawnSync, Temp, | ||
bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | ||
@@ -22,6 +22,6 @@ | ||
JSCharDet = require('jschardet'); | ||
IConvLite = require('iconv-lite'); | ||
ChatDet = require('chardet'); | ||
CreateFileError = require('./errors/CreateFileError'); | ||
@@ -35,4 +35,2 @@ | ||
JSCharDet.Constants.MINIMUM_THRESHOLD = 0; | ||
ExternalEditor = (function() { | ||
@@ -171,4 +169,4 @@ ExternalEditor.edit = function(text) { | ||
} | ||
encoding = JSCharDet.detect(buffer); | ||
return this.text = IConvLite.decode(buffer, encoding.encoding); | ||
encoding = ChatDet.detect(buffer); | ||
return this.text = IConvLite.decode(buffer, encoding); | ||
} catch (error) { | ||
@@ -175,0 +173,0 @@ e = error; |
{ | ||
"name": "external-editor", | ||
"version": "2.0.5", | ||
"version": "2.1.0", | ||
"description": "Edit a string with the users preferred text editor using $VISUAL or $ENVIRONMENT", | ||
@@ -29,4 +29,4 @@ "main": "main/index.js", | ||
"dependencies": { | ||
"chardet": "^0.4.0", | ||
"iconv-lite": "^0.4.17", | ||
"jschardet": "^1.4.2", | ||
"tmp": "^0.0.33" | ||
@@ -33,0 +33,0 @@ }, |
@@ -10,3 +10,3 @@ # External Editor | ||
Version: 2.0.5 | ||
Version: 2.1.0 | ||
@@ -13,0 +13,0 @@ As of version 2.0.0, node 0.10 is no longer support. Minimum node version is now 0.12. |
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
19736
327
+ Addedchardet@^0.4.0
+ Addedchardet@0.4.2(transitive)
- Removedjschardet@^1.4.2
- Removedjschardet@1.6.0(transitive)