vovk 3.0.0-draft.381 → 3.0.0-draft.383

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.
@@ -33,7 +33,7 @@ function isTextFormat(mimeType) {
33
33
  function generateTypeScriptCode({ handlerName, rpcName, packageName, queryValidation, bodyValidation, paramsValidation, outputValidation, iterationValidation, hasArg, }) {
34
34
  const getTsSample = (schema, indent) => (0, getJSONSchemaExample_1.getJSONSchemaExample)(schema, { stripQuotes: true, indent: indent ?? 4 });
35
35
  const getTsFormSample = (schema) => {
36
- let formSample = 'const formData = new FormData();';
36
+ let formSample = '\nconst formData = new FormData();';
37
37
  for (const [key, prop] of Object.entries(schema.properties || {})) {
38
38
  const target = prop.oneOf?.[0] || prop.anyOf?.[0] || prop.allOf?.[0] || prop;
39
39
  const desc = target.description ?? prop.description ?? undefined;
@@ -33,7 +33,7 @@ function isTextFormat(mimeType) {
33
33
  function generateTypeScriptCode({ handlerName, rpcName, packageName, queryValidation, bodyValidation, paramsValidation, outputValidation, iterationValidation, hasArg, }) {
34
34
  const getTsSample = (schema, indent) => (0, getJSONSchemaExample_1.getJSONSchemaExample)(schema, { stripQuotes: true, indent: indent ?? 4 });
35
35
  const getTsFormSample = (schema) => {
36
- let formSample = 'const formData = new FormData();';
36
+ let formSample = '\nconst formData = new FormData();';
37
37
  for (const [key, prop] of Object.entries(schema.properties || {})) {
38
38
  const target = prop.oneOf?.[0] || prop.anyOf?.[0] || prop.allOf?.[0] || prop;
39
39
  const desc = target.description ?? prop.description ?? undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk",
3
- "version": "3.0.0-draft.381",
3
+ "version": "3.0.0-draft.383",
4
4
  "main": "./cjs/index.js",
5
5
  "module": "./mjs/index.js",
6
6
  "types": "./mjs/index.d.ts",