Release 0.11.0

This commit is contained in:
github-actions 2025-01-05 22:57:32 +00:00
parent 438b351914
commit 465f1612ad
7 changed files with 82 additions and 43 deletions

49
dist/main/index.js vendored
View file

@ -129,6 +129,9 @@ if (externalCacheConfig) {
}
}
const token = core.getInput('token')
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
module.exports = {
baseCacheKey,
bazeliskCache: {
@ -95701,6 +95704,14 @@ module.exports = require("node:assert");
/***/ }),
/***/ 4573:
/***/ ((module) => {
"use strict";
module.exports = require("node:buffer");
/***/ }),
/***/ 8474:
/***/ ((module) => {
@ -95709,6 +95720,14 @@ module.exports = require("node:events");
/***/ }),
/***/ 1708:
/***/ ((module) => {
"use strict";
module.exports = require("node:process");
/***/ }),
/***/ 7075:
/***/ ((module) => {
@ -97838,6 +97857,7 @@ exports.composeScalar = composeScalar;
"use strict";
var node_process = __nccwpck_require__(1708);
var directives = __nccwpck_require__(1342);
var Document = __nccwpck_require__(3021);
var errors = __nccwpck_require__(1464);
@ -97971,7 +97991,7 @@ class Composer {
}
/** Advance the composer by one CST token. */
*next(token) {
if (process.env.LOG_STREAM)
if (node_process.env.LOG_STREAM)
console.dir(token, { depth: null });
switch (token.type) {
case 'directive':
@ -99013,7 +99033,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
if (atNewline) {
if (comment)
comment += token.source;
else
else if (!found || indicator !== 'seq-item-ind')
spaceBefore = true;
}
else
@ -100146,19 +100166,21 @@ exports.visitAsync = visit.visitAsync;
/***/ }),
/***/ 7249:
/***/ ((__unused_webpack_module, exports) => {
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
var node_process = __nccwpck_require__(1708);
function debug(logLevel, ...messages) {
if (logLevel === 'debug')
console.log(...messages);
}
function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') {
if (typeof process !== 'undefined' && process.emitWarning)
process.emitWarning(warning);
if (typeof node_process.emitWarning === 'function')
node_process.emitWarning(warning);
else
console.warn(warning);
}
@ -102334,6 +102356,7 @@ exports.LineCounter = LineCounter;
"use strict";
var node_process = __nccwpck_require__(1708);
var cst = __nccwpck_require__(3461);
var lexer = __nccwpck_require__(361);
@ -102500,7 +102523,7 @@ class Parser {
*/
*next(source) {
this.source = source;
if (process.env.LOG_TOKENS)
if (node_process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source));
if (this.atScalar) {
this.atScalar = false;
@ -103911,6 +103934,7 @@ exports.getTags = getTags;
"use strict";
var node_buffer = __nccwpck_require__(4573);
var Scalar = __nccwpck_require__(3301);
var stringifyString = __nccwpck_require__(3069);
@ -103927,8 +103951,8 @@ const binary = {
* document.querySelector('#photo').src = URL.createObjectURL(blob)
*/
resolve(src, onError) {
if (typeof Buffer === 'function') {
return Buffer.from(src, 'base64');
if (typeof node_buffer.Buffer === 'function') {
return node_buffer.Buffer.from(src, 'base64');
}
else if (typeof atob === 'function') {
// On IE 11, atob() can't handle newlines
@ -103946,11 +103970,11 @@ const binary = {
stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
const buf = value; // checked earlier by binary.identify()
let str;
if (typeof Buffer === 'function') {
if (typeof node_buffer.Buffer === 'function') {
str =
buf instanceof Buffer
buf instanceof node_buffer.Buffer
? buf.toString('base64')
: Buffer.from(buf.buffer).toString('base64');
: node_buffer.Buffer.from(buf.buffer).toString('base64');
}
else if (typeof btoa === 'function') {
let s = '';
@ -106175,8 +106199,7 @@ async function downloadBazelisk() {
filename = `${filename}.exe`
}
const token = core.getInput('token')
const octokit = github.getOctokit(token, {
const octokit = github.getOctokit(process.env.BAZELISK_GITHUB_TOKEN, {
baseUrl: 'https://api.github.com'
})
const { data: releases } = await octokit.rest.repos.listReleases({

File diff suppressed because one or more lines are too long

38
dist/post/index.js vendored
View file

@ -129,6 +129,9 @@ if (externalCacheConfig) {
}
}
const token = core.getInput('token')
core.exportVariable('BAZELISK_GITHUB_TOKEN', token)
module.exports = {
baseCacheKey,
bazeliskCache: {
@ -94778,6 +94781,14 @@ module.exports = require("node:assert");
/***/ }),
/***/ 4573:
/***/ ((module) => {
"use strict";
module.exports = require("node:buffer");
/***/ }),
/***/ 8474:
/***/ ((module) => {
@ -96915,6 +96926,7 @@ exports.composeScalar = composeScalar;
"use strict";
var node_process = __nccwpck_require__(1708);
var directives = __nccwpck_require__(1342);
var Document = __nccwpck_require__(3021);
var errors = __nccwpck_require__(1464);
@ -97048,7 +97060,7 @@ class Composer {
}
/** Advance the composer by one CST token. */
*next(token) {
if (process.env.LOG_STREAM)
if (node_process.env.LOG_STREAM)
console.dir(token, { depth: null });
switch (token.type) {
case 'directive':
@ -98090,7 +98102,7 @@ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIn
if (atNewline) {
if (comment)
comment += token.source;
else
else if (!found || indicator !== 'seq-item-ind')
spaceBefore = true;
}
else
@ -99223,19 +99235,21 @@ exports.visitAsync = visit.visitAsync;
/***/ }),
/***/ 7249:
/***/ ((__unused_webpack_module, exports) => {
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
"use strict";
var node_process = __nccwpck_require__(1708);
function debug(logLevel, ...messages) {
if (logLevel === 'debug')
console.log(...messages);
}
function warn(logLevel, warning) {
if (logLevel === 'debug' || logLevel === 'warn') {
if (typeof process !== 'undefined' && process.emitWarning)
process.emitWarning(warning);
if (typeof node_process.emitWarning === 'function')
node_process.emitWarning(warning);
else
console.warn(warning);
}
@ -101411,6 +101425,7 @@ exports.LineCounter = LineCounter;
"use strict";
var node_process = __nccwpck_require__(1708);
var cst = __nccwpck_require__(3461);
var lexer = __nccwpck_require__(361);
@ -101577,7 +101592,7 @@ class Parser {
*/
*next(source) {
this.source = source;
if (process.env.LOG_TOKENS)
if (node_process.env.LOG_TOKENS)
console.log('|', cst.prettyToken(source));
if (this.atScalar) {
this.atScalar = false;
@ -102988,6 +103003,7 @@ exports.getTags = getTags;
"use strict";
var node_buffer = __nccwpck_require__(4573);
var Scalar = __nccwpck_require__(3301);
var stringifyString = __nccwpck_require__(3069);
@ -103004,8 +103020,8 @@ const binary = {
* document.querySelector('#photo').src = URL.createObjectURL(blob)
*/
resolve(src, onError) {
if (typeof Buffer === 'function') {
return Buffer.from(src, 'base64');
if (typeof node_buffer.Buffer === 'function') {
return node_buffer.Buffer.from(src, 'base64');
}
else if (typeof atob === 'function') {
// On IE 11, atob() can't handle newlines
@ -103023,11 +103039,11 @@ const binary = {
stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
const buf = value; // checked earlier by binary.identify()
let str;
if (typeof Buffer === 'function') {
if (typeof node_buffer.Buffer === 'function') {
str =
buf instanceof Buffer
buf instanceof node_buffer.Buffer
? buf.toString('base64')
: Buffer.from(buf.buffer).toString('base64');
: node_buffer.Buffer.from(buf.buffer).toString('base64');
}
else if (typeof btoa === 'function') {
let s = '';

File diff suppressed because one or more lines are too long