Skip to content

Commit e07b179

Browse files
author
release bot
committed
1.2.1
1 parent 1b8c4da commit e07b179

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

dist/cli.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ const path = __importStar(require("path"));
4343
* @returns The input value as a string or undefined if not found.
4444
*/
4545
function getInput(name) {
46-
var _a, _b;
4746
const envName = `INPUT_${name.replace(/-/g, "_").toUpperCase()}`;
48-
return (_b = (_a = process.env[envName]) !== null && _a !== void 0 ? _a : process.env[name]) !== null && _b !== void 0 ? _b : undefined;
47+
return process.env[envName] || process.env[name] || undefined;
4948
}
5049
/**
5150
* Parse command-line arguments into an object.

dist/svg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function minifySVG(svg) {
229229
*/
230230
function generateSVG(username_1, githubToken_1) {
231231
return __awaiter(this, arguments, void 0, function* (username, githubToken, options = {}) {
232-
const { enableGhostBricks = true, paddleColor = "#1F6FEB", ballColor = "#1F6FEB", bricksColors = "light", } = options;
232+
const { enableGhostBricks = true, paddleColor = "#1F6FEB", ballColor = "#1F6FEB", bricksColors = "github_light", } = options;
233233
const colorDays = yield fetchGithubContributionsGraphQL(username, githubToken);
234234
// The number of columns (weeks) is determined by the API response
235235
const brickColumnCount = colorDays.length;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-breakout",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Generate a Breakout game SVG from a GitHub user's contributions graph",
55
"main": "src/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)