@nexus-ioc/core 0.4.0 → 0.4.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/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-

|
|
2
|
+

|
|
3
3
|

|
|
4
4
|
|
|
5
5
|
Nexus IoC is a powerful and flexible Inversion of Control (IoC) container for TypeScript applications. Inspired by Angular and NestJS, it leverages decorators to provide a simple and efficient way to manage dependencies and modules.
|
|
@@ -26,7 +26,7 @@ Nexus IoC is a powerful and flexible Inversion of Control (IoC) container for Ty
|
|
|
26
26
|
## Installation
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install nexus-ioc reflect-metadata
|
|
29
|
+
npm install @nexus-ioc/core reflect-metadata
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
## Quick Start
|
|
@@ -36,7 +36,7 @@ npm install nexus-ioc reflect-metadata
|
|
|
36
36
|
Create a module and a provider using decorators.
|
|
37
37
|
|
|
38
38
|
```typescript
|
|
39
|
-
import { NsModule, Injectable, Inject } from 'nexus-ioc';
|
|
39
|
+
import { NsModule, Injectable, Inject } from '@nexus-ioc/core';
|
|
40
40
|
|
|
41
41
|
@Injectable()
|
|
42
42
|
class DependencyService {
|
|
@@ -67,7 +67,7 @@ export class AppModule {}
|
|
|
67
67
|
Create and bootstrap your application.
|
|
68
68
|
|
|
69
69
|
```typescript
|
|
70
|
-
import { NexusApplicationsBrowser } from 'nexus-ioc/dist/server';
|
|
70
|
+
import { NexusApplicationsBrowser } from '@nexus-ioc/core/dist/server';
|
|
71
71
|
import { AppModule, AppService } from './app.module';
|
|
72
72
|
|
|
73
73
|
async function bootstrap() {
|
|
@@ -89,14 +89,14 @@ bootstrap();
|
|
|
89
89
|
### Installation
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
npm install nexus-ioc
|
|
92
|
+
npm install @nexus-ioc/testing
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
### Usage
|
|
96
96
|
|
|
97
97
|
```typescript
|
|
98
|
-
import { Injectable } from 'nexus-ioc';
|
|
99
|
-
import { Test } from 'nexus-ioc
|
|
98
|
+
import { Injectable } from '@nexus-ioc/core';
|
|
99
|
+
import { Test } from '@nexus-ioc/testing';
|
|
100
100
|
|
|
101
101
|
describe('AppModule', () => {
|
|
102
102
|
it('should create instance', async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-ioc/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A powerful IoC container for TypeScript applications",
|
|
5
5
|
"author": "Isqanderm <aleksandr.melnik.personal@gmail.com> (https://www.linkedin.com/in/isqander-melnik)",
|
|
6
6
|
"homepage": "https://github.com/Isqanderm/ioc#readme",
|