Socket
Socket
Sign inDemoInstall

@angular-devkit/architect

Package Overview
Dependencies
Maintainers
2
Versions
718
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-devkit/architect - npm Package Compare versions

Comparing version 0.1701.1 to 0.1702.0-next.0

4

package.json
{
"name": "@angular-devkit/architect",
"version": "0.1701.1",
"version": "0.1702.0-next.0",
"description": "Angular Build Facade",

@@ -9,3 +9,3 @@ "experimental": true,

"dependencies": {
"@angular-devkit/core": "17.1.1",
"@angular-devkit/core": "17.2.0-next.0",
"rxjs": "7.8.1"

@@ -12,0 +12,0 @@ },

@@ -252,5 +252,6 @@ /**

/**
* Return a Target tuple from a string.
* Return a Target tuple from a specifier string.
* Supports abbreviated target specifiers (examples: `::`, `::development`, or `:build:production`).
*/
export declare function targetFromTargetString(str: string): Target;
export declare function targetFromTargetString(specifier: string, abbreviatedProjectName?: string, abbreviatedTargetName?: string): Target;
/**

@@ -257,0 +258,0 @@ * Schedule a target, and forget about its run. This will return an observable of outputs, that

@@ -54,12 +54,13 @@ "use strict";

/**
* Return a Target tuple from a string.
* Return a Target tuple from a specifier string.
* Supports abbreviated target specifiers (examples: `::`, `::development`, or `:build:production`).
*/
function targetFromTargetString(str) {
const tuple = str.split(/:/, 3);
function targetFromTargetString(specifier, abbreviatedProjectName, abbreviatedTargetName) {
const tuple = specifier.split(':', 3);
if (tuple.length < 2) {
throw new Error('Invalid target string: ' + JSON.stringify(str));
throw new Error('Invalid target string: ' + JSON.stringify(specifier));
}
return {
project: tuple[0],
target: tuple[1],
project: tuple[0] || abbreviatedProjectName || '',
target: tuple[1] || abbreviatedTargetName || '',
...(tuple[2] !== undefined && { configuration: tuple[2] }),

@@ -66,0 +67,0 @@ };

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