🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@kubb/core

Package Overview
Dependencies
Maintainers
1
Versions
803
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

to
0.37.18

7

dist/index.d.ts

@@ -180,3 +180,3 @@ import EventEmitter from 'eventemitter3';

declare const getPathMode: (path: string | undefined | null) => PathMode | undefined;
declare const read: (path: string) => Promise<Buffer>;
declare const read: (path: string) => Promise<string>;

@@ -251,3 +251,3 @@ /**

write(...params: Parameters<typeof write>): Promise<void>;
read(...params: Parameters<typeof read>): Promise<Buffer>;
read(...params: Parameters<typeof read>): Promise<string>;
}

@@ -314,2 +314,3 @@

type CorePluginOptions = PluginFactoryOptions<Options, false, PluginContext>;
declare const name: "core";

@@ -381,2 +382,2 @@ /**

export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, EmittedFile, 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, read, validatePlugins, write };
export { Argument0, CLIOptions, Cache, CacheStore, CorePluginOptions, EmittedFile, 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, name, read, validatePlugins, write };

@@ -88,3 +88,3 @@ 'use strict';

try {
return fs.promises.readFile(path);
return fs.promises.readFile(path, { encoding: "utf8" });
} catch (err) {

@@ -546,4 +546,2 @@ console.error(err);

};
// src/build.ts
async function transformReducer(_previousCode, result, _plugin) {

@@ -590,2 +588,7 @@ if (result === null) {

await pluginManager.hookParallel("buildStart", [config]);
pluginManager.fileManager.add({
path: typeof config.input === "string" ? "input" : pathParser.resolve(config.root, config.input.path),
fileName: typeof config.input === "string" ? "input" : config.input.path,
source: typeof config.input === "string" ? config.input : await read(pathParser.resolve(config.root, config.input.path))
});
}

@@ -645,2 +648,3 @@ function build(options) {

exports.isPromise = isPromise;
exports.name = name;
exports.read = read;

@@ -647,0 +651,0 @@ exports.validatePlugins = validatePlugins;

{
"name": "@kubb/core",
"version": "0.37.17",
"version": "0.37.18",
"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