Socket
Socket
Sign inDemoInstall

package-json

Package Overview
Dependencies
34
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc