@alterior/platform-angular 3.11.1 → 3.13.4

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/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './platform';
1
+ export * from './platform';
2
2
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./platform"), exports);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./platform"), exports);
5
5
  //# sourceMappingURL=index.js.map
@@ -1,41 +1,41 @@
1
- import { Provider as AngularProvider } from '@angular/core';
2
- /**
3
- * Provides support for using Alterior modules within a larger Angular host
4
- * application.
5
- *
6
- * ## Important: `import "reflect-metadata";`
7
- * Make sure you `import "reflect-metadata";` at the top
8
- * of your Angular application's entrypoint (usually "main.ts"). If you fail
9
- * to do so, the necessary metadata for some of your Alterior modules may not
10
- * properly load. It is also important to ensure that your overall application
11
- * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
12
- * ensure that only one version is present and all are `deduped`.
13
- *
14
- * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
15
- * Note: If you define Alterior modules and services within your Angular application,
16
- * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
17
- * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
18
- * to be unable to properly resolve the dependency injections within your classes
19
- * defined in the application project.
20
- */
21
- export declare class AngularPlatform {
22
- /**
23
- * Bootstraps an Alterior application module and returns a set of Angular
24
- * compatible dependency injection providers. You should then pass those providers
25
- * to the `providers` declaration of an `@NgModule` or `@Component` class.
26
- *
27
- * @param entryModule
28
- */
29
- static bootstrap(entryModule: any): AngularProvider[];
30
- /**
31
- * Creates a new dynamic Alterior application module which imports the given
32
- * modules and returns a set of Angular-compatible dependency injection
33
- * providers. You should pass the result into the `providers` property of
34
- * an `@NgModule` or `@Component` to make the services provided by
35
- * Alterior available within the scope you are declaring.
36
- *
37
- * @param imports The set of Alterior modules you wish to bootstrap
38
- */
39
- static bridge(...imports: any[]): AngularProvider[];
40
- }
1
+ import { Provider as AngularProvider } from '@angular/core';
2
+ /**
3
+ * Provides support for using Alterior modules within a larger Angular host
4
+ * application.
5
+ *
6
+ * ## Important: `import "reflect-metadata";`
7
+ * Make sure you `import "reflect-metadata";` at the top
8
+ * of your Angular application's entrypoint (usually "main.ts"). If you fail
9
+ * to do so, the necessary metadata for some of your Alterior modules may not
10
+ * properly load. It is also important to ensure that your overall application
11
+ * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
12
+ * ensure that only one version is present and all are `deduped`.
13
+ *
14
+ * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
15
+ * Note: If you define Alterior modules and services within your Angular application,
16
+ * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
17
+ * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
18
+ * to be unable to properly resolve the dependency injections within your classes
19
+ * defined in the application project.
20
+ */
21
+ export declare class AngularPlatform {
22
+ /**
23
+ * Bootstraps an Alterior application module and returns a set of Angular
24
+ * compatible dependency injection providers. You should then pass those providers
25
+ * to the `providers` declaration of an `@NgModule` or `@Component` class.
26
+ *
27
+ * @param entryModule
28
+ */
29
+ static bootstrap(entryModule: any): AngularProvider[];
30
+ /**
31
+ * Creates a new dynamic Alterior application module which imports the given
32
+ * modules and returns a set of Angular-compatible dependency injection
33
+ * providers. You should pass the result into the `providers` property of
34
+ * an `@NgModule` or `@Component` to make the services provided by
35
+ * Alterior available within the scope you are declaring.
36
+ *
37
+ * @param imports The set of Alterior modules you wish to bootstrap
38
+ */
39
+ static bridge(...imports: any[]): AngularProvider[];
40
+ }
41
41
  //# sourceMappingURL=platform.d.ts.map
