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 2.0.0 to 2.1.0

6

index.js

@@ -0,1 +1,2 @@

const url = require('url')
const launch = require('launch-editor')

@@ -5,5 +6,6 @@

return function launchEditorMiddleware (req, res, next) {
const { file } = req.query
const { file } = url.parse(req.url, true).query || {}
if (!file) {
res.status(500).end(`launch-editor-middleware: required query param "file" is missing.`)
res.statusCode = 500
res.end(`launch-editor-middleware: required query param "file" is missing.`)
} else {

@@ -10,0 +12,0 @@ launch(file, specifiedEditor, onErrorCallback)

{
"name": "launch-editor-middleware",
"version": "2.0.0",
"version": "2.1.0",
"description": "express middleware for launching editor",

@@ -5,0 +5,0 @@ "main": "index.js",

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