@kubb/core
Advanced tools
Comparing version 0.42.0 to 0.42.1
@@ -233,16 +233,6 @@ import EventEmitter from 'eventemitter3'; | ||
private getCountByStatus; | ||
private getSource; | ||
getSource(file: File): string; | ||
get files(): File[]; | ||
add(file: File): Promise<File>; | ||
addOrAppend(file: File): Promise<File>; | ||
build(file: File): { | ||
source: string; | ||
fileName: string; | ||
path: string; | ||
imports?: { | ||
name: string | string[]; | ||
path: string; | ||
type?: boolean | undefined; | ||
}[] | undefined; | ||
}; | ||
combine(files: Array<File | null>): File[]; | ||
@@ -249,0 +239,0 @@ setStatus(id: UUID, status: Status): void; |
@@ -294,8 +294,2 @@ 'use strict'; | ||
} | ||
build(file) { | ||
return { | ||
...file, | ||
source: this.getSource(file) | ||
}; | ||
} | ||
combine(files) { | ||
@@ -639,3 +633,3 @@ return files.filter(Boolean).reduce((acc, curr) => { | ||
setTimeout(() => { | ||
done({ files: fileManager.files.map((file) => fileManager.build(file)) }); | ||
done({ files: fileManager.files.map((file) => ({ ...file, source: fileManager.getSource(file) })) }); | ||
}, 1e3); | ||
@@ -645,3 +639,3 @@ }); | ||
const { path } = file; | ||
let { source: code } = fileManager.build(file); | ||
let code = fileManager.getSource(file); | ||
const loadedResult = await pluginManager.hookFirst("load", [path]); | ||
@@ -648,0 +642,0 @@ if (loadedResult) { |
{ | ||
"name": "@kubb/core", | ||
"version": "0.42.0", | ||
"version": "0.42.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
1899019
19381