package/dist/platform.js CHANGED
@@ -1,64 +1,64 @@
1
- "use strict";
2
- /// <reference types="zone.js" />
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AngularPlatform = void 0;
5
- const tslib_1 = require("tslib");
6
- const runtime_1 = require("@alterior/runtime");
7
- const di_1 = require("@alterior/di");
8
- /**
9
- * Provides support for using Alterior modules within a larger Angular host
10
- * application.
11
- *
12
- * ## Important: `import "reflect-metadata";`
13
- * Make sure you `import "reflect-metadata";` at the top
14
- * of your Angular application's entrypoint (usually "main.ts"). If you fail
15
- * to do so, the necessary metadata for some of your Alterior modules may not
16
- * properly load. It is also important to ensure that your overall application
17
- * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
18
- * ensure that only one version is present and all are `deduped`.
19
- *
20
- * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
21
- * Note: If you define Alterior modules and services within your Angular application,
22
- * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
23
- * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
24
- * to be unable to properly resolve the dependency injections within your classes
25
- * defined in the application project.
26
- */
27
- class AngularPlatform {
28
- /**
29
- * Bootstraps an Alterior application module and returns a set of Angular
30
- * compatible dependency injection providers. You should then pass those providers
31
- * to the `providers` declaration of an `@NgModule` or `@Component` class.
32
- *
33
- * @param entryModule
34
- */
35
- static bootstrap(entryModule) {
36
- let app = runtime_1.Application.bootstrap(entryModule);
37
- return app.runtime.providers.map(provider => {
38
- let token = provider['provide'] ? provider['provide'] : provider;
39
- return {
40
- provide: token,
41
- useValue: app.injector.get(token)
42
- };
43
- });
44
- }
45
- /**
46
- * Creates a new dynamic Alterior application module which imports the given
47
- * modules and returns a set of Angular-compatible dependency injection
48
- * providers. You should pass the result into the `providers` property of
49
- * an `@NgModule` or `@Component` to make the services provided by
50
- * Alterior available within the scope you are declaring.
51
- *
52
- * @param imports The set of Alterior modules you wish to bootstrap
53
- */
54
- static bridge(...imports) {
55
- let DynamicEntryModule = class DynamicEntryModule {
56
- };
57
- DynamicEntryModule = tslib_1.__decorate([
58
- (0, di_1.Module)({ imports })
59
- ], DynamicEntryModule);
60
- return AngularPlatform.bootstrap(DynamicEntryModule);
61
- }
62
- }
63
- exports.AngularPlatform = AngularPlatform;
1
+ "use strict";
2
+ /// <reference types="zone.js" />
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AngularPlatform = void 0;
5
+ const tslib_1 = require("tslib");
6
+ const runtime_1 = require("@alterior/runtime");
7
+ const di_1 = require("@alterior/di");
8
+ /**
9
+ * Provides support for using Alterior modules within a larger Angular host
10
+ * application.
11
+ *
12
+ * ## Important: `import "reflect-metadata";`
13
+ * Make sure you `import "reflect-metadata";` at the top
14
+ * of your Angular application's entrypoint (usually "main.ts"). If you fail
15
+ * to do so, the necessary metadata for some of your Alterior modules may not
16
+ * properly load. It is also important to ensure that your overall application
17
+ * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
18
+ * ensure that only one version is present and all are `deduped`.
19
+ *
20
+ * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
21
+ * Note: If you define Alterior modules and services within your Angular application,
22
+ * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
23
+ * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
24
+ * to be unable to properly resolve the dependency injections within your classes
25
+ * defined in the application project.
26
+ */
27
+ class AngularPlatform {
28
+ /**
29
+ * Bootstraps an Alterior application module and returns a set of Angular
30
+ * compatible dependency injection providers. You should then pass those providers
31
+ * to the `providers` declaration of an `@NgModule` or `@Component` class.
32
+ *
33
+ * @param entryModule
34
+ */
35
+ static bootstrap(entryModule) {
36
+ let app = runtime_1.Application.bootstrap(entryModule);
37
+ return app.runtime.providers.map(provider => {
38
+ let token = provider['provide'] ? provider['provide'] : provider;
39
+ return {
40
+ provide: token,
41
+ useValue: app.injector.get(token)
42
+ };
43
+ });
44
+ }
45
+ /**
46
+ * Creates a new dynamic Alterior application module which imports the given
47
+ * modules and returns a set of Angular-compatible dependency injection
48
+ * providers. You should pass the result into the `providers` property of
49
+ * an `@NgModule` or `@Component` to make the services provided by
50
+ * Alterior available within the scope you are declaring.
51
+ *
52
+ * @param imports The set of Alterior modules you wish to bootstrap
53
+ */
54
+ static bridge(...imports) {
55
+ let DynamicEntryModule = class DynamicEntryModule {
56
+ };
57
+ DynamicEntryModule = tslib_1.__decorate([
58
+ (0, di_1.Module)({ imports })
59
+ ], DynamicEntryModule);
60
+ return AngularPlatform.bootstrap(DynamicEntryModule);
61
+ }
62
+ }
63
+ exports.AngularPlatform = AngularPlatform;
64
64
  //# sourceMappingURL=platform.js.map
