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

dependency-path

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-path - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

6

lib/index.js

@@ -40,3 +40,3 @@ "use strict";

}
if (reference.indexOf('/') === -1) {
if (!reference.includes('/')) {
const registryName = encodeRegistry(getRegistryByPackageName(registries, pkgName));

@@ -60,3 +60,3 @@ return `${registryName}/${pkgName}/${reference}`;

const registryName = encodeRegistry(getRegistryByPackageName(registries, packageName));
if (absoluteResolutionLoc.startsWith(`${registryName}/`) && absoluteResolutionLoc.indexOf('/-/') === -1) {
if (absoluteResolutionLoc.startsWith(`${registryName}/`) && !absoluteResolutionLoc.includes('/-/')) {
return absoluteResolutionLoc.substr(absoluteResolutionLoc.indexOf('/'));

@@ -74,3 +74,3 @@ }

}
if (reference.indexOf('/') === -1) {
if (!reference.includes('/')) {
return `/${pkgName}/${reference}`;

@@ -77,0 +77,0 @@ }

{
"name": "dependency-path",
"version": "3.0.1",
"version": "3.0.2",
"description": "Utilities for working with symlinked node_modules",

@@ -29,3 +29,3 @@ "main": "lib/index.js",

"engines": {
"node": ">=8"
"node": ">=8.15"
},

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

"@pnpm/types": "3.0.0",
"@types/semver": "5.5.0",
"@types/semver": "6.0.0",
"encode-registry": "1.1.0",

@@ -51,4 +51,4 @@ "semver": "6.0.0"

"ts-node": "8.0.3",
"tslint": "5.14.0",
"typescript": "3.4.1"
"tslint": "5.15.0",
"typescript": "3.4.2"
},

@@ -55,0 +55,0 @@ "mos": {

Sorry, the diff of this file is not supported yet

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