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
2
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.0 to 0.1.1

9

lib/index.d.ts

@@ -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

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