vovk 3.0.0-draft.355 → 3.0.0-draft.357
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/cjs/types.d.ts
CHANGED
|
@@ -290,6 +290,7 @@ type BundleConfig = {
|
|
|
290
290
|
requires?: Record<string, string>;
|
|
291
291
|
tsClientOutDir?: string;
|
|
292
292
|
dontDeleteTsClientOutDirAfter?: boolean;
|
|
293
|
+
origin?: string;
|
|
293
294
|
package?: PackageJson;
|
|
294
295
|
readme?: ReadmeConfig;
|
|
295
296
|
reExports?: Record<string, string>;
|
|
@@ -375,7 +376,7 @@ type VovkUserConfig = {
|
|
|
375
376
|
export type VovkConfig = VovkUserConfig;
|
|
376
377
|
export type VovkStrictConfig = Required<Omit<VovkUserConfig, 'emitConfig' | 'libs' | 'imports' | 'composedClient' | 'segmentedClient' | 'bundle' | 'extendClientWithOpenAPI'>> & {
|
|
377
378
|
emitConfig: (keyof VovkStrictConfig | string)[];
|
|
378
|
-
bundle: RequireAllExcept<NonNullable<VovkUserConfig['bundle']>, 'includeSegments' | 'excludeSegments'>;
|
|
379
|
+
bundle: RequireAllExcept<NonNullable<VovkUserConfig['bundle']>, 'includeSegments' | 'excludeSegments' | 'origin'>;
|
|
379
380
|
imports: {
|
|
380
381
|
fetcher: [string, string] | [string];
|
|
381
382
|
validateOnClient: [string, string] | [string] | null;
|
|
@@ -74,7 +74,10 @@ ${outputValidation ? `print(response)\n${getPySample(outputValidation, 0)}` : ''
|
|
|
74
74
|
: ''}`;
|
|
75
75
|
const serdeUnwrap = (fake) => `from_value(json!(${fake})).unwrap()`;
|
|
76
76
|
const RS_CODE = `use ${packageJson?.rs_name ?? packageNameSnake}::${rpcNameSnake};
|
|
77
|
-
use serde_json::{
|
|
77
|
+
use serde_json::{
|
|
78
|
+
from_value,
|
|
79
|
+
json
|
|
80
|
+
};
|
|
78
81
|
|
|
79
82
|
pub fn main() {
|
|
80
83
|
let response = ${rpcNameSnake}::${handlerNameSnake}(
|
package/mjs/types.d.ts
CHANGED
|
@@ -290,6 +290,7 @@ type BundleConfig = {
|
|
|
290
290
|
requires?: Record<string, string>;
|
|
291
291
|
tsClientOutDir?: string;
|
|
292
292
|
dontDeleteTsClientOutDirAfter?: boolean;
|
|
293
|
+
origin?: string;
|
|
293
294
|
package?: PackageJson;
|
|
294
295
|
readme?: ReadmeConfig;
|
|
295
296
|
reExports?: Record<string, string>;
|
|
@@ -375,7 +376,7 @@ type VovkUserConfig = {
|
|
|
375
376
|
export type VovkConfig = VovkUserConfig;
|
|
376
377
|
export type VovkStrictConfig = Required<Omit<VovkUserConfig, 'emitConfig' | 'libs' | 'imports' | 'composedClient' | 'segmentedClient' | 'bundle' | 'extendClientWithOpenAPI'>> & {
|
|
377
378
|
emitConfig: (keyof VovkStrictConfig | string)[];
|
|
378
|
-
bundle: RequireAllExcept<NonNullable<VovkUserConfig['bundle']>, 'includeSegments' | 'excludeSegments'>;
|
|
379
|
+
bundle: RequireAllExcept<NonNullable<VovkUserConfig['bundle']>, 'includeSegments' | 'excludeSegments' | 'origin'>;
|
|
379
380
|
imports: {
|
|
380
381
|
fetcher: [string, string] | [string];
|
|
381
382
|
validateOnClient: [string, string] | [string] | null;
|
|
@@ -74,7 +74,10 @@ ${outputValidation ? `print(response)\n${getPySample(outputValidation, 0)}` : ''
|
|
|
74
74
|
: ''}`;
|
|
75
75
|
const serdeUnwrap = (fake) => `from_value(json!(${fake})).unwrap()`;
|
|
76
76
|
const RS_CODE = `use ${packageJson?.rs_name ?? packageNameSnake}::${rpcNameSnake};
|
|
77
|
-
use serde_json::{
|
|
77
|
+
use serde_json::{
|
|
78
|
+
from_value,
|
|
79
|
+
json
|
|
80
|
+
};
|
|
78
81
|
|
|
79
82
|
pub fn main() {
|
|
80
83
|
let response = ${rpcNameSnake}::${handlerNameSnake}(
|