@skuba-lib/api 1.0.0 → 1.1.0-esmify-skuba-20251031135439
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/buildkite/package.json +3 -3
- package/git/package.json +3 -3
- package/github/package.json +3 -3
- package/lib/buildkite/index.cjs +6 -0
- package/lib/buildkite/index.d.cts +2 -0
- package/lib/buildkite/index.d.ts +1 -1
- package/lib/buildkite/index.js +4 -5
- package/lib/{buildkite-BXHjSY0I.js → buildkite-1MxVi5aI.cjs} +5 -7
- package/lib/{buildkite-DSHpKA4z.mjs → buildkite-T3AxO7xj.js} +6 -7
- package/lib/{chunk-CZCtuq8p.mjs → chunk-K8W512Wg.js} +4 -2
- package/lib/error-Cjuiq8qc.js +5213 -0
- package/lib/error-DTOtGCfT.cjs +5302 -0
- package/lib/{exec-p0gJ30UO.mjs → exec-B8ffscIe.cjs} +1104 -4311
- package/lib/{exec-B2akdw0z.js → exec-BxGlzDIX.js} +1088 -4330
- package/lib/git/index.cjs +15 -0
- package/lib/git/index.d.cts +2 -0
- package/lib/git/index.d.ts +1 -1
- package/lib/git/index.js +3 -13
- package/lib/{git-DVG_dHiI.js → git-CVoh5NuS.cjs} +38 -27
- package/lib/{git-DDfcZdbm.mjs → git-DY2CsQad.js} +26 -19
- package/lib/github/index.cjs +13 -0
- package/lib/github/index.d.cts +3 -0
- package/lib/github/index.d.ts +2 -2
- package/lib/github/index.js +4 -12
- package/lib/{github-xHulZVwZ.js → github-12w-L6qW.cjs} +33 -42
- package/lib/{github-DNNceiUe.mjs → github-DIxDo8Ol.js} +31 -41
- package/lib/{index-BbUKGQYi.d.mts → index-B-wXoR4e.d.cts} +3 -1
- package/lib/{index-DKD3ZvXQ.d.mts → index-CDsNrKHE.d.ts} +4 -3
- package/lib/{index-CfnlMf_4.d.ts → index-DIqPXaOm.d.ts} +3 -1
- package/lib/{index-BCtCA5Pc.d.mts → index-DNBQV4bm.d.cts} +3 -1
- package/lib/{index-DxmhY0n5.d.ts → index-DP7jCAGO.d.ts} +3 -1
- package/lib/{index-BTOmI5jA.d.mts → index-DUxL4RE-.d.cts} +3 -1
- package/lib/{index-DO8cP0ap.d.ts → index-Ui4fQDCY.d.ts} +3 -1
- package/lib/{index-D6-lpvm-.d.ts → index-YHYKc43H.d.cts} +4 -3
- package/lib/index.cjs +31 -0
- package/lib/index.d.cts +5 -0
- package/lib/index.d.ts +4 -4
- package/lib/index.js +7 -30
- package/lib/net/index.cjs +5 -0
- package/lib/net/index.d.cts +2 -0
- package/lib/net/index.d.ts +1 -1
- package/lib/net/index.js +4 -4
- package/lib/{net-ByUFe0qv.mjs → net-CblQqfKA.js} +6 -9
- package/lib/{net-BteSPzmU.js → net-DlQ5rY-a.cjs} +7 -9
- package/net/package.json +3 -3
- package/package.json +17 -16
- package/lib/buildkite/index.d.mts +0 -2
- package/lib/buildkite/index.mjs +0 -5
- package/lib/chunk-odGzh3W-.js +0 -58
- package/lib/git/index.d.mts +0 -2
- package/lib/git/index.mjs +0 -3
- package/lib/github/index.d.mts +0 -3
- package/lib/github/index.mjs +0 -5
- package/lib/index.d.mts +0 -5
- package/lib/index.mjs +0 -8
- package/lib/logging-6TTEX4U4.js +0 -2217
- package/lib/logging-Dr8kuQ_p.mjs +0 -2194
- package/lib/net/index.d.mts +0 -2
- package/lib/net/index.mjs +0 -5
package/buildkite/package.json
CHANGED
package/git/package.json
CHANGED
package/github/package.json
CHANGED
package/lib/buildkite/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as annotate, n as md, r as AnnotationStyle } from "../index-DIqPXaOm.js";
|
|
2
2
|
export { AnnotationStyle, annotate, md };
|
package/lib/buildkite/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import "../exec-BxGlzDIX.js";
|
|
2
|
+
import "../error-Cjuiq8qc.js";
|
|
3
|
+
import { n as md, r as annotate } from "../buildkite-T3AxO7xj.js";
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
exports.md = require_buildkite.md;
|
|
5
|
+
export { annotate, md };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_exec = require('./exec-
|
|
3
|
-
const require_logging = require('./logging-6TTEX4U4.js');
|
|
1
|
+
const require_error = require('./error-DTOtGCfT.cjs');
|
|
2
|
+
const require_exec = require('./exec-B8ffscIe.cjs');
|
|
4
3
|
|
|
5
4
|
//#region src/buildkite/annotate.ts
|
|
6
5
|
const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await require_exec.hasCommand("buildkite-agent"));
|
|
@@ -22,9 +21,9 @@ const annotate = async (markdown, opts = {}) => {
|
|
|
22
21
|
if (!await isAnnotationEnabled()) return;
|
|
23
22
|
let truncatedMarkdown = markdown;
|
|
24
23
|
if (markdown.length > MAX_SIZE) {
|
|
25
|
-
const remainingSpace = MAX_SIZE -
|
|
24
|
+
const remainingSpace = MAX_SIZE - 33;
|
|
26
25
|
truncatedMarkdown = markdown.slice(0, remainingSpace) + TRUNCATION_WARNING;
|
|
27
|
-
|
|
26
|
+
require_error.log.warn(`Annotation truncated, full message is: ${markdown}`);
|
|
28
27
|
}
|
|
29
28
|
const context = [opts.scopeContextToStep && process.env.BUILDKITE_STEP_ID, opts.context].filter(Boolean).join("|");
|
|
30
29
|
const { style } = opts;
|
|
@@ -40,8 +39,7 @@ const md = { terminal: (code) => `\`\`\`term\n${code.replace(/```/g, "\\`\\`\\`"
|
|
|
40
39
|
|
|
41
40
|
//#endregion
|
|
42
41
|
//#region src/buildkite/index.ts
|
|
43
|
-
var buildkite_exports = {
|
|
44
|
-
require_chunk.__export(buildkite_exports, {
|
|
42
|
+
var buildkite_exports = /* @__PURE__ */ require_error.__export({
|
|
45
43
|
annotate: () => annotate,
|
|
46
44
|
md: () => md
|
|
47
45
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __export } from "./chunk-
|
|
2
|
-
import { exec, hasCommand } from "./exec-
|
|
3
|
-
import { log } from "./
|
|
1
|
+
import { n as __export } from "./chunk-K8W512Wg.js";
|
|
2
|
+
import { n as exec, r as hasCommand } from "./exec-BxGlzDIX.js";
|
|
3
|
+
import { n as log } from "./error-Cjuiq8qc.js";
|
|
4
4
|
|
|
5
5
|
//#region src/buildkite/annotate.ts
|
|
6
6
|
const isAnnotationEnabled = async () => Boolean(process.env.BUILDKITE && process.env.BUILDKITE_AGENT_ACCESS_TOKEN && process.env.BUILDKITE_JOB_ID && await hasCommand("buildkite-agent"));
|
|
@@ -22,7 +22,7 @@ const annotate = async (markdown, opts = {}) => {
|
|
|
22
22
|
if (!await isAnnotationEnabled()) return;
|
|
23
23
|
let truncatedMarkdown = markdown;
|
|
24
24
|
if (markdown.length > MAX_SIZE) {
|
|
25
|
-
const remainingSpace = MAX_SIZE -
|
|
25
|
+
const remainingSpace = MAX_SIZE - 33;
|
|
26
26
|
truncatedMarkdown = markdown.slice(0, remainingSpace) + TRUNCATION_WARNING;
|
|
27
27
|
log.warn(`Annotation truncated, full message is: ${markdown}`);
|
|
28
28
|
}
|
|
@@ -40,11 +40,10 @@ const md = { terminal: (code) => `\`\`\`term\n${code.replace(/```/g, "\\`\\`\\`"
|
|
|
40
40
|
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region src/buildkite/index.ts
|
|
43
|
-
var buildkite_exports = {
|
|
44
|
-
__export(buildkite_exports, {
|
|
43
|
+
var buildkite_exports = /* @__PURE__ */ __export({
|
|
45
44
|
annotate: () => annotate,
|
|
46
45
|
md: () => md
|
|
47
46
|
});
|
|
48
47
|
|
|
49
48
|
//#endregion
|
|
50
|
-
export { annotate, buildkite_exports
|
|
49
|
+
export { md as n, annotate as r, buildkite_exports as t };
|
|
@@ -10,11 +10,13 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
10
10
|
var __commonJS = (cb, mod) => function() {
|
|
11
11
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
12
|
};
|
|
13
|
-
var __export = (
|
|
13
|
+
var __export = (all) => {
|
|
14
|
+
let target = {};
|
|
14
15
|
for (var name in all) __defProp(target, name, {
|
|
15
16
|
get: all[name],
|
|
16
17
|
enumerable: true
|
|
17
18
|
});
|
|
19
|
+
return target;
|
|
18
20
|
};
|
|
19
21
|
var __copyProps = (to, from, except, desc) => {
|
|
20
22
|
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
@@ -34,4 +36,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
34
36
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
35
37
|
|
|
36
38
|
//#endregion
|
|
37
|
-
export {
|
|
39
|
+
export { __toESM as a, __require as i, __export as n, __reExport as r, __commonJS as t };
|