Socket
Socket
Sign inDemoInstall

package-json

Package Overview
Dependencies
35
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.2 to 2.3.3

7

index.js

@@ -12,3 +12,8 @@ 'use strict';

var npmrc = rc('npm');
var token = npmrc[scope + ':_authToken'] || npmrc['//registry.npmjs.org/:_authToken'];
var token;
if (!npmrc.registry || url.parse(npmrc.registry).hostname === 'registry.npmjs.org') {
token = npmrc[scope + ':_authToken'] || npmrc['//registry.npmjs.org/:_authToken'];
}
var headers = {};

@@ -15,0 +20,0 @@

2

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

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

@@ -49,2 +49,3 @@ # package-json [![Build Status](https://travis-ci.org/sindresorhus/package-json.svg?branch=master)](https://travis-ci.org/sindresorhus/package-json)

- [latest-version](https://github.com/sindresorhus/latest-version) - Get the latest version of an npm package
- [pkg-versions](https://github.com/sindresorhus/pkg-versions) - Get the version numbers of a package from the npm registry
- [npm-keyword](https://github.com/sindresorhus/npm-keyword) - Get a list of npm packages with a certain keyword

@@ -51,0 +52,0 @@ - [npm-user](https://github.com/sindresorhus/npm-user) - Get user info of an npm user

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