vovk-cli 0.0.1-draft.60 → 0.0.1-draft.61

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.
@@ -1,6 +1,6 @@
1
1
  <%- '// auto-generated\n/* eslint-disable */' %>
2
- import { default as fetcher } from '<%= fetcherClientImportPath %>';
3
- import { default as createRPC } from '<%= createRPCImportPath %>';
2
+ import fetcherImport from '<%= fetcherClientImportPath %>';
3
+ import createRPC from '<%= createRPCImportPath %>';
4
4
  import schema from '<%= schemaOutImportPath %>';
5
5
  <% if (validateOnClientImportPath) { %>
6
6
  import validateOnClient from '<%= validateOnClientImportPath %>';
@@ -8,6 +8,7 @@ import validateOnClient from '<%= validateOnClientImportPath %>';
8
8
  const validateOnClient = undefined;
9
9
  <% } %>
10
10
  const apiRoot = '<%= apiRoot %>';
11
+ const fetcher = fetcherImport.default || fetcherImport;
11
12
 
12
13
  <% segments.forEach((segment, i) => { %>
13
14
  <% Object.keys(segmentsSchema[segment.segmentName].controllers).forEach((key) => { %>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.60",
3
+ "version": "0.0.1-draft.61",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },