@angular-devkit/schematics-cli
Advanced tools
+10
-2
@@ -116,3 +116,2 @@ #!/usr/bin/env node | ||
| message: definition.message, | ||
| default: definition.default, | ||
| validate: (values) => { | ||
@@ -124,10 +123,19 @@ if (!definition.validator) { | ||
| }, | ||
| choices: definition.items.map((item) => typeof item == 'string' | ||
| default: definition.multiselect ? undefined : definition.default, | ||
| choices: definition.items?.map((item) => typeof item == 'string' | ||
| ? { | ||
| name: item, | ||
| value: item, | ||
| checked: definition.multiselect && Array.isArray(definition.default) | ||
| ? definition.default?.includes(item) | ||
| : item === definition.default, | ||
| } | ||
| : { | ||
| ...item, | ||
| name: item.label, | ||
| value: item.value, | ||
| checked: definition.multiselect && Array.isArray(definition.default) | ||
| ? // eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
| definition.default?.includes(item.value) | ||
| : item.value === definition.default, | ||
| }), | ||
@@ -134,0 +142,0 @@ }); |
@@ -21,3 +21,2 @@ export type Schema = { | ||
| Bun = "bun", | ||
| Cnpm = "cnpm", | ||
| Npm = "npm", | ||
@@ -24,0 +23,0 @@ Pnpm = "pnpm", |
+0
-1
@@ -12,3 +12,2 @@ "use strict"; | ||
| PackageManager["Bun"] = "bun"; | ||
| PackageManager["Cnpm"] = "cnpm"; | ||
| PackageManager["Npm"] = "npm"; | ||
@@ -15,0 +14,0 @@ PackageManager["Pnpm"] = "pnpm"; |
@@ -18,3 +18,3 @@ { | ||
| "type": "string", | ||
| "enum": ["npm", "yarn", "pnpm", "cnpm", "bun"], | ||
| "enum": ["npm", "yarn", "pnpm", "bun"], | ||
| "default": "npm" | ||
@@ -21,0 +21,0 @@ }, |
+4
-4
| { | ||
| "name": "@angular-devkit/schematics-cli", | ||
| "version": "21.0.0-next.0", | ||
| "version": "21.0.0-next.1", | ||
| "description": "Angular Schematics - CLI", | ||
@@ -24,5 +24,5 @@ "homepage": "https://github.com/angular/angular-cli", | ||
| "dependencies": { | ||
| "@angular-devkit/core": "21.0.0-next.0", | ||
| "@angular-devkit/schematics": "21.0.0-next.0", | ||
| "@inquirer/prompts": "7.8.3", | ||
| "@angular-devkit/core": "21.0.0-next.1", | ||
| "@angular-devkit/schematics": "21.0.0-next.1", | ||
| "@inquirer/prompts": "7.8.4", | ||
| "ansi-colors": "4.1.3", | ||
@@ -29,0 +29,0 @@ "yargs-parser": "22.0.0" |
@@ -17,4 +17,3 @@ { | ||
| "@angular-devkit/core": "^<%= coreVersion %>", | ||
| "@angular-devkit/schematics": "^<%= schematicsVersion %>", | ||
| "typescript": "~5.9.2" | ||
| "@angular-devkit/schematics": "^<%= schematicsVersion %>" | ||
| }, | ||
@@ -24,4 +23,5 @@ "devDependencies": { | ||
| "@types/jasmine": "~5.1.0", | ||
| "jasmine": "~5.9.0" | ||
| "jasmine": "~5.9.0", | ||
| "typescript": "~5.9.2" | ||
| } | ||
| } |
@@ -21,3 +21,2 @@ export type Schema = { | ||
| Bun = "bun", | ||
| Cnpm = "cnpm", | ||
| Npm = "npm", | ||
@@ -24,0 +23,0 @@ Pnpm = "pnpm", |
@@ -12,3 +12,2 @@ "use strict"; | ||
| PackageManager["Bun"] = "bun"; | ||
| PackageManager["Cnpm"] = "cnpm"; | ||
| PackageManager["Npm"] = "npm"; | ||
@@ -15,0 +14,0 @@ PackageManager["Pnpm"] = "pnpm"; |
@@ -18,3 +18,3 @@ { | ||
| "type": "string", | ||
| "enum": ["npm", "yarn", "pnpm", "cnpm", "bun"], | ||
| "enum": ["npm", "yarn", "pnpm", "bun"], | ||
| "default": "npm" | ||
@@ -21,0 +21,0 @@ } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
47540
1.17%1001
0.4%7
16.67%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated