@o3r/rules-engine 14.0.0-next.5 → 14.0.0-next.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/rules-engine",
|
|
3
|
-
"version": "14.0.0-next.
|
|
3
|
+
"version": "14.0.0-next.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"@ngrx/entity": "^20.0.0",
|
|
51
51
|
"@ngrx/store": "^20.0.0",
|
|
52
52
|
"@ngx-translate/core": "^15.0.0 || ~16.0.4",
|
|
53
|
-
"@o3r/core": "~14.0.0-next.
|
|
54
|
-
"@o3r/extractors": "~14.0.0-next.
|
|
55
|
-
"@o3r/logger": "~14.0.0-next.
|
|
56
|
-
"@o3r/schematics": "~14.0.0-next.
|
|
53
|
+
"@o3r/core": "~14.0.0-next.7",
|
|
54
|
+
"@o3r/extractors": "~14.0.0-next.7",
|
|
55
|
+
"@o3r/logger": "~14.0.0-next.7",
|
|
56
|
+
"@o3r/schematics": "~14.0.0-next.7",
|
|
57
57
|
"@schematics/angular": "^20.0.0",
|
|
58
58
|
"@types/json-schema": "^7.0.15",
|
|
59
59
|
"globby": "^11.1.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
"dependencies": {
|
|
107
|
-
"@o3r/schematics": "~14.0.0-next.
|
|
107
|
+
"@o3r/schematics": "~14.0.0-next.7",
|
|
108
108
|
"tslib": "^2.6.2"
|
|
109
109
|
},
|
|
110
110
|
"engines": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
2
|
/**
|
|
3
3
|
* Update CMS adapter tools
|
|
4
|
-
* @param options @
|
|
4
|
+
* @param options {@link RuleFactory.options}
|
|
5
5
|
* @param options.projectName
|
|
6
6
|
*/
|
|
7
7
|
export declare const updateCmsAdapter: (options: any) => Rule;
|
|
@@ -7,7 +7,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
7
7
|
const schematics_2 = require("@o3r/schematics");
|
|
8
8
|
/**
|
|
9
9
|
* Update CMS adapter tools
|
|
10
|
-
* @param options @
|
|
10
|
+
* @param options {@link RuleFactory.options}
|
|
11
11
|
* @param options.projectName
|
|
12
12
|
*/
|
|
13
13
|
function updateCmsAdapterFn(options) {
|
|
@@ -69,7 +69,7 @@ function updateCmsAdapterFn(options) {
|
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Update CMS adapter tools
|
|
72
|
-
* @param options @
|
|
72
|
+
* @param options {@link RuleFactory.options}
|
|
73
73
|
* @param options.projectName
|
|
74
74
|
*/
|
|
75
75
|
exports.updateCmsAdapter = (0, schematics_2.createOtterSchematic)(updateCmsAdapterFn);
|
|
@@ -94,7 +94,7 @@ function ngGenerateRulesEngineToComponentFn(options) {
|
|
|
94
94
|
const newMembers = node.members
|
|
95
95
|
.filter((classElement) => !((0, schematics_2.findMethodByName)('ngOnInit')(classElement) || (0, schematics_2.findMethodByName)('ngOnDestroy')(classElement)))
|
|
96
96
|
.concat(propertiesToAdd, newNgOnInit, newNgOnDestroy)
|
|
97
|
-
.
|
|
97
|
+
.toSorted(schematics_2.sortClassElement);
|
|
98
98
|
return factory.updateClassDeclaration(node, newModifiers, node.name, node.typeParameters, heritageClauses, newMembers);
|
|
99
99
|
}
|
|
100
100
|
return ts.visitEachChild(node, visit, ctx);
|