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

automaton

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

automaton - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

5

index.js

@@ -145,2 +145,6 @@ 'use strict';

handle = function (err) {
if (err) {
this._logger.errorln(err.message);
}
if ($callback) {

@@ -532,3 +536,2 @@ if (err) {

if (!$verbose) {
this._logger.errorln(msg);
return new Error(msg);

@@ -535,0 +538,0 @@ }

2

package.json
{
"name": "automaton",
"version": "0.0.12",
"version": "0.0.13",
"description": "Task automation tool",

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

@@ -111,16 +111,17 @@ var fstream = require('fstream');

matches.forEach(function (match) {
var isDir = utils.string.endsWith(match, '/');
match = path.normalize(match);
if (utils.string.endsWith(match, '/')) {
lastMatch = match.slice(0, -1);
dirs.push(lastMatch);
if (isDir) {
lastMatch = match.replace(/[\/\\]+$/, '');
dirs.push(path.normalize(lastMatch));
} else {
files.push(match);
lastMatch = match;
files.push(lastMatch);
}
});
// If we only got one match and it was the same as the original pattern,
// then it was a direct match
var directMatch = matches.length === 1 && lastMatch.replace(/[\/\\]+$/, '') === path.normalize(pattern).replace(/[\/\\]+$/, '');
var directMatch = matches.length === 1 && lastMatch === path.normalize(pattern).replace(/[\/\\]+$/, '');
if (!directMatch) {

@@ -203,2 +204,4 @@ cleanup(files, dirs);

pattern = path.normalize(pattern);
for (x = 0; x < length; ++x) {

@@ -205,0 +208,0 @@ if (file[x] !== pattern[x]) {

@@ -201,2 +201,3 @@ /*jshint regexp:false*/

// Find the base path pos
pattern = path.normalize(pattern);
currPath = paths[0];

@@ -203,0 +204,0 @@ length = currPath.length;

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