Socket
Socket
Sign inDemoInstall

liferay-npm-bundler-loader-css-loader

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liferay-npm-bundler-loader-css-loader - npm Package Compare versions

Comparing version 2.18.0 to 2.18.1

6

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc