mirror of
				https://gitea.com/actions/setup-node.git
				synced 2025-10-29 15:52:42 +08:00 
			
		
		
		
	publishing v1 of action
This commit is contained in:
		
							
								
								
									
										32
									
								
								node_modules/@actions/core/lib/command.d.ts
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								node_modules/@actions/core/lib/command.d.ts
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,16 +1,16 @@
 | 
			
		||||
interface CommandProperties {
 | 
			
		||||
    [key: string]: string;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * Commands
 | 
			
		||||
 *
 | 
			
		||||
 * Command Format:
 | 
			
		||||
 *   ##[name key=value;key=value]message
 | 
			
		||||
 *
 | 
			
		||||
 * Examples:
 | 
			
		||||
 *   ##[warning]This is the user warning message
 | 
			
		||||
 *   ##[set-secret name=mypassword]definatelyNotAPassword!
 | 
			
		||||
 */
 | 
			
		||||
export declare function issueCommand(command: string, properties: CommandProperties, message: string): void;
 | 
			
		||||
export declare function issue(name: string, message: string): void;
 | 
			
		||||
export {};
 | 
			
		||||
interface CommandProperties {
 | 
			
		||||
    [key: string]: string;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * Commands
 | 
			
		||||
 *
 | 
			
		||||
 * Command Format:
 | 
			
		||||
 *   ##[name key=value;key=value]message
 | 
			
		||||
 *
 | 
			
		||||
 * Examples:
 | 
			
		||||
 *   ##[warning]This is the user warning message
 | 
			
		||||
 *   ##[set-secret name=mypassword]definatelyNotAPassword!
 | 
			
		||||
 */
 | 
			
		||||
export declare function issueCommand(command: string, properties: CommandProperties, message: string): void;
 | 
			
		||||
export declare function issue(name: string, message: string): void;
 | 
			
		||||
export {};
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										130
									
								
								node_modules/@actions/core/lib/command.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										130
									
								
								node_modules/@actions/core/lib/command.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,66 +1,66 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
const os = require("os");
 | 
			
		||||
/**
 | 
			
		||||
 * Commands
 | 
			
		||||
 *
 | 
			
		||||
 * Command Format:
 | 
			
		||||
 *   ##[name key=value;key=value]message
 | 
			
		||||
 *
 | 
			
		||||
 * Examples:
 | 
			
		||||
 *   ##[warning]This is the user warning message
 | 
			
		||||
 *   ##[set-secret name=mypassword]definatelyNotAPassword!
 | 
			
		||||
 */
 | 
			
		||||
function issueCommand(command, properties, message) {
 | 
			
		||||
    const cmd = new Command(command, properties, message);
 | 
			
		||||
    process.stdout.write(cmd.toString() + os.EOL);
 | 
			
		||||
}
 | 
			
		||||
exports.issueCommand = issueCommand;
 | 
			
		||||
function issue(name, message) {
 | 
			
		||||
    issueCommand(name, {}, message);
 | 
			
		||||
}
 | 
			
		||||
exports.issue = issue;
 | 
			
		||||
const CMD_PREFIX = '##[';
 | 
			
		||||
class Command {
 | 
			
		||||
    constructor(command, properties, message) {
 | 
			
		||||
        if (!command) {
 | 
			
		||||
            command = 'missing.command';
 | 
			
		||||
        }
 | 
			
		||||
        this.command = command;
 | 
			
		||||
        this.properties = properties;
 | 
			
		||||
        this.message = message;
 | 
			
		||||
    }
 | 
			
