@kubb/core
Advanced tools
Comparing version 0.47.0 to 0.47.1
@@ -198,2 +198,8 @@ import EventEmitter from 'eventemitter3'; | ||
type Data = string[][]; | ||
type Options$1 = { | ||
typed?: boolean; | ||
}; | ||
declare const objectToParameters: (data: Data, options?: Options$1) => string; | ||
type Import = { | ||
@@ -383,2 +389,2 @@ name: string | string[]; | ||
export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, File, FileManager, FileName, Generator, KubbBuild, KubbConfig, KubbJSONPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, LogType, Logger, MaybePromise, OptionalPath, Path, PathMode, PluginContext, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, ResolveIdParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, UUID, ValidationPluginError, build, clean, createPlugin, createPluginCache, build as default, defineConfig, format, getPathMode, getRelativePath, hooks, isPromise, isURL, name, read, validatePlugins, write }; | ||
export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, File, FileManager, FileName, Generator, KubbBuild, KubbConfig, KubbJSONPlugin, KubbPlugin, KubbPluginKind, KubbUserConfig, LogLevel, LogType, Logger, MaybePromise, OptionalPath, Path, PathMode, PluginContext, PluginFactoryOptions, PluginLifecycle, PluginLifecycleHooks, PluginManager, ResolveIdParams, SchemaGenerator, Status, Strategy, TransformResult, TreeNode, UUID, ValidationPluginError, build, clean, createPlugin, createPluginCache, build as default, defineConfig, format, getPathMode, getRelativePath, hooks, isPromise, isURL, name, objectToParameters, read, validatePlugins, write }; |
@@ -131,2 +131,14 @@ 'use strict'; | ||
// src/utils/objectToParameters.ts | ||
var objectToParameters = (data, options = {}) => { | ||
return data.reduce((acc, [key, value]) => { | ||
if (options.typed) { | ||
acc.push(`${key}: ${value}["${key}"], `); | ||
} else { | ||
acc.push(`${key},`); | ||
} | ||
return acc; | ||
}, []).join(""); | ||
}; | ||
// src/plugin.ts | ||
@@ -749,2 +761,3 @@ function createPlugin(factory) { | ||
exports.name = name; | ||
exports.objectToParameters = objectToParameters; | ||
exports.read = read; | ||
@@ -751,0 +764,0 @@ exports.validatePlugins = validatePlugins; |
{ | ||
"name": "@kubb/core", | ||
"version": "0.47.0", | ||
"version": "0.47.1", | ||
"description": "Generator core", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2435671
23665