MCPcopy
hub / github.com/meteor/meteor / ensurePinnedPluginVersions

Method ensurePinnedPluginVersions

tools/cordova/project.js:775–794  ·  view source on GitHub ↗
(pluginVersions)

Source from the content-addressed store, hash-verified

773 }
774
775 ensurePinnedPluginVersions(pluginVersions) {
776 assert(pluginVersions);
777
778 _.each(pluginVersions, (version, id) => {
779 // Skip plugin specs that are not actual versions
780 if (utils.isUrlWithSha(version) || utils.isUrlWithFileScheme(version)) {
781 return;
782 }
783
784 const pinnedVersion = pinnedPluginVersions[id];
785
786 if (pinnedVersion && semver.lt(version, pinnedVersion)) {
787 Console.labelWarn(`Attempting to install plugin ${id}@${version}, but \
788it should have a minimum version of ${pinnedVersion} to ensure compatibility \
789with the current platform versions. Installing the minimum version for \
790convenience, but you should adjust your dependencies.`);
791 pluginVersions[id] = pinnedVersion;
792 }
793 });
794 }
795
796 // Cordova commands support
797

Callers 1

Calls 3

eachMethod · 0.80
labelWarnMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected