New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/tarball-resolver

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/tarball-resolver - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

14

lib/index.js

@@ -11,3 +11,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const parse_npm_tarball_url_1 = require("parse-npm-tarball-url");
function resolveTarball(wantedDependency) {

@@ -18,15 +17,2 @@ return __awaiter(this, void 0, void 0, function* () {

}
if (wantedDependency.pref.startsWith('http://registry.npmjs.org/')) {
const parsed = parse_npm_tarball_url_1.default(wantedDependency.pref);
if (parsed) {
return {
id: `${parsed.host}/${parsed.pkg.name}/${parsed.pkg.version}`,
normalizedPref: wantedDependency.pref,
resolution: {
tarball: wantedDependency.pref,
},
resolvedVia: 'url',
};
}
}
return {

@@ -33,0 +19,0 @@ id: wantedDependency.pref

11

package.json
{
"name": "@pnpm/tarball-resolver",
"version": "0.1.1",
"version": "1.0.0",
"description": "Resolver for tarball dependencies",

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

"engines": {
"node": ">=4"
"node": ">=6"
},

@@ -32,4 +32,3 @@ "scripts": {

"dependencies": {
"@pnpm/resolver-base": "^1.1.0",
"parse-npm-tarball-url": "^1.0.1"
"@pnpm/resolver-base": "^1.1.0"
},

@@ -43,5 +42,5 @@ "devDependencies": {

"tape": "^4.8.0",
"ts-node": "^6.0.3",
"ts-node": "^7.0.0",
"tslint": "^5.8.0",
"typescript": "^2.6.2"
"typescript": "^3.0.0"
},

@@ -48,0 +47,0 @@ "mos": {

@@ -25,3 +25,3 @@ # @pnpm/tarball-resolver

//> {
// "id": "registry.npmjs.org/is-array/1.0.1",
// "id": "registry.npmjs.org/is-array/-/is-array-1.0.1",
// "normalizedPref": "http://registry.npmjs.org/is-array/-/is-array-1.0.1.tgz",

@@ -28,0 +28,0 @@ // "resolution": {

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