vovk 0.2.3-beta.35 → 0.2.3-beta.36
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/cli/generateClient.js +2 -1
- package/package.json +1 -1
package/cli/generateClient.js
CHANGED
|
@@ -21,6 +21,7 @@ async function generateClient(rcPath) {
|
|
|
21
21
|
const jsonPath = '../../.vovk.json';
|
|
22
22
|
const localJsonPath = path.join('..', jsonPath);
|
|
23
23
|
const fetcherPath = vovkrc.fetcher.startsWith('.') ? path.join(__dirname, '../..', vovkrc.fetcher) : vovkrc.fetcher;
|
|
24
|
+
|
|
24
25
|
const streamFetcherPath = vovkrc.streamFetcher.startsWith('.')
|
|
25
26
|
? path.join(__dirname, '../..', vovkrc.streamFetcher)
|
|
26
27
|
: vovkrc.streamFetcher;
|
|
@@ -52,7 +53,7 @@ type Options = typeof fetcher extends VovkClientFetcher<infer U> ? U : never;
|
|
|
52
53
|
`;
|
|
53
54
|
let js = `const { clientizeController } = require('vovk/client');
|
|
54
55
|
const { promisifyWorker } = require('vovk/worker');
|
|
55
|
-
const metadata = require('${
|
|
56
|
+
const metadata = require('${jsonPath}');
|
|
56
57
|
const { default: fetcher } = require('${fetcherPath}');
|
|
57
58
|
const { default: streamFetcher } = require('${streamFetcherPath}');
|
|
58
59
|
const prefix = '${vovkrc.prefix ?? '/api'}';
|