fabricator-assemble
Advanced tools
+6
-6
@@ -174,3 +174,3 @@ // modules | ||
| var dirs = files.map(function (file) { | ||
| return path.dirname(file).split(path.sep).pop(); | ||
| return path.normalize(path.dirname(file)).split(path.sep).pop(); | ||
| }); | ||
@@ -182,4 +182,4 @@ | ||
| var parent = path.dirname(file).split(path.sep).slice(-2, -1)[0]; | ||
| var collection = path.dirname(file).split(path.sep).pop(); | ||
| var parent = path.normalize(path.dirname(file)).split(path.sep).slice(-2, -1)[0]; | ||
| var collection = path.normalize(path.dirname(file)).split(path.sep).pop(); | ||
| var isSubCollection = (dirs.indexOf(parent) > -1); | ||
@@ -207,4 +207,4 @@ | ||
| var fileMatter = matter.read(file); | ||
| var collection = path.dirname(file).split(path.sep).pop(); | ||
| var parent = path.dirname(file).split(path.sep).slice(-2, -1)[0]; | ||
| var collection = path.normalize(path.dirname(file)).split(path.sep).pop(); | ||
| var parent = path.normalize(path.dirname(file)).split(path.sep).slice(-2, -1)[0]; | ||
| var isSubCollection = (dirs.indexOf(parent) > -1); | ||
@@ -371,3 +371,3 @@ var id = (isSubCollection) ? collection + '.' + getFileName(file) : getFileName(file); | ||
| // determine if view is part of a collection (subdir) | ||
| var dirname = path.dirname(file).split(path.sep).pop(), | ||
| var dirname = path.normalize(path.dirname(file)).split(path.sep).pop(), | ||
| collection = (dirname !== 'views') ? dirname : ''; | ||
@@ -374,0 +374,0 @@ |
+1
-1
| { | ||
| "name": "fabricator-assemble", | ||
| "version": "1.0.4", | ||
| "version": "1.0.5", | ||
| "description": "The assembly engine behind Fabricator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
26865
0.36%