@angular-devkit/core
Advanced tools
+1
-1
| { | ||
| "name": "@angular-devkit/core", | ||
| "version": "8.3.0", | ||
| "version": "8.3.1", | ||
| "description": "Angular DevKit - Core Utility Library", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -25,3 +25,3 @@ /** | ||
| } | ||
| export declare type DefinitionCollectionListener<V> = (name: string, action: 'add' | 'remove' | 'replace', newValue: V | undefined, oldValue: V | undefined) => void; | ||
| export declare type DefinitionCollectionListener<V extends object> = (name: string, action: 'add' | 'remove' | 'replace', newValue: V | undefined, oldValue: V | undefined, collection: DefinitionCollection<V>) => void; | ||
| declare class DefinitionCollection<V extends object> implements ReadonlyMap<string, V> { | ||
@@ -28,0 +28,0 @@ private _listener?; |
@@ -12,3 +12,3 @@ "use strict"; | ||
| if (result && value !== undefined && this._listener) { | ||
| this._listener(key, 'remove', undefined, value); | ||
| this._listener(key, 'remove', undefined, value, this); | ||
| } | ||
@@ -21,3 +21,3 @@ return result; | ||
| if (this._listener) { | ||
| this._listener(key, existing !== undefined ? 'replace' : 'add', value, existing); | ||
| this._listener(key, existing !== undefined ? 'replace' : 'add', value, existing, this); | ||
| } | ||
@@ -24,0 +24,0 @@ return this; |
@@ -158,7 +158,19 @@ "use strict"; | ||
| let collectionListener; | ||
| if (context.trackChanges && targetsNode) { | ||
| const parentNode = targetsNode; | ||
| collectionListener = (name, action, newValue) => { | ||
| jsonMetadata.addChange(action, `/projects/${projectName}/targets/${utilities_1.escapeKey(name)}`, parentNode, newValue, 'target'); | ||
| }; | ||
| if (context.trackChanges) { | ||
| if (targetsNode) { | ||
| const parentNode = targetsNode; | ||
| collectionListener = (name, action, newValue) => { | ||
| jsonMetadata.addChange(action, `/projects/${projectName}/targets/${utilities_1.escapeKey(name)}`, parentNode, newValue, 'target'); | ||
| }; | ||
| } | ||
| else { | ||
| let added = false; | ||
| collectionListener = (_name, action, _new, _old, collection) => { | ||
| if (added || action !== 'add') { | ||
| return; | ||
| } | ||
| jsonMetadata.addChange('add', `/projects/${projectName}/targets`, projectNode, collection, 'targetcollection'); | ||
| added = true; | ||
| }; | ||
| } | ||
| } | ||
@@ -165,0 +177,0 @@ const base = { |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance 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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance 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
491615
0.1%12674
0.09%