package/dist/test.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=test.d.ts.map
package/dist/test.js CHANGED
@@ -1,7 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const razmin_1 = require("razmin");
4
- (0, razmin_1.suite)()
5
- .include(['./**/*.test.js'])
6
- .run();
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const razmin_1 = require("razmin");
4
+ (0, razmin_1.suite)()
5
+ .include(['./**/*.test.js'])
6
+ .run();
7
7
  //# sourceMappingURL=test.js.map
@@ -1,2 +1,2 @@
1
- export * from './platform';
1
+ export * from './platform';
2
2
  //# sourceMappingURL=index.d.ts.map
package/dist.esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './platform';
1
+ export * from './platform';
2
2
  //# sourceMappingURL=index.js.map
@@ -1,41 +1,41 @@
1
- import { Provider as AngularProvider } from '@angular/core';
2
- /**
3
- * Provides support for using Alterior modules within a larger Angular host
4
- * application.
5
- *
6
- * ## Important: `import "reflect-metadata";`
7
- * Make sure you `import "reflect-metadata";` at the top
8
- * of your Angular application's entrypoint (usually "main.ts"). If you fail
9
- * to do so, the necessary metadata for some of your Alterior modules may not
10
- * properly load. It is also important to ensure that your overall application
11
- * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
12
- * ensure that only one version is present and all are `deduped`.
13
- *
14
- * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
15
- * Note: If you define Alterior modules and services within your Angular application,
16
- * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
17
- * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
18
- * to be unable to properly resolve the dependency injections within your classes
19
- * defined in the application project.
20
- */
21
- export declare class AngularPlatform {
22
- /**
23
- * Bootstraps an Alterior application module and returns a set of Angular
24
- * compatible dependency injection providers. You should then pass those providers
25
- * to the `providers` declaration of an `@NgModule` or `@Component` class.
26
- *
27
- * @param entryModule
28
- */
29
- static bootstrap(entryModule: any): AngularProvider[];
30
- /**
31
- * Creates a new dynamic Alterior application module which imports the given
32
- * modules and returns a set of Angular-compatible dependency injection
33
- * providers. You should pass the result into the `providers` property of
34
- * an `@NgModule` or `@Component` to make the services provided by
35
- * Alterior available within the scope you are declaring.
36
- *
37
- * @param imports The set of Alterior modules you wish to bootstrap
38
- */
39
- static bridge(...imports: any[]): AngularProvider[];
40
- }
1
+ import { Provider as AngularProvider } from '@angular/core';
2
+ /**
3
+ * Provides support for using Alterior modules within a larger Angular host
4
+ * application.
5
+ *
6
+ * ## Important: `import "reflect-metadata";`
7
+ * Make sure you `import "reflect-metadata";` at the top
8
+ * of your Angular application's entrypoint (usually "main.ts"). If you fail
9
+ * to do so, the necessary metadata for some of your Alterior modules may not
10
+ * properly load. It is also important to ensure that your overall application
11
+ * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
12
+ * ensure that only one version is present and all are `deduped`.
13
+ *
14
+ * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
15
+ * Note: If you define Alterior modules and services within your Angular application,
16
+ * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
17
+ * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
18
+ * to be unable to properly resolve the dependency injections within your classes
19
+ * defined in the application project.
20
+ */
21
+ export declare class AngularPlatform {
22
+ /**
23
+ * Bootstraps an Alterior application module and returns a set of Angular
24
+ * compatible dependency injection providers. You should then pass those providers
25
+ * to the `providers` declaration of an `@NgModule` or `@Component` class.
26
+ *
27
+ * @param entryModule
28
+ */
29
+ static bootstrap(entryModule: any): AngularProvider[];
30
+ /**
31
+ * Creates a new dynamic Alterior application module which imports the given
32
+ * modules and returns a set of Angular-compatible dependency injection
33
+ * providers. You should pass the result into the `providers` property of
34
+ * an `@NgModule` or `@Component` to make the services provided by
35
+ * Alterior available within the scope you are declaring.
36
+ *
37
+ * @param imports The set of Alterior modules you wish to bootstrap
38
+ */
39
+ static bridge(...imports: any[]): AngularProvider[];
40
+ }
41
41
  //# sourceMappingURL=platform.d.ts.map
@@ -1,60 +1,60 @@
1
- /// <reference types="zone.js" />
2
- import { __decorate } from "tslib";
3
- import { Application } from '@alterior/runtime';
4
- import { Module } from '@alterior/di';
5
- /**
6
- * Provides support for using Alterior modules within a larger Angular host
7
- * application.
8
- *
9
- * ## Important: `import "reflect-metadata";`
10
- * Make sure you `import "reflect-metadata";` at the top
11
- * of your Angular application's entrypoint (usually "main.ts"). If you fail
12
- * to do so, the necessary metadata for some of your Alterior modules may not
13
- * properly load. It is also important to ensure that your overall application
14
- * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
15
- * ensure that only one version is present and all are `deduped`.
16
- *
17
- * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
18
- * Note: If you define Alterior modules and services within your Angular application,
19
- * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
20
- * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
21
- * to be unable to properly resolve the dependency injections within your classes
22
- * defined in the application project.
23
- */
24
- export class AngularPlatform {
25
- /**
26
- * Bootstraps an Alterior application module and returns a set of Angular
27
- * compatible dependency injection providers. You should then pass those providers
28
- * to the `providers` declaration of an `@NgModule` or `@Component` class.
29
- *
30
- * @param entryModule
31
- */
32
- static bootstrap(entryModule) {
33
- let app = Application.bootstrap(entryModule);
34
- return app.runtime.providers.map(provider => {
35
- let token = provider['provide'] ? provider['provide'] : provider;
36
- return {
37
- provide: token,
38
- useValue: app.injector.get(token)
39
- };
40
- });
41
- }
42
- /**
43
- * Creates a new dynamic Alterior application module which imports the given
44
- * modules and returns a set of Angular-compatible dependency injection
45
- * providers. You should pass the result into the `providers` property of
46
- * an `@NgModule` or `@Component` to make the services provided by
47
- * Alterior available within the scope you are declaring.
48
- *
49
- * @param imports The set of Alterior modules you wish to bootstrap
50
- */
51
- static bridge(...imports) {
52
- let DynamicEntryModule = class DynamicEntryModule {
53
- };
54
- DynamicEntryModule = __decorate([
55
- Module({ imports })
56
- ], DynamicEntryModule);
57
- return AngularPlatform.bootstrap(DynamicEntryModule);
58
- }
59
- }
1
+ /// <reference types="zone.js" />
2
+ import { __decorate } from "tslib";
3
+ import { Application } from '@alterior/runtime';
4
+ import { Module } from '@alterior/di';
5
+ /**
6
+ * Provides support for using Alterior modules within a larger Angular host
7
+ * application.
8
+ *
9
+ * ## Important: `import "reflect-metadata";`
10
+ * Make sure you `import "reflect-metadata";` at the top
11
+ * of your Angular application's entrypoint (usually "main.ts"). If you fail
12
+ * to do so, the necessary metadata for some of your Alterior modules may not
13
+ * properly load. It is also important to ensure that your overall application
14
+ * has only one version of "reflect-metadata". Use `npm ls reflect-metadata` and
15
+ * ensure that only one version is present and all are `deduped`.
16
+ *
17
+ * ## Enable "emitDecoratorMetadata" if you use Alterior in the app project
18
+ * Note: If you define Alterior modules and services within your Angular application,
19
+ * you will also need to ensure `"emitDecoratorMetadata": true` is present in the
20
+ * `compilerOptions` of your `tsconfig.json`. Failure to do so will cause Alterior
21
+ * to be unable to properly resolve the dependency injections within your classes
22
+ * defined in the application project.
23
+ */
24
+ export class AngularPlatform {
25
+ /**
26
+ * Bootstraps an Alterior application module and returns a set of Angular
27
+ * compatible dependency injection providers. You should then pass those providers
28
+ * to the `providers` declaration of an `@NgModule` or `@Component` class.
29
+ *
30
+ * @param entryModule
31
+ */
32
+ static bootstrap(entryModule) {
33
+ let app = Application.bootstrap(entryModule);
34
+ return app.runtime.providers.map(provider => {
35
+ let token = provider['provide'] ? provider['provide'] : provider;
36
+ return {
37
+ provide: token,
38
+ useValue: app.injector.get(token)
39
+ };
40
+ });
41
+ }
42
+ /**
43
+ * Creates a new dynamic Alterior application module which imports the given
44
+ * modules and returns a set of Angular-compatible dependency injection
45
+ * providers. You should pass the result into the `providers` property of
46
+ * an `@NgModule` or `@Component` to make the services provided by
47
+ * Alterior available within the scope you are declaring.
48
+ *
49
+ * @param imports The set of Alterior modules you wish to bootstrap
50
+ */
51
+ static bridge(...imports) {
52
+ let DynamicEntryModule = class DynamicEntryModule {
53
+ };
54
+ DynamicEntryModule = __decorate([
55
+ Module({ imports })
56
+ ], DynamicEntryModule);
57
+ return AngularPlatform.bootstrap(DynamicEntryModule);
58
+ }
59
+ }
60
60
  //# sourceMappingURL=platform.js.map
