@kud/cli-shot 0.3.0 → 0.3.1
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/{chunk-ISLF4ISU.js → chunk-J6GAXRMG.js} +14 -2
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -40,6 +40,16 @@ var isExecutable = (path) => {
|
|
|
40
40
|
return false;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
+
var CI_MARKERS = ["CI", "CONTINUOUS_INTEGRATION"];
|
|
44
|
+
var childEnv = (base, extra = {}) => {
|
|
45
|
+
const merged = { ...base };
|
|
46
|
+
for (const key of CI_MARKERS) delete merged[key];
|
|
47
|
+
return Object.fromEntries(
|
|
48
|
+
Object.entries({ ...merged, ...extra }).filter(
|
|
49
|
+
(entry) => entry[1] !== void 0
|
|
50
|
+
)
|
|
51
|
+
);
|
|
52
|
+
};
|
|
43
53
|
var DEFAULT_COLS = 110;
|
|
44
54
|
var DEFAULT_ROWS = 32;
|
|
45
55
|
var capture = (command, args = [], {
|
|
@@ -60,7 +70,7 @@ var capture = (command, args = [], {
|
|
|
60
70
|
name: "xterm-256color",
|
|
61
71
|
cols,
|
|
62
72
|
rows,
|
|
63
|
-
env:
|
|
73
|
+
env: childEnv(process.env, env)
|
|
64
74
|
});
|
|
65
75
|
} catch (error) {
|
|
66
76
|
reject(explainSpawnFailure(error, command));
|
|
@@ -124,7 +134,9 @@ var capture = (command, args = [], {
|
|
|
124
134
|
clearTimeout(hard);
|
|
125
135
|
reject(
|
|
126
136
|
explainSpawnFailure(
|
|
127
|
-
new Error(
|
|
137
|
+
new Error(
|
|
138
|
+
`the command exited ${exitCode} without drawing a screen`
|
|
139
|
+
),
|
|
128
140
|
command
|
|
129
141
|
)
|
|
130
142
|
);
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { FORMATS, DEFAULT_FONT, listScreens, shootScreens, shootAll } from './chunk-
|
|
2
|
+
import { FORMATS, DEFAULT_FONT, listScreens, shootScreens, shootAll } from './chunk-J6GAXRMG.js';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
|
|
5
5
|
// src/flags.ts
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DEFAULT_FONT, DEFAULT_FPS, DEFAULT_HOLD, FORMATS, MOVIE_FORMATS, VERCEL_CONFIG, buildPlayer, capture, castEvent, castHeader, drivenScreen, hasFfmpeg, launchBrowser, listScreens, movieFrames, parseCast, shootAll, shootFormats, shootScreen, shootScreens, toCast, toImage, toMovie } from './chunk-
|
|
1
|
+
export { DEFAULT_FONT, DEFAULT_FPS, DEFAULT_HOLD, FORMATS, MOVIE_FORMATS, VERCEL_CONFIG, buildPlayer, capture, castEvent, castHeader, drivenScreen, hasFfmpeg, launchBrowser, listScreens, movieFrames, parseCast, shootAll, shootFormats, shootScreen, shootScreens, toCast, toImage, toMovie } from './chunk-J6GAXRMG.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/cli-shot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Automatic screenshots and recordings of interactive CLIs — pty capture, terminal emulation, PNG, asciicast, a web player, GIF or MP4 out",
|
|
6
6
|
"license": "MIT",
|