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

liferay-npm-build-tools-common

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liferay-npm-build-tools-common - npm Package Compare versions

Comparing version 2.0.0-rc.1 to 2.0.0-rc.2

2

lib/__tests__/modules.test.js

@@ -42,2 +42,3 @@ 'use strict';

expect(mod.isExternalDependency('a-module')).toBe(true);
expect(mod.isExternalDependency('fs')).toBe(true);

@@ -47,3 +48,2 @@ expect(mod.isExternalDependency('./a-module')).toBe(false);

expect(mod.isExternalDependency('/a-module')).toBe(false);
expect(mod.isExternalDependency('fs')).toBe(false);
});

@@ -50,0 +50,0 @@

@@ -53,3 +53,3 @@ 'use strict';

function isExternalDependency(modulePath) {
return !isLocalModule(modulePath) && !isReservedDependency(modulePath) && !isNodeCoreModule(modulePath);
return !isLocalModule(modulePath) && !isReservedDependency(modulePath);
}

@@ -56,0 +56,0 @@

{
"name": "liferay-npm-build-tools-common",
"version": "2.0.0-rc.1",
"version": "2.0.0-rc.2",
"description": "Utility library for Liferay NPM Build Tools.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -36,2 +36,3 @@ import * as mod from '../modules';

expect(mod.isExternalDependency('a-module')).toBe(true);
expect(mod.isExternalDependency('fs')).toBe(true);

@@ -41,3 +42,2 @@ expect(mod.isExternalDependency('./a-module')).toBe(false);

expect(mod.isExternalDependency('/a-module')).toBe(false);
expect(mod.isExternalDependency('fs')).toBe(false);
});

@@ -44,0 +44,0 @@

@@ -80,7 +80,3 @@ // List of built-in Node.js v7.10.0 modules.

export function isExternalDependency(modulePath) {
return (
!isLocalModule(modulePath) &&
!isReservedDependency(modulePath) &&
!isNodeCoreModule(modulePath)
);
return !isLocalModule(modulePath) && !isReservedDependency(modulePath);
}

@@ -87,0 +83,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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