module-lookup-amd
Advanced tools
Comparing version 8.0.5 to 9.0.0
@@ -5,3 +5,3 @@ #!/usr/bin/env node | ||
const program = require('commander'); | ||
const { program } = require('commander'); | ||
const lookup = require('../index.js'); | ||
@@ -8,0 +8,0 @@ const { name, description, version } = require('../package.json'); |
@@ -71,3 +71,3 @@ 'use strict'; | ||
debug('baseUrl with a leading slash detected'); | ||
resolutionDirectory = resolutionDirectory.replace(/\\/g, '/').replace(config.baseUrl, ''); | ||
resolutionDirectory = resolutionDirectory.replaceAll('\\', '/').replace(config.baseUrl, ''); | ||
debug(`new resolution directory: ${resolutionDirectory}`); | ||
@@ -77,3 +77,3 @@ } | ||
if (normalizedModuleId[0] === '/') { | ||
normalizedModuleId = normalizedModuleId.replace(/^\/+/g, ''); | ||
normalizedModuleId = normalizedModuleId.replaceAll(/^\/+/g, ''); | ||
} | ||
@@ -80,0 +80,0 @@ |
{ | ||
"name": "module-lookup-amd", | ||
"version": "8.0.5", | ||
"version": "9.0.0", | ||
"description": "Resolve aliased dependency paths using a RequireJS config", | ||
@@ -40,3 +40,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"commander": "^10.0.1", | ||
"commander": "^12.0.0", | ||
"glob": "^7.2.3", | ||
@@ -47,5 +47,5 @@ "requirejs": "^2.3.6", | ||
"devDependencies": { | ||
"c8": "^7.13.0", | ||
"mocha": "^10.2.0", | ||
"xo": "^0.54.2" | ||
"c8": "^9.1.0", | ||
"mocha": "^10.4.0", | ||
"xo": "^0.58.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "xo": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11169
+ Addedcommander@12.1.0(transitive)
- Removedcommander@10.0.1(transitive)
Updatedcommander@^12.0.0