@kubb/core 5.3.12 → 5.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.d.ts +22 -0
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -127,7 +127,7 @@ function formatMs(ms) {
|
|
|
127
127
|
/**
|
|
128
128
|
* Docs major version, derived from the package version so the link tracks the published major.
|
|
129
129
|
*/
|
|
130
|
-
const docsMajor = "5.3.
|
|
130
|
+
const docsMajor = "5.3.14".split(".")[0] ?? "5";
|
|
131
131
|
/**
|
|
132
132
|
* Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
|
|
133
133
|
* with no `kind` is treated as a `problem`.
|
|
@@ -2837,6 +2837,7 @@ exports.Hookable = require_usingCtx.Hookable;
|
|
|
2837
2837
|
exports.KubbDriver = KubbDriver;
|
|
2838
2838
|
exports.Resolver = Resolver;
|
|
2839
2839
|
exports.applyConfigDefaults = applyConfigDefaults;
|
|
2840
|
+
exports.cacheStorage = cacheStorage;
|
|
2840
2841
|
exports.cliReporter = cliReporter;
|
|
2841
2842
|
exports.createAdapter = createAdapter;
|
|
2842
2843
|
exports.createCliReporter = createCliReporter;
|
package/dist/index.d.ts
CHANGED
|
@@ -133,6 +133,28 @@ type ResolverOptions<T extends PluginFactoryOptions> = Omit<T['resolver'], keyof
|
|
|
133
133
|
*/
|
|
134
134
|
export declare function createResolver<T extends PluginFactoryOptions>(options: ResolverOptions<T>): T['resolver'];
|
|
135
135
|
//#endregion
|
|
136
|
+
//#region src/storages/cacheStorage.d.ts
|
|
137
|
+
type CacheStorageOptions = {
|
|
138
|
+
/**
|
|
139
|
+
* Project root the cache directory is derived from.
|
|
140
|
+
*
|
|
141
|
+
* @default process.cwd()
|
|
142
|
+
*/
|
|
143
|
+
root?: string;
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* Filesystem storage for build caches rather than generated code. Keys are plain names resolved
|
|
147
|
+
* inside {@link resolveCacheDir}, so a caller stores `'x.json'` without knowing where the cache
|
|
148
|
+
* lives. Kept apart from the configured output storage, which may not be a local disk at all.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```ts
|
|
152
|
+
* const cache = cacheStorage({ root: config.root })
|
|
153
|
+
* await cache.writeItem('output-manifest.json', JSON.stringify(entries))
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
export declare const cacheStorage: (options?: CacheStorageOptions | undefined) => Storage;
|
|
157
|
+
//#endregion
|
|
136
158
|
//#region src/storages/fsStorage.d.ts
|
|
137
159
|
/**
|
|
138
160
|
* Built-in filesystem storage driver.
|
package/dist/index.js
CHANGED
|
@@ -125,7 +125,7 @@ function formatMs(ms) {
|
|
|
125
125
|
/**
|
|
126
126
|
* Docs major version, derived from the package version so the link tracks the published major.
|
|
127
127
|
*/
|
|
128
|
-
const docsMajor = "5.3.
|
|
128
|
+
const docsMajor = "5.3.14".split(".")[0] ?? "5";
|
|
129
129
|
/**
|
|
130
130
|
* Builds a type guard that narrows a {@link Diagnostic} to the variant for `kind`. A diagnostic
|
|
131
131
|
* with no `kind` is treated as a `problem`.
|
|
@@ -2830,6 +2830,6 @@ const memoryStorage = createStorage(() => {
|
|
|
2830
2830
|
};
|
|
2831
2831
|
});
|
|
2832
2832
|
//#endregion
|
|
2833
|
-
export { Diagnostics, Hookable, KubbDriver, Resolver, applyConfigDefaults, cliReporter, createAdapter, createCliReporter, createKubb, createRenderer, createReporter, createResolver, createStorage, defineGenerator, defineParser, definePlugin, fileReporter, fsStorage, getInputKind, htmlReporter, jsonReporter, logLevel, memoryStorage };
|
|
2833
|
+
export { Diagnostics, Hookable, KubbDriver, Resolver, applyConfigDefaults, cacheStorage, cliReporter, createAdapter, createCliReporter, createKubb, createRenderer, createReporter, createResolver, createStorage, defineGenerator, defineParser, definePlugin, fileReporter, fsStorage, getInputKind, htmlReporter, jsonReporter, logLevel, memoryStorage };
|
|
2834
2834
|
|
|
2835
2835
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.14",
|
|
4
4
|
"description": "Core engine for Kubb. Provides the plugin driver, file manager and build orchestration used by every Kubb plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"code-generator",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"registry": "https://registry.npmjs.org/"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@kubb/ast": "5.3.
|
|
75
|
+
"@kubb/ast": "5.3.14"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@internals/utils": "0.0.1",
|