From 228f996cafa19f23ced6ceb4fc5f3604fcfb3aa5 Mon Sep 17 00:00:00 2001 From: actions-bot Date: Mon, 12 Oct 2020 17:35:44 +0000 Subject: [PATCH] chore: build dist --- deploy-cloudrun/dist/index.js | 365 ++++++++++++++++++++-------------- 1 file changed, 213 insertions(+), 152 deletions(-) diff --git a/deploy-cloudrun/dist/index.js b/deploy-cloudrun/dist/index.js index 71543f09..3d4a21c9 100644 --- a/deploy-cloudrun/dist/index.js +++ b/deploy-cloudrun/dist/index.js @@ -20081,38 +20081,28 @@ formatters.O = function (v) { /***/ }), /* 82 */ -/***/ (function(__unusedmodule, exports, __webpack_require__) { +/***/ (function(__unusedmodule, exports) { "use strict"; -// Copyright 2019 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ Object.defineProperty(exports, "__esModule", { value: true }); -/*! THIS FILE IS AUTO-GENERATED */ -const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(388); -const v1beta2_1 = __webpack_require__(377); -exports.VERSIONS = { - v1: v1_1.dataproc_v1.Dataproc, - v1beta2: v1beta2_1.dataproc_v1beta2.Dataproc, -}; -function dataproc(versionOrOptions) { - return googleapis_common_1.getAPI('dataproc', versionOrOptions, exports.VERSIONS, this); +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); } -exports.dataproc = dataproc; -const auth = new googleapis_common_1.AuthPlus(); -exports.auth = auth; -//# sourceMappingURL=index.js.map +exports.toCommandValue = toCommandValue; +//# sourceMappingURL=utils.js.map /***/ }), /* 83 */, @@ -24707,106 +24697,34 @@ var cloudtrace_v1; "use strict"; -// Copyright 2012 Google LLC -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// For internal use, subject to change. +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 }); -const apis = __webpack_require__(442); -const googleapis_common_1 = __webpack_require__(927); -exports.AuthPlus = googleapis_common_1.AuthPlus; -class GoogleApis extends apis.GeneratedAPIs { - /** - * GoogleApis constructor. - * - * @example - * const GoogleApis = require('googleapis').GoogleApis; - * const google = new GoogleApis(); - * - * @class GoogleApis - * @param {Object} [options] Configuration options. - */ - constructor(options) { - super(); - this._discovery = new googleapis_common_1.Discovery({ debug: false, includePrivate: false }); - this.auth = new googleapis_common_1.AuthPlus(); - this._options = {}; - this.options(options); +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fs = __importStar(__webpack_require__(747)); +const os = __importStar(__webpack_require__(87)); +const utils_1 = __webpack_require__(82); +function issueCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); } - /** - * Obtain a Map of supported APIs, along with included API versions. - */ - getSupportedAPIs() { - const apiMap = {}; - Object.keys(apis.APIS).forEach(a => { - apiMap[a] = Object.keys(apis.APIS[a]); - }); - return apiMap; - } - /** - * Set options. - * - * @param {Object} [options] Configuration options. - */ - options(options) { - this._options = options || {}; - } - /** - * Add APIs endpoints to googleapis object - * E.g. googleapis.drive and googleapis.datastore - * - * @name GoogleApis#addAPIs - * @method - * @param {Object} apis Apis to be added to this GoogleApis instance. - * @private - */ - addAPIs(apisToAdd) { - for (const apiName in apisToAdd) { - if (apisToAdd.hasOwnProperty(apiName)) { - // tslint:disable-next-line: no-any - this[apiName] = apisToAdd[apiName].bind(this); - } - } - } - discover(url, callback) { - if (callback) { - this.discoverAsync(url) - .then(() => callback()) - .catch(callback); - } - else { - return this.discoverAsync(url); - } - } - async discoverAsync(url) { - const allApis = await this._discovery.discoverAllAPIs(url); - this.addAPIs(allApis); - } - /** - * Dynamically generate an Endpoint object from a discovery doc. - * - * @param path Url or file path to discover doc for a single API. - * @param Options to configure the Endpoint object generated from the - * discovery doc. - * @returns A promise that resolves with the configured endpoint. - */ - async discoverAPI(apiPath, options = {}) { - const endpointCreator = await this._discovery.discoverAPI(apiPath); - const ep = endpointCreator(options, this); - ep.google = this; // for drive.google.transporter - return Object.freeze(ep); + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); } + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + encoding: 'utf8' + }); } -exports.GoogleApis = GoogleApis; -//# sourceMappingURL=googleapis.js.map +exports.issueCommand = issueCommand; +//# sourceMappingURL=file-command.js.map /***/ }), /* 103 */ @@ -92428,7 +92346,39 @@ var youtube_v3; /***/ }), /* 262 */, -/* 263 */, +/* 263 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2019 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", { value: true }); +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __webpack_require__(927); +const v1_1 = __webpack_require__(405); +exports.VERSIONS = { + v1: v1_1.testing_v1.Testing, +}; +function testing(versionOrOptions) { + return googleapis_common_1.getAPI('testing', versionOrOptions, exports.VERSIONS, this); +} +exports.testing = testing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), /* 264 */, /* 265 */, /* 266 */ @@ -136911,6 +136861,7 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); const os = __importStar(__webpack_require__(87)); +const utils_1 = __webpack_require__(82); /** * Commands * @@ -136964,28 +136915,14 @@ class Command { return cmdStr; } } -/** - * Sanitizes an input into a string so it can be passed into issueCommand safely - * @param input input to sanitize into a string - */ -function toCommandValue(input) { - if (input === null || input === undefined) { - return ''; - } - else if (typeof input === 'string' || input instanceof String) { - return input; - } - return JSON.stringify(input); -} -exports.toCommandValue = toCommandValue; function escapeData(s) { - return toCommandValue(s) + return utils_1.toCommandValue(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A'); } function escapeProperty(s) { - return toCommandValue(s) + return utils_1.toCommandValue(s) .replace(/%/g, '%25') .replace(/\r/g, '%0D') .replace(/\n/g, '%0A') @@ -140268,7 +140205,7 @@ const customsearch = __webpack_require__(630); const datacatalog = __webpack_require__(648); const dataflow = __webpack_require__(85); const datafusion = __webpack_require__(688); -const dataproc = __webpack_require__(82); +const dataproc = __webpack_require__(681); const datastore = __webpack_require__(445); const deploymentmanager = __webpack_require__(735); const dfareporting = __webpack_require__(510); @@ -140362,7 +140299,7 @@ const storagetransfer = __webpack_require__(559); const streetviewpublish = __webpack_require__(199); const tagmanager = __webpack_require__(708); const tasks = __webpack_require__(495); -const testing = __webpack_require__(681); +const testing = __webpack_require__(263); const texttospeech = __webpack_require__(288); const toolresults = __webpack_require__(602); const tpu = __webpack_require__(766); @@ -149347,6 +149284,8 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = __webpack_require__(431); +const file_command_1 = __webpack_require__(102); +const utils_1 = __webpack_require__(82); const os = __importStar(__webpack_require__(87)); const path = __importStar(__webpack_require__(622)); /** @@ -149373,9 +149312,17 @@ var ExitCode; */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function exportVariable(name, val) { - const convertedVal = command_1.toCommandValue(val); + const convertedVal = utils_1.toCommandValue(val); process.env[name] = convertedVal; - command_1.issueCommand('set-env', { name }, convertedVal); + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + const delimiter = '_GitHubActionsFileCommandDelimeter_'; + const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`; + file_command_1.issueCommand('ENV', commandValue); + } + else { + command_1.issueCommand('set-env', { name }, convertedVal); + } } exports.exportVariable = exportVariable; /** @@ -149391,7 +149338,13 @@ exports.setSecret = setSecret; * @param inputPath */ function addPath(inputPath) { - command_1.issueCommand('add-path', {}, inputPath); + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + file_command_1.issueCommand('PATH', inputPath); + } + else { + command_1.issueCommand('add-path', {}, inputPath); + } process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; } exports.addPath = addPath; @@ -215544,14 +215497,16 @@ function _update(s, w, bytes) { Object.defineProperty(exports, "__esModule", { value: true }); /*! THIS FILE IS AUTO-GENERATED */ const googleapis_common_1 = __webpack_require__(927); -const v1_1 = __webpack_require__(405); +const v1_1 = __webpack_require__(388); +const v1beta2_1 = __webpack_require__(377); exports.VERSIONS = { - v1: v1_1.testing_v1.Testing, + v1: v1_1.dataproc_v1.Dataproc, + v1beta2: v1beta2_1.dataproc_v1beta2.Dataproc, }; -function testing(versionOrOptions) { - return googleapis_common_1.getAPI('testing', versionOrOptions, exports.VERSIONS, this); +function dataproc(versionOrOptions) { + return googleapis_common_1.getAPI('dataproc', versionOrOptions, exports.VERSIONS, this); } -exports.testing = testing; +exports.dataproc = dataproc; const auth = new googleapis_common_1.AuthPlus(); exports.auth = auth; //# sourceMappingURL=index.js.map @@ -218214,7 +218169,113 @@ exports.auth = auth; //# sourceMappingURL=index.js.map /***/ }), -/* 694 */, +/* 694 */ +/***/ (function(__unusedmodule, exports, __webpack_require__) { + +"use strict"; + +// Copyright 2012 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", { value: true }); +const apis = __webpack_require__(442); +const googleapis_common_1 = __webpack_require__(927); +exports.AuthPlus = googleapis_common_1.AuthPlus; +class GoogleApis extends apis.GeneratedAPIs { + /** + * GoogleApis constructor. + * + * @example + * const GoogleApis = require('googleapis').GoogleApis; + * const google = new GoogleApis(); + * + * @class GoogleApis + * @param {Object} [options] Configuration options. + */ + constructor(options) { + super(); + this._discovery = new googleapis_common_1.Discovery({ debug: false, includePrivate: false }); + this.auth = new googleapis_common_1.AuthPlus(); + this._options = {}; + this.options(options); + } + /** + * Obtain a Map of supported APIs, along with included API versions. + */ + getSupportedAPIs() { + const apiMap = {}; + Object.keys(apis.APIS).forEach(a => { + apiMap[a] = Object.keys(apis.APIS[a]); + }); + return apiMap; + } + /** + * Set options. + * + * @param {Object} [options] Configuration options. + */ + options(options) { + this._options = options || {}; + } + /** + * Add APIs endpoints to googleapis object + * E.g. googleapis.drive and googleapis.datastore + * + * @name GoogleApis#addAPIs + * @method + * @param {Object} apis Apis to be added to this GoogleApis instance. + * @private + */ + addAPIs(apisToAdd) { + for (const apiName in apisToAdd) { + if (apisToAdd.hasOwnProperty(apiName)) { + // tslint:disable-next-line: no-any + this[apiName] = apisToAdd[apiName].bind(this); + } + } + } + discover(url, callback) { + if (callback) { + this.discoverAsync(url) + .then(() => callback()) + .catch(callback); + } + else { + return this.discoverAsync(url); + } + } + async discoverAsync(url) { + const allApis = await this._discovery.discoverAllAPIs(url); + this.addAPIs(allApis); + } + /** + * Dynamically generate an Endpoint object from a discovery doc. + * + * @param path Url or file path to discover doc for a single API. + * @param Options to configure the Endpoint object generated from the + * discovery doc. + * @returns A promise that resolves with the configured endpoint. + */ + async discoverAPI(apiPath, options = {}) { + const endpointCreator = await this._discovery.discoverAPI(apiPath); + const ep = endpointCreator(options, this); + ep.google = this; // for drive.google.transporter + return Object.freeze(ep); + } +} +exports.GoogleApis = GoogleApis; +//# sourceMappingURL=googleapis.js.map + +/***/ }), /* 695 */ /***/ (function(__unusedmodule, exports, __webpack_require__) { @@ -241832,7 +241893,7 @@ exports.auth = auth; // limitations under the License. Object.defineProperty(exports, "__esModule", { value: true }); /*! THIS FILE IS AUTO-GENERATED */ -const googleapis_1 = __webpack_require__(102); +const googleapis_1 = __webpack_require__(694); exports.GoogleApis = googleapis_1.GoogleApis; const google = new googleapis_1.GoogleApis(); exports.google = google;