Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

external-editor

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

external-editor - npm Package Compare versions

Comparing version 2.0.5 to 2.1.0

12

main/index.js

@@ -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.

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc