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

7

lib/index.js

@@ -1,5 +0,3 @@

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const normalizeRegistry = require("normalize-registry-url");
function default_1(pkgName, pkgVersion, opts) {
import normalizeRegistry from 'normalize-registry-url';
export default function (pkgName, pkgVersion, opts) {
const registry = normalizeRegistry(opts && opts.registry || 'https://registry.npmjs.org/');

@@ -9,3 +7,2 @@ const scopelessName = getScopelessName(pkgName);

}
exports.default = default_1;
function removeBuildMetadataFromVersion(version) {

@@ -12,0 +9,0 @@ const plusPos = version.indexOf('+');

{
"name": "get-npm-tarball-url",
"version": "2.0.2",
"version": "3.0.0-0",
"description": "Create the tarball URL of a npm package",
"main": "lib/index.js",
"type": "module",
"typings": "lib/index.d.ts",

@@ -11,5 +12,5 @@ "files": [

"scripts": {
"test": "preview && ts-node test --type-check",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"tsc": "tsc",
"prepublishOnly": "npm run tsc"
"prepublishOnly": "pnpm tsc"
},

@@ -21,3 +22,3 @@ "repository": {

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

@@ -40,7 +41,8 @@ "keywords": [

"devDependencies": {
"@types/tape": "^4.2.29",
"package-preview": "^1.0.3",
"tape": "^5.0.0",
"ts-node": "^7.0.0",
"typescript": "^3.0.0"
"@babel/core": "^7.13.14",
"@types/jest": "^26.0.22",
"jest": "27.0.0-next.7",
"ts-jest": "27.0.0-next.10",
"ts-node": "^9.1.1",
"typescript": "^4.2.3"
},

@@ -47,0 +49,0 @@ "dependencies": {

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