Socket
Socket
Sign inDemoInstall

optional

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

optional - npm Package Compare versions

Comparing version 0.1.0-1 to 0.1.0-2

3

optional.js
module.exports = function(module){
try{
if(module[0] in {".":1}){
module = process.cwd() + module.substr(1);
}
return require(module);

@@ -4,0 +7,0 @@ }catch(e){ }

2

package.json
{
"name":"optional"
,"version":"v0.1.0-1"
,"version":"v0.1.0-2"
,"homepage":"http://segomos.com/"

@@ -5,0 +5,0 @@ ,"main":"optional"

@@ -28,1 +28,6 @@ #OPTIONAL

```
##Changelog
###v0.1.0-2
* Corrected bug when trying to optionally include relative paths
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