Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-npm-tarball-url

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-npm-tarball-url - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

8

lib/index.js

@@ -7,5 +7,11 @@ "use strict";

const scopelessName = getScopelessName(pkgName);
return `${registry}${pkgName}/-/${scopelessName}-${pkgVersion}.tgz`;
return `${registry}${pkgName}/-/${scopelessName}-${removeBuildMetadataFromVersion(pkgVersion)}.tgz`;
}
exports.default = default_1;
function removeBuildMetadataFromVersion(version) {
const plusPos = version.indexOf('+');
if (plusPos === -1)
return version;
return version.substring(0, plusPos);
}
function getScopelessName(name) {

@@ -12,0 +18,0 @@ if (name[0] !== '@') {

8

package.json
{
"name": "get-npm-tarball-url",
"version": "2.0.1",
"version": "2.0.2",
"description": "Create the tarball URL of a npm package",

@@ -40,5 +40,5 @@ "main": "lib/index.js",

"package-preview": "^1.0.3",
"tape": "^4.6.3",
"ts-node": "^4.0.0",
"typescript": "^2.4.2"
"tape": "^5.0.0",
"ts-node": "^7.0.0",
"typescript": "^3.0.0"
},

@@ -45,0 +45,0 @@ "dependencies": {

@@ -10,3 +10,3 @@ # get-npm-tarball-url

```
npm i -S get-npm-tarball-url
pnpm add get-npm-tarball-url
```

@@ -13,0 +13,0 @@

Sorry, the diff of this file is not supported yet

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