launch-editor-middleware
Advanced tools
Comparing version 1.0.0 to 2.0.0
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 @@ } |
{ | ||
"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" | ||
} | ||
} |
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
959
12
+ Addedlaunch-editor@2.9.1(transitive)
+ Addedpicocolors@1.1.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedlaunch-editor@1.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedlaunch-editor@^2.0.0