Socket
Socket
Sign inDemoInstall

module-lookup-amd

Package Overview
Dependencies
19
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.4 to 8.0.5

15

index.js

@@ -33,5 +33,5 @@ 'use strict';

debug('config: ', config);
debug('partial: ', depPath);
debug('filename: ', filename);
debug(`config: ${config}`);
debug(`partial: ${depPath}`);
debug(`filename: ${filename}`);

@@ -48,3 +48,3 @@ if (typeof config === 'string') {

debug('configPath: ', configPath);
debug(`configPath: ${configPath}`);

@@ -99,4 +99,3 @@ if (!config.baseUrl) {

// Need to guard against jquery.min being treated as a real file
if (path.extname(resolved) && fileExists(resolved, fileSystem)) {
if (path.extname(resolved) && fileExists(resolved)) {
debug(`${resolved} already has an extension and is a real file`);

@@ -136,5 +135,5 @@ return resolved;

function fileExists(filepath = '', fileSystem = fs) {
function fileExists(filepath = '') {
try {
return fileSystem.statSync(filepath).isFile();
return fs.statSync(filepath).isFile();
} catch (error) {

@@ -141,0 +140,0 @@ // Check exception. If ENOENT - no such file or directory ok, file doesn't exist.

{
"name": "module-lookup-amd",
"version": "8.0.4",
"version": "8.0.5",
"description": "Resolve aliased dependency paths using a RequireJS config",

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

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