@pnpm/local-resolver
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -11,5 +11,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const fs = require("graceful-fs"); | ||
const normalize = require("normalize-path"); | ||
const path = require("path"); | ||
const readPackageJsonCB = require("read-package-json"); | ||
const ssri = require("ssri"); | ||
const promisify = require("util.promisify"); | ||
@@ -32,3 +34,6 @@ const parsePref_1 = require("./parsePref"); | ||
normalizedPref: spec.normalizedPref, | ||
resolution: { tarball: id }, | ||
resolution: { | ||
integrity: yield getFileIntegrity(spec.fetchSpec), | ||
tarball: id, | ||
}, | ||
}; | ||
@@ -49,2 +54,7 @@ } | ||
exports.default = resolveLocal; | ||
function getFileIntegrity(filename) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return (yield ssri.fromStream(fs.createReadStream(filename))).toString(); | ||
}); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@pnpm/local-resolver", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Resolver for local packages", | ||
@@ -38,6 +38,9 @@ "main": "lib/index.js", | ||
"@pnpm/types": "^1.1.0", | ||
"@types/graceful-fs": "^4.1.2", | ||
"@types/node": "^9.3.0", | ||
"graceful-fs": "^4.1.11", | ||
"normalize-path": "^2.1.1", | ||
"osenv": "^0.1.4", | ||
"read-package-json": "^2.0.12", | ||
"ssri": "^5.2.4", | ||
"util.promisify": "^1.0.0" | ||
@@ -51,3 +54,3 @@ }, | ||
"tape": "^4.8.0", | ||
"ts-node": "^4.0.0", | ||
"ts-node": "^5.0.0", | ||
"tslint": "^5.8.0", | ||
@@ -54,0 +57,0 @@ "typescript": "^2.6.1" |
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
11968
147
9
+ Added@types/graceful-fs@^4.1.2
+ Addedgraceful-fs@^4.1.11
+ Addedssri@^5.2.4
+ Added@types/graceful-fs@4.1.9(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedssri@5.3.0(transitive)