@pnpm/local-resolver
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -11,9 +11,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const read_package_json_1 = require("@pnpm/read-package-json"); | ||
const fs = require("graceful-fs"); | ||
const path = require("path"); | ||
const readPackageJsonCB = require("read-package-json"); | ||
const ssri = require("ssri"); | ||
const promisify = require("util.promisify"); | ||
const parsePref_1 = require("./parsePref"); | ||
const readPackageJson = promisify(readPackageJsonCB); | ||
/** | ||
@@ -40,3 +38,3 @@ * Resolves a package hosted on the local filesystem | ||
try { | ||
localPkg = yield readPackageJson(path.join(spec.fetchSpec, 'package.json')); | ||
localPkg = yield read_package_json_1.default(path.join(spec.fetchSpec, 'package.json')); | ||
} | ||
@@ -43,0 +41,0 @@ catch (internalErr) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const normalize = require("normalize-path"); | ||
const osenv = require("osenv"); | ||
const os = require("os"); | ||
const path = require("path"); | ||
@@ -48,3 +48,3 @@ // tslint:disable-next-line | ||
// this is needed for windows and for file:~/foo/bar | ||
fetchSpec = resolvePath(osenv.home(), spec.slice(2)); | ||
fetchSpec = resolvePath(os.homedir(), spec.slice(2)); | ||
normalizedPref = `${protocol}${spec}`; | ||
@@ -51,0 +51,0 @@ } |
{ | ||
"name": "@pnpm/local-resolver", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Resolver for local packages", | ||
@@ -37,2 +37,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/read-package-json": "1.0.1", | ||
"@pnpm/resolver-base": "^2.0.0", | ||
@@ -42,8 +43,5 @@ "@pnpm/types": "^2.0.0", | ||
"@types/node": "^10.0.6", | ||
"graceful-fs": "^4.1.11", | ||
"normalize-path": "^3.0.0", | ||
"osenv": "^0.1.4", | ||
"read-package-json": "^2.0.12", | ||
"ssri": "^6.0.0", | ||
"util.promisify": "^1.0.0" | ||
"graceful-fs": "4.1.15", | ||
"normalize-path": "3.0.0", | ||
"ssri": "6.0.1" | ||
}, | ||
@@ -50,0 +48,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
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
8
14626
186
+ Added@pnpm/read-package-json@1.0.1(transitive)
+ Addedgraceful-fs@4.1.15(transitive)
+ Addedssri@6.0.1(transitive)
- Removedosenv@^0.1.4
- Removedread-package-json@^2.0.12
- Removedutil.promisify@^1.0.0
- Removedgraceful-fs@4.2.11(transitive)
- Removedos-homedir@1.0.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedosenv@0.1.5(transitive)
- Removedssri@6.0.2(transitive)
Updatedgraceful-fs@4.1.15
Updatednormalize-path@3.0.0
Updatedssri@6.0.1