		||||
    toString() {
 | 
			
		||||
        let cmdStr = CMD_PREFIX + this.command;
 | 
			
		||||
        if (this.properties && Object.keys(this.properties).length > 0) {
 | 
			
		||||
            cmdStr += ' ';
 | 
			
		||||
            for (const key in this.properties) {
 | 
			
		||||
                if (this.properties.hasOwnProperty(key)) {
 | 
			
		||||
                    const val = this.properties[key];
 | 
			
		||||
                    if (val) {
 | 
			
		||||
                        // safely append the val - avoid blowing up when attempting to
 | 
			
		||||
                        // call .replace() if message is not a string for some reason
 | 
			
		||||
                        cmdStr += `${key}=${escape(`${val || ''}`)};`;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        cmdStr += ']';
 | 
			
		||||
        // safely append the message - avoid blowing up when attempting to
 | 
			
		||||
        // call .replace() if message is not a string for some reason
 | 
			
		||||
        const message = `${this.message || ''}`;
 | 
			
		||||
        cmdStr += escapeData(message);
 | 
			
		||||
        return cmdStr;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
function escapeData(s) {
 | 
			
		||||
    return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A');
 | 
			
		||||
}
 | 
			
		||||
function escape(s) {
 | 
			
		||||
    return s
 | 
			
		||||
        .replace(/\r/g, '%0D')
 | 
			
		||||
        .replace(/\n/g, '%0A')
 | 
			
		||||
        .replace(/]/g, '%5D')
 | 
			
		||||
        .replace(/;/g, '%3B');
 | 
			
		||||
}
 | 
			
		||||
"use strict";
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
const os = require("os");
 | 
			
		||||
/**
 | 
			
		||||
 * Commands
 | 
			
		||||
 *
 | 
			
		||||
 * Command Format:
 | 
			
		||||
 *   ##[name key=value;key=value]message
 | 
			
		||||
 *
 | 
			
		||||
 * Examples:
 | 
			
		||||
 *   ##[warning]This is the user warning message
 | 
			
		||||
 *   ##[set-secret name=mypassword]definatelyNotAPassword!
 | 
			
		||||
 */
 | 
			
		||||
function issueCommand(command, properties, message) {
 | 
			
		||||
    const cmd = new Command(command, properties, message);
 | 
			
		||||
    process.stdout.write(cmd.toString() + os.EOL);
 | 
			
		||||
}
 | 
			
		||||
exports.issueCommand = issueCommand;
 | 
			
		||||
function issue(name, message) {
 | 
			
		||||
    issueCommand(name, {}, message);
 | 
			
		||||
}
 | 
			
		||||
exports.issue = issue;
 | 
			
		||||
const CMD_PREFIX = '##[';
 | 
			
		||||
class Command {
 | 
			
		||||
    constructor(command, properties, message) {
 | 
			
		||||
        if (!command) {
 | 
			
		||||
            command = 'missing.command';
 | 
			
		||||
        }
 | 
			
		||||
        this.command = command;
 | 
			
		||||
        this.properties = properties;
 | 
			
		||||
        this.message = message;
 | 
			
		||||
    }
 | 
			
		||||
    toString() {
 | 
			
		||||
        let cmdStr = CMD_PREFIX + this.command;
 | 
			
		||||
        if (this.properties && Object.keys(this.properties).length > 0) {
 | 
			
		||||
            cmdStr += ' ';
 | 
			
		||||
            for (const key in this.properties) {
 | 
			
		||||
                if (this.properties.hasOwnProperty(key)) {
 | 
			
		||||
                    const val = this.properties[key];
 | 
			
		||||
                    if (val) {
 | 
			
		||||
                        // safely append the val - avoid blowing up when attempting to
 | 
			
		||||
                        // call .replace() if message is not a string for some reason
 | 
			
		||||
                        cmdStr += `${key}=${escape(`${val || ''}`)};`;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        cmdStr += ']';
 | 
			
		||||
        // safely append the message - avoid blowing up when attempting to
 | 
			
		||||
        // call .replace() if message is not a string for some reason
 | 
			
		||||
        const message = `${this.message || ''}`;
 | 
			
		||||
        cmdStr += escapeData(message);
 | 
			
		||||
        return cmdStr;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
function escapeData(s) {
 | 
			
		||||
    return s.replace(/\r/g, '%0D').replace(/\n/g, '%0A');
 | 
			
		||||
}
 | 
			
		||||
function escape(s) {
 | 
			
		||||
    return s
 | 
			
		||||
        .replace(/\r/g, '%0D')
 | 
			
		||||
        .replace(/\n/g, '%0A')
 | 
			
		||||
        .replace(/]/g, '%5D')
 | 
			
		||||
        .replace(/;/g, '%3B');
 | 
			
		||||
}
 | 
			
		||||
//# sourceMappingURL=command.js.map
 | 
			
		||||
							
								
								
									
										114
									
								
								node_modules/@actions/core/lib/core.d.ts
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										114
									
								
								node_modules/@actions/core/lib/core.d.ts
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,57 +1,57 @@
 | 
			
		||||
/**
 | 
			
		||||
 * Interface for getInput options
 | 
			
		||||
 */
 | 
			
		||||
export interface InputOptions {
 | 
			
		||||
    /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
 | 
			
		||||
    required?: boolean;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * sets env variable for this action and future actions in the job
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val the value of the variable
 | 
			
		||||
 */
 | 
			
		||||
export declare function exportVariable(name: string, val: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * exports the variable and registers a secret which will get masked from logs
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val value of the secret
 | 
			
		||||
 */
 | 
			
		||||
export declare function exportSecret(name: string, val: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Prepends inputPath to the PATH (for this action and future actions)
 | 
			
		||||
 * @param inputPath
 | 
			
		||||
 */
 | 
			
		||||
export declare function addPath(inputPath: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the value of an input.  The value is also trimmed.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   string
 | 
			
		||||
 */
 | 
			
		||||
export declare function getInput(name: string, options?: InputOptions): string;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to neutral
 | 
			
		||||
 */
 | 
			
		||||
export declare function setNeutral(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to failed.
 | 
			
		||||
 * When the action exits it will be with an exit code of 1
 | 
			
		||||
 * @param message add error issue message
 | 
			
		||||
 */
 | 
			
		||||
export declare function setFailed(message: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Writes debug message to user log
 | 
			
		||||
 * @param message debug message
 | 
			
		||||
 */
 | 
			
		||||
export declare function debug(message: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an error issue
 | 
			
		||||
 * @param message error issue message
 | 
			
		||||
 */
 | 
			
		||||
export declare function error(message: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an warning issue
 | 
			
		||||
 * @param message warning issue message
 | 
			
		||||
 */
 | 
			
		||||
export declare function warning(message: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Interface for getInput options
 | 
			
		||||
 */
 | 
			
		||||
export interface InputOptions {
 | 
			
		||||
    /** Optional. Whether the input is required. If required and not present, will throw. Defaults to false */
 | 
			
		||||
    required?: boolean;
 | 
			
		||||
}
 | 
			
		||||
/**
 | 
			
		||||
 * sets env variable for this action and future actions in the job
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val the value of the variable
 | 
			
		||||
 */
 | 
			
		||||
export declare function exportVariable(name: string, val: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * exports the variable and registers a secret which will get masked from logs
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val value of the secret
 | 
			
		||||
 */
 | 
			
		||||
export declare function exportSecret(name: string, val: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Prepends inputPath to the PATH (for this action and future actions)
 | 
			
		||||
 * @param inputPath
 | 
			
		||||
 */
 | 
			
		||||
export declare function addPath(inputPath: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the value of an input.  The value is also trimmed.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   string
 | 
			
		||||
 */
 | 
			
		||||
export declare function getInput(name: string, options?: InputOptions): string;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to neutral
 | 
			
		||||
 */
 | 
			
		||||
export declare function setNeutral(): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to failed.
 | 
			
		||||
 * When the action exits it will be with an exit code of 1
 | 
			
		||||
 * @param message add error issue message
 | 
			
		||||
 */
 | 
			
		||||
export declare function setFailed(message: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Writes debug message to user log
 | 
			
		||||
 * @param message debug message
 | 
			
		||||
 */
 | 
			
		||||
export declare function debug(message: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an error issue
 | 
			
		||||
 * @param message error issue message
 | 
			
		||||
 */
 | 
			
		||||
export declare function error(message: string): void;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an warning issue
 | 
			
		||||
 * @param message warning issue message
 | 
			
		||||
 */
 | 
			
		||||
export declare function warning(message: string): void;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										198
									
								
								node_modules/@actions/core/lib/core.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										198
									
								
								node_modules/@actions/core/lib/core.js
									
									
									
										generated
									
									
										vendored
									
									
								
							@@ -1,100 +1,100 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
const exit_1 = require("@actions/exit");
 | 
			
		||||
const command_1 = require("./command");
 | 
			
		||||
const path = require("path");
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
// Variables
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
/**
 | 
			
		||||
 * sets env variable for this action and future actions in the job
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val the value of the variable
 | 
			
		||||
 */
 | 
			
		||||
function exportVariable(name, val) {
 | 
			
		||||
    process.env[name] = val;
 | 
			
		||||
    command_1.issueCommand('set-env', { name }, val);
 | 
			
		||||
}
 | 
			
		||||
exports.exportVariable = exportVariable;
 | 
			
		||||
/**
 | 
			
		||||
 * exports the variable and registers a secret which will get masked from logs
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val value of the secret
 | 
			
		||||
 */
 | 
			
		||||
function exportSecret(name, val) {
 | 
			
		||||
    exportVariable(name, val);
 | 
			
		||||
    command_1.issueCommand('set-secret', {}, val);
 | 
			
		||||
}
 | 
			
		||||
exports.exportSecret = exportSecret;
 | 
			
		||||
/**
 | 
			
		||||
 * Prepends inputPath to the PATH (for this action and future actions)
 | 
			
		||||
 * @param inputPath
 | 
			
		||||
 */
 | 
			
		||||
function addPath(inputPath) {
 | 
			
		||||
    command_1.issueCommand('add-path', {}, inputPath);
 | 
			
		||||
    process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
 | 
			
		||||
}
 | 
			
		||||
exports.addPath = addPath;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the value of an input.  The value is also trimmed.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   string
 | 
			
		||||
 */
 | 
			
		||||
function getInput(name, options) {
 | 
			
		||||
    const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || '';
 | 
			
		||||
    if (options && options.required && !val) {
 | 
			
		||||
        throw new Error(`Input required and not supplied: ${name}`);
 | 
			
		||||
    }
 | 
			
		||||
    return val.trim();
 | 
			
		||||
}
 | 
			
		||||
exports.getInput = getInput;
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
// Results
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to neutral
 | 
			
		||||
 */
 | 
			
		||||
function setNeutral() {
 | 
			
		||||
    process.exitCode = exit_1.ExitCode.Neutral;
 | 
			
		||||
}
 | 
			
		||||
exports.setNeutral = setNeutral;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to failed.
 | 
			
		||||
 * When the action exits it will be with an exit code of 1
 | 
			
		||||
 * @param message add error issue message
 | 
			
		||||
 */
 | 
			
		||||
function setFailed(message) {
 | 
			
		||||
    process.exitCode = exit_1.ExitCode.Failure;
 | 
			
		||||
    error(message);
 | 
			
		||||
}
 | 
			
		||||
exports.setFailed = setFailed;
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
// Logging Commands
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
/**
 | 
			
		||||
 * Writes debug message to user log
 | 
			
		||||
 * @param message debug message
 | 
			
		||||
 */
 | 
			
		||||
function debug(message) {
 | 
			
		||||
    command_1.issueCommand('debug', {}, message);
 | 
			
		||||
}
 | 
			
		||||
exports.debug = debug;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an error issue
 | 
			
		||||
 * @param message error issue message
 | 
			
		||||
 */
 | 
			
		||||
function error(message) {
 | 
			
		||||
    command_1.issue('error', message);
 | 
			
		||||
}
 | 
			
		||||
exports.error = error;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an warning issue
 | 
			
		||||
 * @param message warning issue message
 | 
			
		||||
 */
 | 
			
		||||
function warning(message) {
 | 
			
		||||
    command_1.issue('warning', message);
 | 
			
		||||
}
 | 
			
		||||
exports.warning = warning;
 | 
			
		||||
"use strict";
 | 
			
		||||
Object.defineProperty(exports, "__esModule", { value: true });
 | 
			
		||||
const exit_1 = require("@actions/exit");
 | 
			
		||||
const command_1 = require("./command");
 | 
			
		||||
const path = require("path");
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
// Variables
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
/**
 | 
			
		||||
 * sets env variable for this action and future actions in the job
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val the value of the variable
 | 
			
		||||
 */
 | 
			
		||||
function exportVariable(name, val) {
 | 
			
		||||
    process.env[name] = val;
 | 
			
		||||
    command_1.issueCommand('set-env', { name }, val);
 | 
			
		||||
}
 | 
			
		||||
exports.exportVariable = exportVariable;
 | 
			
		||||
/**
 | 
			
		||||
 * exports the variable and registers a secret which will get masked from logs
 | 
			
		||||
 * @param name the name of the variable to set
 | 
			
		||||
 * @param val value of the secret
 | 
			
		||||
 */
 | 
			
		||||
function exportSecret(name, val) {
 | 
			
		||||
    exportVariable(name, val);
 | 
			
		||||
    command_1.issueCommand('set-secret', {}, val);
 | 
			
		||||
}
 | 
			
		||||
exports.exportSecret = exportSecret;
 | 
			
		||||
/**
 | 
			
		||||
 * Prepends inputPath to the PATH (for this action and future actions)
 | 
			
		||||
 * @param inputPath
 | 
			
		||||
 */
 | 
			
		||||
function addPath(inputPath) {
 | 
			
		||||
    command_1.issueCommand('add-path', {}, inputPath);
 | 
			
		||||
    process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
 | 
			
		||||
}
 | 
			
		||||
exports.addPath = addPath;
 | 
			
		||||
/**
 | 
			
		||||
 * Gets the value of an input.  The value is also trimmed.
 | 
			
		||||
 *
 | 
			
		||||
 * @param     name     name of the input to get
 | 
			
		||||
 * @param     options  optional. See InputOptions.
 | 
			
		||||
 * @returns   string
 | 
			
		||||
 */
 | 
			
		||||
function getInput(name, options) {
 | 
			
		||||
    const val = process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || '';
 | 
			
		||||
    if (options && options.required && !val) {
 | 
			
		||||
        throw new Error(`Input required and not supplied: ${name}`);
 | 
			
		||||
    }
 | 
			
		||||
    return val.trim();
 | 
			
		||||
}
 | 
			
		||||
exports.getInput = getInput;
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
// Results
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to neutral
 | 
			
		||||
 */
 | 
			
		||||
function setNeutral() {
 | 
			
		||||
    process.exitCode = exit_1.ExitCode.Neutral;
 | 
			
		||||
}
 | 
			
		||||
exports.setNeutral = setNeutral;
 | 
			
		||||
/**
 | 
			
		||||
 * Sets the action status to failed.
 | 
			
		||||
 * When the action exits it will be with an exit code of 1
 | 
			
		||||
 * @param message add error issue message
 | 
			
		||||
 */
 | 
			
		||||
function setFailed(message) {
 | 
			
		||||
    process.exitCode = exit_1.ExitCode.Failure;
 | 
			
		||||
    error(message);
 | 
			
		||||
}
 | 
			
		||||
exports.setFailed = setFailed;
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
// Logging Commands
 | 
			
		||||
//-----------------------------------------------------------------------
 | 
			
		||||
/**
 | 
			
		||||
 * Writes debug message to user log
 | 
			
		||||
 * @param message debug message
 | 
			
		||||
 */
 | 
			
		||||
function debug(message) {
 | 
			
		||||
    command_1.issueCommand('debug', {}, message);
 | 
			
		||||
}
 | 
			
		||||
exports.debug = debug;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an error issue
 | 
			
		||||
 * @param message error issue message
 | 
			
		||||
 */
 | 
			
		||||
function error(message) {
 | 
			
		||||
    command_1.issue('error', message);
 | 
			
		||||
}
 | 
			
		||||
exports.error = error;
 | 
			
		||||
/**
 | 
			
		||||
 * Adds an warning issue
 | 
			
		||||
 * @param message warning issue message
 | 
			
		||||
 */
 | 
			
		||||
function warning(message) {
 | 
			
		||||
    command_1.issue('warning', message);
 | 
			
		||||
}
 | 
			
		||||
exports.warning = warning;
 | 
			
		||||
//# sourceMappingURL=core.js.map
 | 
			
		||||
		Reference in New Issue
	
	Block a user