@ngrx/effects
Advanced tools
Comparing version 15.4.0 to 16.0.0-beta.0
@@ -27,3 +27,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.migrateToCreators = void 0; | ||
@@ -106,3 +106,3 @@ var ts = require("typescript"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
@@ -18,3 +18,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.migrateProvideEffects = void 0; | ||
@@ -77,3 +77,3 @@ var ts = require("typescript"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var schematics_core_1 = require("../../schematics-core"); | ||
@@ -7,3 +7,3 @@ function default_1() { | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
@@ -18,3 +18,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -86,3 +86,3 @@ var schematics_1 = require("@angular-devkit/schematics"); | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ngrx/effects", | ||
"version": "15.4.0", | ||
"version": "16.0.0-beta.0", | ||
"description": "Side effect model for @ngrx/store", | ||
@@ -24,4 +24,4 @@ "repository": { | ||
"peerDependencies": { | ||
"@angular/core": "^15.0.0", | ||
"@ngrx/store": "15.4.0", | ||
"@angular/core": "^16.0.0-next.0", | ||
"@ngrx/store": "16.0.0-beta.0", | ||
"rxjs": "^6.5.3 || ^7.5.0" | ||
@@ -49,7 +49,3 @@ }, | ||
}, | ||
"module": "fesm2015/ngrx-effects.mjs", | ||
"es2020": "fesm2020/ngrx-effects.mjs", | ||
"esm2020": "esm2020/ngrx-effects.mjs", | ||
"fesm2020": "fesm2020/ngrx-effects.mjs", | ||
"fesm2015": "fesm2015/ngrx-effects.mjs", | ||
"module": "fesm2022/ngrx-effects.mjs", | ||
"typings": "index.d.ts", | ||
@@ -62,17 +58,13 @@ "exports": { | ||
"types": "./index.d.ts", | ||
"esm2020": "./esm2020/ngrx-effects.mjs", | ||
"es2020": "./fesm2020/ngrx-effects.mjs", | ||
"es2015": "./fesm2015/ngrx-effects.mjs", | ||
"node": "./fesm2015/ngrx-effects.mjs", | ||
"default": "./fesm2020/ngrx-effects.mjs" | ||
"esm2022": "./esm2022/ngrx-effects.mjs", | ||
"esm": "./esm2022/ngrx-effects.mjs", | ||
"default": "./fesm2022/ngrx-effects.mjs" | ||
}, | ||
"./testing": { | ||
"types": "./testing/index.d.ts", | ||
"esm2020": "./esm2020/testing/ngrx-effects-testing.mjs", | ||
"es2020": "./fesm2020/ngrx-effects-testing.mjs", | ||
"es2015": "./fesm2015/ngrx-effects-testing.mjs", | ||
"node": "./fesm2015/ngrx-effects-testing.mjs", | ||
"default": "./fesm2020/ngrx-effects-testing.mjs" | ||
"esm2022": "./esm2022/testing/ngrx-effects-testing.mjs", | ||
"esm": "./esm2022/testing/ngrx-effects-testing.mjs", | ||
"default": "./fesm2022/ngrx-effects-testing.mjs" | ||
} | ||
} | ||
} |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitTemplates = exports.visitNgModules = exports.visitDecorator = exports.visitComponents = exports.visitNgModuleExports = exports.visitNgModuleImports = exports.visitTSSourceFiles = exports.platformVersion = exports.addPackageToPackageJson = exports.parseName = exports.updatePackage = exports.stringUtils = exports.isLib = exports.getProject = exports.getProjectPath = exports.getPrefix = exports.omit = exports.addReducerToActionReducerMap = exports.addReducerImportToNgModule = exports.addReducerToStateInterface = exports.addReducerToState = exports.findPropertyInAstObject = exports.buildRelativePath = exports.findModuleFromOptions = exports.findModule = exports.findComponentFromOptions = exports.getWorkspacePath = exports.getWorkspace = exports.commitChanges = exports.createChangeRecorder = exports.createReplaceChange = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = exports.containsProperty = exports.replaceImport = exports.addProviderToModule = exports.addProviderToComponent = exports.addImportToModule = exports.addExportToModule = exports.addDeclarationToModule = exports.addBootstrapToModule = exports.insertImport = exports.insertAfterLastOccurrence = exports.getContentOfKeyLiteral = exports.getDecoratorMetadata = exports.getSourceNodes = exports.findNodes = void 0; | ||
var strings_1 = require("./utility/strings"); | ||
var ast_utils_1 = require("./utility/ast-utils"); | ||
__createBinding(exports, ast_utils_1, "findNodes"); | ||
__createBinding(exports, ast_utils_1, "getSourceNodes"); | ||
__createBinding(exports, ast_utils_1, "getDecoratorMetadata"); | ||
__createBinding(exports, ast_utils_1, "getContentOfKeyLiteral"); | ||
__createBinding(exports, ast_utils_1, "insertAfterLastOccurrence"); | ||
__createBinding(exports, ast_utils_1, "insertImport"); | ||
__createBinding(exports, ast_utils_1, "addBootstrapToModule"); | ||
__createBinding(exports, ast_utils_1, "addDeclarationToModule"); | ||
__createBinding(exports, ast_utils_1, "addExportToModule"); | ||
__createBinding(exports, ast_utils_1, "addImportToModule"); | ||
__createBinding(exports, ast_utils_1, "addProviderToComponent"); | ||
__createBinding(exports, ast_utils_1, "addProviderToModule"); | ||
__createBinding(exports, ast_utils_1, "replaceImport"); | ||
__createBinding(exports, ast_utils_1, "containsProperty"); | ||
Object.defineProperty(exports, "findNodes", { enumerable: true, get: function () { return ast_utils_1.findNodes; } }); | ||
Object.defineProperty(exports, "getSourceNodes", { enumerable: true, get: function () { return ast_utils_1.getSourceNodes; } }); | ||
Object.defineProperty(exports, "getDecoratorMetadata", { enumerable: true, get: function () { return ast_utils_1.getDecoratorMetadata; } }); | ||
Object.defineProperty(exports, "getContentOfKeyLiteral", { enumerable: true, get: function () { return ast_utils_1.getContentOfKeyLiteral; } }); | ||
Object.defineProperty(exports, "insertAfterLastOccurrence", { enumerable: true, get: function () { return ast_utils_1.insertAfterLastOccurrence; } }); | ||
Object.defineProperty(exports, "insertImport", { enumerable: true, get: function () { return ast_utils_1.insertImport; } }); | ||
Object.defineProperty(exports, "addBootstrapToModule", { enumerable: true, get: function () { return ast_utils_1.addBootstrapToModule; } }); | ||
Object.defineProperty(exports, "addDeclarationToModule", { enumerable: true, get: function () { return ast_utils_1.addDeclarationToModule; } }); | ||
Object.defineProperty(exports, "addExportToModule", { enumerable: true, get: function () { return ast_utils_1.addExportToModule; } }); | ||
Object.defineProperty(exports, "addImportToModule", { enumerable: true, get: function () { return ast_utils_1.addImportToModule; } }); | ||
Object.defineProperty(exports, "addProviderToComponent", { enumerable: true, get: function () { return ast_utils_1.addProviderToComponent; } }); | ||
Object.defineProperty(exports, "addProviderToModule", { enumerable: true, get: function () { return ast_utils_1.addProviderToModule; } }); | ||
Object.defineProperty(exports, "replaceImport", { enumerable: true, get: function () { return ast_utils_1.replaceImport; } }); | ||
Object.defineProperty(exports, "containsProperty", { enumerable: true, get: function () { return ast_utils_1.containsProperty; } }); | ||
var change_1 = require("./utility/change"); | ||
__createBinding(exports, change_1, "NoopChange"); | ||
__createBinding(exports, change_1, "InsertChange"); | ||
__createBinding(exports, change_1, "RemoveChange"); | ||
__createBinding(exports, change_1, "ReplaceChange"); | ||
__createBinding(exports, change_1, "createReplaceChange"); | ||
__createBinding(exports, change_1, "createChangeRecorder"); | ||
__createBinding(exports, change_1, "commitChanges"); | ||
Object.defineProperty(exports, "NoopChange", { enumerable: true, get: function () { return change_1.NoopChange; } }); | ||
Object.defineProperty(exports, "InsertChange", { enumerable: true, get: function () { return change_1.InsertChange; } }); | ||
Object.defineProperty(exports, "RemoveChange", { enumerable: true, get: function () { return change_1.RemoveChange; } }); | ||
Object.defineProperty(exports, "ReplaceChange", { enumerable: true, get: function () { return change_1.ReplaceChange; } }); | ||
Object.defineProperty(exports, "createReplaceChange", { enumerable: true, get: function () { return change_1.createReplaceChange; } }); | ||
Object.defineProperty(exports, "createChangeRecorder", { enumerable: true, get: function () { return change_1.createChangeRecorder; } }); | ||
Object.defineProperty(exports, "commitChanges", { enumerable: true, get: function () { return change_1.commitChanges; } }); | ||
var config_1 = require("./utility/config"); | ||
__createBinding(exports, config_1, "getWorkspace"); | ||
__createBinding(exports, config_1, "getWorkspacePath"); | ||
Object.defineProperty(exports, "getWorkspace", { enumerable: true, get: function () { return config_1.getWorkspace; } }); | ||
Object.defineProperty(exports, "getWorkspacePath", { enumerable: true, get: function () { return config_1.getWorkspacePath; } }); | ||
var find_component_1 = require("./utility/find-component"); | ||
__createBinding(exports, find_component_1, "findComponentFromOptions"); | ||
Object.defineProperty(exports, "findComponentFromOptions", { enumerable: true, get: function () { return find_component_1.findComponentFromOptions; } }); | ||
var find_module_1 = require("./utility/find-module"); | ||
__createBinding(exports, find_module_1, "findModule"); | ||
__createBinding(exports, find_module_1, "findModuleFromOptions"); | ||
__createBinding(exports, find_module_1, "buildRelativePath"); | ||
Object.defineProperty(exports, "findModule", { enumerable: true, get: function () { return find_module_1.findModule; } }); | ||
Object.defineProperty(exports, "findModuleFromOptions", { enumerable: true, get: function () { return find_module_1.findModuleFromOptions; } }); | ||
Object.defineProperty(exports, "buildRelativePath", { enumerable: true, get: function () { return find_module_1.buildRelativePath; } }); | ||
var json_utilts_1 = require("./utility/json-utilts"); | ||
__createBinding(exports, json_utilts_1, "findPropertyInAstObject"); | ||
Object.defineProperty(exports, "findPropertyInAstObject", { enumerable: true, get: function () { return json_utilts_1.findPropertyInAstObject; } }); | ||
var ngrx_utils_1 = require("./utility/ngrx-utils"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerToState"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerToStateInterface"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerImportToNgModule"); | ||
__createBinding(exports, ngrx_utils_1, "addReducerToActionReducerMap"); | ||
__createBinding(exports, ngrx_utils_1, "omit"); | ||
__createBinding(exports, ngrx_utils_1, "getPrefix"); | ||
Object.defineProperty(exports, "addReducerToState", { enumerable: true, get: function () { return ngrx_utils_1.addReducerToState; } }); | ||
Object.defineProperty(exports, "addReducerToStateInterface", { enumerable: true, get: function () { return ngrx_utils_1.addReducerToStateInterface; } }); | ||
Object.defineProperty(exports, "addReducerImportToNgModule", { enumerable: true, get: function () { return ngrx_utils_1.addReducerImportToNgModule; } }); | ||
Object.defineProperty(exports, "addReducerToActionReducerMap", { enumerable: true, get: function () { return ngrx_utils_1.addReducerToActionReducerMap; } }); | ||
Object.defineProperty(exports, "omit", { enumerable: true, get: function () { return ngrx_utils_1.omit; } }); | ||
Object.defineProperty(exports, "getPrefix", { enumerable: true, get: function () { return ngrx_utils_1.getPrefix; } }); | ||
var project_1 = require("./utility/project"); | ||
__createBinding(exports, project_1, "getProjectPath"); | ||
__createBinding(exports, project_1, "getProject"); | ||
__createBinding(exports, project_1, "isLib"); | ||
Object.defineProperty(exports, "getProjectPath", { enumerable: true, get: function () { return project_1.getProjectPath; } }); | ||
Object.defineProperty(exports, "getProject", { enumerable: true, get: function () { return project_1.getProject; } }); | ||
Object.defineProperty(exports, "isLib", { enumerable: true, get: function () { return project_1.isLib; } }); | ||
exports.stringUtils = { | ||
@@ -70,20 +59,20 @@ dasherize: strings_1.dasherize, | ||
featurePath: strings_1.featurePath, | ||
pluralize: strings_1.pluralize | ||
pluralize: strings_1.pluralize, | ||
}; | ||
var update_1 = require("./utility/update"); | ||
__createBinding(exports, update_1, "updatePackage"); | ||
Object.defineProperty(exports, "updatePackage", { enumerable: true, get: function () { return update_1.updatePackage; } }); | ||
var parse_name_1 = require("./utility/parse-name"); | ||
__createBinding(exports, parse_name_1, "parseName"); | ||
Object.defineProperty(exports, "parseName", { enumerable: true, get: function () { return parse_name_1.parseName; } }); | ||
var package_1 = require("./utility/package"); | ||
__createBinding(exports, package_1, "addPackageToPackageJson"); | ||
Object.defineProperty(exports, "addPackageToPackageJson", { enumerable: true, get: function () { return package_1.addPackageToPackageJson; } }); | ||
var libs_version_1 = require("./utility/libs-version"); | ||
__createBinding(exports, libs_version_1, "platformVersion"); | ||
Object.defineProperty(exports, "platformVersion", { enumerable: true, get: function () { return libs_version_1.platformVersion; } }); | ||
var visitors_1 = require("./utility/visitors"); | ||
__createBinding(exports, visitors_1, "visitTSSourceFiles"); | ||
__createBinding(exports, visitors_1, "visitNgModuleImports"); | ||
__createBinding(exports, visitors_1, "visitNgModuleExports"); | ||
__createBinding(exports, visitors_1, "visitComponents"); | ||
__createBinding(exports, visitors_1, "visitDecorator"); | ||
__createBinding(exports, visitors_1, "visitNgModules"); | ||
__createBinding(exports, visitors_1, "visitTemplates"); | ||
Object.defineProperty(exports, "visitTSSourceFiles", { enumerable: true, get: function () { return visitors_1.visitTSSourceFiles; } }); | ||
Object.defineProperty(exports, "visitNgModuleImports", { enumerable: true, get: function () { return visitors_1.visitNgModuleImports; } }); | ||
Object.defineProperty(exports, "visitNgModuleExports", { enumerable: true, get: function () { return visitors_1.visitNgModuleExports; } }); | ||
Object.defineProperty(exports, "visitComponents", { enumerable: true, get: function () { return visitors_1.visitComponents; } }); | ||
Object.defineProperty(exports, "visitDecorator", { enumerable: true, get: function () { return visitors_1.visitDecorator; } }); | ||
Object.defineProperty(exports, "visitNgModules", { enumerable: true, get: function () { return visitors_1.visitNgModules; } }); | ||
Object.defineProperty(exports, "visitTemplates", { enumerable: true, get: function () { return visitors_1.visitTemplates; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -38,3 +38,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
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; | ||
@@ -87,3 +87,3 @@ /* istanbul ignore file */ | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -226,3 +226,3 @@ finally { if (e_1) throw e_1.error; } | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -229,0 +229,0 @@ finally { if (e_2) throw e_2.error; } |
@@ -13,3 +13,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.commitChanges = exports.createChangeRecorder = exports.createRemoveChange = exports.createReplaceChange = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = void 0; | ||
@@ -147,3 +147,3 @@ /** | ||
try { | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1["return"])) _a.call(changes_1); | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1.return)) _a.call(changes_1); | ||
} | ||
@@ -150,0 +150,0 @@ finally { if (e_1) throw e_1.error; } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getWorkspace = exports.getWorkspacePath = void 0; | ||
@@ -4,0 +4,0 @@ var schematics_1 = require("@angular-devkit/schematics"); |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildRelativePath = exports.findComponent = exports.findComponentFromOptions = void 0; | ||
@@ -90,3 +90,3 @@ /** | ||
filename: filename, | ||
directory: directory | ||
directory: directory, | ||
}; | ||
@@ -93,0 +93,0 @@ } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.buildRelativePath = exports.findModule = exports.findModuleFromOptions = void 0; | ||
@@ -91,3 +91,3 @@ /** | ||
filename: filename, | ||
directory: directory | ||
directory: directory, | ||
}; | ||
@@ -94,0 +94,0 @@ } |
@@ -13,3 +13,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.findPropertyInAstObject = void 0; | ||
@@ -31,3 +31,3 @@ // https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/utility/json-utils.ts | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -34,0 +34,0 @@ finally { if (e_1) throw e_1.error; } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.platformVersion = void 0; | ||
exports.platformVersion = '^15.4.0'; | ||
exports.platformVersion = '^16.0.0-beta.0'; | ||
//# sourceMappingURL=libs-version.js.map |
@@ -38,3 +38,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getPrefix = exports.omit = exports.addReducerImportToNgModule = exports.addReducerToActionReducerMap = exports.addReducerToStateInterface = exports.addReducerToState = void 0; | ||
@@ -86,3 +86,3 @@ var ts = require("typescript"); | ||
try { | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1["return"])) _a.call(changes_1); | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1.return)) _a.call(changes_1); | ||
} | ||
@@ -228,3 +228,3 @@ finally { if (e_1) throw e_1.error; } | ||
try { | ||
if (changes_2_1 && !changes_2_1.done && (_a = changes_2["return"])) _a.call(changes_2); | ||
if (changes_2_1 && !changes_2_1.done && (_a = changes_2.return)) _a.call(changes_2); | ||
} | ||
@@ -231,0 +231,0 @@ finally { if (e_2) throw e_2.error; } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.addPackageToPackageJson = void 0; | ||
@@ -4,0 +4,0 @@ /** |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseName = void 0; | ||
@@ -10,3 +10,3 @@ var core_1 = require("@angular-devkit/core"); | ||
name: nameWithoutPath, | ||
path: (0, core_1.normalize)('/' + namePath) | ||
path: (0, core_1.normalize)('/' + namePath), | ||
}; | ||
@@ -13,0 +13,0 @@ } |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isLib = exports.getProjectPath = exports.getProject = void 0; | ||
@@ -4,0 +4,0 @@ var config_1 = require("./config"); |
"use strict"; | ||
exports.__esModule = true; | ||
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; | ||
@@ -4,0 +4,0 @@ /** |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.updatePackage = void 0; | ||
@@ -4,0 +4,0 @@ var schematics_1 = require("@angular-devkit/schematics"); |
@@ -8,3 +8,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -57,3 +57,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.visitDecorator = exports.visitNgModules = exports.visitComponents = exports.visitNgModuleExports = exports.visitNgModuleImports = exports.visitTemplates = exports.visitTSSourceFiles = void 0; | ||
@@ -74,3 +74,3 @@ var ts = require("typescript"); | ||
try { | ||
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b); | ||
if (_c && !_c.done && (_a = _b.return)) _a.call(_b); | ||
} | ||
@@ -96,3 +96,3 @@ finally { if (e_1) throw e_1.error; } | ||
inline: true, | ||
start: templateStartIdx | ||
start: templateStartIdx, | ||
}, tree); | ||
@@ -116,3 +116,3 @@ return; | ||
inline: false, | ||
start: 0 | ||
start: 0, | ||
}, tree); | ||
@@ -219,3 +219,3 @@ return; | ||
try { | ||
if (_b && !_b.done && (_e = _a["return"])) _e.call(_a); | ||
if (_b && !_b.done && (_e = _a.return)) _e.call(_a); | ||
} | ||
@@ -248,3 +248,3 @@ finally { if (e_2) throw e_2.error; } | ||
try { | ||
if (_d && !_d.done && (_f = _c["return"])) _f.call(_c); | ||
if (_d && !_d.done && (_f = _c.return)) _f.call(_c); | ||
} | ||
@@ -251,0 +251,0 @@ finally { if (e_3) throw e_3.error; } |
@@ -40,3 +40,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var ts = require("typescript"); | ||
@@ -89,3 +89,3 @@ var schematics_1 = require("@angular-devkit/schematics"); | ||
try { | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1["return"])) _a.call(changes_1); | ||
if (changes_1_1 && !changes_1_1.done && (_a = changes_1.return)) _a.call(changes_1); | ||
} | ||
@@ -132,3 +132,3 @@ finally { if (e_1) throw e_1.error; } | ||
} | ||
exports["default"] = default_1; | ||
exports.default = default_1; | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=schema.js.map |
@@ -10,3 +10,3 @@ import { Action, ActionCreator, Creator } from '@ngrx/store'; | ||
} | ||
declare type ActionExtractor<T extends string | AC, AC extends ActionCreator<string, Creator>, E> = T extends string ? E : ReturnType<Extract<T, AC>>; | ||
type ActionExtractor<T extends string | AC, AC extends ActionCreator<string, Creator>, E> = T extends string ? E : ReturnType<Extract<T, AC>>; | ||
export declare function ofType<AC extends ActionCreator<string, Creator>[], U extends Action = Action, V = ReturnType<AC[number]>>(...allowedTypes: AC): OperatorFunction<U, V>; | ||
@@ -13,0 +13,0 @@ export declare function ofType<E extends Extract<U, { |
import { Observable } from 'rxjs'; | ||
import { Action, ActionCreator } from '@ngrx/store'; | ||
import { CreateEffectMetadata, EffectConfig, EffectMetadata, FunctionalEffect } from './models'; | ||
declare type DispatchType<T> = T extends { | ||
type DispatchType<T> = T extends { | ||
dispatch: infer U; | ||
} ? U : true; | ||
declare type ObservableType<T, OriginalType> = T extends false ? OriginalType : Action; | ||
declare type EffectResult<OT> = Observable<OT> | ((...args: any[]) => Observable<OT>); | ||
declare type ConditionallyDisallowActionCreator<DT, Result> = DT extends false ? unknown : Result extends EffectResult<infer OT> ? OT extends ActionCreator ? 'ActionCreator cannot be dispatched. Did you forget to call the action creator function?' : unknown : unknown; | ||
type ObservableType<T, OriginalType> = T extends false ? OriginalType : Action; | ||
type EffectResult<OT> = Observable<OT> | ((...args: any[]) => Observable<OT>); | ||
type ConditionallyDisallowActionCreator<DT, Result> = DT extends false ? unknown : Result extends EffectResult<infer OT> ? OT extends ActionCreator ? 'ActionCreator cannot be dispatched. Did you forget to call the action creator function?' : unknown : unknown; | ||
export declare function createEffect<C extends EffectConfig & { | ||
@@ -11,0 +11,0 @@ functional?: false; |
import { ErrorHandler } from '@angular/core'; | ||
import { Action } from '@ngrx/store'; | ||
import { Observable } from 'rxjs'; | ||
export declare type EffectsErrorHandler = <T extends Action>(observable$: Observable<T>, errorHandler: ErrorHandler) => Observable<T>; | ||
export type EffectsErrorHandler = <T extends Action>(observable$: Observable<T>, errorHandler: ErrorHandler) => Observable<T>; | ||
export declare function defaultEffectsErrorHandler<T extends Action>(observable$: Observable<T>, errorHandler: ErrorHandler, retryAttemptLeft?: number): Observable<T>; |
@@ -31,9 +31,9 @@ import { Observable } from 'rxjs'; | ||
} | ||
export declare type FunctionalEffect<Source extends () => Observable<unknown> = () => Observable<unknown>> = Source & FunctionalCreateEffectMetadata; | ||
export declare type EffectPropertyKey<T extends Record<keyof T, Object>> = Exclude<keyof T, keyof Object>; | ||
export type FunctionalEffect<Source extends () => Observable<unknown> = () => Observable<unknown>> = Source & FunctionalCreateEffectMetadata; | ||
export type EffectPropertyKey<T extends Record<keyof T, Object>> = Exclude<keyof T, keyof Object>; | ||
export interface EffectMetadata<T extends Record<keyof T, Object>> extends Required<EffectConfig> { | ||
propertyName: EffectPropertyKey<T>; | ||
} | ||
export declare type EffectsMetadata<T extends Record<keyof T, Object>> = { | ||
export type EffectsMetadata<T extends Record<keyof T, Object>> = { | ||
[Key in EffectPropertyKey<T>]?: EffectConfig; | ||
}; |
@@ -5,7 +5,7 @@ import { InjectionToken, Type } from '@angular/core'; | ||
export declare const _ROOT_EFFECTS_GUARD: InjectionToken<void>; | ||
export declare const USER_PROVIDED_EFFECTS: InjectionToken<Type<unknown>[][]>; | ||
export declare const _ROOT_EFFECTS: InjectionToken<[(Type<unknown> | Record<string, FunctionalEffect<() => import("rxjs").Observable<unknown>>>)[]]>; | ||
export declare const USER_PROVIDED_EFFECTS: InjectionToken<(Type<unknown> | InjectionToken<unknown>)[][]>; | ||
export declare const _ROOT_EFFECTS: InjectionToken<[(Type<unknown> | Record<string, FunctionalEffect>)[]]>; | ||
export declare const _ROOT_EFFECTS_INSTANCES: InjectionToken<unknown[]>; | ||
export declare const _FEATURE_EFFECTS: InjectionToken<(Type<unknown> | Record<string, FunctionalEffect<() => import("rxjs").Observable<unknown>>>)[][]>; | ||
export declare const _FEATURE_EFFECTS: InjectionToken<(Type<unknown> | Record<string, FunctionalEffect>)[][]>; | ||
export declare const _FEATURE_EFFECTS_INSTANCE_GROUPS: InjectionToken<unknown[][]>; | ||
export declare const EFFECTS_ERROR_HANDLER: InjectionToken<EffectsErrorHandler>; |
@@ -1,2 +0,2 @@ | ||
import { Type } from '@angular/core'; | ||
import { InjectionToken, Type } from '@angular/core'; | ||
export declare function getSourceForInstance<T>(instance: T): T; | ||
@@ -6,2 +6,3 @@ export declare function isClassInstance(obj: object): boolean; | ||
export declare function getClasses(classesAndRecords: Array<Type<unknown> | Record<string, unknown>>): Type<unknown>[]; | ||
export declare function isToken(tokenOrRecord: Type<unknown> | InjectionToken<unknown> | Record<string, unknown>): tokenOrRecord is Type<unknown> | InjectionToken<unknown>; | ||
export interface NextNotification<T> { | ||
@@ -18,2 +19,2 @@ kind: 'N'; | ||
} | ||
export declare type ObservableNotification<T> = NextNotification<T> | ErrorNotification | CompleteNotification; | ||
export type ObservableNotification<T> = NextNotification<T> | ErrorNotification | CompleteNotification; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
496368
104
4393
1