@ngrx/schematics
Advanced tools
Comparing version 14.3.2 to 15.0.0-beta.0
115
package.json
{ | ||
"name": "@ngrx/schematics", | ||
"version": "14.3.2", | ||
"version": "15.0.0-beta.0", | ||
"description": "NgRx Schematics for Angular", | ||
@@ -43,3 +43,114 @@ "repository": { | ||
"main": "./src/index.js", | ||
"typings": "./src/index.d.ts" | ||
"types": "./src/index.d.ts", | ||
"dependencies": {}, | ||
"peerDependencies": { | ||
"bs-logger": "0.2.6", | ||
"fast-json-stable-stringify": "2.1.0", | ||
"esbuild-wasm": "0.15.11", | ||
"@jest/environment": "28.1.3", | ||
"@jest/fake-timers": "28.1.3", | ||
"@jest/types": "28.1.3", | ||
"@jest/schemas": "28.1.3", | ||
"@sinclair/typebox": "0.24.28", | ||
"@types/istanbul-lib-coverage": "2.0.3", | ||
"@types/istanbul-reports": "3.0.0", | ||
"@types/istanbul-lib-report": "3.0.0", | ||
"@types/yargs": "17.0.10", | ||
"@types/yargs-parser": "20.2.0", | ||
"chalk": "4.1.0", | ||
"ansi-styles": "4.3.0", | ||
"color-convert": "2.0.1", | ||
"color-name": "1.1.4", | ||
"supports-color": "7.2.0", | ||
"has-flag": "4.0.0", | ||
"@sinonjs/fake-timers": "9.1.2", | ||
"@sinonjs/commons": "1.8.3", | ||
"type-detect": "4.0.8", | ||
"jest-message-util": "28.1.3", | ||
"@babel/code-frame": "7.12.13", | ||
"@babel/highlight": "7.13.10", | ||
"@babel/helper-validator-identifier": "7.12.11", | ||
"escape-string-regexp": "1.0.5", | ||
"js-tokens": "4.0.0", | ||
"@types/stack-utils": "2.0.0", | ||
"graceful-fs": "4.2.10", | ||
"micromatch": "4.0.4", | ||
"braces": "3.0.2", | ||
"fill-range": "7.0.1", | ||
"to-regex-range": "5.0.1", | ||
"is-number": "7.0.0", | ||
"picomatch": "2.2.3", | ||
"pretty-format": "28.1.3", | ||
"ansi-regex": "5.0.1", | ||
"react-is": "18.2.0", | ||
"slash": "3.0.0", | ||
"stack-utils": "2.0.3", | ||
"jest-mock": "28.1.3", | ||
"jest-util": "28.1.3", | ||
"ci-info": "3.2.0", | ||
"@types/jsdom": "16.2.15", | ||
"@types/parse5": "6.0.3", | ||
"@types/tough-cookie": "4.0.2", | ||
"jsdom": "19.0.0", | ||
"abab": "2.0.5", | ||
"acorn": "8.7.0", | ||
"acorn-globals": "6.0.0", | ||
"acorn-walk": "7.2.0", | ||
"cssom": "0.5.0", | ||
"cssstyle": "2.3.0", | ||
"data-urls": "3.0.2", | ||
"whatwg-mimetype": "3.0.0", | ||
"whatwg-url": "11.0.0", | ||
"tr46": "3.0.0", | ||
"punycode": "2.1.1", | ||
"webidl-conversions": "7.0.0", | ||
"decimal.js": "10.4.0", | ||
"domexception": "4.0.0", | ||
"escodegen": "2.0.0", | ||
"esprima": "4.0.1", | ||
"estraverse": "5.2.0", | ||
"esutils": "2.0.3", | ||
"optionator": "0.8.3", | ||
"deep-is": "0.1.3", | ||
"fast-levenshtein": "2.0.6", | ||
"levn": "0.3.0", | ||
"prelude-ls": "1.1.2", | ||
"type-check": "0.3.2", | ||
"word-wrap": "1.2.3", | ||
"form-data": "4.0.0", | ||
"asynckit": "0.4.0", | ||
"combined-stream": "1.0.8", | ||
"delayed-stream": "1.0.0", | ||
"mime-types": "2.1.30", | ||
"mime-db": "1.47.0", | ||
"html-encoding-sniffer": "3.0.0", | ||
"whatwg-encoding": "2.0.0", | ||
"iconv-lite": "0.6.3", | ||
"safer-buffer": "2.1.2", | ||
"http-proxy-agent": "5.0.0", | ||
"@tootallnate/once": "2.0.0", | ||
"agent-base": "6.0.2", | ||
"debug": "4.3.1", | ||
"ms": "2.1.2", | ||
"https-proxy-agent": "5.0.1", | ||
"is-potential-custom-element-name": "1.0.1", | ||
"nwsapi": "2.2.0", | ||
"parse5": "6.0.1", | ||
"saxes": "5.0.1", | ||
"xmlchars": "2.2.0", | ||
"symbol-tree": "3.2.4", | ||
"tough-cookie": "4.0.0", | ||
"psl": "1.8.0", | ||
"universalify": "0.1.2", | ||
"w3c-hr-time": "1.0.2", | ||
"browser-process-hrtime": "1.0.0", | ||
"w3c-xmlserializer": "3.0.0", | ||
"xml-name-validator": "4.0.0", | ||
"ws": "8.8.1", | ||
"json5": "2.2.1", | ||
"lodash.memoize": "4.1.2", | ||
"make-error": "1.3.6", | ||
"semver": "7.0.0", | ||
"yargs-parser": "21.0.1" | ||
} | ||
} |
@@ -14,3 +14,3 @@ "use strict"; | ||
exports.__esModule = true; | ||
exports.getNodeDecorators = 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; | ||
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"); | ||
@@ -89,4 +89,2 @@ var ast_utils_1 = require("./utility/ast-utils"); | ||
__createBinding(exports, visitors_1, "visitTemplates"); | ||
var decorators_1 = require("./utility/decorators"); | ||
__createBinding(exports, decorators_1, "getNodeDecorators"); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
exports.__esModule = true; | ||
exports.platformVersion = void 0; | ||
exports.platformVersion = '^14.3.2'; | ||
exports.platformVersion = '^15.0.0-beta.0'; | ||
//# sourceMappingURL=libs-version.js.map |
@@ -60,3 +60,2 @@ "use strict"; | ||
var core_1 = require("@angular-devkit/core"); | ||
var decorators_1 = require("./decorators"); | ||
function visitTSSourceFiles(tree, visitor) { | ||
@@ -161,3 +160,3 @@ var e_1, _a; | ||
var classDeclarationNode = node; | ||
var decorators = (0, decorators_1.getNodeDecorators)(classDeclarationNode); | ||
var decorators = ts.getDecorators(classDeclarationNode); | ||
if (!decorators || !decorators.length) { | ||
@@ -164,0 +163,0 @@ return; |
@@ -13,18 +13,2 @@ "use strict"; | ||
}; | ||
var __read = (this && this.__read) || function (o, n) { | ||
var m = typeof Symbol === "function" && o[Symbol.iterator]; | ||
if (!m) return o; | ||
var i = m.call(o), r, ar = [], e; | ||
try { | ||
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); | ||
} | ||
catch (error) { e = { error: error }; } | ||
finally { | ||
try { | ||
if (r && !r.done && (m = i["return"])) m.call(i); | ||
} | ||
finally { if (e) throw e.error; } | ||
} | ||
return ar; | ||
}; | ||
var __values = (this && this.__values) || function(o) { | ||
@@ -73,10 +57,3 @@ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; | ||
var componentClass = source.statements.find(function (stm) { return stm.kind === ts.SyntaxKind.ClassDeclaration; }); | ||
var component = componentClass; | ||
var componentConstructor = component.members.find(function (member) { return member.kind === ts.SyntaxKind.Constructor; }); | ||
var cmpCtr = componentConstructor; | ||
var pos = cmpCtr.pos; | ||
var constructorText = cmpCtr.getText(); | ||
var _b = __read(constructorText.split('()'), 2), start = _b[0], end = _b[1]; | ||
var storeConstructor = [start, "(private store: Store)", end].join(''); | ||
var constructorUpdate = new schematics_core_1.ReplaceChange(componentPath, pos, " ".concat(constructorText, "\n\n"), "\n\n ".concat(storeConstructor)); | ||
var constructorUpdate = new schematics_core_1.ReplaceChange(componentPath, componentClass.members.pos, '\n', "\n constructor(private store: Store) {}"); | ||
var changes = [storeImport, stateImport, constructorUpdate]; | ||
@@ -91,3 +68,3 @@ var recorder = host.beginUpdate(componentPath); | ||
else if (change instanceof schematics_core_1.ReplaceChange) { | ||
recorder.remove(pos, change.oldText.length); | ||
recorder.remove(change.pos, change.oldText.length); | ||
recorder.insertLeft(change.order, change.newText); | ||
@@ -94,0 +71,0 @@ } |
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
361916
108
120
3695
1