Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

liferay-npm-bundler-plugin-resolve-linked-dependencies

Package Overview
Dependencies
Maintainers
16
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liferay-npm-bundler-plugin-resolve-linked-dependencies - npm Package Compare versions

Comparing version 2.27.0 to 2.28.0

5

lib/index.js

@@ -17,6 +17,7 @@ "use strict";

function default_1({ log }, { pkgJson }) {
if (pkgJson.dependencies != null) {
if (pkgJson.dependencies !== null && pkgJson.dependencies !== undefined) {
Object.keys(pkgJson.dependencies).forEach((name) => {
const link = pkgJson.dependencies[name];
if (semver_1.default.validRange(link) == null) {
if (semver_1.default.validRange(link) === null ||
semver_1.default.validRange(link) === undefined) {
const depPkgJsonPath = path_1.default.join('node_modules', name, 'package.json');

@@ -23,0 +24,0 @@ const depPkgJson = read_json_sync_1.default(depPkgJsonPath);

6

package.json
{
"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",
"read-json-sync": "^2.0.1",

@@ -21,4 +21,4 @@ "semver": "^6.3.0"

},
"version": "2.27.0",
"gitHead": "e19c5b4d5fc7c2196cc37a6e31a30afe1d2c3f74"
"version": "2.28.0",
"gitHead": "c511aeac6b153a560c83c0a0f8bee50efaa5a6a3"
}

@@ -14,7 +14,10 @@ /**

export default function ({log}, {pkgJson}) {
if (pkgJson.dependencies != null) {
if (pkgJson.dependencies !== null && pkgJson.dependencies !== undefined) {
Object.keys(pkgJson.dependencies).forEach((name) => {
const link = pkgJson.dependencies[name];
if (semver.validRange(link) == null) {
if (
semver.validRange(link) === null ||
semver.validRange(link) === undefined
) {
const depPkgJsonPath = path.join(

@@ -21,0 +24,0 @@ 'node_modules',

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