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

spelunk

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spelunk - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

package.json
{
"name": "spelunk",
"description": "Traverse a folder in node, turning its contents into an object for easy consumption",
"version": "0.1.1",
"version": "0.1.2",
"homepage": "https://github.com/Rich-Harris/spelunk",

@@ -32,2 +32,2 @@ "author": {

}
}
}

@@ -100,3 +100,3 @@ var fs, path, minimatch;

else {
key = getKey( fileName );
key = getKey( fileName, options );
getFile( dirPath, fileName, gotFile );

@@ -135,6 +135,6 @@ }

// Get key from path, e.g. 'project/data/config.json' -> 'config'
function getKey ( fileName ) {
function getKey ( fileName, options ) {
var lastDotIndex = fileName.lastIndexOf( '.' );
if ( lastDotIndex > 0 ) {
if ( lastDotIndex > 0 && !options.keepExtensions ) {
return fileName.substr( 0, lastDotIndex );

@@ -141,0 +141,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