liferay-npm-bundler-plugin-resolve-linked-dependencies
Advanced tools
Comparing version 2.6.2 to 2.6.3-alpha.126
@@ -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'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
10612
0
72
3
70
2
1
+ Addedsemver@6.3.1(transitive)
- Removedliferay-npm-build-tools-common@2.6.2(transitive)
- Removedsemver@5.7.2(transitive)
Updatedliferay-npm-build-tools-common@2.6.3-alpha.126+f9a8cd2
Updatedread-json-sync@^2.0.1
Updatedsemver@^6.3.0