New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kubb/core

Package Overview
Dependencies
Maintainers
0
Versions
706
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.0.0-canary-20250121195857 to 0.0.0-canary-20250121223537

dist/FileManager-DcUC8taH.d.cts

4

dist/index.d.ts

@@ -1,3 +0,3 @@

import { U as UserConfig, F as FileManager, P as PluginManager, I as InputPath, a as PluginFactoryOptions, b as UserPluginWithLifeCycle } from './FileManager-VhW4B9yd.js';
export { B as BarrelType, C as Config, c as FileMetaBase, G as GetPluginFactoryOptions, o as Group, d as InputData, O as Output, h as Plugin, n as PluginContext, e as PluginKey, j as PluginLifecycle, k as PluginLifecycleHooks, l as PluginParameter, i as PluginWithLifeCycle, m as ResolveNameParams, R as ResolvePathParams, f as UserPlugin, g as getSource, p as processFiles } from './FileManager-VhW4B9yd.js';
import { U as UserConfig, F as FileManager, P as PluginManager, I as InputPath, a as PluginFactoryOptions, b as UserPluginWithLifeCycle } from './FileManager-ReyBN79g.js';
export { B as BarrelType, C as Config, c as FileMetaBase, G as GetPluginFactoryOptions, o as Group, d as InputData, O as Output, h as Plugin, n as PluginContext, e as PluginKey, j as PluginLifecycle, k as PluginLifecycleHooks, l as PluginParameter, i as PluginWithLifeCycle, m as ResolveNameParams, R as ResolvePathParams, f as UserPlugin, g as getSource, p as processFiles } from './FileManager-ReyBN79g.js';
import { L as Logger } from './logger-DvbHXjIO.js';

@@ -4,0 +4,0 @@ import { PossiblePromise } from '@kubb/types';

@@ -159,8 +159,2 @@ import { EventEmitter, createLogger } from './chunk-E2WLQU27.js';

}
getOptions({ pluginKey }) {
const plugins = [...this.plugins];
plugins.find((plugin) => {
return plugin.key === pluginKey;
});
}
getFile({ name, mode, extname, pluginKey, options }) {

@@ -428,2 +422,10 @@ const baseName = `${name}${extname}`;

}
getPluginByKey(pluginKey) {
const plugins = [...this.plugins];
const [searchPluginName, searchIdentifier] = pluginKey;
return plugins.find((item) => {
const [name] = item.key;
return name === searchPluginName;
});
}
getPluginsByKey(hookName, pluginKey) {

@@ -430,0 +432,0 @@ const plugins = [...this.plugins];

import { ResolvedFile, File } from '@kubb/fs/types';
import { P as PluginManager } from './FileManager-VhW4B9yd.js';
import { P as PluginManager } from './FileManager-ReyBN79g.js';
import { L as Logger } from './logger-DvbHXjIO.js';

@@ -4,0 +4,0 @@ import '@kubb/fs';

@@ -39,2 +39,5 @@ import { getSource, createFile } from './chunk-YYMV5PIX.js';

},
getPluginByKey: (_pluginKey) => {
return void 0;
},
getFile: ({ name: name2, extname, pluginKey }) => {

@@ -41,0 +44,0 @@ const baseName = `${name2}${extname}`;

{
"name": "@kubb/core",
"version": "0.0.0-canary-20250121195857",
"version": "0.0.0-canary-20250121223537",
"description": "Generator core",

@@ -86,5 +86,5 @@ "keywords": [

"semver": "^7.6.3",
"@kubb/fs": "0.0.0-canary-20250121195857",
"@kubb/parser-ts": "0.0.0-canary-20250121195857",
"@kubb/types": "0.0.0-canary-20250121195857"
"@kubb/fs": "0.0.0-canary-20250121223537",
"@kubb/parser-ts": "0.0.0-canary-20250121223537",
"@kubb/types": "0.0.0-canary-20250121223537"
},

@@ -100,4 +100,4 @@ "devDependencies": {

"typescript": "^5.7.3",
"@kubb/config-ts": "0.0.0-canary-20250121195857",
"@kubb/config-tsup": "0.0.0-canary-20250121195857"
"@kubb/config-ts": "0.0.0-canary-20250121223537",
"@kubb/config-tsup": "0.0.0-canary-20250121223537"
},

@@ -104,0 +104,0 @@ "engines": {

@@ -117,10 +117,2 @@ import { FileManager } from './FileManager.ts'

getOptions<TOptions = object>({ pluginKey }: GetOptionsProps<TOptions>) {
const plugins = [...this.plugins]
plugins.find((plugin) => {
return plugin.key === pluginKey
})
}
getFile<TOptions = object>({ name, mode, extname, pluginKey, options }: GetFileProps<TOptions>): KubbFile.File<{ pluginKey: Plugin['key'] }> {

@@ -462,6 +454,17 @@ const baseName = `${name}${extname}` as const

getPluginsByKey(hookName: keyof PluginLifecycle, pluginKey: Plugin['key']): Plugin[] {
getPluginByKey(pluginKey: Plugin['key']): Plugin | undefined {
const plugins = [...this.plugins]
const [searchPluginName, searchIdentifier] = pluginKey
return plugins.find((item) => {
const [name] = item.key
return name === searchPluginName
})
}
getPluginsByKey(hookName: keyof PluginWithLifeCycle, pluginKey: Plugin['key']): Plugin[] {
const plugins = [...this.plugins]
const [searchPluginName, searchIdentifier] = pluginKey
const pluginByPluginName = plugins

@@ -468,0 +471,0 @@ .filter((plugin) => hookName in plugin)

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

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