@gapi/microservices 1.8.151 → 1.8.153
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 +12 -11
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# @Gapi/microservices
|
|
2
2
|
|
|
3
|
-

|
|
4
4
|
|
|
5
5
|
#### @Gapi Microservices module @StrongTyped
|
|
6
6
|
|
|
7
|
-
##### For questions/issues you can write ticket [here](
|
|
7
|
+
##### For questions/issues you can write ticket [here](https://github.com/Stradivario/gapi/issues)
|
|
8
|
+
|
|
8
9
|
##### This module is intended to be used with [GAPI](https://github.com/Stradivario/gapi)
|
|
9
10
|
|
|
10
11
|
## Installation and basic examples:
|
|
12
|
+
|
|
11
13
|
##### To install this Gapi module, run:
|
|
12
14
|
|
|
13
15
|
```bash
|
|
@@ -17,23 +19,22 @@ $ npm install @gapi/microservices --save
|
|
|
17
19
|
## Consuming gapi-microservices
|
|
18
20
|
|
|
19
21
|
##### Import inside AppModule or CoreModule
|
|
20
|
-
```typescript
|
|
21
22
|
|
|
23
|
+
```typescript
|
|
22
24
|
import { GapiModule } from '@gapi/core';
|
|
23
25
|
import { GapiMicroserviceModule } from '@gapi/microservices';
|
|
24
26
|
|
|
25
27
|
@GapiModule({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
imports: [
|
|
29
|
+
GapiMicroserviceModule.forRoot({
|
|
30
|
+
microservice1: 'http://localhost:1000',
|
|
31
|
+
microservice2: 'http://localhost:1000',
|
|
32
|
+
}),
|
|
33
|
+
],
|
|
32
34
|
})
|
|
33
|
-
export class AppModule {
|
|
35
|
+
export class AppModule {}
|
|
34
36
|
```
|
|
35
37
|
|
|
36
|
-
|
|
37
38
|
TODO: Better documentation...
|
|
38
39
|
|
|
39
40
|
Enjoy ! :)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gapi/microservices",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.153",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/Stradivario/gapi-microservices.git"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"patch": "npm run build && npm version patch && npm publish --update-readme --access public && npm run delete-dist",
|
|
10
10
|
"delete-dist": "rm -rf dist",
|
|
11
11
|
"clean": "git clean -dxf",
|
|
12
|
+
"test": "echo test",
|
|
12
13
|
"lint": "npx eslint . --ext .ts",
|
|
13
14
|
"lint-fix": "npx eslint . --fix --ext .ts",
|
|
14
15
|
"build": "rm -rf dist && tsc || true"
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
],
|
|
25
26
|
"license": "MIT",
|
|
26
27
|
"bugs": {
|
|
27
|
-
"url": "
|
|
28
|
+
"url": "https://github.com/Stradivario/gapi/issues"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
31
|
"apollo-link-http": "^1.5.3",
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
"node-fetch": "^2.1.2"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@rxdi/core": "^0.7.
|
|
36
|
+
"@rxdi/core": "^0.7.182",
|
|
36
37
|
"@gapi/auth": "^1.8.22",
|
|
37
38
|
"@gapi/core": "^1.8.22",
|
|
38
39
|
"@types/graphql": "^14.5.0",
|