Socket
Socket
Sign inDemoInstall

load-plugin

Package Overview
Dependencies
10
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.0 to 2.3.1

7

index.js

@@ -50,2 +50,3 @@ 'use strict'

var cwd = settings.cwd
var global = settings.global
var filePath

@@ -59,2 +60,6 @@ var sources

if (global === null || global === undefined) {
global = globally
}
if (cwd && typeof cwd === 'object') {

@@ -68,3 +73,3 @@ sources = cwd.concat()

if (name.charAt(0) !== '.') {
if (settings.global == null ? globally : settings.global) {
if (global) {
sources.push(globals)

@@ -71,0 +76,0 @@ }

18

package.json
{
"name": "load-plugin",
"version": "2.3.0",
"version": "2.3.1",
"description": "Load a submodule, plugin, or file",

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

"bugs": "https://github.com/wooorm/load-plugin/issues",
"author": "Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)",
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (http://wooorm.com)"
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],

@@ -27,6 +27,6 @@ "main": "index.js",

"npm-prefix": "^1.2.0",
"resolve-from": "^4.0.0"
"resolve-from": "^5.0.0"
},
"devDependencies": {
"nyc": "^13.0.0",
"nyc": "^14.0.0",
"prettier": "^1.12.0",

@@ -37,3 +37,3 @@ "remark-cli": "^6.0.0",

"tape": "^4.0.0",
"xo": "^0.23.0"
"xo": "^0.24.0"
},

@@ -56,7 +56,3 @@ "scripts": {

"prettier": true,
"esnext": false,
"rules": {
"no-eq-null": "off",
"eqeqeq": "off"
}
"esnext": false
},

@@ -63,0 +59,0 @@ "nyc": {

@@ -1,3 +0,7 @@

# load-plugin [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
# load-plugin
[![Build][build-badge]][build]
[![Coverage][coverage-badge]][coverage]
[![Downloads][downloads-badge]][downloads]
Load a submodule, plugin, or file.

@@ -94,10 +98,14 @@ Like Node’s `require` and `require.resolve`, but from one or more places, and

[travis-badge]: https://img.shields.io/travis/wooorm/load-plugin.svg
[build-badge]: https://img.shields.io/travis/wooorm/load-plugin.svg
[travis]: https://travis-ci.org/wooorm/load-plugin
[build]: https://travis-ci.org/wooorm/load-plugin
[codecov-badge]: https://img.shields.io/codecov/c/github/wooorm/load-plugin.svg
[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/load-plugin.svg
[codecov]: https://codecov.io/github/wooorm/load-plugin
[coverage]: https://codecov.io/github/wooorm/load-plugin
[downloads-badge]: https://img.shields.io/npm/dm/load-plugin.svg
[downloads]: https://www.npmjs.com/package/load-plugin
[npm]: https://docs.npmjs.com/cli/install

@@ -107,3 +115,3 @@

[author]: http://wooorm.com
[author]: https://wooorm.com

@@ -110,0 +118,0 @@ [global]: https://docs.npmjs.com/files/folders#node-modules

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