@pnpm/tarball-resolver
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,9 +1,4 @@ | ||
import { ResolveResult } from '@pnpm/resolver-base'; | ||
export default function resolveTarball(wantedDependency: { | ||
pref: string; | ||
}): Promise<{ | ||
id: string; | ||
normalizedPref: string; | ||
resolution: { | ||
tarball: string; | ||
}; | ||
} | null>; | ||
}): Promise<ResolveResult | null>; |
@@ -26,2 +26,3 @@ "use strict"; | ||
}, | ||
resolvedVia: 'url', | ||
}; | ||
@@ -41,2 +42,3 @@ } | ||
}, | ||
resolvedVia: 'url', | ||
}; | ||
@@ -43,0 +45,0 @@ }); |
{ | ||
"name": "@pnpm/tarball-resolver", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Resolver for tarball dependencies", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"tsc": "rimraf lib && tsc", | ||
"test": "npm run lint && preview && ts-node test && mos t", | ||
"test": "npm run lint && preview && ts-node test --type-check && mos t", | ||
"md": "mos", | ||
@@ -32,2 +32,3 @@ "prepublishOnly": "npm run tsc" | ||
"dependencies": { | ||
"@pnpm/resolver-base": "^1.1.0", | ||
"parse-npm-tarball-url": "^1.0.1" | ||
@@ -42,3 +43,3 @@ }, | ||
"tape": "^4.8.0", | ||
"ts-node": "^3.3.0", | ||
"ts-node": "^6.0.3", | ||
"tslint": "^5.8.0", | ||
@@ -45,0 +46,0 @@ "typescript": "^2.6.2" |
@@ -23,6 +23,11 @@ # @pnpm/tarball-resolver | ||
resolveFromTarball({pref: 'http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz'}) | ||
.then(resolveResult => console.log(resolveResult)) | ||
//> { id: 'registry.npmjs.org/is-array/1.0.1', | ||
// normalizedPref: 'http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz', | ||
// resolution: { tarball: 'http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz' } } | ||
.then(resolveResult => console.log(JSON.stringify(resolveResult, null, 2))) | ||
//> { | ||
// "id": "registry.npmjs.org/is-array/1.0.1", | ||
// "normalizedPref": "http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz", | ||
// "resolution": { | ||
// "tarball": "http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz" | ||
// }, | ||
// "resolvedVia": "url" | ||
// } | ||
``` | ||
@@ -29,0 +34,0 @@ <!--/@--> |
Sorry, the diff of this file is not supported yet
6735
38
2
49
+ Added@pnpm/resolver-base@^1.1.0
+ Added@pnpm/resolver-base@1.2.0(transitive)
+ Added@pnpm/types@1.8.0(transitive)