@ngrx/eslint-plugin
Advanced tools
Comparing version 18.0.2 to 18.1.0
{ | ||
"name": "@ngrx/eslint-plugin", | ||
"version": "18.0.2", | ||
"version": "18.1.0", | ||
"description": "NgRx ESLint Plugin", | ||
@@ -53,3 +53,4 @@ "repository": { | ||
"main": "./src/index.js", | ||
"type": "commonjs" | ||
"type": "commonjs", | ||
"types": "./src/index.d.ts" | ||
} |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = addNgRxESLintPlugin; | ||
const strip_json_comments_1 = __importDefault(require("strip-json-comments")); | ||
@@ -63,3 +64,2 @@ function addNgRxESLintPlugin(schema) { | ||
} | ||
exports.default = addNgRxESLintPlugin; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.fromFixture = void 0; | ||
exports.fromFixture = fromFixture; | ||
function fromFixture(fixture, invalidTestCase = {}) { | ||
@@ -11,3 +11,2 @@ const { suggestions, ...rest } = invalidTestCase; | ||
} | ||
exports.fromFixture = fromFixture; | ||
function getSuggestions(suggestions, suggest, indices) { | ||
@@ -14,0 +13,0 @@ if (!suggestions || !suggest) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ruleTester = void 0; | ||
exports.ruleTester = ruleTester; | ||
const utils_1 = require("../../src/utils"); | ||
@@ -22,3 +22,2 @@ const test_utils_1 = require("@angular-eslint/test-utils"); | ||
} | ||
exports.ruleTester = ruleTester; | ||
//# sourceMappingURL=rule-tester.js.map |
@@ -42,2 +42,3 @@ "use strict"; | ||
'@ngrx/signal-store-feature-should-use-generic-type': 'error', | ||
'@ngrx/prefer-protected-state': 'error', | ||
'@ngrx/with-state-no-arrays-at-root-level': 'error', | ||
@@ -44,0 +45,0 @@ '@ngrx/avoid-combining-selectors': 'error', |
@@ -18,2 +18,3 @@ { | ||
"@ngrx/signal-store-feature-should-use-generic-type": "error", | ||
"@ngrx/prefer-protected-state": "error", | ||
"@ngrx/with-state-no-arrays-at-root-level": "error", | ||
@@ -20,0 +21,0 @@ "@ngrx/avoid-combining-selectors": "error", |
@@ -31,2 +31,3 @@ "use strict"; | ||
'@ngrx/signal-store-feature-should-use-generic-type': 'error', | ||
'@ngrx/prefer-protected-state': 'error', | ||
'@ngrx/with-state-no-arrays-at-root-level': 'error', | ||
@@ -33,0 +34,0 @@ }, |
@@ -7,2 +7,3 @@ { | ||
"@ngrx/signal-store-feature-should-use-generic-type": "error", | ||
"@ngrx/prefer-protected-state": "error", | ||
"@ngrx/with-state-no-arrays-at-root-level": "error" | ||
@@ -9,0 +10,0 @@ }, |
@@ -20,2 +20,3 @@ declare const _default: { | ||
"@ngrx/signal-store-feature-should-use-generic-type": string; | ||
"@ngrx/prefer-protected-state": string; | ||
"@ngrx/with-state-no-arrays-at-root-level": string; | ||
@@ -111,2 +112,3 @@ "@ngrx/avoid-combining-selectors": string; | ||
"@ngrx/signal-store-feature-should-use-generic-type": string; | ||
"@ngrx/prefer-protected-state": string; | ||
"@ngrx/with-state-no-arrays-at-root-level": string; | ||
@@ -155,2 +157,3 @@ }; | ||
'signal-store-feature-should-use-generic-type': import("@typescript-eslint/utils/ts-eslint").RuleModule<"signalStoreFeatureShouldUseGenericType", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
'prefer-protected-state': import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferProtectedState" | "preferProtectedStateSuggest", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
'with-state-no-arrays-at-root-level': import("@typescript-eslint/utils/ts-eslint").RuleModule<"withStateNoArraysAtRootLevel", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
@@ -157,0 +160,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createRule = void 0; | ||
exports.createRule = createRule; | ||
const utils_1 = require("@typescript-eslint/utils"); | ||
@@ -23,3 +23,2 @@ const utils_2 = require("./utils"); | ||
} | ||
exports.createRule = createRule; | ||
//# sourceMappingURL=rule-creator.js.map |
@@ -35,3 +35,4 @@ export declare const rules: { | ||
'signal-store-feature-should-use-generic-type': import("@typescript-eslint/utils/ts-eslint").RuleModule<"signalStoreFeatureShouldUseGenericType", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
'prefer-protected-state': import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferProtectedState" | "preferProtectedStateSuggest", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
'with-state-no-arrays-at-root-level': import("@typescript-eslint/utils/ts-eslint").RuleModule<"withStateNoArraysAtRootLevel", readonly [], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener>; | ||
}; |
@@ -44,2 +44,3 @@ "use strict"; | ||
const with_state_no_arrays_at_root_level_1 = __importDefault(require("./signals/with-state-no-arrays-at-root-level")); | ||
const prefer_protected_state_1 = __importDefault(require("./signals/prefer-protected-state")); | ||
exports.rules = { | ||
@@ -82,4 +83,5 @@ // component-store | ||
'signal-store-feature-should-use-generic-type': signal_store_feature_should_use_generic_type_1.default, | ||
'prefer-protected-state': prefer_protected_state_1.default, | ||
'with-state-no-arrays-at-root-level': with_state_no_arrays_at_root_level_1.default, | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -26,3 +26,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.traverseFolder = void 0; | ||
exports.traverseFolder = traverseFolder; | ||
const fs = __importStar(require("fs")); | ||
@@ -46,3 +46,2 @@ const path = __importStar(require("path")); | ||
} | ||
exports.traverseFolder = traverseFolder; | ||
//# sourceMappingURL=folder.js.map |
import type { TSESTree } from '@typescript-eslint/utils'; | ||
import type * as ts from 'typescript'; | ||
export declare const isArrowFunctionExpression: (node: TSESTree.Node) => node is TSESTree.ArrowFunctionExpression & { | ||
export declare const isArrowFunctionExpression: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ArrowFunctionExpression; | ||
}; | ||
export declare const isReturnStatement: (node: TSESTree.Node) => node is TSESTree.ReturnStatement & { | ||
export declare const isReturnStatement: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ReturnStatement; | ||
}; | ||
export declare const isMethodDefinition: (node: TSESTree.Node) => node is (TSESTree.MethodDefinitionComputedName & { | ||
export declare const isMethodDefinition: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.MethodDefinition; | ||
}) | (TSESTree.MethodDefinitionNonComputedName & { | ||
type: TSESTree.AST_NODE_TYPES.MethodDefinition; | ||
}); | ||
export declare const isCallExpression: (node: TSESTree.Node) => node is TSESTree.CallExpression & { | ||
}; | ||
export declare const isCallExpression: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.CallExpression; | ||
}; | ||
export declare const isClassDeclaration: (node: TSESTree.Node) => node is (TSESTree.ClassDeclarationWithName & { | ||
export declare const isClassDeclaration: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ClassDeclaration; | ||
}) | (TSESTree.ClassDeclarationWithOptionalName & { | ||
type: TSESTree.AST_NODE_TYPES.ClassDeclaration; | ||
}); | ||
export declare const isPropertyDefinition: (node: TSESTree.Node) => node is (TSESTree.PropertyDefinitionComputedName & { | ||
}; | ||
export declare const isPropertyDefinition: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.PropertyDefinition; | ||
}) | (TSESTree.PropertyDefinitionNonComputedName & { | ||
type: TSESTree.AST_NODE_TYPES.PropertyDefinition; | ||
}); | ||
export declare const isFunctionExpression: (node: TSESTree.Node) => node is TSESTree.FunctionExpression & { | ||
}; | ||
export declare const isFunctionExpression: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.FunctionExpression; | ||
}; | ||
export declare const isFunctionDeclaration: (node: TSESTree.Node) => node is (TSESTree.FunctionDeclarationWithName & { | ||
export declare const isFunctionDeclaration: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.FunctionDeclaration; | ||
}) | (TSESTree.FunctionDeclarationWithOptionalName & { | ||
type: TSESTree.AST_NODE_TYPES.FunctionDeclaration; | ||
}); | ||
export declare const isIdentifier: (node: TSESTree.Node) => node is TSESTree.Identifier & { | ||
}; | ||
export declare const isIdentifier: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.Identifier; | ||
}; | ||
export declare const isImportDeclaration: (node: TSESTree.Node) => node is TSESTree.ImportDeclaration & { | ||
export declare const isImportDeclaration: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ImportDeclaration; | ||
}; | ||
export declare const isImportDefaultSpecifier: (node: TSESTree.Node) => node is TSESTree.ImportDefaultSpecifier & { | ||
export declare const isImportDefaultSpecifier: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ImportDefaultSpecifier; | ||
}; | ||
export declare const isImportNamespaceSpecifier: (node: TSESTree.Node) => node is TSESTree.ImportNamespaceSpecifier & { | ||
export declare const isImportNamespaceSpecifier: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ImportNamespaceSpecifier; | ||
}; | ||
export declare const isImportSpecifier: (node: TSESTree.Node) => node is TSESTree.ImportSpecifier & { | ||
export declare const isImportSpecifier: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ImportSpecifier; | ||
}; | ||
export declare const isLiteral: (node: TSESTree.Node) => node is (TSESTree.BigIntLiteral & { | ||
export declare const isLiteral: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.Literal; | ||
}) | (TSESTree.BooleanLiteral & { | ||
type: TSESTree.AST_NODE_TYPES.Literal; | ||
}) | (TSESTree.NullLiteral & { | ||
type: TSESTree.AST_NODE_TYPES.Literal; | ||
}) | (TSESTree.NumberLiteral & { | ||
type: TSESTree.AST_NODE_TYPES.Literal; | ||
}) | (TSESTree.RegExpLiteral & { | ||
type: TSESTree.AST_NODE_TYPES.Literal; | ||
}) | (TSESTree.StringLiteral & { | ||
type: TSESTree.AST_NODE_TYPES.Literal; | ||
}); | ||
export declare const isTemplateElement: (node: TSESTree.Node) => node is TSESTree.TemplateElement & { | ||
}; | ||
export declare const isTemplateElement: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.TemplateElement; | ||
}; | ||
export declare const isTemplateLiteral: (node: TSESTree.Node) => node is TSESTree.TemplateLiteral & { | ||
export declare const isTemplateLiteral: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.TemplateLiteral; | ||
}; | ||
export declare const isMemberExpression: (node: TSESTree.Node) => node is (TSESTree.MemberExpressionComputedName & { | ||
export declare const isMemberExpression: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.MemberExpression; | ||
}) | (TSESTree.MemberExpressionNonComputedName & { | ||
type: TSESTree.AST_NODE_TYPES.MemberExpression; | ||
}); | ||
export declare const isProgram: (node: TSESTree.Node) => node is TSESTree.Program & { | ||
}; | ||
export declare const isProgram: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.Program; | ||
}; | ||
export declare const isThisExpression: (node: TSESTree.Node) => node is TSESTree.ThisExpression & { | ||
export declare const isThisExpression: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ThisExpression; | ||
}; | ||
export declare const isTSParameterProperty: (node: TSESTree.Node) => node is TSESTree.TSParameterProperty & { | ||
export declare const isTSParameterProperty: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.TSParameterProperty; | ||
}; | ||
export declare const isTSTypeAnnotation: (node: TSESTree.Node) => node is TSESTree.TSTypeAnnotation & { | ||
export declare const isTSTypeAnnotation: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.TSTypeAnnotation; | ||
}; | ||
export declare const isTSTypeReference: (node: TSESTree.Node) => node is TSESTree.TSTypeReference & { | ||
export declare const isTSTypeReference: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.TSTypeReference; | ||
}; | ||
export declare const isTSInstantiationExpression: (node: TSESTree.Node) => node is TSESTree.TSInstantiationExpression & { | ||
export declare const isTSInstantiationExpression: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.TSInstantiationExpression; | ||
}; | ||
export declare const isProperty: (node: TSESTree.Node) => node is (TSESTree.PropertyComputedName & { | ||
export declare const isProperty: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.Property; | ||
}) | (TSESTree.PropertyNonComputedName & { | ||
type: TSESTree.AST_NODE_TYPES.Property; | ||
}); | ||
export declare const isArrayExpression: (node: TSESTree.Node) => node is TSESTree.ArrayExpression & { | ||
}; | ||
export declare const isArrayExpression: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.ArrayExpression; | ||
}; | ||
export declare const isBlockStatement: (node: TSESTree.Node) => node is TSESTree.BlockStatement & { | ||
export declare const isBlockStatement: (node: TSESTree.Node) => node is TSESTree.Node & { | ||
type: TSESTree.AST_NODE_TYPES.BlockStatement; | ||
@@ -102,0 +80,0 @@ }; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isCallExpressionWith = exports.isTypeReference = exports.isIdentifierOrMemberExpression = exports.isBlockStatement = exports.isArrayExpression = exports.isProperty = exports.isTSInstantiationExpression = exports.isTSTypeReference = exports.isTSTypeAnnotation = exports.isTSParameterProperty = exports.isThisExpression = exports.isProgram = exports.isMemberExpression = exports.isTemplateLiteral = exports.isTemplateElement = exports.isLiteral = exports.isImportSpecifier = exports.isImportNamespaceSpecifier = exports.isImportDefaultSpecifier = exports.isImportDeclaration = exports.isIdentifier = exports.isFunctionDeclaration = exports.isFunctionExpression = exports.isPropertyDefinition = exports.isClassDeclaration = exports.isCallExpression = exports.isMethodDefinition = exports.isReturnStatement = exports.isArrowFunctionExpression = void 0; | ||
exports.isBlockStatement = exports.isArrayExpression = exports.isProperty = exports.isTSInstantiationExpression = exports.isTSTypeReference = exports.isTSTypeAnnotation = exports.isTSParameterProperty = exports.isThisExpression = exports.isProgram = exports.isMemberExpression = exports.isTemplateLiteral = exports.isTemplateElement = exports.isLiteral = exports.isImportSpecifier = exports.isImportNamespaceSpecifier = exports.isImportDefaultSpecifier = exports.isImportDeclaration = exports.isIdentifier = exports.isFunctionDeclaration = exports.isFunctionExpression = exports.isPropertyDefinition = exports.isClassDeclaration = exports.isCallExpression = exports.isMethodDefinition = exports.isReturnStatement = exports.isArrowFunctionExpression = void 0; | ||
exports.isIdentifierOrMemberExpression = isIdentifierOrMemberExpression; | ||
exports.isTypeReference = isTypeReference; | ||
exports.isCallExpressionWith = isCallExpressionWith; | ||
const utils_1 = require("@typescript-eslint/utils"); | ||
@@ -35,7 +38,5 @@ const isNodeOfType = (nodeType) => (node) => node.type === nodeType; | ||
} | ||
exports.isIdentifierOrMemberExpression = isIdentifierOrMemberExpression; | ||
function isTypeReference(type) { | ||
return type.hasOwnProperty('target'); | ||
} | ||
exports.isTypeReference = isTypeReference; | ||
function equalTo(one, other) { | ||
@@ -55,3 +56,2 @@ return typeof one === 'string' ? one === other : one.test(other); | ||
} | ||
exports.isCallExpressionWith = isCallExpressionWith; | ||
//# sourceMappingURL=guards.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.asPattern = exports.escapeText = exports.getNgRxStores = exports.getNgRxComponentStores = exports.getNgRxEffectActions = exports.capitalize = exports.getRawText = exports.getDecoratorName = exports.getLast = exports.getImplementsSchemaFixer = exports.getInterface = exports.getInterfaces = exports.getInterfaceName = exports.getNodeToCommaRemoveFix = exports.getImportRemoveFix = exports.getImportAddFix = exports.getImportDeclarations = exports.getImportDeclarationSpecifier = exports.getNearestUpperNodeFrom = void 0; | ||
exports.getNearestUpperNodeFrom = getNearestUpperNodeFrom; | ||
exports.getImportDeclarationSpecifier = getImportDeclarationSpecifier; | ||
exports.getImportDeclarations = getImportDeclarations; | ||
exports.getImportAddFix = getImportAddFix; | ||
exports.getImportRemoveFix = getImportRemoveFix; | ||
exports.getNodeToCommaRemoveFix = getNodeToCommaRemoveFix; | ||
exports.getInterfaceName = getInterfaceName; | ||
exports.getInterfaces = getInterfaces; | ||
exports.getInterface = getInterface; | ||
exports.getImplementsSchemaFixer = getImplementsSchemaFixer; | ||
exports.getLast = getLast; | ||
exports.getDecoratorName = getDecoratorName; | ||
exports.getRawText = getRawText; | ||
exports.capitalize = capitalize; | ||
exports.getNgRxEffectActions = getNgRxEffectActions; | ||
exports.getNgRxComponentStores = getNgRxComponentStores; | ||
exports.getNgRxStores = getNgRxStores; | ||
exports.escapeText = escapeText; | ||
exports.asPattern = asPattern; | ||
const utils_1 = require("@typescript-eslint/utils"); | ||
@@ -16,3 +34,2 @@ const guards_1 = require("./guards"); | ||
} | ||
exports.getNearestUpperNodeFrom = getNearestUpperNodeFrom; | ||
function getImportDeclarationSpecifier(importDeclarations, importName) { | ||
@@ -30,3 +47,2 @@ for (const importDeclaration of importDeclarations) { | ||
} | ||
exports.getImportDeclarationSpecifier = getImportDeclarationSpecifier; | ||
function getImportDeclarations(node, moduleName) { | ||
@@ -41,3 +57,2 @@ let parentNode = node; | ||
} | ||
exports.getImportDeclarations = getImportDeclarations; | ||
function getCorrespondentImportClause(importDeclarations, compatibleWithTypeOnlyImport = false) { | ||
@@ -74,3 +89,2 @@ let importClause; | ||
} | ||
exports.getImportAddFix = getImportAddFix; | ||
function getImportRemoveFix(sourceCode, importDeclarations, importedName, fixer) { | ||
@@ -103,3 +117,2 @@ const { importDeclaration, importSpecifier } = getImportDeclarationSpecifier(importDeclarations, importedName) ?? {}; | ||
} | ||
exports.getImportRemoveFix = getImportRemoveFix; | ||
function getNodeToCommaRemoveFix(sourceCode, fixer, node) { | ||
@@ -113,3 +126,2 @@ const nextToken = sourceCode.getTokenAfter(node); | ||
} | ||
exports.getNodeToCommaRemoveFix = getNodeToCommaRemoveFix; | ||
function getInterfaceName(interfaceMember) { | ||
@@ -123,3 +135,2 @@ if ((0, guards_1.isIdentifier)(interfaceMember)) { | ||
} | ||
exports.getInterfaceName = getInterfaceName; | ||
function getInterfaces({ implements: classImplements, }) { | ||
@@ -130,7 +141,5 @@ return (classImplements ?? []) | ||
} | ||
exports.getInterfaces = getInterfaces; | ||
function getInterface(node, interfaceName) { | ||
return getInterfaces(node).find((interfaceMember) => getInterfaceName(interfaceMember) === interfaceName); | ||
} | ||
exports.getInterface = getInterface; | ||
function getImplementsSchemaFixer({ id, implements: classImplements }, interfaceName) { | ||
@@ -142,7 +151,5 @@ const [implementsNodeReplace, implementsTextReplace] = classImplements && classImplements.length | ||
} | ||
exports.getImplementsSchemaFixer = getImplementsSchemaFixer; | ||
function getLast(items) { | ||
return items.slice(-1)[0]; | ||
} | ||
exports.getLast = getLast; | ||
function getDecoratorName({ expression, }) { | ||
@@ -156,3 +163,2 @@ if ((0, guards_1.isIdentifier)(expression)) { | ||
} | ||
exports.getDecoratorName = getDecoratorName; | ||
function getRawText(node) { | ||
@@ -178,7 +184,5 @@ if ((0, guards_1.isIdentifier)(node)) { | ||
} | ||
exports.getRawText = getRawText; | ||
function capitalize(text) { | ||
return `${text[0].toUpperCase()}${text.slice(1)}`; | ||
} | ||
exports.capitalize = capitalize; | ||
function getInjectedParametersWithSourceCode(context, moduleName, importName) { | ||
@@ -226,11 +230,8 @@ const sourceCode = context.getSourceCode(); | ||
} | ||
exports.getNgRxEffectActions = getNgRxEffectActions; | ||
function getNgRxComponentStores(context) { | ||
return getInjectedParametersWithSourceCode(context, ngrx_modules_1.NGRX_MODULE_PATHS['component-store'], 'ComponentStore'); | ||
} | ||
exports.getNgRxComponentStores = getNgRxComponentStores; | ||
function getNgRxStores(context) { | ||
return getInjectedParametersWithSourceCode(context, ngrx_modules_1.NGRX_MODULE_PATHS.store, 'Store'); | ||
} | ||
exports.getNgRxStores = getNgRxStores; | ||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions#escaping | ||
@@ -240,3 +241,2 @@ function escapeText(text) { | ||
} | ||
exports.escapeText = escapeText; | ||
function asPattern(identifiers) { | ||
@@ -246,3 +246,2 @@ const escapedNames = identifiers.map(({ name }) => escapeText(name)); | ||
} | ||
exports.asPattern = asPattern; | ||
//# sourceMappingURL=utils.js.map |
@@ -26,3 +26,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ngrxVersionSatisfies = exports.clearCache = exports.setNgrxVersion = void 0; | ||
exports.setNgrxVersion = setNgrxVersion; | ||
exports.clearCache = clearCache; | ||
exports.ngrxVersionSatisfies = ngrxVersionSatisfies; | ||
const semver = __importStar(require("semver")); | ||
@@ -53,3 +55,2 @@ const noopVersion = '0.0.0'; | ||
} | ||
exports.setNgrxVersion = setNgrxVersion; | ||
// @internal for testing purposes | ||
@@ -60,3 +61,2 @@ function clearCache() { | ||
} | ||
exports.clearCache = clearCache; | ||
function versionSatisfies(pkg, version) { | ||
@@ -71,3 +71,2 @@ if (!satisfiesCache.has(pkg)) { | ||
} | ||
exports.ngrxVersionSatisfies = ngrxVersionSatisfies; | ||
//# sourceMappingURL=versions.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.mapLikeOperatorCallExpressions = exports.actionReducerMap = exports.storeActionReducerMap = exports.onFunctionWithoutType = exports.createReducer = exports.dispatchInEffects = exports.dispatchExpression = exports.selectExpression = exports.pipeableSelect = exports.pipeExpression = exports.namedCallableExpression = exports.namedExpression = exports.effectsInNgModuleProviders = exports.effectsInNgModuleImports = exports.ngModuleProviders = exports.ngModuleImports = exports.ngModuleDecorator = exports.metadataProperty = exports.constructorDefinition = exports.actionCreatorPropsComputed = exports.actionCreatorProps = exports.actionCreatorWithLiteral = exports.actionCreator = exports.propertyDefinitionWithEffectDecorator = exports.effectDecorator = exports.createEffectExpression = exports.effectCreator = void 0; | ||
exports.mapLikeOperatorCallExpressions = exports.actionReducerMap = exports.storeActionReducerMap = exports.onFunctionWithoutType = exports.createReducer = exports.dispatchInEffects = exports.dispatchExpression = exports.selectExpression = exports.pipeableSelect = exports.pipeExpression = exports.namedCallableExpression = exports.namedExpression = exports.effectsInNgModuleProviders = exports.effectsInNgModuleImports = exports.ngModuleProviders = exports.ngModuleImports = exports.ngModuleDecorator = exports.constructorDefinition = exports.actionCreatorPropsComputed = exports.actionCreatorProps = exports.actionCreatorWithLiteral = exports.actionCreator = exports.propertyDefinitionWithEffectDecorator = exports.effectDecorator = exports.createEffectExpression = exports.effectCreator = void 0; | ||
exports.metadataProperty = metadataProperty; | ||
exports.effectCreator = `PropertyDefinition[value.callee.name='createEffect']`; | ||
@@ -16,3 +17,2 @@ exports.createEffectExpression = `CallExpression[callee.name='createEffect']`; | ||
} | ||
exports.metadataProperty = metadataProperty; | ||
exports.ngModuleDecorator = `ClassDeclaration > Decorator > CallExpression[callee.name='NgModule']`; | ||
@@ -19,0 +19,0 @@ exports.ngModuleImports = `${exports.ngModuleDecorator} ObjectExpression ${metadataProperty('imports')} > ArrayExpression`; |
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
458610
197
4843