Socket
Socket
Sign inDemoInstall

module-lookup-amd

Package Overview
Dependencies
3
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.4 to 2.0.5

4

index.js

@@ -25,2 +25,6 @@ var ConfigFile = require('requirejs-config-file').ConfigFile;

if (typeof config === 'undefined') {
throw new Error('requirejs config missing');
}
if (typeof config === 'string') {

@@ -27,0 +31,0 @@ configPath = path.dirname(config);

2

package.json
{
"name": "module-lookup-amd",
"version": "2.0.4",
"version": "2.0.5",
"description": "Resolve aliased dependency paths using a RequireJS config",

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

@@ -51,2 +51,14 @@ var assert = require('assert');

it('throws if the config is missing', function() {
assert.throws(function() {
lookup(undefined, 'foobar', filename);
});
});
it('throws if the config is not a string or object', function() {
assert.throws(function() {
lookup(null, 'foobar', filename);
});
});
it('does not throw if the baseUrl is missing', function() {

@@ -53,0 +65,0 @@ var configObject = new ConfigFile(configPath).read();

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc