babel-plugin-normalize-requires
Advanced tools
Comparing version 2.27.0 to 2.28.0
@@ -40,3 +40,3 @@ "use strict"; | ||
const { node } = path; | ||
if (node.name == 'require') { | ||
if (node.name === 'require') { | ||
const parent = path.parent; | ||
@@ -89,7 +89,7 @@ if (t.isCallExpression(parent)) { | ||
const firstSlashIndex = moduleName.indexOf('/'); | ||
if (firstSlashIndex == -1) { | ||
if (firstSlashIndex === -1) { | ||
return true; | ||
} | ||
const restOfModuleName = moduleName.substring(firstSlashIndex + 1); | ||
if (moduleName.startsWith('@') && restOfModuleName.indexOf('/') == -1) { | ||
if (moduleName.startsWith('@') && restOfModuleName.indexOf('/') === -1) { | ||
return true; | ||
@@ -96,0 +96,0 @@ } |
{ | ||
"author": "Liferay Frontend Infrastructure Team <pt-frontend-infrastructure@liferay.com>", | ||
"dependencies": { | ||
"liferay-npm-build-tools-common": "2.27.0" | ||
"liferay-npm-build-tools-common": "2.28.0" | ||
}, | ||
@@ -19,4 +19,4 @@ "description": "A Babel plugin that rewrites require() calls to normalize them (removing extensions and trailing slashes, for example).", | ||
}, | ||
"version": "2.27.0", | ||
"gitHead": "e19c5b4d5fc7c2196cc37a6e31a30afe1d2c3f74" | ||
"version": "2.28.0", | ||
"gitHead": "c511aeac6b153a560c83c0a0f8bee50efaa5a6a3" | ||
} |
@@ -19,3 +19,3 @@ /** | ||
if (node.name == 'require') { | ||
if (node.name === 'require') { | ||
const parent = path.parent; | ||
@@ -89,3 +89,3 @@ | ||
if (firstSlashIndex == -1) { | ||
if (firstSlashIndex === -1) { | ||
return true; | ||
@@ -96,3 +96,3 @@ } | ||
if (moduleName.startsWith('@') && restOfModuleName.indexOf('/') == -1) { | ||
if (moduleName.startsWith('@') && restOfModuleName.indexOf('/') === -1) { | ||
return true; | ||
@@ -99,0 +99,0 @@ } |
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
11982
+ Addedbabel-plugin-add-module-metadata@2.28.0(transitive)
+ Addedbabel-plugin-alias-modules@2.28.0(transitive)
+ Addedbabel-plugin-name-amd-modules@2.28.0(transitive)
+ Addedbabel-plugin-namespace-amd-define@2.28.0(transitive)
+ Addedbabel-plugin-namespace-modules@2.28.0(transitive)
+ Addedbabel-plugin-wrap-modules-amd@2.28.0(transitive)
+ Addedbabel-preset-liferay-standard@2.28.0(transitive)
+ Addedliferay-npm-build-tools-common@2.28.0(transitive)
+ Addedliferay-npm-bundler-plugin-exclude-imports@2.28.0(transitive)
+ Addedliferay-npm-bundler-plugin-inject-imports-dependencies@2.28.0(transitive)
+ Addedliferay-npm-bundler-plugin-inject-peer-dependencies@2.28.0(transitive)
+ Addedliferay-npm-bundler-plugin-namespace-packages@2.28.0(transitive)
+ Addedliferay-npm-bundler-plugin-replace-browser-modules@2.28.0(transitive)
+ Addedliferay-npm-bundler-plugin-resolve-linked-dependencies@2.28.0(transitive)
+ Addedliferay-npm-bundler-preset-standard@2.28.0(transitive)
- Removedbabel-plugin-add-module-metadata@2.27.0(transitive)
- Removedbabel-plugin-alias-modules@2.27.0(transitive)
- Removedbabel-plugin-name-amd-modules@2.27.0(transitive)
- Removedbabel-plugin-namespace-amd-define@2.27.0(transitive)
- Removedbabel-plugin-namespace-modules@2.27.0(transitive)
- Removedbabel-plugin-wrap-modules-amd@2.27.0(transitive)
- Removedbabel-preset-liferay-standard@2.27.0(transitive)
- Removedliferay-npm-build-tools-common@2.27.0(transitive)
- Removedliferay-npm-bundler-plugin-exclude-imports@2.27.0(transitive)
- Removedliferay-npm-bundler-plugin-inject-imports-dependencies@2.27.0(transitive)
- Removedliferay-npm-bundler-plugin-inject-peer-dependencies@2.27.0(transitive)
- Removedliferay-npm-bundler-plugin-namespace-packages@2.27.0(transitive)
- Removedliferay-npm-bundler-plugin-replace-browser-modules@2.27.0(transitive)
- Removedliferay-npm-bundler-plugin-resolve-linked-dependencies@2.27.0(transitive)
- Removedliferay-npm-bundler-preset-standard@2.27.0(transitive)