@@ -1,2 +1,2 @@
1
- export {};
1
+ export {};
2
2
  //# sourceMappingURL=test.d.ts.map
package/dist.esm/test.js CHANGED
@@ -1,5 +1,5 @@
1
- import { suite } from 'razmin';
2
- suite()
3
- .include(['./**/*.test.js'])
4
- .run();
1
+ import { suite } from 'razmin';
2
+ suite()
3
+ .include(['./**/*.test.js'])
4
+ .run();
5
5
  //# sourceMappingURL=test.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alterior/platform-angular",
3
- "version": "3.11.1",
3
+ "version": "3.13.4",
4
4
  "description": "Use Alterior modules in Angular apps",
5
5
  "author": "The Alterior Project (https://github.com/alterior-mvc)",
6
6
  "license": "MIT",
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "scripts": {
29
29
  "clean": "rimraf dist dist.esm",
30
- "build": "npm run clean && npm run build:cjs && npm run build:esm",
31
- "build:cjs": "tsc",
32
- "build:esm": "tsc -p tsconfig.esm.json",
30
+ "build": "npm run build:cjs && npm run build:esm",
31
+ "build:cjs": "tsc -b",
32
+ "build:esm": "tsc -b tsconfig.esm.json",
33
33
  "prepublishOnly": "npm test",
34
- "test": "npm run build && node dist/test",
35
- "docs": "typedoc ."
34
+ "test": "node dist/test",
35
+ "docs": "typedoc src/index.ts"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@angular/core": "^9 || ^10 || ^11 || ^12 || ^13 || ^14 || ^15 || ^16 || ^17 || ^18"
@@ -42,10 +42,10 @@
42
42
  "rxjs": "^7.8.0"
43
43
  },
44
44
  "dependencies": {
45
- "@alterior/annotations": "^3.11.1",
46
- "@alterior/common": "^3.9.1",
47
- "@alterior/di": "^3.11.1",
48
- "@alterior/runtime": "^3.11.1"
45
+ "@alterior/annotations": "^3.13.4",
46
+ "@alterior/common": "^3.13.4",
47
+ "@alterior/di": "^3.13.4",
48
+ "@alterior/runtime": "^3.13.4"
49
49
  },
50
- "gitHead": "c5ab630693e9bed6f85113d5dc0543e16204774d"
51
- }
50
+ "gitHead": "87f31ea4078faaca53b45573c6a0013cdb40dd07"
51
+ }
@@ -0,0 +1 @@
1
+ {"root":["./src/index.ts","./src/platform.ts","./src/test.ts"],"version":"5.9.3"}
package/tsconfig.json CHANGED
@@ -7,9 +7,7 @@
7
7
  },
8
8
  "include": [ "./src/**/*.ts" ],
9
9
  "typedocOptions": {
10
- "mode": "file",
11
10
  "out": "../../docs/platform-angular",
12
- "target": "ES5",
13
11
  "excludeExternals": true,
14
12
  "excludePrivate": true,
15
13
  "externalPattern": "**/node_modules/**",