@ -1520,7 +1520,31 @@ if (typeof Symbol === undefined || !Symbol.asyncIterator) {
/* 79 */ ,
/* 79 */ ,
/* 80 */ ,
/* 80 */ ,
/* 81 */ ,
/* 81 */ ,
/* 82 */ ,
/* 82 */
/***/ ( function ( _ _unusedmodule , exports ) {
"use strict" ;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
/ * *
* 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 ;
//# sourceMappingURL=utils.js.map
/***/ } ) ,
/* 83 */ ,
/* 83 */ ,
/* 84 */ ,
/* 84 */ ,
/* 85 */ ,
/* 85 */ ,
@ -2730,31 +2754,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
/* 100 */ ,
/* 100 */ ,
/* 101 */ ,
/* 101 */ ,
/* 102 */
/* 102 */
/***/ ( function ( _ _unusedmodule , exports ) {
/***/ ( function ( _ _unusedmodule , exports , _ _webpack _require _ _ ) {
"use strict" ;
"use strict" ;
/ *
// For internal use, subject to change.
* Copyright The OpenTelemetry Authors
var _ _importStar = ( this && this . _ _importStar ) || function ( mod ) {
*
if ( mod && mod . _ _esModule ) return mod ;
* Licensed under the Apache License , Version 2.0 ( the "License" ) ;
var result = { } ;
* you may not use this file except in compliance with the License .
if ( mod != null ) for ( var k in mod ) if ( Object . hasOwnProperty . call ( mod , k ) ) result [ k ] = mod [ k ] ;
* You may obtain a copy of the License at
result [ "default" ] = mod ;
*
return result ;
* https : //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 } ) ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
exports . _globalThis = void 0 ;
// We use any as a valid input type
/** only globals that common to node and browsers are allowed */
/* eslint-disable @typescript-eslint/no-explicit-any */
// eslint-disable-next-line node/no-unsupported-features/es-builtins
const fs = _ _importStar ( _ _webpack _require _ _ ( 747 ) ) ;
exports . _globalThis = typeof globalThis === 'object' ? globalThis : global ;
const os = _ _importStar ( _ _webpack _require _ _ ( 87 ) ) ;
//# sourceMappingURL=globalThis.js.map
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 } ` ) ;
}
if ( ! fs . existsSync ( filePath ) ) {
throw new Error ( ` Missing file at path: ${ filePath } ` ) ;
}
fs . appendFileSync ( filePath , ` ${ utils _1 . toCommandValue ( message ) } ${ os . EOL } ` , {
encoding : 'utf8'
} ) ;
}
exports . issueCommand = issueCommand ;
//# sourceMappingURL=file-command.js.map
/***/ } ) ,
/***/ } ) ,
/* 103 */ ,
/* 103 */ ,
@ -3992,7 +4023,34 @@ var __createBinding;
/***/ } ) ,
/***/ } ) ,
/* 145 */ ,
/* 145 */
/***/ ( function ( _ _unusedmodule , exports ) {
"use strict" ;
/ *
* Copyright The OpenTelemetry Authors
*
* 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
*
* https : //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 } ) ;
exports . _globalThis = void 0 ;
/** only globals that common to node and browsers are allowed */
// eslint-disable-next-line node/no-unsupported-features/es-builtins
exports . _globalThis = typeof globalThis === 'object' ? globalThis : global ;
//# sourceMappingURL=globalThis.js.map
/***/ } ) ,
/* 146 */ ,
/* 146 */ ,
/* 147 */
/* 147 */
/***/ ( function ( _ _unusedmodule , exports ) {
/***/ ( function ( _ _unusedmodule , exports ) {
@ -36521,6 +36579,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
} ;
} ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
const os = _ _importStar ( _ _webpack _require _ _ ( 87 ) ) ;
const os = _ _importStar ( _ _webpack _require _ _ ( 87 ) ) ;
const utils _1 = _ _webpack _require _ _ ( 82 ) ;
/ * *
/ * *
* Commands
* Commands
*
*
@ -36574,28 +36633,14 @@ class Command {
return cmdStr ;
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 ) {
function escapeData ( s ) {
return toCommandValue( s )
return utils _1 . toCommandValue ( s )
. replace ( /%/g , '%25' )
. replace ( /%/g , '%25' )
. replace ( /\r/g , '%0D' )
. replace ( /\r/g , '%0D' )
. replace ( /\n/g , '%0A' ) ;
. replace ( /\n/g , '%0A' ) ;
}
}
function escapeProperty ( s ) {
function escapeProperty ( s ) {
return toCommandValue( s )
return utils _1 . toCommandValue ( s )
. replace ( /%/g , '%25' )
. replace ( /%/g , '%25' )
. replace ( /\r/g , '%0D' )
. replace ( /\r/g , '%0D' )
. replace ( /\n/g , '%0A' )
. replace ( /\n/g , '%0A' )
@ -38967,6 +39012,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
} ;
} ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
const command _1 = _ _webpack _require _ _ ( 431 ) ;
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 os = _ _importStar ( _ _webpack _require _ _ ( 87 ) ) ;
const path = _ _importStar ( _ _webpack _require _ _ ( 622 ) ) ;
const path = _ _importStar ( _ _webpack _require _ _ ( 622 ) ) ;
/ * *
/ * *
@ -38993,9 +39040,17 @@ var ExitCode;
* /
* /
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function exportVariable ( name , val ) {
function exportVariable ( name , val ) {
const convertedVal = command _1 . toCommandValue ( val ) ;
const convertedVal = utils _1 . toCommandValue ( val ) ;
process . env [ name ] = convertedVal ;
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 ;
exports . exportVariable = exportVariable ;
/ * *
/ * *
@ -39011,7 +39066,13 @@ exports.setSecret = setSecret;
* @ param inputPath
* @ param inputPath
* /
* /
function addPath ( 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' ] } ` ;
process . env [ 'PATH' ] = ` ${ inputPath } ${ path . delimiter } ${ process . env [ 'PATH' ] } ` ;
}
}
exports . addPath = addPath ;
exports . addPath = addPath ;
@ -45375,7 +45436,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
for ( var p in m ) if ( p !== "default" && ! exports . hasOwnProperty ( p ) ) _ _createBinding ( exports , m , p ) ;
for ( var p in m ) if ( p !== "default" && ! exports . hasOwnProperty ( p ) ) _ _createBinding ( exports , m , p ) ;
} ;
} ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
_ _exportStar ( _ _webpack _require _ _ ( 1 02 ) , exports ) ;
_ _exportStar ( _ _webpack _require _ _ ( 1 45 ) , exports ) ;
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map
/***/ } ) ,
/***/ } ) ,