Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ updates:
schedule:
interval: "weekly"
groups:
all:
github-actions:
patterns:
- "*"

Expand All @@ -14,6 +14,6 @@ updates:
schedule:
interval: "weekly"
groups:
all:
npm:
patterns:
- "*"
89 changes: 75 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
key = keys[i];
Expand All @@ -23,27 +23,27 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
}) : target, mod));
//#endregion
let os = require("os");
os = __toESM(os);
os = __toESM(os, 1);
let crypto = require("crypto");
crypto = __toESM(crypto);
crypto = __toESM(crypto, 1);
let fs = require("fs");
fs = __toESM(fs);
fs = __toESM(fs, 1);
let path = require("path");
path = __toESM(path);
path = __toESM(path, 1);
let http = require("http");
http = __toESM(http);
http = __toESM(http, 1);
let https = require("https");
https = __toESM(https);
https = __toESM(https, 1);
let events = require("events");
events = __toESM(events);
events = __toESM(events, 1);
let assert = require("assert");
let util = require("util");
util = __toESM(util);
util = __toESM(util, 1);
let child_process = require("child_process");
child_process = __toESM(child_process);
child_process = __toESM(child_process, 1);
let timers = require("timers");
let stream = require("stream");
stream = __toESM(stream);
stream = __toESM(stream, 1);
//#region node_modules/@actions/core/lib/utils.js
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
Expand Down Expand Up @@ -2232,9 +2232,26 @@ var require_timers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
* used as a drop-in replacement for the native functions.
*/
module.exports = {
/**
* The setTimeout() method sets a timer which executes a function once the
* timer expires.
* @param {Function} callback A function to be executed after the timer
* expires.
* @param {number} delay The time, in milliseconds that the timer should
* wait before the specified function or code is executed.
* @param {*} [arg] An optional argument to be passed to the callback function
* when the timer expires.
* @returns {NodeJS.Timeout|FastTimer}
*/
setTimeout(callback, delay, arg) {
return delay <= RESOLUTION_MS ? setTimeout(callback, delay, arg) : new FastTimer(callback, delay, arg);
},
/**
* The clearTimeout method cancels an instantiated Timer previously created
* by calling setTimeout.
*
* @param {NodeJS.Timeout|FastTimer} timeout
*/
clearTimeout(timeout) {
if (timeout[kFastTimer])
/**
Expand All @@ -2243,26 +2260,66 @@ var require_timers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
timeout.clear();
else clearTimeout(timeout);
},
/**
* The setFastTimeout() method sets a fastTimer which executes a function once
* the timer expires.
* @param {Function} callback A function to be executed after the timer
* expires.
* @param {number} delay The time, in milliseconds that the timer should
* wait before the specified function or code is executed.
* @param {*} [arg] An optional argument to be passed to the callback function
* when the timer expires.
* @returns {FastTimer}
*/
setFastTimeout(callback, delay, arg) {
return new FastTimer(callback, delay, arg);
},
/**
* The clearTimeout method cancels an instantiated FastTimer previously
* created by calling setFastTimeout.
*
* @param {FastTimer} timeout
*/
clearFastTimeout(timeout) {
timeout.clear();
},
/**
* The now method returns the value of the internal fast timer clock.
*
* @returns {number}
*/
now() {
return fastNow;
},
/**
* Trigger the onTick function to process the fastTimers array.
* Exported for testing purposes only.
* Marking as deprecated to discourage any use outside of testing.
* @deprecated
* @param {number} [delay=0] The delay in milliseconds to add to the now value.
*/
tick(delay = 0) {
fastNow += delay - RESOLUTION_MS + 1;
onTick();
onTick();
},
/**
* Reset FastTimers.
* Exported for testing purposes only.
* Marking as deprecated to discourage any use outside of testing.
* @deprecated
*/
reset() {
fastNow = 0;
fastTimers.length = 0;
clearTimeout(fastNowTimeout);
fastNowTimeout = null;
},
/**
* Exporting for testing purposes only.
* Marking as deprecated to discourage any use outside of testing.
* @deprecated
*/
kFastTimer
};
}));
Expand Down Expand Up @@ -3177,6 +3234,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
const mimeType = {
type: typeLowercase,
subtype: subtypeLowercase,
/** @type {Map<string, string>} */
parameters: /* @__PURE__ */ new Map(),
essence: `${typeLowercase}/${subtypeLowercase}`
};
Expand Down Expand Up @@ -4527,11 +4585,14 @@ var require_file = /* @__PURE__ */ __commonJSMin(((exports, module) => {
const { webidl } = require_webidl();
var FileLike = class FileLike {
constructor(blobLike, fileName, options = {}) {
const n = fileName;
const t = options.type;
const d = options.lastModified ?? Date.now();
this[kState] = {
blobLike,
name: fileName,
type: options.type,
lastModified: options.lastModified ?? Date.now()
name: n,
type: t,
lastModified: d
};
}
stream(...args) {
Expand Down
Loading