Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kubb/core

Package Overview
Dependencies
Maintainers
1
Versions
662
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kubb/core - npm Package Compare versions

Comparing version 0.46.0 to 0.47.0

8

dist/index.d.ts

@@ -196,2 +196,4 @@ import EventEmitter from 'eventemitter3';

declare const format: (source: string) => string;
type Import = {

@@ -241,3 +243,5 @@ name: string | string[];

private getCountByStatus;
getSource(file: File): string;
getSource(file: File, options?: {
format?: boolean;
}): string;
get files(): File[];

@@ -380,2 +384,2 @@ add(file: File): Promise<File>;

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, 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, read, validatePlugins, write };

@@ -9,2 +9,3 @@ 'use strict';

var rimraf = require('rimraf');
var beautify = require('js-beautify');
var EventEmitter = require('eventemitter3');

@@ -19,2 +20,3 @@ var uniq = require('lodash.uniq');

var rimraf__default = /*#__PURE__*/_interopDefault(rimraf);
var beautify__default = /*#__PURE__*/_interopDefault(beautify);
var EventEmitter__default = /*#__PURE__*/_interopDefault(EventEmitter);

@@ -118,2 +120,14 @@ var uniq__default = /*#__PURE__*/_interopDefault(uniq);

};
var formatOptions = {
indent_size: 1,
indent_char: " ",
max_preserve_newlines: 5,
preserve_newlines: true,
brace_style: "collapse",
space_before_conditional: true,
wrap_line_length: 160
};
var format = (source) => {
return beautify__default.default(source, formatOptions);
};

@@ -250,3 +264,3 @@ // src/plugin.ts

}
getSource(file) {
getSource(file, options = { format: true }) {
if (!file.fileName.endsWith(".ts")) {

@@ -275,5 +289,12 @@ return file.source;

if (importSource) {
if (options.format) {
return format(`${importSource}
${file.source}`);
}
return `${importSource}
${file.source}`;
}
if (options.format) {
return format(file.source);
}
return file.source;

@@ -725,2 +746,3 @@ }

exports.defineConfig = defineConfig;
exports.format = format;
exports.getPathMode = getPathMode;

@@ -727,0 +749,0 @@ exports.getRelativePath = getRelativePath;

{
"name": "@kubb/core",
"version": "0.46.0",
"version": "0.47.0",
"description": "Generator core",

@@ -49,3 +49,4 @@ "repository": {

"typescript": "^4.9.5",
"uuid": "^9.0.0"
"uuid": "^9.0.0",
"js-beautify": "^1.14.7"
},

@@ -55,3 +56,4 @@ "devDependencies": {

"@types/lodash.uniq": "^4.5.7",
"tsup": "^6.6.3"
"tsup": "^6.6.3",
"@types/js-beautify": "^1.13.3"
},

@@ -58,0 +60,0 @@ "publishConfig": {

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc