New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

require-one-of

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-one-of - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

12

CHANGELOG.md

@@ -5,2 +5,14 @@ # Change Log

<a name="1.0.3"></a>
## [1.0.3](https://github.com/Kikobeats/require-one-of/compare/v1.0.1...v1.0.3) (2019-01-14)
### Bug Fixes
* don't cache cwd directory ([86ee294](https://github.com/Kikobeats/require-one-of/commit/86ee294))
* ensure to resolve starting from cwd ([9b0a877](https://github.com/Kikobeats/require-one-of/commit/9b0a877))
* use minus name ([610ac28](https://github.com/Kikobeats/require-one-of/commit/610ac28))
<a name="1.0.2"></a>

@@ -7,0 +19,0 @@ ## [1.0.2](https://github.com/Kikobeats/require-one-of/compare/v1.0.1...v1.0.2) (2019-01-14)

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://documentup.com/Kikobeats/require-one-of",
"version": "1.0.2",
"version": "1.0.3",
"main": "src/index.js",

@@ -8,0 +8,0 @@ "author": {

@@ -6,4 +6,2 @@ 'use strict'

const resolveCwd = resolveFrom.silent.bind(resolveFrom, process.cwd())
const cache = {}

@@ -22,3 +20,3 @@

for (const module of modules) {
const modulePath = resolveCwd(module)
const modulePath = resolveFrom.silent(process.cwd(), module)
if (modulePath) return require(modulePath)

@@ -25,0 +23,0 @@ }

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