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
1
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.6.2 to 2.6.3-alpha.126

LICENSE.md

69

lib/index.js

@@ -1,41 +0,30 @@

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (_ref, _ref2) {
var log = _ref.log;
var pkgJson = _ref2.pkgJson;
if (pkgJson.dependencies != null) {
Object.keys(pkgJson.dependencies).forEach(function (name) {
var link = pkgJson.dependencies[name];
if (_semver2.default.validRange(link) == null) {
var depPkgJsonPath = _path2.default.join('node_modules', name, 'package.json');
var depPkgJson = (0, _readJsonSync2.default)(depPkgJsonPath);
pkgJson.dependencies[name] = depPkgJson.version;
log.info('resolve-linked-dependencies', 'Resolved link', link, 'to', depPkgJson.version);
}
});
}
"use strict";
/**
* © 2017 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
var _path = require('path');
var _path2 = _interopRequireDefault(_path);
var _readJsonSync = require('read-json-sync');
var _readJsonSync2 = _interopRequireDefault(_readJsonSync);
var _semver = require('semver');
var _semver2 = _interopRequireDefault(_semver);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
//# sourceMappingURL=index.js.map
Object.defineProperty(exports, "__esModule", { value: true });
const path_1 = __importDefault(require("path"));
const read_json_sync_1 = __importDefault(require("read-json-sync"));
const semver_1 = __importDefault(require("semver"));
/**
* @return {void}
*/
function default_1({ log }, { pkgJson }) {
if (pkgJson.dependencies != null) {
Object.keys(pkgJson.dependencies).forEach(name => {
const link = pkgJson.dependencies[name];
if (semver_1.default.validRange(link) == null) {
const depPkgJsonPath = path_1.default.join('node_modules', name, 'package.json');
const depPkgJson = read_json_sync_1.default(depPkgJsonPath);
pkgJson.dependencies[name] = depPkgJson.version;
log.info('resolve-linked-dependencies', 'Resolved link', link, 'to', depPkgJson.version);
}
});
}
}
exports.default = default_1;
{
"name": "liferay-npm-bundler-plugin-resolve-linked-dependencies",
"version": "2.6.2",
"version": "2.6.3-alpha.126+f9a8cd2",
"description": "A liferay-npm-bundler plugin to replace linked dependencies versions by their real values..",
"main": "lib/index.js",
"scripts": {
"build": "babel --source-maps -D -d lib src",
"prepublish": "npm run build"
"copyfiles": "node ../../scripts/copyfiles.js",
"build": "tsc && yarn copyfiles",
"prepublish": "yarn build"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-preset-es2015": "^6.24.1"
"dependencies": {
"liferay-npm-build-tools-common": "2.6.3-alpha.126+f9a8cd2",
"read-json-sync": "^2.0.1",
"semver": "^6.3.0"
},
"dependencies": {
"liferay-npm-build-tools-common": "2.6.2",
"read-json-sync": "^2.0.0",
"semver": "^5.5.0"
}
"gitHead": "f9a8cd23c70ecc6fff238bea906286c1c6cb2ecc"
}

@@ -0,1 +1,7 @@

/**
* © 2017 Liferay, Inc. <https://liferay.com>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
import path from 'path';

@@ -2,0 +8,0 @@ import readJsonSync from 'read-json-sync';

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