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

lib-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-loader - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

10

index.js

@@ -53,2 +53,11 @@ 'use strict';

function loadOne(path, name) {
if (name in module.exports) {
throw new Error(fmt('libKey \'%s\' already exists', name));
}
module.exports[name] = require(path);
}
function load(opts){

@@ -74,3 +83,4 @@ opts = _.defaults(opts || {},{

load: load,
loadOne: loadOne,
loadMany: loadMany
};

2

package.json
{
"name": "lib-loader",
"version": "0.4.0",
"version": "0.5.0",
"description": "load and cache libraries and configs using the require system for easy access",

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

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