Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ngrx/entity

Package Overview
Dependencies
Maintainers
4
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ngrx/entity - npm Package Compare versions

Comparing version 18.0.2 to 18.1.0

2

migrations/6_0_0/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
var schematics_core_1 = require("../../schematics-core");

@@ -7,3 +8,2 @@ function default_1() {

}
exports.default = default_1;
//# sourceMappingURL=index.js.map
{
"name": "@ngrx/entity",
"version": "18.0.2",
"version": "18.1.0",
"description": "Common utilities for entity reducers",

@@ -24,3 +24,3 @@ "repository": {

"@angular/core": "^18.0.0",
"@ngrx/store": "18.0.2",
"@ngrx/store": "18.1.0",
"rxjs": "^6.5.3 || ^7.5.0"

@@ -27,0 +27,0 @@ },

@@ -39,3 +39,16 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.containsProperty = exports.replaceImport = exports.insertImport = exports.addBootstrapToModule = exports.addExportToModule = exports.addProviderToComponent = exports.addProviderToModule = exports.addImportToModule = exports.addDeclarationToModule = exports.getDecoratorMetadata = exports.getContentOfKeyLiteral = exports.insertAfterLastOccurrence = exports.getSourceNodes = exports.findNodes = void 0;
exports.findNodes = findNodes;
exports.getSourceNodes = getSourceNodes;
exports.insertAfterLastOccurrence = insertAfterLastOccurrence;
exports.getContentOfKeyLiteral = getContentOfKeyLiteral;
exports.getDecoratorMetadata = getDecoratorMetadata;
exports.addDeclarationToModule = addDeclarationToModule;
exports.addImportToModule = addImportToModule;
exports.addProviderToModule = addProviderToModule;
exports.addProviderToComponent = addProviderToComponent;
exports.addExportToModule = addExportToModule;
exports.addBootstrapToModule = addBootstrapToModule;
exports.insertImport = insertImport;
exports.replaceImport = replaceImport;
exports.containsProperty = containsProperty;
/* istanbul ignore file */

@@ -94,3 +107,2 @@ /**

}
exports.findNodes = findNodes;
/**

@@ -115,3 +127,2 @@ * Get all the nodes from a source.

}
exports.getSourceNodes = getSourceNodes;
/**

@@ -151,3 +162,2 @@ * Helper for sorting nodes.

}
exports.insertAfterLastOccurrence = insertAfterLastOccurrence;
function getContentOfKeyLiteral(_source, node) {

@@ -164,3 +174,2 @@ if (node.kind == ts.SyntaxKind.Identifier) {

}
exports.getContentOfKeyLiteral = getContentOfKeyLiteral;
function _angularImportsFromNode(node, _sourceFile) {

@@ -266,3 +275,2 @@ var _a;

}
exports.getDecoratorMetadata = getDecoratorMetadata;
function _addSymbolToNgModuleMetadata(source, ngModulePath, metadataField, symbolName, importPath) {

@@ -550,3 +558,2 @@ var nodes = getDecoratorMetadata(source, 'NgModule', '@angular/core');

}
exports.addDeclarationToModule = addDeclarationToModule;
/**

@@ -559,3 +566,2 @@ * Custom function to insert a declaration (component, pipe, directive)

}
exports.addImportToModule = addImportToModule;
/**

@@ -567,3 +573,2 @@ * Custom function to insert a provider into NgModule. It also imports it.

}
exports.addProviderToModule = addProviderToModule;
/**

@@ -575,3 +580,2 @@ * Custom function to insert a provider into Component. It also imports it.

}
exports.addProviderToComponent = addProviderToComponent;
/**

@@ -583,3 +587,2 @@ * Custom function to insert an export into NgModule. It also imports it.

}
exports.addExportToModule = addExportToModule;
/**

@@ -591,3 +594,2 @@ * Custom function to insert an export into NgModule. It also imports it.

}
exports.addBootstrapToModule = addBootstrapToModule;
/**

@@ -653,3 +655,2 @@ * Add Import `import { symbolName } from fileName` if the import doesn't exit

}
exports.insertImport = insertImport;
function replaceImport(sourceFile, path, importFrom, importAsIs, importToBe) {

@@ -708,3 +709,2 @@ var imports = sourceFile.statements

}
exports.replaceImport = replaceImport;
function containsProperty(objectLiteral, propertyName) {

@@ -718,3 +718,2 @@ return (objectLiteral &&

}
exports.containsProperty = containsProperty;
//# sourceMappingURL=ast-utils.js.map

@@ -14,3 +14,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.commitChanges = exports.createChangeRecorder = exports.createRemoveChange = exports.createReplaceChange = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = void 0;
exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = void 0;
exports.createReplaceChange = createReplaceChange;
exports.createRemoveChange = createRemoveChange;
exports.createChangeRecorder = createChangeRecorder;
exports.commitChanges = commitChanges;
/**

@@ -119,3 +123,2 @@ * An operation that does nothing.

}
exports.createReplaceChange = createReplaceChange;
function createRemoveChange(sourceFile, node, from, to) {

@@ -126,3 +129,2 @@ if (from === void 0) { from = node.getStart(sourceFile); }

}
exports.createRemoveChange = createRemoveChange;
function createChangeRecorder(tree, path, changes) {

@@ -155,3 +157,2 @@ var e_1, _a;

}
exports.createChangeRecorder = createChangeRecorder;
function commitChanges(tree, path, changes) {

@@ -165,3 +166,2 @@ if (changes.length === 0) {

}
exports.commitChanges = commitChanges;
//# sourceMappingURL=change.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWorkspace = exports.getWorkspacePath = void 0;
exports.getWorkspacePath = getWorkspacePath;
exports.getWorkspace = getWorkspace;
var schematics_1 = require("@angular-devkit/schematics");

@@ -10,3 +11,2 @@ function getWorkspacePath(host) {

}
exports.getWorkspacePath = getWorkspacePath;
function getWorkspace(host) {

@@ -21,3 +21,2 @@ var path = getWorkspacePath(host);

}
exports.getWorkspace = getWorkspace;
//# sourceMappingURL=config.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildRelativePath = exports.findComponent = exports.findComponentFromOptions = void 0;
exports.findComponentFromOptions = findComponentFromOptions;
exports.findComponent = findComponent;
exports.buildRelativePath = buildRelativePath;
/**

@@ -44,3 +46,2 @@ * @license

}
exports.findComponentFromOptions = findComponentFromOptions;
/**

@@ -66,3 +67,2 @@ * Function to find the "closest" component to a generated file's path.

}
exports.findComponent = findComponent;
/**

@@ -84,3 +84,2 @@ * Build a relative path from one file path to another file path.

}
exports.buildRelativePath = buildRelativePath;
function parsePath(path) {

@@ -87,0 +86,0 @@ var pathNormalized = (0, core_1.normalize)(path);

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildRelativePath = exports.findModule = exports.findModuleFromOptions = void 0;
exports.findModuleFromOptions = findModuleFromOptions;
exports.findModule = findModule;
exports.buildRelativePath = buildRelativePath;
/**

@@ -44,3 +46,2 @@ * @license

}
exports.findModuleFromOptions = findModuleFromOptions;
/**

@@ -67,3 +68,2 @@ * Function to find the "closest" module to a generated file's path.

}
exports.findModule = findModule;
/**

@@ -85,3 +85,2 @@ * Build a relative path from one file path to another file path.

}
exports.buildRelativePath = buildRelativePath;
function parsePath(path) {

@@ -88,0 +87,0 @@ var pathNormalized = (0, core_1.normalize)(path);

@@ -14,3 +14,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.findPropertyInAstObject = void 0;
exports.findPropertyInAstObject = findPropertyInAstObject;
// https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/json-utils.ts

@@ -37,3 +37,2 @@ function findPropertyInAstObject(node, propertyName) {

}
exports.findPropertyInAstObject = findPropertyInAstObject;
//# sourceMappingURL=json-utilts.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.platformVersion = void 0;
exports.platformVersion = '^18.0.2';
exports.platformVersion = '^18.1.0';
//# sourceMappingURL=libs-version.js.map

@@ -39,3 +39,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getPrefix = exports.omit = exports.addReducerImportToNgModule = exports.addReducerToActionReducerMap = exports.addReducerToStateInterface = exports.addReducerToState = void 0;
exports.addReducerToState = addReducerToState;
exports.addReducerToStateInterface = addReducerToStateInterface;
exports.addReducerToActionReducerMap = addReducerToActionReducerMap;
exports.addReducerImportToNgModule = addReducerImportToNgModule;
exports.omit = omit;
exports.getPrefix = getPrefix;
var ts = require("typescript");

@@ -94,3 +99,2 @@ var stringUtils = require("./strings");

}
exports.addReducerToState = addReducerToState;
/**

@@ -131,3 +135,2 @@ * Insert the reducer into the first defined top level interface

}
exports.addReducerToStateInterface = addReducerToStateInterface;
/**

@@ -182,3 +185,2 @@ * Insert the reducer into the ActionReducerMap

}
exports.addReducerToActionReducerMap = addReducerToActionReducerMap;
/**

@@ -238,3 +240,2 @@ * Add reducer feature to NgModule

}
exports.addReducerImportToNgModule = addReducerImportToNgModule;
function omit(object, keyToRemove) {

@@ -248,7 +249,5 @@ return Object.keys(object)

}
exports.omit = omit;
function getPrefix(options) {
return stringUtils.camelize(options.prefix || 'load');
}
exports.getPrefix = getPrefix;
//# sourceMappingURL=ngrx-utils.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addPackageToPackageJson = void 0;
exports.addPackageToPackageJson = addPackageToPackageJson;
/**

@@ -22,3 +22,2 @@ * Adds a package to the package.json

}
exports.addPackageToPackageJson = addPackageToPackageJson;
//# sourceMappingURL=package.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseName = void 0;
exports.parseName = parseName;
var core_1 = require("@angular-devkit/core");

@@ -13,3 +13,2 @@ function parseName(path, name) {

}
exports.parseName = parseName;
//# sourceMappingURL=parse-name.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getProjectMainFile = exports.isLib = exports.getProjectPath = exports.getProject = void 0;
exports.getProject = getProject;
exports.getProjectPath = getProjectPath;
exports.isLib = isLib;
exports.getProjectMainFile = getProjectMainFile;
var config_1 = require("./config");

@@ -18,3 +21,2 @@ var schematics_1 = require("@angular-devkit/schematics");

}
exports.getProject = getProject;
function getProjectPath(host, options) {

@@ -31,3 +33,2 @@ var project = getProject(host, options);

}
exports.getProjectPath = getProjectPath;
function isLib(host, options) {

@@ -37,3 +38,2 @@ var project = getProject(host, options);

}
exports.isLib = isLib;
function getProjectMainFile(host, options) {

@@ -50,3 +50,2 @@ if (isLib(host, options)) {

}
exports.getProjectMainFile = getProjectMainFile;
//# sourceMappingURL=project.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.featurePath = exports.group = exports.pluralize = exports.capitalize = exports.underscore = exports.classify = exports.camelize = exports.dasherize = exports.decamelize = void 0;
exports.decamelize = decamelize;
exports.dasherize = dasherize;
exports.camelize = camelize;
exports.classify = classify;
exports.underscore = underscore;
exports.capitalize = capitalize;
exports.pluralize = pluralize;
exports.group = group;
exports.featurePath = featurePath;
/**

@@ -29,3 +37,2 @@ * @license

}
exports.decamelize = decamelize;
/**

@@ -44,3 +51,2 @@ Replaces underscores, spaces, or camelCase with dashes.

}
exports.dasherize = dasherize;
/**

@@ -64,3 +70,2 @@ Returns the lowerCamelCase form of a string.

}
exports.camelize = camelize;
/**

@@ -82,3 +87,2 @@ Returns the UpperCamelCase form of a string.

}
exports.classify = classify;
/**

@@ -101,3 +105,2 @@ More general than decamelize. Returns the lower\_case\_and\_underscored

}
exports.underscore = underscore;
/**

@@ -116,3 +119,2 @@ Returns the Capitalized form of a string

}
exports.capitalize = capitalize;
/**

@@ -132,7 +134,5 @@ Returns the plural form of a string

}
exports.pluralize = pluralize;
function group(name, group) {
return group ? "".concat(group, "/").concat(name) : name;
}
exports.group = group;
function featurePath(group, flat, path, name) {

@@ -144,3 +144,2 @@ if (group && !flat) {

}
exports.featurePath = featurePath;
//# sourceMappingURL=strings.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updatePackage = void 0;
exports.updatePackage = updatePackage;
var schematics_1 = require("@angular-devkit/schematics");

@@ -30,3 +30,2 @@ function updatePackage(name) {

}
exports.updatePackage = updatePackage;
function match(value, test) {

@@ -33,0 +32,0 @@ return value === test ? test : '';

@@ -57,3 +57,9 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.visitDecorator = exports.visitNgModules = exports.visitComponents = exports.visitNgModuleExports = exports.visitNgModuleImports = exports.visitTemplates = exports.visitTSSourceFiles = void 0;
exports.visitTSSourceFiles = visitTSSourceFiles;
exports.visitTemplates = visitTemplates;
exports.visitNgModuleImports = visitNgModuleImports;
exports.visitNgModuleExports = visitNgModuleExports;
exports.visitComponents = visitComponents;
exports.visitNgModules = visitNgModules;
exports.visitDecorator = visitDecorator;
var ts = require("typescript");

@@ -79,3 +85,2 @@ var core_1 = require("@angular-devkit/core");

}
exports.visitTSSourceFiles = visitTSSourceFiles;
function visitTemplates(tree, visitor) {

@@ -124,11 +129,8 @@ visitTSSourceFiles(tree, function (source) {

}
exports.visitTemplates = visitTemplates;
function visitNgModuleImports(sourceFile, callback) {
visitNgModuleProperty(sourceFile, callback, 'imports');
}
exports.visitNgModuleImports = visitNgModuleImports;
function visitNgModuleExports(sourceFile, callback) {
visitNgModuleProperty(sourceFile, callback, 'exports');
}
exports.visitNgModuleExports = visitNgModuleExports;
function visitNgModuleProperty(sourceFile, callback, property) {

@@ -151,7 +153,5 @@ visitNgModules(sourceFile, function (_, decoratorExpressionNode) {

}
exports.visitComponents = visitComponents;
function visitNgModules(sourceFile, callback) {
visitDecorator(sourceFile, 'NgModule', callback);
}
exports.visitNgModules = visitNgModules;
function visitDecorator(sourceFile, decoratorName, callback) {

@@ -186,3 +186,2 @@ ts.forEachChild(sourceFile, function findClassDeclaration(node) {

}
exports.visitDecorator = visitDecorator;
function visit(directory) {

@@ -189,0 +188,0 @@ var _a, _b, path, entry, content, source, e_2_1, _c, _d, path, e_3_1;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = default_1;
var schematics_1 = require("@angular-devkit/schematics");

@@ -22,3 +23,2 @@ var tasks_1 = require("@angular-devkit/schematics/tasks");

}
exports.default = default_1;
//# sourceMappingURL=index.js.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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