@coreui/icons-angular
Advanced tools
Comparing version 5.1.10 to 5.1.11
{ | ||
"name": "@coreui/icons-angular", | ||
"version": "5.1.10", | ||
"version": "5.1.11", | ||
"description": "CoreUI Icons Angular component and service", | ||
@@ -5,0 +5,0 @@ "copyright": "Copyright 2024 creativeLabs Łukasz Holeczek", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ngAdd = void 0; | ||
const schematics_1 = require("@angular-devkit/schematics"); | ||
const tasks_1 = require("@angular-devkit/schematics/tasks"); | ||
const dependencies_1 = require("@schematics/angular/utility/dependencies"); | ||
const package_config_1 = require("./package-config"); | ||
const pkgJson = require("../../package.json"); | ||
function ngAdd() { | ||
return (tree, context) => { | ||
context.logger.info('Installing @coreui/icons-angular ...'); | ||
const pkg = pkgJson; | ||
context.logger.info(``); | ||
context.logger.info(`Installing ${pkg.name} dependencies...`); | ||
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(tree, '@angular/core'); | ||
context.logger.info(`@angular/core version ${ngCoreVersionTag}`); | ||
if (!ngCoreVersionTag) { | ||
throw new schematics_1.SchematicsException('@angular/core version not found'); | ||
} | ||
const projectDeps = [ | ||
{ name: '@angular/common', type: dependencies_1.NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }, | ||
{ name: '@angular/core', type: dependencies_1.NodeDependencyType.Default, version: ngCoreVersionTag, overwrite: false }, | ||
{ | ||
name: '@angular/platform-browser', | ||
type: dependencies_1.NodeDependencyType.Default, | ||
version: ngCoreVersionTag, | ||
overwrite: false | ||
} | ||
]; | ||
projectDeps.forEach((dep) => { | ||
(0, dependencies_1.addPackageJsonDependency)(tree, dep); | ||
context.logger.info(`Added dependency: ${dep.name}@${dep.version}`); | ||
}); | ||
const library = { | ||
name: pkg.name, | ||
type: dependencies_1.NodeDependencyType.Default, | ||
version: `~${pkg.version}`, | ||
overwrite: true | ||
}; | ||
(0, dependencies_1.addPackageJsonDependency)(tree, library); | ||
context.logger.info(`Installing ${library.name}@${library.version}`); | ||
context.addTask(new tasks_1.NodePackageInstallTask()); | ||
@@ -9,0 +42,0 @@ return tree; |
Sorry, the diff of this file is not supported yet
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
132664
36
1147
0
1