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

fabricator-assemble

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fabricator-assemble - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

12

index.js

@@ -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 @@

{
"name": "fabricator-assemble",
"version": "1.0.4",
"version": "1.0.5",
"description": "The assembly engine behind Fabricator",

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

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