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

import-local

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

import-local - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

6

index.js

@@ -14,3 +14,7 @@ 'use strict';

return !filenameInLocalNodeModules && localFile && require(localFile);
// Use `path.relative()` to detect local package installation,
// because __filename's case is inconsistent on Windows
// Can use `===` when targeting Node.js 8
// See https://github.com/nodejs/node/issues/6624
return !filenameInLocalNodeModules && localFile && path.relative(localFile, filename) !== '' && require(localFile);
};

4

package.json
{
"name": "import-local",
"version": "3.0.1",
"version": "3.0.2",
"description": "Let a globally installed package use a locally installed version of itself if available",

@@ -40,3 +40,3 @@ "license": "MIT",

"devDependencies": {
"ava": "^2.1.0",
"ava": "2.1.0",
"cpy": "^7.0.1",

@@ -43,0 +43,0 @@ "del": "^4.1.1",

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