New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@angular-devkit/core

Package Overview
Dependencies
Maintainers
2
Versions
952
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-devkit/core - npm Package Compare versions

Comparing version
8.3.0
to
8.3.1
+1
-1
package.json
{
"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 = {