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

es6-deps

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-deps - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

11

index.js

@@ -32,2 +32,8 @@ 'use strict';

function safe(fn) {
try {
fn();
} catch (e) {}
}
function _resolve(current, relpath) {

@@ -54,3 +60,6 @@ var dirname = path.dirname(current);

if (!isdir(nmdir)) return nmdir;
var pkg = require(path.join(nmdir, 'package.json'));
var pkg = {};
safe(function (__) {
return pkg = require(path.join(nmdir, 'package.json'));
});
var main = pkg.main || "index";

@@ -57,0 +66,0 @@ return path.join(nmdir, main);

2

package.json
{
"name": "es6-deps",
"version": "1.0.6",
"version": "1.0.7",
"description": "a simple util to get es6/jsx dependencies",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,2 +25,10 @@ var isdir = require('isdir');

function safe(fn) {
try {
fn();
} catch (e) {
}
}
function _resolve(current, relpath) {

@@ -47,3 +55,4 @@ var dirname = path.dirname(current);

if (!isdir(nmdir)) return nmdir;
var pkg = require(path.join(nmdir, 'package.json'));
var pkg = {};
safe(__ => pkg = require(path.join(nmdir, 'package.json')));
var main = pkg.main || "index";

@@ -50,0 +59,0 @@ return path.join(nmdir, main);

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