liferay-npm-bundler-loader-css-loader
Advanced tools
Comparing version 2.18.0 to 2.18.1
@@ -67,6 +67,6 @@ "use strict"; | ||
} | ||
if (filePath.startsWith(`node_modules${path_1.default.sep}`)) { | ||
if (filePath.indexOf(`node_modules${path_1.default.sep}`) != -1) { | ||
const pathParts = filePath.split(path_1.default.sep); | ||
const projectNameIndex = lastIndexOf(pathParts, 'node_modules') + 1; | ||
const { version } = read_json_sync_1.default(path_1.default.join('node_modules', pathParts[projectNameIndex], 'package.json')); | ||
const { version } = read_json_sync_1.default(path_1.default.join(...pathParts.slice(0, projectNameIndex), pathParts[projectNameIndex], 'package.json')); | ||
if (namespaceDependencies) { | ||
@@ -76,3 +76,3 @@ pathParts[projectNameIndex] = `${project_1.default.pkgJson.name}$${pathParts[projectNameIndex]}`; | ||
pathParts[projectNameIndex] += `@${version}`; | ||
filePath = pathParts.join(path_1.default.sep); | ||
filePath = path_1.default.join('node_modules', ...pathParts.slice(projectNameIndex)); | ||
} | ||
@@ -79,0 +79,0 @@ else { |
{ | ||
"name": "liferay-npm-bundler-loader-css-loader", | ||
"version": "2.18.0", | ||
"version": "2.18.1", | ||
"description": "A liferay-npm-bundler loader that turns CSS files into JavaScript modules that inject a <link> into the HTML when they are required.", | ||
@@ -12,6 +12,6 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"liferay-npm-build-tools-common": "2.18.0", | ||
"liferay-npm-build-tools-common": "2.18.1", | ||
"read-json-sync": "^2.0.1" | ||
}, | ||
"gitHead": "b493e109afa2c706ce5fcea79b81a54ac72578d9" | ||
"gitHead": "47a81b28fc3a70de5dc8ceabf0d9bb6044a2d690" | ||
} |
@@ -84,3 +84,3 @@ /** | ||
if (filePath.startsWith(`node_modules${path.sep}`)) { | ||
if (filePath.indexOf(`node_modules${path.sep}`) != -1) { | ||
const pathParts = filePath.split(path.sep); | ||
@@ -92,3 +92,3 @@ | ||
path.join( | ||
'node_modules', | ||
...pathParts.slice(0, projectNameIndex), | ||
pathParts[projectNameIndex], | ||
@@ -107,3 +107,6 @@ 'package.json' | ||
filePath = pathParts.join(path.sep); | ||
filePath = path.join( | ||
'node_modules', | ||
...pathParts.slice(projectNameIndex) | ||
); | ||
} else { | ||
@@ -110,0 +113,0 @@ // If file is inside a source folder, strip the folder name |
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
22553
355
+ Addedbabel-plugin-add-module-metadata@2.18.1(transitive)
+ Addedbabel-plugin-alias-modules@2.18.1(transitive)
+ Addedbabel-plugin-name-amd-modules@2.18.1(transitive)
+ Addedbabel-plugin-namespace-amd-define@2.18.1(transitive)
+ Addedbabel-plugin-namespace-modules@2.18.1(transitive)
+ Addedbabel-plugin-normalize-requires@2.18.1(transitive)
+ Addedbabel-plugin-wrap-modules-amd@2.18.1(transitive)
+ Addedbabel-preset-liferay-standard@2.18.1(transitive)
+ Addedliferay-npm-build-tools-common@2.18.1(transitive)
+ Addedliferay-npm-bundler-plugin-exclude-imports@2.18.1(transitive)
+ Addedliferay-npm-bundler-plugin-inject-imports-dependencies@2.18.1(transitive)
+ Addedliferay-npm-bundler-plugin-inject-peer-dependencies@2.18.1(transitive)
+ Addedliferay-npm-bundler-plugin-namespace-packages@2.18.1(transitive)
+ Addedliferay-npm-bundler-plugin-replace-browser-modules@2.18.1(transitive)
+ Addedliferay-npm-bundler-plugin-resolve-linked-dependencies@2.18.1(transitive)
+ Addedliferay-npm-bundler-preset-standard@2.18.1(transitive)
- Removedbabel-plugin-add-module-metadata@2.18.0(transitive)
- Removedbabel-plugin-alias-modules@2.18.0(transitive)
- Removedbabel-plugin-name-amd-modules@2.18.0(transitive)
- Removedbabel-plugin-namespace-amd-define@2.18.0(transitive)
- Removedbabel-plugin-namespace-modules@2.18.0(transitive)
- Removedbabel-plugin-normalize-requires@2.18.0(transitive)
- Removedbabel-plugin-wrap-modules-amd@2.18.0(transitive)
- Removedbabel-preset-liferay-standard@2.18.0(transitive)
- Removedliferay-npm-build-tools-common@2.18.0(transitive)
- Removedliferay-npm-bundler-plugin-exclude-imports@2.18.0(transitive)
- Removedliferay-npm-bundler-plugin-inject-imports-dependencies@2.18.0(transitive)
- Removedliferay-npm-bundler-plugin-inject-peer-dependencies@2.18.0(transitive)
- Removedliferay-npm-bundler-plugin-namespace-packages@2.18.0(transitive)
- Removedliferay-npm-bundler-plugin-replace-browser-modules@2.18.0(transitive)
- Removedliferay-npm-bundler-plugin-resolve-linked-dependencies@2.18.0(transitive)
- Removedliferay-npm-bundler-preset-standard@2.18.0(transitive)