11"use strict" ;
22var __createBinding = ( this && this . __createBinding ) || ( Object . create ? ( function ( o , m , k , k2 ) {
33 if ( k2 === undefined ) k2 = k ;
4- Object . defineProperty ( o , k2 , { enumerable : true , get : function ( ) { return m [ k ] ; } } ) ;
4+ var desc = Object . getOwnPropertyDescriptor ( m , k ) ;
5+ if ( ! desc || ( "get" in desc ? ! m . __esModule : desc . writable || desc . configurable ) ) {
6+ desc = { enumerable : true , get : function ( ) { return m [ k ] ; } } ;
7+ }
8+ Object . defineProperty ( o , k2 , desc ) ;
59} ) : ( function ( o , m , k , k2 ) {
610 if ( k2 === undefined ) k2 = k ;
711 o [ k2 ] = m [ k ] ;
@@ -11,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
1115} ) : function ( o , v ) {
1216 o [ "default" ] = v ;
1317} ) ;
14- var __importStar = ( this && this . __importStar ) || function ( mod ) {
15- if ( mod && mod . __esModule ) return mod ;
16- var result = { } ;
17- if ( mod != null ) for ( var k in mod ) if ( k !== "default" && Object . prototype . hasOwnProperty . call ( mod , k ) ) __createBinding ( result , mod , k ) ;
18- __setModuleDefault ( result , mod ) ;
19- return result ;
20- } ;
18+ var __importStar = ( this && this . __importStar ) || ( function ( ) {
19+ var ownKeys = function ( o ) {
20+ ownKeys = Object . getOwnPropertyNames || function ( o ) {
21+ var ar = [ ] ;
22+ for ( var k in o ) if ( Object . prototype . hasOwnProperty . call ( o , k ) ) ar [ ar . length ] = k ;
23+ return ar ;
24+ } ;
25+ return ownKeys ( o ) ;
26+ } ;
27+ return function ( mod ) {
28+ if ( mod && mod . __esModule ) return mod ;
29+ var result = { } ;
30+ if ( mod != null ) for ( var k = ownKeys ( mod ) , i = 0 ; i < k . length ; i ++ ) if ( k [ i ] !== "default" ) __createBinding ( result , mod , k [ i ] ) ;
31+ __setModuleDefault ( result , mod ) ;
32+ return result ;
33+ } ;
34+ } ) ( ) ;
2135var __awaiter = ( this && this . __awaiter ) || function ( thisArg , _arguments , P , generator ) {
2236 function adopt ( value ) { return value instanceof P ? value : new P ( function ( resolve ) { resolve ( value ) ; } ) ; }
2337 return new ( P || ( P = Promise ) ) ( function ( resolve , reject ) {
@@ -67,7 +81,8 @@ function run() {
6781 } ) ;
6882 }
6983 catch ( err ) {
70- tl . setResult ( tl . TaskResult . Failed , err . message ) ;
84+ const errorMessage = err instanceof Error ? err . message : String ( err ) ;
85+ tl . setResult ( tl . TaskResult . Failed , errorMessage ) ;
7186 }
7287 } ) ;
7388}
0 commit comments