@kubb/core 5.12.1 → 5.12.3
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/{Hookable-D3jKB944.js → Hookable-DPTq2eNO.js} +20 -4
- package/dist/Hookable-DPTq2eNO.js.map +1 -0
- package/dist/index.cjs +19 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/mocks.js +1 -1
- package/package.json +2 -2
- package/dist/Hookable-D3jKB944.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -3546,10 +3546,12 @@ export declare function createResolver<T extends PluginType>(options: ResolverOp
|
|
|
3546
3546
|
* Resolves to the spec path on disk and a `dispose` that deletes the checkout.
|
|
3547
3547
|
*
|
|
3548
3548
|
* With `publicOnly`, the repository must be an https URL on public addresses, the fetch connects to
|
|
3549
|
-
* the addresses checked, and it does not follow a redirect.
|
|
3549
|
+
* the addresses checked, and it does not follow a redirect. `authorization` adds that header to this
|
|
3550
|
+
* fetch only, through {@link gitAuthEnv}.
|
|
3550
3551
|
*/
|
|
3551
|
-
export declare function checkoutGitInput(input: string, signal?: AbortSignal, { publicOnly }?: {
|
|
3552
|
+
export declare function checkoutGitInput(input: string, signal?: AbortSignal, { publicOnly, authorization }?: {
|
|
3552
3553
|
publicOnly?: boolean;
|
|
3554
|
+
authorization?: string;
|
|
3553
3555
|
}): Promise<{
|
|
3554
3556
|
path: string;
|
|
3555
3557
|
dispose: () => Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -324,10 +324,12 @@ export declare function createResolver<T extends PluginType>(options: ResolverOp
|
|
|
324
324
|
* Resolves to the spec path on disk and a `dispose` that deletes the checkout.
|
|
325
325
|
*
|
|
326
326
|
* With `publicOnly`, the repository must be an https URL on public addresses, the fetch connects to
|
|
327
|
-
* the addresses checked, and it does not follow a redirect.
|
|
327
|
+
* the addresses checked, and it does not follow a redirect. `authorization` adds that header to this
|
|
328
|
+
* fetch only, through {@link gitAuthEnv}.
|
|
328
329
|
*/
|
|
329
|
-
export declare function checkoutGitInput(input: string, signal?: AbortSignal, { publicOnly }?: {
|
|
330
|
+
export declare function checkoutGitInput(input: string, signal?: AbortSignal, { publicOnly, authorization }?: {
|
|
330
331
|
publicOnly?: boolean;
|
|
332
|
+
authorization?: string;
|
|
331
333
|
}): Promise<{
|
|
332
334
|
path: string;
|
|
333
335
|
dispose: () => Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as formatMs, B as toError, C as useConfig, D as defineExtension, E as checkCompatibility, F as listFiles, I as read, L as rm$1, M as inParallel, N as existsSync$1, O as resolveMeta, P as isPathInside, R as write, S as tryUseKubb, T as useOptions, _ as kubbContext, b as setOptions, c as Resolver, d as isPublicAddress, f as assertPluginOption, g as injectFile, h as addMacro, j as getElapsedMs, k as Diagnostics, l as getInputKind, m as addGenerator, n as KubbDriver, o as _usingCtx, p as definePlugin, s as createResolver, t as Hookable, u as checkoutGitInput, v as requirePlugin, w as useKubb, x as setResolver, y as setMacros, z as writeRaw } from "./Hookable-
|
|
1
|
+
import { A as formatMs, B as toError, C as useConfig, D as defineExtension, E as checkCompatibility, F as listFiles, I as read, L as rm$1, M as inParallel, N as existsSync$1, O as resolveMeta, P as isPathInside, R as write, S as tryUseKubb, T as useOptions, _ as kubbContext, b as setOptions, c as Resolver, d as isPublicAddress, f as assertPluginOption, g as injectFile, h as addMacro, j as getElapsedMs, k as Diagnostics, l as getInputKind, m as addGenerator, n as KubbDriver, o as _usingCtx, p as definePlugin, s as createResolver, t as Hookable, u as checkoutGitInput, v as requirePlugin, w as useKubb, x as setResolver, y as setMacros, z as writeRaw } from "./Hookable-DPTq2eNO.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { isValid } from "verkit";
|
|
4
4
|
import process$1 from "node:process";
|
package/dist/mocks.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as camelCase, a as FileManager, i as createNodeCache, r as pluginNotFoundError, t as Hookable } from "./Hookable-
|
|
1
|
+
import { V as camelCase, a as FileManager, i as createNodeCache, r as pluginNotFoundError, t as Hookable } from "./Hookable-DPTq2eNO.js";
|
|
2
2
|
import path, { resolve } from "node:path";
|
|
3
3
|
import { applyMacros, ast } from "@kubb/ast";
|
|
4
4
|
import { expect, vi } from "vitest";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/core",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.3",
|
|
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",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"registry": "https://registry.npmjs.org/"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@kubb/ast": "5.12.
|
|
80
|
+
"@kubb/ast": "5.12.3",
|
|
81
81
|
"tinyexec": "^1.3.1",
|
|
82
82
|
"unstorage": "^1.17.6",
|
|
83
83
|
"verkit": "^0.5.0"
|