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 1.2.3 to 1.3.0

20

lib/packages.js

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

exports.getPackageDir = getPackageDir;
exports.getPackageTargetDir = getPackageTargetDir;

@@ -66,2 +67,21 @@ var _fs = require('fs');

}
/**
* Converts a package name (optionally versioned) to its target folder name
* inside bundled node_modules.
* @param {String} name a package name
* @param {String} [version=null] an optional package version
* @return {String} the target folder
*/
function getPackageTargetDir(name) {
var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
var targetFolder = name.replace('/', '%2F');
if (version) {
targetFolder += '@' + version;
}
return targetFolder;
}
//# sourceMappingURL=packages.js.map

2

package.json
{
"name": "liferay-npm-build-tools-common",
"version": "1.2.3",
"version": "1.3.0",
"description": "Utility library for Liferay NPM Build Tools.",

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

@@ -52,1 +52,18 @@ import fs from 'fs';

}
/**
* Converts a package name (optionally versioned) to its target folder name
* inside bundled node_modules.
* @param {String} name a package name
* @param {String} [version=null] an optional package version
* @return {String} the target folder
*/
export function getPackageTargetDir(name, version = null) {
let targetFolder = name.replace('/', '%2F');
if (version) {
targetFolder += `@${version}`;
}
return targetFolder;
}

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