-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
618e85e
commit 858107e
Showing
2 changed files
with
110 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -336,14 +336,27 @@ run(); | |
|
||
"use strict"; | ||
|
||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.issue = exports.issueCommand = void 0; | ||
const os = __importStar(__nccwpck_require__(2087)); | ||
const utils_1 = __nccwpck_require__(5278); | ||
/** | ||
|
@@ -422,6 +435,25 @@ function escapeProperty(s) { | |
|
||
"use strict"; | ||
|
||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
|
@@ -431,14 +463,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge | |
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
}); | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; | ||
const command_1 = __nccwpck_require__(7351); | ||
const file_command_1 = __nccwpck_require__(717); | ||
const utils_1 = __nccwpck_require__(5278); | ||
|
@@ -505,7 +531,9 @@ function addPath(inputPath) { | |
} | ||
exports.addPath = addPath; | ||
/** | ||
* Gets the value of an input. The value is also trimmed. | ||
* Gets the value of an input. | ||
* Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. | ||
* Returns an empty string if the value is not defined. | ||
* | ||
* @param name name of the input to get | ||
* @param options optional. See InputOptions. | ||
|
@@ -516,9 +544,49 @@ function getInput(name, options) { | |
if (options && options.required && !val) { | ||
throw new Error(`Input required and not supplied: ${name}`); | ||
} | ||
if (options && options.trimWhitespace === false) { | ||
return val; | ||
} | ||
return val.trim(); | ||
} | ||
exports.getInput = getInput; | ||
/** | ||
* Gets the values of an multiline input. Each value is also trimmed. | ||
* | ||
* @param name name of the input to get | ||
* @param options optional. See InputOptions. | ||
* @returns string[] | ||
* | ||
*/ | ||
function getMultilineInput(name, options) { | ||
const inputs = getInput(name, options) | ||
.split('\n') | ||
.filter(x => x !== ''); | ||
return inputs; | ||
} | ||
exports.getMultilineInput = getMultilineInput; | ||
/** | ||
* Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. | ||
* Support boolean input list: `true | True | TRUE | false | False | FALSE` . | ||
* The return value is also in boolean type. | ||
* ref: https://yaml.org/spec/1.2/spec.html#id2804923 | ||
* | ||
* @param name name of the input to get | ||
* @param options optional. See InputOptions. | ||
* @returns boolean | ||
*/ | ||
function getBooleanInput(name, options) { | ||
const trueValue = ['true', 'True', 'TRUE']; | ||
const falseValue = ['false', 'False', 'FALSE']; | ||
const val = getInput(name, options); | ||
if (trueValue.includes(val)) | ||
return true; | ||
if (falseValue.includes(val)) | ||
return false; | ||
throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + | ||
`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); | ||
} | ||
exports.getBooleanInput = getBooleanInput; | ||
/** | ||
* Sets the value of an output. | ||
* | ||
|
@@ -669,14 +737,27 @@ exports.getState = getState; | |
"use strict"; | ||
|
||
// For internal use, subject to change. | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.issueCommand = void 0; | ||
// We use any as a valid input type | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
const fs = __importStar(__nccwpck_require__(5747)); | ||
|
@@ -707,6 +788,7 @@ exports.issueCommand = issueCommand; | |
// We use any as a valid input type | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
Object.defineProperty(exports, "__esModule", ({ value: true })); | ||
exports.toCommandValue = void 0; | ||
/** | ||
* Sanitizes an input into a string so it can be passed into issueCommand safely | ||
* @param input input to sanitize into a string | ||
|
@@ -3331,6 +3413,8 @@ function setup(env) { | |
function createDebug(namespace) { | ||
let prevTime; | ||
let enableOverride = null; | ||
let namespacesCache; | ||
let enabledCache; | ||
|
||
function debug(...args) { | ||
// Disabled? | ||
|
@@ -3391,7 +3475,17 @@ function setup(env) { | |
Object.defineProperty(debug, 'enabled', { | ||
enumerable: true, | ||
configurable: false, | ||
get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride, | ||
get: () => { | ||
if (enableOverride !== null) { | ||
return enableOverride; | ||
} | ||
if (namespacesCache !== createDebug.namespaces) { | ||
namespacesCache = createDebug.namespaces; | ||
enabledCache = createDebug.enabled(namespace); | ||
} | ||
|
||
return enabledCache; | ||
}, | ||
set: v => { | ||
enableOverride = v; | ||
} | ||
|
@@ -3420,6 +3514,7 @@ function setup(env) { | |
*/ | ||
function enable(namespaces) { | ||
createDebug.save(namespaces); | ||
createDebug.namespaces = namespaces; | ||
|
||
createDebug.names = []; | ||
createDebug.skips = []; | ||
|
@@ -3910,12 +4005,8 @@ function RedirectableRequest(options, responseCallback) { | |
RedirectableRequest.prototype = Object.create(Writable.prototype); | ||
|
||
RedirectableRequest.prototype.abort = function () { | ||
// Abort the internal request | ||
abortRequest(this._currentRequest); | ||
|
||
// Abort this request | ||
this.emit("abort"); | ||
this.removeAllListeners(); | ||
}; | ||
|
||
// Writes buffered data to the current native request | ||
|
@@ -21933,7 +22024,7 @@ module.exports = { | |
/***/ ((module) => { | ||
|
||
"use strict"; | ||
module.exports = JSON.parse('{"name":"action-tls-monitor","version":"1.0.0","description":"Monitor SSL/TLS certificates for your domains.","main":"dist/main.js","repository":"[email protected]:bluenovaio/action-tls-monitor.git","author":"@bluenovaio","license":"MIT","private":false,"scripts":{"build":"tsc","format":"prettier --write **/*.ts","format-check":"prettier --check **/*.ts","lint":"eslint src/**/*.ts","package":"ncc build --source-map --license licenses.txt","test":"jest"},"dependencies":{"@actions/core":"^1.2.7","@slack/webhook":"^6.0.0","gaxios":"^4.2.0","lodash":"^4.17.21"},"devDependencies":{"@jest/types":"^26.6.2","@types/jest":"^26.0.20","@types/lodash":"^4.14.168","@types/node":"^15.0.1","@typescript-eslint/eslint-plugin":"^4.22.0","@typescript-eslint/parser":"^4.22.0","@vercel/ncc":"0.28.5","eslint":"^7.25.0","eslint-config-semistandard":"^15.0.1","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.22.1","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"5.1.0","eslint-plugin-standard":"^5.0.0","jest":"^26.6.3","prettier":"^2.2.1","ts-jest":"^26.5.5","ts-node":"^9.1.1","typescript":"^4.2.3","webpack":"^5.36.2"}}'); | ||
module.exports = JSON.parse('{"name":"action-tls-monitor","version":"1.0.0","description":"Monitor SSL/TLS certificates for your domains.","main":"dist/main.js","repository":"[email protected]:bluenovaio/action-tls-monitor.git","author":"@bluenovaio","license":"MIT","private":false,"scripts":{"build":"tsc","format":"prettier --write **/*.ts","format-check":"prettier --check **/*.ts","lint":"eslint src/**/*.ts","package":"ncc build --source-map --license licenses.txt","test":"jest"},"dependencies":{"@actions/core":"^1.4.0","@slack/webhook":"^6.0.0","gaxios":"^4.3.0","lodash":"^4.17.21"},"devDependencies":{"@jest/types":"^27.0.6","@types/jest":"^26.0.20","@types/lodash":"^4.14.170","@types/node":"^16.0.0","@typescript-eslint/eslint-plugin":"^4.28.1","@typescript-eslint/parser":"^4.28.1","@vercel/ncc":"0.28.6","eslint":"^7.30.0","eslint-config-semistandard":"^16.0.0","eslint-config-standard":"^16.0.3","eslint-plugin-import":"^2.23.4","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"5.1.0","eslint-plugin-standard":"^5.0.0","jest":"^27.0.6","prettier":"^2.3.2","ts-jest":"^27.0.3","ts-node":"^10.0.0","typescript":"^4.3.5","webpack":"^5.42.0"}}'); | ||
|
||
/***/ }), | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.