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 2.0.0 to 2.0.1

4

lib/index.d.ts

@@ -7,11 +7,11 @@ export declare function isAbsolute(dependencyPath: string): boolean;

export declare function parse(dependencyPath: string): {
host: string | undefined;
isAbsolute: boolean;
name: string | undefined;
version: string;
host: string | undefined;
} | {
isAbsolute: boolean;
host: string | undefined;
isAbsolute: true;
name?: undefined;
version?: undefined;
};

@@ -43,2 +43,5 @@ "use strict";

}
if (reference.startsWith('file:')) {
return reference;
}
if (reference.indexOf('/') === -1) {

@@ -65,6 +68,6 @@ return `/${pkgName}/${reference}`;

return {
host,
isAbsolute: _isAbsolute,
name,
version,
host,
};

@@ -75,4 +78,4 @@ }

return {
host,
isAbsolute: _isAbsolute,
host,
};

@@ -79,0 +82,0 @@ }

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

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

"scripts": {
"test": "preview && ts-node test.ts && mos t",
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
"test": "npm run tsc && pnpm link . && npm run lint && ts-node test.ts",
"prepublishOnly": "tsc",

@@ -17,6 +18,3 @@ "md": "mos",

},
"repository": {
"type": "git",
"url": "git+https://github.com/pnpm/dependency-path.git"
},
"repository": "https://github.com/pnpm/pnpm/blob/master/packages/dependency-path",
"keywords": [

@@ -37,5 +35,5 @@ "node_modules",

"bugs": {
"url": "https://github.com/pnpm/dependency-path/issues"
"url": "https://github.com/pnpm/pnpm/issues"
},
"homepage": "https://github.com/pnpm/dependency-path#readme",
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/dependency-path#readme",
"dependencies": {

@@ -47,8 +45,9 @@ "@types/semver": "^5.4.0",

"devDependencies": {
"@pnpm/tslint-config": "0.0.0",
"@types/tape": "^4.2.30",
"mos": "^2.0.0-alpha.3",
"mos-plugin-readme": "^1.0.4",
"package-preview": "^1.0.0",
"tape": "^4.8.0",
"ts-node": "^7.0.0",
"tslint": "5.11.0",
"typescript": "^3.0.0"

@@ -55,0 +54,0 @@ },

@@ -5,4 +5,4 @@ # dependency-path

<!--@shields('npm', 'travis')-->
[![npm version](https://img.shields.io/npm/v/dependency-path.svg)](https://www.npmjs.com/package/dependency-path) [![Build Status](https://img.shields.io/travis/pnpm/dependency-path/master.svg)](https://travis-ci.org/pnpm/dependency-path)
<!--@shields('npm')-->
[![npm version](https://img.shields.io/npm/v/dependency-path.svg)](https://www.npmjs.com/package/dependency-path)
<!--/@-->

@@ -9,0 +9,0 @@

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