@mutates/angular 1.3.3 → 2.0.1
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 +9 -5
- package/src/lib/bootstrap/get-bootstrap-application-fn.js +3 -3
- package/src/lib/bootstrap/get-bootstrap-application-fn.js.map +1 -1
- package/src/lib/bootstrap/get-bootstrap-module-fn.js +3 -3
- package/src/lib/bootstrap/get-bootstrap-module-fn.js.map +1 -1
- package/src/lib/component/get-components.d.ts +3 -1
- package/src/lib/component/get-components.js +4 -5
- package/src/lib/component/get-components.js.map +1 -1
- package/src/lib/create-angular-project.js +1 -2
- package/src/lib/create-angular-project.js.map +1 -1
- package/src/lib/directive/get-directives.d.ts +3 -1
- package/src/lib/directive/get-directives.js +4 -5
- package/src/lib/directive/get-directives.js.map +1 -1
- package/src/lib/injectable/get-injectables.d.ts +3 -1
- package/src/lib/injectable/get-injectables.js +4 -5
- package/src/lib/injectable/get-injectables.js.map +1 -1
- package/src/lib/metadata/get-metadata-property.js +1 -2
- package/src/lib/metadata/get-metadata-property.js.map +1 -1
- package/src/lib/metadata/get-metadata.js +7 -7
- package/src/lib/metadata/get-metadata.js.map +1 -1
- package/src/lib/metadata/providers/add-app-providers.js +2 -3
- package/src/lib/metadata/providers/add-app-providers.js.map +1 -1
- package/src/lib/metadata/providers/add-providers.js +1 -2
- package/src/lib/metadata/providers/add-providers.js.map +1 -1
- package/src/lib/metadata/providers/remove-providers.js +1 -2
- package/src/lib/metadata/providers/remove-providers.js.map +1 -1
- package/src/lib/metadata/push-to-metadata-property.js +1 -2
- package/src/lib/metadata/push-to-metadata-property.js.map +1 -1
- package/src/lib/metadata/remove-item-from-metadata-property.js +1 -2
- package/src/lib/metadata/remove-item-from-metadata-property.js.map +1 -1
- package/src/lib/metadata/remove-metadata-property.js +1 -2
- package/src/lib/metadata/remove-metadata-property.js.map +1 -1
- package/src/lib/metadata/set-metadata-property.js +1 -2
- package/src/lib/metadata/set-metadata-property.js.map +1 -1
- package/src/lib/metadata/standalone/is-standalone.js +1 -2
- package/src/lib/metadata/standalone/is-standalone.js.map +1 -1
- package/src/lib/module/get-app-module.js +1 -2
- package/src/lib/module/get-app-module.js.map +1 -1
- package/src/lib/module/get-ng-modules.d.ts +3 -1
- package/src/lib/module/get-ng-modules.js +4 -5
- package/src/lib/module/get-ng-modules.js.map +1 -1
- package/src/lib/pipe/get-pipes.d.ts +3 -1
- package/src/lib/pipe/get-pipes.js +4 -5
- package/src/lib/pipe/get-pipes.js.map +1 -1
- package/src/lib/testing/index.js +1 -2
- package/src/lib/testing/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutates/angular",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"keywords": [
|
|
5
|
-
"typescript",
|
|
6
5
|
"ast",
|
|
6
|
+
"typescript",
|
|
7
7
|
"mutations",
|
|
8
8
|
"angular",
|
|
9
9
|
"schematics"
|
|
@@ -17,18 +17,22 @@
|
|
|
17
17
|
"type": "commonjs",
|
|
18
18
|
"exports": {
|
|
19
19
|
"./package.json": "./package.json",
|
|
20
|
-
".":
|
|
20
|
+
".": {
|
|
21
|
+
"types": "./src/index.d.ts",
|
|
22
|
+
"default": "./src/index.js"
|
|
23
|
+
},
|
|
21
24
|
"./testing": "./src/testing.js"
|
|
22
25
|
},
|
|
23
26
|
"main": "./src/index.js",
|
|
27
|
+
"types": "./src/index.d.ts",
|
|
24
28
|
"typings": "./src/index.d.ts",
|
|
25
29
|
"dependencies": {
|
|
26
|
-
"@mutates/core": "
|
|
30
|
+
"@mutates/core": "2.0.1",
|
|
27
31
|
"tslib": "^2.3.0"
|
|
28
32
|
},
|
|
29
33
|
"peerDependencies": {
|
|
30
34
|
"@angular-devkit/schematics": ">=18.0.0",
|
|
31
|
-
"ts-morph": ">=
|
|
35
|
+
"ts-morph": ">=25.0.0"
|
|
32
36
|
},
|
|
33
37
|
"publishConfig": {
|
|
34
38
|
"access": "public"
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBootstrapApplicationFn =
|
|
3
|
+
exports.getBootstrapApplicationFn = getBootstrapApplicationFn;
|
|
4
4
|
const ts_morph_1 = require("ts-morph");
|
|
5
5
|
const core_1 = require("@mutates/core");
|
|
6
6
|
function getBootstrapApplicationFn(mainFilePath) {
|
|
7
7
|
var _a;
|
|
8
|
-
const [namedImport] = (0, core_1.getNamedImports)((0, core_1.getImports)(
|
|
8
|
+
const [namedImport] = (0, core_1.getNamedImports)((0, core_1.getImports)({
|
|
9
9
|
moduleSpecifier: '@angular/platform-browser',
|
|
10
|
+
pattern: mainFilePath,
|
|
10
11
|
}), {
|
|
11
12
|
name: 'bootstrapApplication',
|
|
12
13
|
});
|
|
@@ -16,5 +17,4 @@ function getBootstrapApplicationFn(mainFilePath) {
|
|
|
16
17
|
return (_a = (0, core_1.getImportRefs)(namedImport)
|
|
17
18
|
.find((ref) => ts_morph_1.Node.isCallExpression(ref.getParent()))) === null || _a === void 0 ? void 0 : _a.getParentIfKind(ts_morph_1.SyntaxKind.CallExpression);
|
|
18
19
|
}
|
|
19
|
-
exports.getBootstrapApplicationFn = getBootstrapApplicationFn;
|
|
20
20
|
//# sourceMappingURL=get-bootstrap-application-fn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bootstrap-application-fn.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/bootstrap/get-bootstrap-application-fn.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-bootstrap-application-fn.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/bootstrap/get-bootstrap-application-fn.ts"],"names":[],"mappings":";;AAKA,8DAkBC;AAtBD,uCAA4C;AAE5C,wCAA2E;AAE3E,SAAgB,yBAAyB,CAAC,YAAoB;;IAC5D,MAAM,CAAC,WAAW,CAAC,GAAG,IAAA,sBAAe,EACnC,IAAA,iBAAU,EAAC;QACT,eAAe,EAAE,2BAA2B;QAC5C,OAAO,EAAE,YAAY;KACtB,CAAC,EACF;QACE,IAAI,EAAE,sBAAsB;KAC7B,CACF,CAAC;IAEF,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO;IACT,CAAC;IAED,OAAO,MAAA,IAAA,oBAAa,EAAC,WAAW,CAAC;SAC9B,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,0CACpD,eAAe,CAAC,qBAAU,CAAC,cAAc,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBootstrapModuleFn =
|
|
3
|
+
exports.getBootstrapModuleFn = getBootstrapModuleFn;
|
|
4
4
|
const ts_morph_1 = require("ts-morph");
|
|
5
5
|
const core_1 = require("@mutates/core");
|
|
6
6
|
function getBootstrapModuleFn(mainFilePath) {
|
|
7
7
|
var _a, _b, _c;
|
|
8
|
-
const namedImport = (0, core_1.getNamedImports)((0, core_1.getImports)(
|
|
8
|
+
const namedImport = (0, core_1.getNamedImports)((0, core_1.getImports)({
|
|
9
9
|
moduleSpecifier: '@angular/platform-browser-dynamic',
|
|
10
|
+
pattern: mainFilePath,
|
|
10
11
|
}), {
|
|
11
12
|
name: 'platformBrowserDynamic',
|
|
12
13
|
});
|
|
13
14
|
return (_c = (_b = (_a = (0, core_1.getImportRefs)(namedImport)
|
|
14
15
|
.find((ref) => ts_morph_1.Node.isCallExpression(ref.getParent()))) === null || _a === void 0 ? void 0 : _a.getParentIfKind(ts_morph_1.SyntaxKind.CallExpression)) === null || _b === void 0 ? void 0 : _b.getParentIfKind(ts_morph_1.SyntaxKind.PropertyAccessExpression)) === null || _c === void 0 ? void 0 : _c.getParentIfKind(ts_morph_1.SyntaxKind.CallExpression);
|
|
15
16
|
}
|
|
16
|
-
exports.getBootstrapModuleFn = getBootstrapModuleFn;
|
|
17
17
|
//# sourceMappingURL=get-bootstrap-module-fn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bootstrap-module-fn.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/bootstrap/get-bootstrap-module-fn.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-bootstrap-module-fn.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/bootstrap/get-bootstrap-module-fn.ts"],"names":[],"mappings":";;AAKA,oDAgBC;AApBD,uCAA4C;AAE5C,wCAA2E;AAE3E,SAAgB,oBAAoB,CAAC,YAAoB;;IACvD,MAAM,WAAW,GAAG,IAAA,sBAAe,EACjC,IAAA,iBAAU,EAAC;QACT,eAAe,EAAE,mCAAmC;QACpD,OAAO,EAAE,YAAY;KACtB,CAAC,EACF;QACE,IAAI,EAAE,wBAAwB;KAC/B,CACF,CAAC;IAEF,OAAO,MAAA,MAAA,MAAA,IAAA,oBAAa,EAAC,WAAW,CAAC;SAC9B,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,0CACpD,eAAe,CAAC,qBAAU,CAAC,cAAc,CAAC,0CAC1C,eAAe,CAAC,qBAAU,CAAC,wBAAwB,CAAC,0CACpD,eAAe,CAAC,qBAAU,CAAC,cAAc,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ClassDeclaration } from 'ts-morph';
|
|
2
2
|
import { Pattern, Query, StructureType } from '@mutates/core';
|
|
3
|
-
export declare function getComponents(
|
|
3
|
+
export declare function getComponents(query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>> & {
|
|
4
|
+
pattern: Pattern;
|
|
5
|
+
}): ClassDeclaration[];
|
|
4
6
|
export declare function isComponent(declaration: ClassDeclaration): boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getComponents = getComponents;
|
|
4
|
+
exports.isComponent = isComponent;
|
|
4
5
|
const core_1 = require("@mutates/core");
|
|
5
|
-
function getComponents(
|
|
6
|
-
return (0, core_1.getClasses)(
|
|
6
|
+
function getComponents(query) {
|
|
7
|
+
return (0, core_1.getClasses)(query).filter(isComponent);
|
|
7
8
|
}
|
|
8
|
-
exports.getComponents = getComponents;
|
|
9
9
|
function isComponent(declaration) {
|
|
10
10
|
return !!declaration.getDecorator('Component');
|
|
11
11
|
}
|
|
12
|
-
exports.isComponent = isComponent;
|
|
13
12
|
//# sourceMappingURL=get-components.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-components.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/component/get-components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-components.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/component/get-components.ts"],"names":[],"mappings":";;AAIA,sCAIC;AAED,kCAEC;AAVD,wCAA0E;AAE1E,SAAgB,aAAa,CAC3B,KAAmF;IAEnF,OAAO,IAAA,iBAAU,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,WAAW,CAAC,WAA6B;IACvD,OAAO,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAngularProject =
|
|
3
|
+
exports.createAngularProject = createAngularProject;
|
|
4
4
|
const core_1 = require("@mutates/core");
|
|
5
5
|
const ng_tree_file_system_1 = require("./ng-tree-file-system");
|
|
6
6
|
function createAngularProject(tree, options) {
|
|
7
7
|
return (0, core_1.createProject)(new ng_tree_file_system_1.NgTreeFileSystem(tree), options);
|
|
8
8
|
}
|
|
9
|
-
exports.createAngularProject = createAngularProject;
|
|
10
9
|
//# sourceMappingURL=create-angular-project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-angular-project.js","sourceRoot":"","sources":["../../../../../packages/angular/src/lib/create-angular-project.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-angular-project.js","sourceRoot":"","sources":["../../../../../packages/angular/src/lib/create-angular-project.ts"],"names":[],"mappings":";;AAOA,oDAEC;AAND,wCAA8C;AAE9C,+DAAyD;AAEzD,SAAgB,oBAAoB,CAAC,IAAU,EAAE,OAA4C;IAC3F,OAAO,IAAA,oBAAa,EAAC,IAAI,sCAAgB,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ClassDeclaration } from 'ts-morph';
|
|
2
2
|
import { Pattern, Query, StructureType } from '@mutates/core';
|
|
3
|
-
export declare function getDirectives(
|
|
3
|
+
export declare function getDirectives(query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>> & {
|
|
4
|
+
pattern: Pattern;
|
|
5
|
+
}): ClassDeclaration[];
|
|
4
6
|
export declare function isDirective(declaration: ClassDeclaration): boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getDirectives = getDirectives;
|
|
4
|
+
exports.isDirective = isDirective;
|
|
4
5
|
const core_1 = require("@mutates/core");
|
|
5
|
-
function getDirectives(
|
|
6
|
-
return (0, core_1.getClasses)(
|
|
6
|
+
function getDirectives(query) {
|
|
7
|
+
return (0, core_1.getClasses)(query).filter(isDirective);
|
|
7
8
|
}
|
|
8
|
-
exports.getDirectives = getDirectives;
|
|
9
9
|
function isDirective(declaration) {
|
|
10
10
|
return !!declaration.getDecorator('Directive');
|
|
11
11
|
}
|
|
12
|
-
exports.isDirective = isDirective;
|
|
13
12
|
//# sourceMappingURL=get-directives.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-directives.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/directive/get-directives.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-directives.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/directive/get-directives.ts"],"names":[],"mappings":";;AAIA,sCAIC;AAED,kCAEC;AAVD,wCAA0E;AAE1E,SAAgB,aAAa,CAC3B,KAAmF;IAEnF,OAAO,IAAA,iBAAU,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,WAAW,CAAC,WAA6B;IACvD,OAAO,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { ClassDeclaration } from 'ts-morph';
|
|
2
2
|
import { Pattern, Query, StructureType } from '@mutates/core';
|
|
3
|
-
export declare function getInjectables(
|
|
3
|
+
export declare function getInjectables(query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>> & {
|
|
4
|
+
pattern: Pattern;
|
|
5
|
+
}): ClassDeclaration[];
|
|
4
6
|
export declare function isInjectable(declaration: ClassDeclaration): boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getInjectables = getInjectables;
|
|
4
|
+
exports.isInjectable = isInjectable;
|
|
4
5
|
const core_1 = require("@mutates/core");
|
|
5
|
-
function getInjectables(
|
|
6
|
-
return (0, core_1.getClasses)(
|
|
6
|
+
function getInjectables(query) {
|
|
7
|
+
return (0, core_1.getClasses)(query).filter(isInjectable);
|
|
7
8
|
}
|
|
8
|
-
exports.getInjectables = getInjectables;
|
|
9
9
|
function isInjectable(declaration) {
|
|
10
10
|
return !!declaration.getDecorator('Injectable');
|
|
11
11
|
}
|
|
12
|
-
exports.isInjectable = isInjectable;
|
|
13
12
|
//# sourceMappingURL=get-injectables.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-injectables.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/injectable/get-injectables.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-injectables.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/injectable/get-injectables.ts"],"names":[],"mappings":";;AAIA,wCAIC;AAED,oCAEC;AAVD,wCAA0E;AAE1E,SAAgB,cAAc,CAC5B,KAAmF;IAEnF,OAAO,IAAA,iBAAU,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,YAAY,CAAC,WAA6B;IACxD,OAAO,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMetadataProperty =
|
|
3
|
+
exports.getMetadataProperty = getMetadataProperty;
|
|
4
4
|
const core_1 = require("@mutates/core");
|
|
5
5
|
const get_metadata_1 = require("./get-metadata");
|
|
6
6
|
function getMetadataProperty(klass, property) {
|
|
@@ -12,5 +12,4 @@ function getMetadataProperty(klass, property) {
|
|
|
12
12
|
name: property,
|
|
13
13
|
}).at(0);
|
|
14
14
|
}
|
|
15
|
-
exports.getMetadataProperty = getMetadataProperty;
|
|
16
15
|
//# sourceMappingURL=get-metadata-property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/get-metadata-property.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/get-metadata-property.ts"],"names":[],"mappings":";;AAOA,kDAaC;AAlBD,wCAAoD;AAGpD,iDAA6C;AAE7C,SAAgB,mBAAmB,CACjC,KAAuB,EACvB,QAAW;IAEX,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC;IAEtC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO;IACT,CAAC;IAED,OAAO,IAAA,0BAAmB,EAAC,QAAQ,EAAE;QACnC,IAAI,EAAE,QAAkB;KACzB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACX,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MetadataType = void 0;
|
|
4
|
+
exports.getMetadata = getMetadata;
|
|
5
|
+
exports.getNgModuleMetadata = getNgModuleMetadata;
|
|
6
|
+
exports.getComponentMetadata = getComponentMetadata;
|
|
7
|
+
exports.getDirectiveMetadata = getDirectiveMetadata;
|
|
8
|
+
exports.getPipeMetadata = getPipeMetadata;
|
|
9
|
+
exports.getInjectableMetadata = getInjectableMetadata;
|
|
4
10
|
const ts_morph_1 = require("ts-morph");
|
|
5
11
|
const core_1 = require("@mutates/core");
|
|
6
12
|
var MetadataType;
|
|
@@ -24,25 +30,19 @@ function getMetadata(klass, metadataType = [
|
|
|
24
30
|
const metadatas = decorators.map((decorator) => decorator.getArguments()).flat();
|
|
25
31
|
return metadatas.filter((metadata) => ts_morph_1.Node.isObjectLiteralExpression(metadata));
|
|
26
32
|
}
|
|
27
|
-
exports.getMetadata = getMetadata;
|
|
28
33
|
function getNgModuleMetadata(klass) {
|
|
29
34
|
return getMetadata(klass, MetadataType.NgModule);
|
|
30
35
|
}
|
|
31
|
-
exports.getNgModuleMetadata = getNgModuleMetadata;
|
|
32
36
|
function getComponentMetadata(klass) {
|
|
33
37
|
return getMetadata(klass, MetadataType.Component);
|
|
34
38
|
}
|
|
35
|
-
exports.getComponentMetadata = getComponentMetadata;
|
|
36
39
|
function getDirectiveMetadata(klass) {
|
|
37
40
|
return getMetadata(klass, MetadataType.Directive);
|
|
38
41
|
}
|
|
39
|
-
exports.getDirectiveMetadata = getDirectiveMetadata;
|
|
40
42
|
function getPipeMetadata(klass) {
|
|
41
43
|
return getMetadata(klass, MetadataType.Pipe);
|
|
42
44
|
}
|
|
43
|
-
exports.getPipeMetadata = getPipeMetadata;
|
|
44
45
|
function getInjectableMetadata(klass) {
|
|
45
46
|
return getMetadata(klass, MetadataType.Injectable);
|
|
46
47
|
}
|
|
47
|
-
exports.getInjectableMetadata = getInjectableMetadata;
|
|
48
48
|
//# sourceMappingURL=get-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-metadata.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/get-metadata.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"get-metadata.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/get-metadata.ts"],"names":[],"mappings":";;;AAYA,kCAmBC;AAED,kDAIC;AAED,oDAIC;AAED,oDAIC;AAED,0CAIC;AAED,sDAIC;AA7DD,uCAA2E;AAE3E,wCAA8C;AAE9C,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;IACvB,6BAAa,CAAA;IACb,yCAAyB,CAAA;AAC3B,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,SAAgB,WAAW,CACzB,KAA4C,EAC5C,eAA8C;IAC5C,YAAY,CAAC,QAAQ;IACrB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,SAAS;IACtB,YAAY,CAAC,IAAI;IACjB,YAAY,CAAC,UAAU;CACxB;IAED,MAAM,UAAU,GAAG,IAAA,oBAAa,EAAC,KAAK,EAAE;QACtC,IAAI,EAAE,YAAY;KACnB,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IAEjF,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAuC,EAAE,CACxE,eAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,CACzC,CAAC;AACJ,CAAC;AAED,SAAgB,mBAAmB,CACjC,KAA4C;IAE5C,OAAO,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,oBAAoB,CAClC,KAA4C;IAE5C,OAAO,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,oBAAoB,CAClC,KAA4C;IAE5C,OAAO,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,eAAe,CAC7B,KAA4C;IAE5C,OAAO,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,qBAAqB,CACnC,KAA4C;IAE5C,OAAO,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,UAAU,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getAppProviders = getAppProviders;
|
|
4
|
+
exports.addAppProviders = addAppProviders;
|
|
4
5
|
const ts_morph_1 = require("ts-morph");
|
|
5
6
|
const core_1 = require("@mutates/core");
|
|
6
7
|
const bootstrap_1 = require("../../bootstrap");
|
|
@@ -20,7 +21,6 @@ function getAppProviders(mainFilePath) {
|
|
|
20
21
|
return (_c = (0, core_1.getObjectProperties)(config, { name: 'providers' })
|
|
21
22
|
.at(0)) === null || _c === void 0 ? void 0 : _c.getInitializerIfKind(ts_morph_1.SyntaxKind.ArrayLiteralExpression);
|
|
22
23
|
}
|
|
23
|
-
exports.getAppProviders = getAppProviders;
|
|
24
24
|
function addAppProviders(mainFilePath, providers) {
|
|
25
25
|
const appProviders = getAppProviders(mainFilePath);
|
|
26
26
|
if (!appProviders) {
|
|
@@ -28,5 +28,4 @@ function addAppProviders(mainFilePath, providers) {
|
|
|
28
28
|
}
|
|
29
29
|
(0, core_1.pushToArrayIfNotExists)(appProviders, ...providers);
|
|
30
30
|
}
|
|
31
|
-
exports.addAppProviders = addAppProviders;
|
|
32
31
|
//# sourceMappingURL=add-app-providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-app-providers.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/providers/add-app-providers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-app-providers.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/providers/add-app-providers.ts"],"names":[],"mappings":";;AAQA,0CAoBC;AAED,0CAQC;AAtCD,uCAAuF;AAEvF,wCAA4E;AAE5E,+CAA4D;AAC5D,yCAA4C;AAC5C,oCAA+C;AAE/C,SAAgB,eAAe,CAAC,YAAoB;;IAClD,MAAM,SAAS,GAAG,IAAA,qBAAY,EAAC,YAAY,CAAC,CAAC;IAE7C,IAAI,SAAS,EAAE,CAAC;QACd,OAAO,MAAA,IAAA,2BAAmB,EAAC,SAAS,EAAE,WAAW,CAAC,0CAAE,oBAAoB,CACtE,qBAAU,CAAC,sBAAsB,CAClC,CAAC;IACJ,CAAC;IAED,MAAM,qBAAqB,GAAG,IAAA,qCAAyB,EAAC,YAAY,CAAC,CAAC;IAEtE,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3B,OAAO;IACT,CAAC;IACD,MAAM,MAAM,GAAG,CAAC,MAAA,qBAAqB,CAAC,YAAY,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,mCACxD,qBAAqB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAA4B,CAAC;IAEnF,OAAO,MAAA,IAAA,0BAAmB,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;SACtD,EAAE,CAAC,CAAC,CAAC,0CACJ,oBAAoB,CAAC,qBAAU,CAAC,sBAAsB,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,eAAe,CAAC,YAAoB,EAAE,SAAmB;IACvE,MAAM,YAAY,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC;IAEnD,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO;IACT,CAAC;IAED,IAAA,6BAAsB,EAAC,YAAY,EAAE,GAAG,SAAS,CAAC,CAAC;AACrD,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addProviders =
|
|
3
|
+
exports.addProviders = addProviders;
|
|
4
4
|
const push_to_metadata_property_1 = require("../push-to-metadata-property");
|
|
5
5
|
function addProviders(ngEntity, providers) {
|
|
6
6
|
(0, push_to_metadata_property_1.pushToMetadataProperty)(ngEntity, 'providers', providers);
|
|
7
7
|
}
|
|
8
|
-
exports.addProviders = addProviders;
|
|
9
8
|
//# sourceMappingURL=add-providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-providers.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/providers/add-providers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-providers.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/providers/add-providers.ts"],"names":[],"mappings":";;AAIA,oCAEC;AAJD,4EAAsE;AAEtE,SAAgB,YAAY,CAAC,QAA0B,EAAE,SAAmB;IAC1E,IAAA,kDAAsB,EAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;AAC3D,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeProviders =
|
|
3
|
+
exports.removeProviders = removeProviders;
|
|
4
4
|
const remove_item_from_metadata_property_1 = require("../remove-item-from-metadata-property");
|
|
5
5
|
function removeProviders(ngEntity, providers) {
|
|
6
6
|
(0, remove_item_from_metadata_property_1.removeItemFromMetadataProperty)(ngEntity, 'providers', providers);
|
|
7
7
|
}
|
|
8
|
-
exports.removeProviders = removeProviders;
|
|
9
8
|
//# sourceMappingURL=remove-providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-providers.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/providers/remove-providers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-providers.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/providers/remove-providers.ts"],"names":[],"mappings":";;AAIA,0CAEC;AAJD,8FAAuF;AAEvF,SAAgB,eAAe,CAAC,QAA0B,EAAE,SAAmB;IAC7E,IAAA,mEAA8B,EAAC,QAAQ,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.pushToMetadataProperty =
|
|
3
|
+
exports.pushToMetadataProperty = pushToMetadataProperty;
|
|
4
4
|
const ts_morph_1 = require("ts-morph");
|
|
5
5
|
const core_1 = require("@mutates/core");
|
|
6
6
|
const get_metadata_1 = require("./get-metadata");
|
|
@@ -22,5 +22,4 @@ function pushToMetadataProperty(klass, property, values) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
exports.pushToMetadataProperty = pushToMetadataProperty;
|
|
26
25
|
//# sourceMappingURL=push-to-metadata-property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-to-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/push-to-metadata-property.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"push-to-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/push-to-metadata-property.ts"],"names":[],"mappings":";;AAOA,wDAuBC;AA9BD,uCAAwD;AAExD,wCAA4E;AAG5E,iDAA6C;AAE7C,SAAgB,sBAAsB,CACpC,KAAuB,EACvB,QAAW,EACX,MAAgB;IAEhB,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC;IAEtC,MAAM,IAAI,GAAG,IAAA,0BAAmB,EAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,QAAkB;KACzB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAET,IAAI,IAAI,EAAE,CAAC;QACT,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,qBAAU,CAAC,sBAAsB,CAAC,CAAC;QAEjF,IAAI,WAAW,EAAE,CAAC;YAChB,IAAA,6BAAsB,EAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;QACjD,CAAC;IACH,CAAC;SAAM,CAAC;QACN,QAAQ,CAAC,qBAAqB,CAAC;YAC7B,IAAI,EAAE,QAAkB;YACxB,WAAW,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG;SACtC,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeItemFromMetadataProperty =
|
|
3
|
+
exports.removeItemFromMetadataProperty = removeItemFromMetadataProperty;
|
|
4
4
|
const ts_morph_1 = require("ts-morph");
|
|
5
5
|
const core_1 = require("@mutates/core");
|
|
6
6
|
const get_metadata_1 = require("./get-metadata");
|
|
@@ -16,5 +16,4 @@ function removeItemFromMetadataProperty(klass, property, values) {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
exports.removeItemFromMetadataProperty = removeItemFromMetadataProperty;
|
|
20
19
|
//# sourceMappingURL=remove-item-from-metadata-property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-item-from-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/remove-item-from-metadata-property.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-item-from-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/remove-item-from-metadata-property.ts"],"names":[],"mappings":";;AAOA,wEAkBC;AAzBD,uCAAwD;AAExD,wCAA6F;AAG7F,iDAA6C;AAE7C,SAAgB,8BAA8B,CAC5C,KAAuB,EACvB,QAAW,EACX,MAAgB;IAEhB,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC;IAEtC,MAAM,IAAI,GAAG,IAAA,0BAAmB,EAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,QAAkB;KACzB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAET,IAAI,IAAI,EAAE,CAAC;QACT,MAAM,WAAW,GAAG,IAAI,CAAC,oBAAoB,CAAC,qBAAU,CAAC,sBAAsB,CAAC,CAAC;QAEjF,IAAI,WAAW,EAAE,CAAC;YAChB,IAAA,sBAAe,EAAC,WAAW,EAAE,GAAG,MAAM,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.removeMetadataProperty =
|
|
3
|
+
exports.removeMetadataProperty = removeMetadataProperty;
|
|
4
4
|
const core_1 = require("@mutates/core");
|
|
5
5
|
const get_metadata_1 = require("./get-metadata");
|
|
6
6
|
function removeMetadataProperty(klass, property) {
|
|
@@ -10,5 +10,4 @@ function removeMetadataProperty(klass, property) {
|
|
|
10
10
|
}).at(0);
|
|
11
11
|
prop === null || prop === void 0 ? void 0 : prop.remove();
|
|
12
12
|
}
|
|
13
|
-
exports.removeMetadataProperty = removeMetadataProperty;
|
|
14
13
|
//# sourceMappingURL=remove-metadata-property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/remove-metadata-property.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/remove-metadata-property.ts"],"names":[],"mappings":";;AAOA,wDAWC;AAhBD,wCAAoD;AAGpD,iDAA6C;AAE7C,SAAgB,sBAAsB,CACpC,KAAuB,EACvB,QAAW;IAEX,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC;IAEtC,MAAM,IAAI,GAAG,IAAA,0BAAmB,EAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,QAAkB;KACzB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAET,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,MAAM,EAAE,CAAC;AACjB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setMetadataProperty =
|
|
3
|
+
exports.setMetadataProperty = setMetadataProperty;
|
|
4
4
|
const core_1 = require("@mutates/core");
|
|
5
5
|
const get_metadata_1 = require("./get-metadata");
|
|
6
6
|
function setMetadataProperty(klass, property, value) {
|
|
@@ -18,5 +18,4 @@ function setMetadataProperty(klass, property, value) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
exports.setMetadataProperty = setMetadataProperty;
|
|
22
21
|
//# sourceMappingURL=set-metadata-property.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/set-metadata-property.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set-metadata-property.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/metadata/set-metadata-property.ts"],"names":[],"mappings":";;AAOA,kDAmBC;AAxBD,wCAAoD;AAGpD,iDAA6C;AAE7C,SAAgB,mBAAmB,CACjC,KAAuB,EACvB,QAAW,EACX,KAAa;IAEb,MAAM,CAAC,QAAQ,CAAC,GAAG,IAAA,0BAAW,EAAC,KAAK,CAAC,CAAC;IAEtC,MAAM,IAAI,GAAG,IAAA,0BAAmB,EAAC,QAAQ,EAAE;QACzC,IAAI,EAAE,QAAkB;KACzB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAET,IAAI,IAAI,EAAE,CAAC;QACT,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;SAAM,CAAC;QACN,QAAQ,CAAC,qBAAqB,CAAC;YAC7B,IAAI,EAAE,QAAkB;YACxB,WAAW,EAAE,KAAK;SACnB,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isStandalone =
|
|
3
|
+
exports.isStandalone = isStandalone;
|
|
4
4
|
const get_metadata_property_1 = require("../get-metadata-property");
|
|
5
5
|
function isStandalone(ngEntity) {
|
|
6
6
|
var _a;
|
|
@@ -10,5 +10,4 @@ function isStandalone(ngEntity) {
|
|
|
10
10
|
}
|
|
11
11
|
return ((_a = property.getInitializer()) === null || _a === void 0 ? void 0 : _a.getText()) === 'true';
|
|
12
12
|
}
|
|
13
|
-
exports.isStandalone = isStandalone;
|
|
14
13
|
//# sourceMappingURL=is-standalone.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-standalone.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/standalone/is-standalone.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"is-standalone.js","sourceRoot":"","sources":["../../../../../../../packages/angular/src/lib/metadata/standalone/is-standalone.ts"],"names":[],"mappings":";;AAIA,oCAQC;AAVD,oEAA+D;AAE/D,SAAgB,YAAY,CAAC,QAA0B;;IACrD,MAAM,QAAQ,GAAG,IAAA,2CAAmB,EAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAE7D,IAAI,CAAC,QAAQ,EAAE,CAAC;QACd,OAAO,KAAK,CAAC;IACf,CAAC;IAED,OAAO,CAAA,MAAA,QAAQ,CAAC,cAAc,EAAE,0CAAE,OAAO,EAAE,MAAK,MAAM,CAAC;AACzD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getAppModule =
|
|
3
|
+
exports.getAppModule = getAppModule;
|
|
4
4
|
const bootstrap_1 = require("../bootstrap");
|
|
5
5
|
function getAppModule(mainFilePath) {
|
|
6
6
|
const bootstrapFn = (0, bootstrap_1.getBootstrapModuleFn)(mainFilePath);
|
|
@@ -11,5 +11,4 @@ function getAppModule(mainFilePath) {
|
|
|
11
11
|
const [mainModuleClass] = mainModuleIdentifier.getDefinitionNodes();
|
|
12
12
|
return mainModuleClass;
|
|
13
13
|
}
|
|
14
|
-
exports.getAppModule = getAppModule;
|
|
15
14
|
//# sourceMappingURL=get-app-module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-app-module.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/module/get-app-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-app-module.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/module/get-app-module.ts"],"names":[],"mappings":";;AAIA,oCAYC;AAdD,4CAAoD;AAEpD,SAAgB,YAAY,CAAC,YAAoB;IAC/C,MAAM,WAAW,GAAG,IAAA,gCAAoB,EAAC,YAAY,CAAC,CAAC;IAEvD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,CAAC,oBAAoB,CAAC,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,YAAY,EAAkB,CAAC;IAE3E,MAAM,CAAC,eAAe,CAAC,GAAG,oBAAoB,CAAC,kBAAkB,EAAwB,CAAC;IAE1F,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ClassDeclaration } from 'ts-morph';
|
|
2
2
|
import { Pattern, Query, StructureType } from '@mutates/core';
|
|
3
|
-
export declare function getNgModule(
|
|
3
|
+
export declare function getNgModule(query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>> & {
|
|
4
|
+
pattern: Pattern;
|
|
5
|
+
}): ClassDeclaration[];
|
|
4
6
|
export declare function isNgModule(declaration: ClassDeclaration): boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getNgModule = getNgModule;
|
|
4
|
+
exports.isNgModule = isNgModule;
|
|
4
5
|
const core_1 = require("@mutates/core");
|
|
5
|
-
function getNgModule(
|
|
6
|
-
return (0, core_1.getClasses)(
|
|
6
|
+
function getNgModule(query) {
|
|
7
|
+
return (0, core_1.getClasses)(query).filter(isNgModule);
|
|
7
8
|
}
|
|
8
|
-
exports.getNgModule = getNgModule;
|
|
9
9
|
function isNgModule(declaration) {
|
|
10
10
|
return !!declaration.getDecorator('NgModule');
|
|
11
11
|
}
|
|
12
|
-
exports.isNgModule = isNgModule;
|
|
13
12
|
//# sourceMappingURL=get-ng-modules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ng-modules.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/module/get-ng-modules.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-ng-modules.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/module/get-ng-modules.ts"],"names":[],"mappings":";;AAIA,kCAIC;AAED,gCAEC;AAVD,wCAA0E;AAE1E,SAAgB,WAAW,CACzB,KAAmF;IAEnF,OAAO,IAAA,iBAAU,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,UAAU,CAAC,WAA6B;IACtD,OAAO,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { ClassDeclaration } from 'ts-morph';
|
|
2
2
|
import { Pattern, Query, StructureType } from '@mutates/core';
|
|
3
|
-
export declare function getPipes(
|
|
3
|
+
export declare function getPipes(query?: Query<Omit<StructureType<ClassDeclaration>, 'kind'>> & {
|
|
4
|
+
pattern: Pattern;
|
|
5
|
+
}): ClassDeclaration[];
|
|
4
6
|
export declare function isPipe(declaration: ClassDeclaration): boolean;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getPipes = getPipes;
|
|
4
|
+
exports.isPipe = isPipe;
|
|
4
5
|
const core_1 = require("@mutates/core");
|
|
5
|
-
function getPipes(
|
|
6
|
-
return (0, core_1.getClasses)(
|
|
6
|
+
function getPipes(query) {
|
|
7
|
+
return (0, core_1.getClasses)(query).filter(isPipe);
|
|
7
8
|
}
|
|
8
|
-
exports.getPipes = getPipes;
|
|
9
9
|
function isPipe(declaration) {
|
|
10
10
|
return !!declaration.getDecorator('Pipe');
|
|
11
11
|
}
|
|
12
|
-
exports.isPipe = isPipe;
|
|
13
12
|
//# sourceMappingURL=get-pipes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-pipes.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/pipe/get-pipes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-pipes.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/pipe/get-pipes.ts"],"names":[],"mappings":";;AAIA,4BAIC;AAED,wBAEC;AAVD,wCAA0E;AAE1E,SAAgB,QAAQ,CACtB,KAAmF;IAEnF,OAAO,IAAA,iBAAU,EAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,MAAM,CAAC,WAA6B;IAClD,OAAO,CAAC,CAAC,WAAW,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC"}
|
package/src/lib/testing/index.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createTestingTree =
|
|
3
|
+
exports.createTestingTree = createTestingTree;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
5
|
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
6
6
|
function createTestingTree() {
|
|
7
7
|
return new testing_1.UnitTestTree(new schematics_1.HostTree());
|
|
8
8
|
}
|
|
9
|
-
exports.createTestingTree = createTestingTree;
|
|
10
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/testing/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/angular/src/lib/testing/index.ts"],"names":[],"mappings":";;AAGA,8CAEC;AALD,2DAAsD;AACtD,gEAAkE;AAElE,SAAgB,iBAAiB;IAC/B,OAAO,IAAI,sBAAY,CAAC,IAAI,qBAAQ,EAAE,CAAC,CAAC;AAC1C,CAAC"}
|