@kubb/core 5.12.3 → 5.12.4
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
CHANGED
|
@@ -45,7 +45,7 @@ unstorage_drivers_fs = __toESM(unstorage_drivers_fs, 1);
|
|
|
45
45
|
let node_url = require("node:url");
|
|
46
46
|
let node_module = require("node:module");
|
|
47
47
|
//#region package.json
|
|
48
|
-
var version = "5.12.
|
|
48
|
+
var version = "5.12.4";
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region ../../internals/utils/src/casing.ts
|
|
51
51
|
/**
|
|
@@ -1540,7 +1540,11 @@ async function resolvePublicFetchConfig(repo, signal) {
|
|
|
1540
1540
|
addresses
|
|
1541
1541
|
});
|
|
1542
1542
|
}
|
|
1543
|
-
/**
|
|
1543
|
+
/**
|
|
1544
|
+
* The `GIT_CONFIG_*` pair that sends an `Authorization` header to `repo`'s origin, numbered after
|
|
1545
|
+
* the pairs already in `env`, so the token stays out of the process arguments. Throws
|
|
1546
|
+
* `KUBB_GIT_INPUT_FAILED` for a value with a line break, which would add another header.
|
|
1547
|
+
*/
|
|
1544
1548
|
function gitAuthEnv(env, { repo, authorization }) {
|
|
1545
1549
|
if (/[\r\n]/.test(authorization) || !URL.canParse(repo)) throw gitError("The authorization for a git `input` must be one line, for an https repository.");
|
|
1546
1550
|
const index = Math.max(0, Number.parseInt(env.GIT_CONFIG_COUNT ?? "", 10) || 0);
|