New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

progeny

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

progeny - npm Package Compare versions

Comparing version 0.6.1 to 0.7.0

23

lib/index.js
// Generated by CoffeeScript 1.8.0
'use strict';
var defaultSettings, each, fs, glob, progenyConstructor, sysPath,
var chalk, defaultSettings, each, fs, glob, printDepsList, progenyConstructor, sysPath,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };

@@ -14,2 +14,4 @@

chalk = require('chalk');
defaultSettings = function(extname) {

@@ -50,8 +52,17 @@ switch (extname) {

printDepsList = function(path, depsList) {
var formatted;
formatted = depsList.map(function(p) {
return ' |--' + sysPath.relative('.', p);
}).join('\n');
console.log(chalk.green.bold('DEP') + ' ' + sysPath.relative('.', path));
return console.log(formatted || ' | NO-DEP');
};
progenyConstructor = function(mode, settings) {
var addDep, altPaths, exclusion, extension, extensionsList, globDeps, moduleDep, multipass, parseDeps, potentialDeps, prefix, progeny, progenySync, regexp, reverseArgs, rootPath;
var addDep, altPaths, debug, exclusion, extension, extensionsList, globDeps, moduleDep, multipass, parseDeps, potentialDeps, prefix, progeny, progenySync, regexp, reverseArgs, rootPath;
if (settings == null) {
settings = {};
}
rootPath = settings.rootPath, altPaths = settings.altPaths, extension = settings.extension, regexp = settings.regexp, prefix = settings.prefix, exclusion = settings.exclusion, extensionsList = settings.extensionsList, multipass = settings.multipass, potentialDeps = settings.potentialDeps, moduleDep = settings.moduleDep, globDeps = settings.globDeps, reverseArgs = settings.reverseArgs;
rootPath = settings.rootPath, altPaths = settings.altPaths, extension = settings.extension, regexp = settings.regexp, prefix = settings.prefix, exclusion = settings.exclusion, extensionsList = settings.extensionsList, multipass = settings.multipass, potentialDeps = settings.potentialDeps, moduleDep = settings.moduleDep, globDeps = settings.globDeps, reverseArgs = settings.reverseArgs, debug = settings.debug;
parseDeps = function(path, source, depsList, callback) {

@@ -242,4 +253,10 @@ var altExts, deps, dirs, mdeps, parent, paths, prefixed, _ref;

}
if (debug == null) {
debug = def.debug || false;
}
run = function() {
return parseDeps(path, source, depsList, function() {
if (debug) {
printDepsList(path, depsList);
}
return callback(null, depsList);

@@ -246,0 +263,0 @@ });

6

package.json
{
"name": "progeny",
"version": "0.6.1",
"version": "0.7.0",
"description": "Recursively finds dependencies of style and template source files",

@@ -25,2 +25,3 @@ "author": {

"async-each": "^1.0.0",
"chalk": "^1.1.3",
"fs-mode": "^1.0.1",

@@ -30,5 +31,6 @@ "glob": "^7.0.3"

"devDependencies": {
"coffee-script": "~1.8.0",
"mocha": "^2.4.5",
"coffee-script": "~1.8.0"
"sinon": "^1.17.4"
}
}

@@ -70,3 +70,6 @@ progeny

// Other paths to check for possible dependency resolution
altPaths: [path.join('path', 'to', 'shared'), path.join('path', 'to', 'common')]
altPaths: [
path.join('path', 'to', 'shared'),
path.join('path', 'to', 'common')
],

@@ -80,3 +83,3 @@ // An array of regexps to run in series for more complex dependency parsing

/(?:['"])([^'"]+)/
]
],

@@ -86,3 +89,6 @@ // By default the list of paths progeny provides will be limited to files

// path progeny thinks a depencency could be located at.
potentialDeps: true
potentialDeps: true,
// Print dependency resolution information to console.log
debug: true
};

@@ -89,0 +95,0 @@ ```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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