vovk 0.2.3-beta.34 → 0.2.3-beta.35

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.
@@ -21,13 +21,9 @@ 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
- const localFetcherPath = vovkrc.fetcher.startsWith('.') ? path.join('..', fetcherPath) : fetcherPath;
25
24
  const streamFetcherPath = vovkrc.streamFetcher.startsWith('.')
26
25
  ? path.join(__dirname, '../..', vovkrc.streamFetcher)
27
26
  : vovkrc.streamFetcher;
28
- const localStreamFetcherPath = vovkrc.streamFetcher.startsWith('.')
29
- ? path.join('..', streamFetcherPath)
30
- : streamFetcherPath;
31
27
  const validatePath = vovkrc.validateOnClient?.startsWith('.')
32
28
  ? path.join(__dirname, '../..', vovkrc.validateOnClient)
33
29
  : vovkrc.validateOnClient;
@@ -45,18 +41,6 @@ async function generateClient(rcPath) {
45
41
  throw new Error(`Unble to generate Vovk Client: cannot find ".vovk.json" file '${jsonPath}'.`);
46
42
  }
47
43
 
48
- if (!canRequire(localFetcherPath)) {
49
- throw new Error(
50
- `Unble to generate Vovk Client: cannot find "fetcher" module '${vovkrc.fetcher}'. Check your .vovkrc.js file`
51
- );
52
- }
53
-
54
- if (!canRequire(localStreamFetcherPath)) {
55
- throw new Error(
56
- `Unble to generate Vovk Client: cannot find "streamFetcher" module '${vovkrc.streamFetcher}'. Check your .vovkrc.js file`
57
- );
58
- }
59
-
60
44
  const controllersPath = path.join('../..', vovkrc.route).replace(/\.ts$/, '');
61
45
  let ts = `import type { Controllers, Workers } from "${controllersPath}";
62
46
  import type { clientizeController } from 'vovk/client';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "0.2.3-beta.34",
3
+ "version": "0.2.3-beta.35",
4
4
  "description": "Structural add-on for Next.js",
5
5
  "bin": "./cli/index.js",
6
6
  "scripts": {