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

launch-editor-middleware

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

launch-editor-middleware - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

6

index.js
const launch = require('launch-editor')
const lineNumberRE = /:(\d+)$/

@@ -10,6 +9,3 @@ module.exports = (specifiedEditor, onErrorCallback) => {

} else {
const fileName = file.replace(lineNumberRE, '')
const lineNumberMatch = file.match(lineNumberRE)
const lineNumber = lineNumberMatch && lineNumberMatch[1]
launch(fileName, lineNumber, specifiedEditor, onErrorCallback)
launch(file, specifiedEditor, onErrorCallback)
res.end()

@@ -16,0 +12,0 @@ }

4

package.json
{
"name": "launch-editor-middleware",
"version": "1.0.0",
"version": "2.0.0",
"description": "express middleware for launching editor",

@@ -22,4 +22,4 @@ "main": "index.js",

"dependencies": {
"launch-editor": "^1.0.0"
"launch-editor": "^2.0.0"
}
}
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