dependency-path
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9817
96
8
1