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

protractor

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protractor - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

20

lib/configParser.js

@@ -101,12 +101,12 @@ var path = require('path'),

// https://github.com/angular/protractor/issues/2413
var lineNumber = '';
var parsedPath = path.parse(patterns[i]);
parsedPath.base = parsedPath.base.replace(/:\d+/, function (match) {
lineNumber = match;
return '';
});
// TODO: when we deprecated node < v0.12 switch to using path.parse as in
// d6aebbad6e9b191fef141472887637ee4318438e
var fileName = patterns[i];
var lineNumber = /:\d+$/.exec(fileName);
if (lineNumber) {
fileName = fileName.slice(0, lineNumber.index);
lineNumber = lineNumber[0].slice(1);
}
var matches = glob.sync(fileName, {cwd: cwd});
var filePath = path.format(parsedPath);
var matches = glob.sync(filePath, {cwd: cwd});
if (!matches.length && !opt_omitWarnings) {

@@ -118,3 +118,3 @@ log.warn('pattern ' + patterns[i] + ' did not match any files.');

if (lineNumber) {
resolvedPath += lineNumber;
resolvedPath += ':' + lineNumber;
}

@@ -121,0 +121,0 @@ resolvedFiles.push(resolvedPath);

@@ -56,3 +56,3 @@ {

"license": "MIT",
"version": "2.5.0"
"version": "2.5.1"
}

Sorry, the diff of this file is too big to display

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