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

package-json

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

package-json - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

6

index.js

@@ -33,2 +33,6 @@ 'use strict';

data = data.versions[version];
if (!data) {
throw new Error('Version doesn\'t exist');
}
}

@@ -40,3 +44,3 @@

if (err.statusCode === 404) {
throw new Error('Package or version doesn\'t exist');
throw new Error('Package doesn\'t exist');
}

@@ -43,0 +47,0 @@

2

package.json
{
"name": "package-json",
"version": "2.2.0",
"version": "2.2.1",
"description": "Get the package.json of a package from the npm registry",

@@ -5,0 +5,0 @@ "license": "MIT",

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