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

sourcebit-source-filesystem

Package Overview
Dependencies
Maintainers
11
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sourcebit-source-filesystem - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "sourcebit-source-filesystem",
"version": "0.1.0",
"version": "0.1.1",
"description": "Sourcebit filesystem source plugin",

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

@@ -96,3 +96,5 @@ const chokidar = require('chokidar');

}
return _.assign({}, data, { objects });
return _.assign({}, data, {
objects: data.objects.concat(objects)
});
};

@@ -99,0 +101,0 @@

@@ -108,3 +108,3 @@ const path = require('path');

modelLabel: _.get(model, 'label', null),
url: model.type === 'page' ? urlFromFilePath(filePath) : null
urlPath: model.type === 'page' ? urlPathFromFilePath(filePath) : null
}, _.isNil)

@@ -167,3 +167,3 @@ )

function urlFromFilePath(filePath) {
function urlPathFromFilePath(filePath) {
const pathObject = path.parse(filePath);

@@ -174,4 +174,4 @@ const parts = _.compact(pathObject.dir.split(path.sep));

}
const url = parts.join('/').toLowerCase();
return '/' + url + (url ? '/' : '');
const urlPath = parts.join('/').toLowerCase();
return '/' + urlPath + (urlPath ? '/' : '');
}

@@ -178,0 +178,0 @@

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