@tramvai/module-mocker 2.39.0 → 2.39.2
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 +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ Add module to the project:
|
|
|
36
36
|
|
|
37
37
|
```tsx
|
|
38
38
|
import { createApp } from '@tramvai/core';
|
|
39
|
-
import { MockerModule } from '@tramvai/module-
|
|
39
|
+
import { MockerModule } from '@tramvai/module-mocker';
|
|
40
40
|
|
|
41
41
|
createApp({
|
|
42
42
|
name: 'tincoin',
|
|
@@ -81,7 +81,7 @@ By default, all of the API that has corresponding mock will be mocked. It might
|
|
|
81
81
|
|
|
82
82
|
```tsx
|
|
83
83
|
MockerModule.forRoot({
|
|
84
|
-
config: () => ({
|
|
84
|
+
config: async () => ({
|
|
85
85
|
apis: ['MY_API'],
|
|
86
86
|
}),
|
|
87
87
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/module-mocker",
|
|
3
|
-
"version": "2.39.
|
|
3
|
+
"version": "2.39.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/server.js",
|
|
6
6
|
"browser": "./lib/browser.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
"tslib": "^2.4.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@tramvai/core": "2.39.
|
|
28
|
-
"@tramvai/papi": "2.39.
|
|
29
|
-
"@tramvai/tokens-common": "2.39.
|
|
30
|
-
"@tramvai/tokens-server": "2.39.
|
|
31
|
-
"@tramvai/tokens-server-private": "2.39.
|
|
27
|
+
"@tramvai/core": "2.39.2",
|
|
28
|
+
"@tramvai/papi": "2.39.2",
|
|
29
|
+
"@tramvai/tokens-common": "2.39.2",
|
|
30
|
+
"@tramvai/tokens-server": "2.39.2",
|
|
31
|
+
"@tramvai/tokens-server-private": "2.39.2",
|
|
32
32
|
"@tinkoff/dippy": "0.8.9"
|
|
33
33
|
},
|
|
34
34
|
"license": "Apache-2.0"
|