@ngrx/effects
Advanced tools
Comparing version 13.0.0-beta.0 to 13.0.0-rc.0
@@ -18,6 +18,10 @@ "use strict"; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -31,3 +35,3 @@ exports.__esModule = true; | ||
return function (tree) { | ||
schematics_core_1.visitTSSourceFiles(tree, function (sourceFile) { | ||
(0, schematics_core_1.visitTSSourceFiles)(tree, function (sourceFile) { | ||
var effectsPerClass = sourceFile.statements | ||
@@ -45,4 +49,4 @@ .filter(ts.isClassDeclaration) | ||
var createEffectsChanges = replaceEffectDecorators(tree, sourceFile, effects); | ||
var importChanges = schematics_core_1.replaceImport(sourceFile, sourceFile.fileName, '@ngrx/effects', 'Effect', 'createEffect'); | ||
schematics_core_1.commitChanges(tree, sourceFile.fileName, __spreadArray(__spreadArray([], __read(importChanges)), __read(createEffectsChanges))); | ||
var importChanges = (0, schematics_core_1.replaceImport)(sourceFile, sourceFile.fileName, '@ngrx/effects', 'Effect', 'createEffect'); | ||
(0, schematics_core_1.commitChanges)(tree, sourceFile.fileName, __spreadArray(__spreadArray([], __read(importChanges), false), __read(createEffectsChanges), false)); | ||
}); | ||
@@ -86,3 +90,3 @@ }; | ||
.reduce(function (acc, removes) { return acc.concat(removes); }, []); | ||
return __spreadArray(__spreadArray([], __read(inserts)), __read(removes)); | ||
return __spreadArray(__spreadArray([], __read(inserts), false), __read(removes), false); | ||
} | ||
@@ -105,5 +109,5 @@ function isEffectDecorator(decorator) { | ||
function default_1() { | ||
return schematics_1.chain([migrateToCreators()]); | ||
return (0, schematics_1.chain)([migrateToCreators()]); | ||
} | ||
exports["default"] = default_1; | ||
//# sourceMappingURL=index.js.map |
@@ -5,5 +5,5 @@ "use strict"; | ||
function default_1() { | ||
return schematics_core_1.updatePackage('effects'); | ||
return (0, schematics_core_1.updatePackage)('effects'); | ||
} | ||
exports["default"] = default_1; | ||
//# sourceMappingURL=index.js.map |
@@ -24,5 +24,5 @@ "use strict"; | ||
return function (tree, ctx) { | ||
schematics_core_1.visitTSSourceFiles(tree, function (sourceFile) { | ||
(0, schematics_core_1.visitTSSourceFiles)(tree, function (sourceFile) { | ||
var changes = replaceEffectConfigKeys(sourceFile, 'resubscribeOnError', 'useEffectsErrorHandler'); | ||
schematics_core_1.commitChanges(tree, sourceFile.fileName, changes); | ||
(0, schematics_core_1.commitChanges)(tree, sourceFile.fileName, changes); | ||
if (changes.length) { | ||
@@ -50,3 +50,3 @@ ctx.logger.info("[@ngrx/effects] Updated Effects configuration, see the migration guide (https://ngrx.io/guide/migration/v9#effects) for more info"); | ||
visitIdentifierWithText(node, oldText, function (match) { | ||
changes.push(schematics_core_1.createReplaceChange(sourceFile, match, oldText, newText)); | ||
changes.push((0, schematics_core_1.createReplaceChange)(sourceFile, match, oldText, newText)); | ||
}); | ||
@@ -85,5 +85,5 @@ } | ||
function default_1() { | ||
return schematics_1.chain([renameErrorHandlerConfig()]); | ||
return (0, schematics_1.chain)([renameErrorHandlerConfig()]); | ||
} | ||
exports["default"] = default_1; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@ngrx/effects", | ||
"version": "13.0.0-beta.0", | ||
"version": "13.0.0-rc.0", | ||
"description": "Side effect model for @ngrx/store", | ||
@@ -24,4 +24,4 @@ "repository": { | ||
"peerDependencies": { | ||
"@angular/core": "^13.0.0-rc.0", | ||
"@ngrx/store": "13.0.0-beta.0", | ||
"@angular/core": "^13.0.0", | ||
"@ngrx/store": "13.0.0-rc.0", | ||
"rxjs": "^6.5.3 || ^7.4.0" | ||
@@ -48,8 +48,29 @@ }, | ||
}, | ||
"main": "bundles/ngrx-effects.umd.js", | ||
"module": "fesm2015/ngrx-effects.js", | ||
"es2015": "fesm2015/ngrx-effects.js", | ||
"esm2015": "esm2015/ngrx-effects.js", | ||
"fesm2015": "fesm2015/ngrx-effects.js", | ||
"typings": "ngrx-effects.d.ts" | ||
} | ||
"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", | ||
"typings": "ngrx-effects.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./ngrx-effects.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" | ||
}, | ||
"./testing": { | ||
"types": "./testing/ngrx-effects-testing.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" | ||
} | ||
} | ||
} |
@@ -5,2 +5,3 @@ "use strict"; | ||
var core_1 = require("@angular-devkit/core"); | ||
var parser_1 = require("@angular-devkit/core/src/json/parser"); | ||
var json_utilts_1 = require("./json-utilts"); | ||
@@ -15,9 +16,9 @@ // https://github.com/angular/angular-cli/blob/master/packages/schematics/angular/migrations/update-9/utils.ts | ||
} | ||
var tsCfgAst = core_1.parseJsonAst(buffer.toString(), core_1.JsonParseMode.Loose); | ||
var tsCfgAst = (0, parser_1.parseJsonAst)(buffer.toString()); | ||
if (tsCfgAst.kind !== 'object') { | ||
return true; | ||
} | ||
var ngCompilerOptions = json_utilts_1.findPropertyInAstObject(tsCfgAst, 'angularCompilerOptions'); | ||
var ngCompilerOptions = (0, json_utilts_1.findPropertyInAstObject)(tsCfgAst, 'angularCompilerOptions'); | ||
if (ngCompilerOptions && ngCompilerOptions.kind === 'object') { | ||
var enableIvy = json_utilts_1.findPropertyInAstObject(ngCompilerOptions, 'enableIvy'); | ||
var enableIvy = (0, json_utilts_1.findPropertyInAstObject)(ngCompilerOptions, 'enableIvy'); | ||
if (enableIvy) { | ||
@@ -27,5 +28,5 @@ return !!enableIvy.value; | ||
} | ||
var configExtends = json_utilts_1.findPropertyInAstObject(tsCfgAst, 'extends'); | ||
var configExtends = (0, json_utilts_1.findPropertyInAstObject)(tsCfgAst, 'extends'); | ||
if (configExtends && configExtends.kind === 'string') { | ||
var extendedTsConfigPath = core_1.resolve(core_1.dirname(core_1.normalize(tsConfigPath)), core_1.normalize(configExtends.value)); | ||
var extendedTsConfigPath = (0, core_1.resolve)((0, core_1.dirname)((0, core_1.normalize)(tsConfigPath)), (0, core_1.normalize)(configExtends.value)); | ||
return isIvyEnabled(tree, extendedTsConfigPath); | ||
@@ -32,0 +33,0 @@ } |
@@ -29,6 +29,10 @@ "use strict"; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -104,3 +108,3 @@ exports.__esModule = true; | ||
if (node.getChildCount(sourceFile) >= 0) { | ||
nodes.unshift.apply(nodes, __spreadArray([], __read(node.getChildren()))); | ||
nodes.unshift.apply(nodes, __spreadArray([], __read(node.getChildren()), false)); | ||
} | ||
@@ -679,3 +683,3 @@ } | ||
if (!isAlreadyImported) { | ||
return change_1.createReplaceChange(sourceFile, specifier, importAsIs, importToBe); | ||
return (0, change_1.createReplaceChange)(sourceFile, specifier, importAsIs, importToBe); | ||
} | ||
@@ -685,6 +689,6 @@ var nextIdentifier = importSpecifiers[index + 1]; | ||
if (nextIdentifier) { | ||
return change_1.createRemoveChange(sourceFile, specifier, specifier.getStart(sourceFile), nextIdentifier.getStart(sourceFile)); | ||
return (0, change_1.createRemoveChange)(sourceFile, specifier, specifier.getStart(sourceFile), nextIdentifier.getStart(sourceFile)); | ||
} | ||
// there are no imports following, just remove it | ||
return change_1.createRemoveChange(sourceFile, specifier, specifier.getStart(sourceFile), specifier.getEnd()); | ||
return (0, change_1.createRemoveChange)(sourceFile, specifier, specifier.getStart(sourceFile), specifier.getEnd()); | ||
}); | ||
@@ -691,0 +695,0 @@ return importChanges.filter(Boolean); |
@@ -22,18 +22,18 @@ "use strict"; | ||
(options.flat ? '' : '/' + core_1.strings.dasherize(options.name)); | ||
return core_1.normalize(findComponent(host, pathToCheck)); | ||
return (0, core_1.normalize)(findComponent(host, pathToCheck)); | ||
} | ||
else { | ||
var componentPath = core_1.normalize('/' + options.path + '/' + options.component); | ||
var componentBaseName = core_1.normalize(componentPath).split('/').pop(); | ||
var componentPath = (0, core_1.normalize)('/' + options.path + '/' + options.component); | ||
var componentBaseName = (0, core_1.normalize)(componentPath).split('/').pop(); | ||
if (host.exists(componentPath)) { | ||
return core_1.normalize(componentPath); | ||
return (0, core_1.normalize)(componentPath); | ||
} | ||
else if (host.exists(componentPath + '.ts')) { | ||
return core_1.normalize(componentPath + '.ts'); | ||
return (0, core_1.normalize)(componentPath + '.ts'); | ||
} | ||
else if (host.exists(componentPath + '.component.ts')) { | ||
return core_1.normalize(componentPath + '.component.ts'); | ||
return (0, core_1.normalize)(componentPath + '.component.ts'); | ||
} | ||
else if (host.exists(componentPath + '/' + componentBaseName + '.component.ts')) { | ||
return core_1.normalize(componentPath + '/' + componentBaseName + '.component.ts'); | ||
return (0, core_1.normalize)(componentPath + '/' + componentBaseName + '.component.ts'); | ||
} | ||
@@ -55,3 +55,3 @@ else { | ||
if (matches.length == 1) { | ||
return core_1.join(dir.path, matches[0]); | ||
return (0, core_1.join)(dir.path, matches[0]); | ||
} | ||
@@ -74,3 +74,3 @@ else if (matches.length > 1) { | ||
var _b = parsePath(to), toPath = _b.path, toFileName = _b.filename, toDirectory = _b.directory; | ||
var relativePath = core_1.relative(fromDirectory, toDirectory); | ||
var relativePath = (0, core_1.relative)(fromDirectory, toDirectory); | ||
var fixedRelativePath = relativePath.startsWith('.') | ||
@@ -87,5 +87,5 @@ ? relativePath | ||
function parsePath(path) { | ||
var pathNormalized = core_1.normalize(path); | ||
var filename = core_1.extname(pathNormalized) ? core_1.basename(pathNormalized) : ''; | ||
var directory = filename ? core_1.dirname(pathNormalized) : pathNormalized; | ||
var pathNormalized = (0, core_1.normalize)(path); | ||
var filename = (0, core_1.extname)(pathNormalized) ? (0, core_1.basename)(pathNormalized) : ''; | ||
var directory = filename ? (0, core_1.dirname)(pathNormalized) : pathNormalized; | ||
return { | ||
@@ -92,0 +92,0 @@ path: pathNormalized, |
@@ -22,18 +22,18 @@ "use strict"; | ||
(options.flat ? '' : '/' + core_1.strings.dasherize(options.name)); | ||
return core_1.normalize(findModule(host, pathToCheck)); | ||
return (0, core_1.normalize)(findModule(host, pathToCheck)); | ||
} | ||
else { | ||
var modulePath = core_1.normalize('/' + options.path + '/' + options.module); | ||
var moduleBaseName = core_1.normalize(modulePath).split('/').pop(); | ||
var modulePath = (0, core_1.normalize)('/' + options.path + '/' + options.module); | ||
var moduleBaseName = (0, core_1.normalize)(modulePath).split('/').pop(); | ||
if (host.exists(modulePath)) { | ||
return core_1.normalize(modulePath); | ||
return (0, core_1.normalize)(modulePath); | ||
} | ||
else if (host.exists(modulePath + '.ts')) { | ||
return core_1.normalize(modulePath + '.ts'); | ||
return (0, core_1.normalize)(modulePath + '.ts'); | ||
} | ||
else if (host.exists(modulePath + '.module.ts')) { | ||
return core_1.normalize(modulePath + '.module.ts'); | ||
return (0, core_1.normalize)(modulePath + '.module.ts'); | ||
} | ||
else if (host.exists(modulePath + '/' + moduleBaseName + '.module.ts')) { | ||
return core_1.normalize(modulePath + '/' + moduleBaseName + '.module.ts'); | ||
return (0, core_1.normalize)(modulePath + '/' + moduleBaseName + '.module.ts'); | ||
} | ||
@@ -56,3 +56,3 @@ else { | ||
if (matches.length == 1) { | ||
return core_1.join(dir.path, matches[0]); | ||
return (0, core_1.join)(dir.path, matches[0]); | ||
} | ||
@@ -75,3 +75,3 @@ else if (matches.length > 1) { | ||
var _b = parsePath(to), toPath = _b.path, toFileName = _b.filename, toDirectory = _b.directory; | ||
var relativePath = core_1.relative(fromDirectory, toDirectory); | ||
var relativePath = (0, core_1.relative)(fromDirectory, toDirectory); | ||
var fixedRelativePath = relativePath.startsWith('.') | ||
@@ -88,5 +88,5 @@ ? relativePath | ||
function parsePath(path) { | ||
var pathNormalized = core_1.normalize(path); | ||
var filename = core_1.extname(pathNormalized) ? core_1.basename(pathNormalized) : ''; | ||
var directory = filename ? core_1.dirname(pathNormalized) : pathNormalized; | ||
var pathNormalized = (0, core_1.normalize)(path); | ||
var filename = (0, core_1.extname)(pathNormalized) ? (0, core_1.basename)(pathNormalized) : ''; | ||
var directory = filename ? (0, core_1.dirname)(pathNormalized) : pathNormalized; | ||
return { | ||
@@ -93,0 +93,0 @@ path: pathNormalized, |
@@ -29,6 +29,10 @@ "use strict"; | ||
}; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
if (ar || !(i in from)) { | ||
if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
ar[i] = from[i]; | ||
} | ||
} | ||
return to.concat(ar || Array.prototype.slice.call(from)); | ||
}; | ||
@@ -50,3 +54,3 @@ exports.__esModule = true; | ||
} | ||
var reducersPath = core_1.normalize("/" + options.path + "/" + options.reducers); | ||
var reducersPath = (0, core_1.normalize)("/" + options.path + "/" + options.reducers); | ||
if (!host.exists(reducersPath)) { | ||
@@ -66,4 +70,4 @@ throw new Error("Specified reducers path " + reducersPath + " does not exist"); | ||
'.reducer'; | ||
var relativePath = find_module_1.buildRelativePath(reducersPath, reducerPath); | ||
var reducerImport = ast_utils_1.insertImport(source, reducersPath, "* as from" + stringUtils.classify(options.name), relativePath, true); | ||
var relativePath = (0, find_module_1.buildRelativePath)(reducersPath, reducerPath); | ||
var reducerImport = (0, ast_utils_1.insertImport)(source, reducersPath, "* as from" + stringUtils.classify(options.name), relativePath, true); | ||
var stateInterfaceInsert = addReducerToStateInterface(source, reducersPath, options); | ||
@@ -199,3 +203,3 @@ var reducerMapInsert = addReducerToActionReducerMap(source, reducersPath, options); | ||
var commonImports = [ | ||
ast_utils_1.insertImport(source, modulePath, 'StoreModule', '@ngrx/store'), | ||
(0, ast_utils_1.insertImport)(source, modulePath, 'StoreModule', '@ngrx/store'), | ||
]; | ||
@@ -207,9 +211,9 @@ var reducerPath = "/" + options.path + "/" + | ||
'.reducer'; | ||
var relativePath = find_module_1.buildRelativePath(modulePath, reducerPath); | ||
var reducerImport = ast_utils_1.insertImport(source, modulePath, "* as from" + stringUtils.classify(options.name), relativePath, true); | ||
var relativePath = (0, find_module_1.buildRelativePath)(modulePath, reducerPath); | ||
var reducerImport = (0, ast_utils_1.insertImport)(source, modulePath, "* as from" + stringUtils.classify(options.name), relativePath, true); | ||
var state = options.plural | ||
? stringUtils.pluralize(options.name) | ||
: stringUtils.camelize(options.name); | ||
var _b = __read(ast_utils_1.addImportToModule(source, modulePath, "StoreModule.forFeature(from" + stringUtils.classify(options.name) + "." + state + "FeatureKey, from" + stringUtils.classify(options.name) + ".reducer)", relativePath), 1), storeNgModuleImport = _b[0]; | ||
var changes = __spreadArray(__spreadArray([], __read(commonImports)), [reducerImport, storeNgModuleImport]); | ||
var _b = __read((0, ast_utils_1.addImportToModule)(source, modulePath, "StoreModule.forFeature(from" + stringUtils.classify(options.name) + "." + state + "FeatureKey, from" + stringUtils.classify(options.name) + ".reducer)", relativePath), 1), storeNgModuleImport = _b[0]; | ||
var changes = __spreadArray(__spreadArray([], __read(commonImports), false), [reducerImport, storeNgModuleImport], false); | ||
var recorder = host.beginUpdate(modulePath); | ||
@@ -216,0 +220,0 @@ try { |
@@ -6,7 +6,7 @@ "use strict"; | ||
function parseName(path, name) { | ||
var nameWithoutPath = core_1.basename(name); | ||
var namePath = core_1.dirname((path + '/' + name)); | ||
var nameWithoutPath = (0, core_1.basename)(name); | ||
var namePath = (0, core_1.dirname)((path + '/' + name)); | ||
return { | ||
name: nameWithoutPath, | ||
path: core_1.normalize('/' + namePath) | ||
path: (0, core_1.normalize)('/' + namePath) | ||
}; | ||
@@ -13,0 +13,0 @@ } |
@@ -6,3 +6,3 @@ "use strict"; | ||
function getProject(host, options) { | ||
var workspace = config_1.getWorkspace(host); | ||
var workspace = (0, config_1.getWorkspace)(host); | ||
if (!options.project) { | ||
@@ -9,0 +9,0 @@ var defaultProject = workspace |
@@ -99,4 +99,4 @@ "use strict"; | ||
ts.isStringLiteralLike(n.initializer)) { | ||
var parts = core_1.normalize(source.fileName).split('/').slice(0, -1); | ||
var templatePath = core_1.resolve(core_1.normalize(parts.join('/')), core_1.normalize(n.initializer.text)); | ||
var parts = (0, core_1.normalize)(source.fileName).split('/').slice(0, -1); | ||
var templatePath = (0, core_1.resolve)((0, core_1.normalize)(parts.join('/')), (0, core_1.normalize)(n.initializer.text)); | ||
if (!tree.exists(templatePath)) { | ||
@@ -103,0 +103,0 @@ return; |
@@ -62,3 +62,3 @@ "use strict"; | ||
var effectsName = "" + schematics_core_1.stringUtils.classify(options.name + "Effects"); | ||
var effectsModuleImport = schematics_core_1.insertImport(source, modulePath, 'EffectsModule', '@ngrx/effects'); | ||
var effectsModuleImport = (0, schematics_core_1.insertImport)(source, modulePath, 'EffectsModule', '@ngrx/effects'); | ||
var effectsPath = "/" + options.path + "/" + | ||
@@ -69,6 +69,6 @@ (options.flat ? '' : schematics_core_1.stringUtils.dasherize(options.name) + '/') + | ||
'.effects'; | ||
var relativePath = schematics_core_1.buildRelativePath(modulePath, effectsPath); | ||
var effectsImport = schematics_core_1.insertImport(source, modulePath, effectsName, relativePath); | ||
var relativePath = (0, schematics_core_1.buildRelativePath)(modulePath, effectsPath); | ||
var effectsImport = (0, schematics_core_1.insertImport)(source, modulePath, effectsName, relativePath); | ||
var effectsSetup = options.minimal ? "[]" : "[" + effectsName + "]"; | ||
var _b = __read(schematics_core_1.addImportToModule(source, modulePath, "EffectsModule.forRoot(" + effectsSetup + ")", relativePath), 1), effectsNgModuleImport = _b[0]; | ||
var _b = __read((0, schematics_core_1.addImportToModule)(source, modulePath, "EffectsModule.forRoot(" + effectsSetup + ")", relativePath), 1), effectsNgModuleImport = _b[0]; | ||
var changes = [effectsModuleImport, effectsNgModuleImport]; | ||
@@ -100,3 +100,3 @@ if (!options.minimal) { | ||
return function (host, context) { | ||
schematics_core_1.addPackageToPackageJson(host, 'dependencies', '@ngrx/effects', schematics_core_1.platformVersion); | ||
(0, schematics_core_1.addPackageToPackageJson)(host, 'dependencies', '@ngrx/effects', schematics_core_1.platformVersion); | ||
context.addTask(new tasks_1.NodePackageInstallTask()); | ||
@@ -108,23 +108,23 @@ return host; | ||
return function (host, context) { | ||
options.path = schematics_core_1.getProjectPath(host, options); | ||
options.path = (0, schematics_core_1.getProjectPath)(host, options); | ||
if (options.module) { | ||
options.module = schematics_core_1.findModuleFromOptions(host, options); | ||
options.module = (0, schematics_core_1.findModuleFromOptions)(host, options); | ||
} | ||
var parsedPath = schematics_core_1.parseName(options.path, options.name || ''); | ||
var parsedPath = (0, schematics_core_1.parseName)(options.path, options.name || ''); | ||
options.name = parsedPath.name; | ||
options.path = parsedPath.path; | ||
var templateSource = schematics_1.apply(schematics_1.url('./files'), [ | ||
var templateSource = (0, schematics_1.apply)((0, schematics_1.url)('./files'), [ | ||
options.skipTests | ||
? schematics_1.filter(function (path) { return !path.endsWith('.spec.ts.template'); }) | ||
: schematics_1.noop(), | ||
options.minimal ? schematics_1.filter(function (_) { return false; }) : schematics_1.noop(), | ||
schematics_1.applyTemplates(__assign(__assign(__assign({}, schematics_core_1.stringUtils), { 'if-flat': function (s) { | ||
? (0, schematics_1.filter)(function (path) { return !path.endsWith('.spec.ts.template'); }) | ||
: (0, schematics_1.noop)(), | ||
options.minimal ? (0, schematics_1.filter)(function (_) { return false; }) : (0, schematics_1.noop)(), | ||
(0, schematics_1.applyTemplates)(__assign(__assign(__assign({}, schematics_core_1.stringUtils), { 'if-flat': function (s) { | ||
return schematics_core_1.stringUtils.group(options.flat ? '' : s, options.group ? 'effects' : ''); | ||
} }), options)), | ||
schematics_1.move(parsedPath.path), | ||
(0, schematics_1.move)(parsedPath.path), | ||
]); | ||
return schematics_1.chain([ | ||
schematics_1.branchAndMerge(schematics_1.chain([addImportToNgModule(options), schematics_1.mergeWith(templateSource)])), | ||
return (0, schematics_1.chain)([ | ||
(0, schematics_1.branchAndMerge)((0, schematics_1.chain)([addImportToNgModule(options), (0, schematics_1.mergeWith)(templateSource)])), | ||
options && options.skipPackageJson | ||
? schematics_1.noop() | ||
? (0, schematics_1.noop)() | ||
: addNgRxEffectsToPackageJson(), | ||
@@ -131,0 +131,0 @@ ])(host, context); |
{ | ||
"name": "@ngrx/effects/testing", | ||
"typings": "ngrx-effects-testing.d.ts", | ||
"main": "../bundles/ngrx-effects-testing.umd.js", | ||
"module": "../fesm2015/ngrx-effects-testing.js", | ||
"es2015": "../fesm2015/ngrx-effects-testing.js", | ||
"main": "../bundles/core-testing.umd.js", | ||
"module": "../fesm2015/ngrx-effects-testing.mjs", | ||
"es2015": "../fesm2015/testing.js", | ||
"esm5": "../esm5/testing/testing.js", | ||
"esm2015": "../esm2015/testing/ngrx-effects-testing.js", | ||
"esm2015": "../esm2015/testing/testing.js", | ||
"fesm5": "../fesm5/testing.js", | ||
"fesm2015": "../fesm2015/ngrx-effects-testing.js", | ||
"fesm2015": "../fesm2015/ngrx-effects-testing.mjs", | ||
"es2020": "../fesm2020/ngrx-effects-testing.mjs", | ||
"esm2020": "../esm2020/testing/ngrx-effects-testing.mjs", | ||
"fesm2020": "../fesm2020/ngrx-effects-testing.mjs", | ||
"sideEffects": false | ||
} |
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
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
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
1
100
546315
4859